Ok this is what I want to do:

I have a button in my app, lets call it a super button. I let the user
define the action of this button. The user can select options such as:
send SMS, send an Email, open a browser, etc...

I would like the icon of this button to be the icon of the users
preferred application for that function.  This is simple to do when a
user has actually selected a default application. I can iterate
through the list of preferred apps and check each one to see if it
matches the action of the super button.

However, if the user only has the stock SMS or email client installed
then the application will not show up in the preferred application
list. I can get a list of installed packages and applications with
their associated icons, however, what I am trying to figure out is
this:

how can I take the list of installed applications and figure out which
one, of the many installed, is the sms application. I've tried to use
the dataScheme identifier but I am unable to get that information
using the methods provided by
getPackageManager().getInstalledPackages() or
getPackageManager().getInstallApplications


Does this help clarify my problem?

On Dec 17, 2:44 pm, Kostya Vasilyev <[email protected]> wrote:
> Now why do you need this anyway? Make an icon labeled "share", launch
> action_send, and be done with it.
>
> The rest is controlled by the user - sharing by SMS, email, instant
> messages, twitter, Facebook, and possibly a thousand apps that have not been
> invented yet. Your application will be ready for any of them.
>
> If this requirement comes from a pointy-haired boss, explain "the Android
> way" and hopefully they'll understand.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
> 17.12.2010 22:31 пользователь "TreKing" <[email protected]> написал:

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to