@Treking, Thanks, I feel like a total idiot for overlooking that
YuviDroid, No I'm not displaying a list of applications I'm displaying a list of Actions (intents) On Dec 17, 4:59 pm, YuviDroid <[email protected]> wrote: > How are you going to let the user choose what action to take when this > "super button" is pressed? > Probably you will show some list of apps that the user will manually select, > right? If that's the case then once the app is selected you know exactly the > application and you can get its icon, etc... > > > > > > > > > > On Fri, Dec 17, 2010 at 10:29 PM, neuromit <[email protected]> wrote: > > 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]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > YuviDroid > Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to > quickly access your favorite apps and contacts!)http://android.yuvalsharon.net -- 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

