[android-developers] Re: App adds a button to another app
s wrote: How can I cause my app to add a button to another app, the text messaging app for instance? You can't. If you could, that would be a serious security hole. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
What is meant is to add a menu button - or menu item - in another application. This is only possible if the hosting application explicitly provides this possibility. We do this in our OI applications, so that 3rd party applications can add additional functionality on-the-fly... for example OI Voice Notes appears as a menu extension in OI Notepad. For this purpose, the hosting activity (OI Notepad) must call addIntentOptions() when they create the menu http://code.google.com/p/openintents/source/browse/trunk/NotePad/src/org/openintents/notepad/NoteEditor.java while the other activity (OI Voice Notes) that wants to be included in the first application shall specify an intent filter in the category category android:name=android.intent.category.ALTERNATIVE / http://code.google.com/p/openintents/source/browse/trunk/VoiceNote/AndroidManifest.xml Peli www.openintents.org On Jun 24, 3:44 pm, s sbank...@aol.com wrote: How can I cause my app to add a button to another app, the text messaging app for instance? I want to add a button and then listen for when it is pressed, at which point code from my app would execute. In the notepad exercise 1 tutorial from the dev guide, there's a link that says add a button to an existing application! but this just links to the common development tasks. I've searched this but haven't found anything helpful. Any help would be greatly appreciated! Thanks, s --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
So the stock applications absolutely cannot be modified? They do not provide the possibility for menu additions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
s wrote: They do not provide the possibility for menu additions? If you search the Android source code for addIntentOptions(), you'll find few references. Why this is, I have no idea. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
We have moved away from addIntentOptions() because allowing arbitrary items to be added to the menu makes providing a decent UI very problematic. Usually app menus are carefully structured to have the most important items in the main menu, with less important ones in the secondary. Our preference at this point is to have one menu item that goes to another list of additional things that other apps can do. On Wed, Jun 24, 2009 at 2:12 PM, Mark Murphy mmur...@commonsware.comwrote: s wrote: They do not provide the possibility for menu additions? If you search the Android source code for addIntentOptions(), you'll find few references. Why this is, I have no idea. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
Dianne Hackborn wrote: Our preference at this point is to have one menu item that goes to another list of additional things that other apps can do. Is this technique implemented in the current edition of any apps distributed with Android? If so, and if we're not to use addIntentOptions(), how do we get included in the list of additional things that other apps can do? Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
On Wed, Jun 24, 2009 at 2:50 PM, Mark Murphy mmur...@commonsware.comwrote: Is this technique implemented in the current edition of any apps distributed with Android? Sure, for the share button, and everywhere else you get an activity picker to perform an operation. If so, and if we're not to use addIntentOptions(), how do we get included in the list of additional things that other apps can do? You are welcome to use the function, if it makes sense for a particular situation. All I am saying is that we have found it less useful than expected, and most often move over to using intent choosers. For getting included in a list, you implement in the appropriate intent protocol. For example, if you want to be an option for supplying content to someone (such as for an attention), you implement GET_CONTENT. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
Dianne Hackborn wrote: Sure, for the share button, and everywhere else you get an activity picker to perform an operation. OK, I'm apparently being dense. It won't be the first time... I've never seen a share button anywhere in Android. There is a share page menu choice in Browser, but a quick survey of other built-in apps that I use show neither a share button nor a share menu choice. Perhaps I use all the wrong apps. The Browser's share page menu choice uses Intent.createChooser(), which is cool and all, but that only seems to be used six times in the current source code, based on Google Code Search: MMS Email (message composition?) Music Camera Home (picking wallpaper, twice) Are there other share buttons/menu choices/whatever in built-in Android apps that are using other techniques for sharing besides createChooser()? Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
On Wed, Jun 24, 2009 at 3:12 PM, Mark Murphy mmur...@commonsware.comwrote: I've never seen a share button anywhere in Android. There is a share page menu choice in Browser, but a quick survey of other built-in apps that I use show neither a share button nor a share menu choice. Perhaps I use all the wrong apps. Camera has a share option. It is how you upload pictures to picasso, videos to youtube, send through e-mail, etc. All of these features are just individual apps saying they can do that action. The Browser's share page menu choice uses Intent.createChooser(), which is cool and all, but that only seems to be used six times in the current source code, based on Google Code Search: MMS Email (message composition?) Music Camera Home (picking wallpaper, twice) Are there other share buttons/menu choices/whatever in built-in Android apps that are using other techniques for sharing besides createChooser()? Those are probably the main uses. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App adds a button to another app
Another way to put oneself into a built-in Android app, albeit only into the Launcher, is by implementing the ACTION_CREATE_SHORTCUT. (Other more trivial possibilities are CATEGORY_INFO for the Market app, and CATEGORY_LAUNCHER for the Launcher app) Yet another possibility is to implement the actions of the existing Android apps, so that one is presented a choice which app to use (for example for viewing a photo). But I see the point that customer service could become very complicated if people have problems with the built-in applications, and it is not clear anymore, which part really is built-in and which is an add-on. Luckily, at OpenIntents, we can have a more experimental attitude towards interacting with 3rd party apps, so we try to provide hooks for other developers wherever possible. If one is missing, please let us know :-) Peli www.openintents.org On 25 Jun., 00:23, Dianne Hackborn hack...@android.com wrote: On Wed, Jun 24, 2009 at 3:12 PM, Mark Murphy mmur...@commonsware.comwrote: I've never seen a share button anywhere in Android. There is a share page menu choice in Browser, but a quick survey of other built-in apps that I use show neither a share button nor a share menu choice. Perhaps I use all the wrong apps. Camera has a share option. It is how you upload pictures to picasso, videos to youtube, send through e-mail, etc. All of these features are just individual apps saying they can do that action. The Browser's share page menu choice uses Intent.createChooser(), which is cool and all, but that only seems to be used six times in the current source code, based on Google Code Search: MMS Email (message composition?) Music Camera Home (picking wallpaper, twice) Are there other share buttons/menu choices/whatever in built-in Android apps that are using other techniques for sharing besides createChooser()? Those are probably the main uses. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---