On Fri, Nov 4, 2011 at 2:32 AM, sincere6 <[email protected]> wrote: > I developed the widget app that runs on honeycomb OS. (Actually the > hardware is Samsung Galaxy Tab.) > When I installed the developed widget, it should be in the list of > runnable widget list by pressing desktop screen for a few seconds. But > it's not.
Correct. > Only the OS reboot solves the problem. Actually, I am surprised that solves the problem. Another solution is for the user to run an activity associated with your app, at least in my experience. > BTW, when I installed the same widget into the mobile phone whose OS > is froyo, it goes into the runnable widget list instantly. > > Any clue or hint on this problem? With Android 3.1+, applications are installed in a "stopped" state. Among other things, they will not receive broadcast Intents until they are moved out of this state. The only way I know of to do this is to launch an activity associated with the application. In particular, at least for ACTION_BOOT_COMPLETED, a reboot was insufficient. I was just experimenting with app widgets and 3.2/4.0 yesterday (XOOM and emulator, respectively). I encountered the same issue of not seeing the app widgets available for adding to the home screen. Once I launched an activity associated with the app, the app widgets appeared. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

