I want to write a service for Android platform that is notified when the current foreground activity changes.
I managed to connect an activity to a service and it runs ok. This is my first activity in the application. However, if i progress (with or without binding to the service in the first activity), the n
i have a simple activity program in android. basically the class just extends Activity. But when i start it i get a ClassCastException in the constructor of my class.
Is there a native an开发者_JAVA技巧droid way to get a reference to the currently running Activity from a service?
I have 2 activities, A1 and A2. My application opens in Activity A1. None of the views in A1 are focused at startup, until I use the arr开发者_Go百科ow keys to navigate through the views.
I have an audio player toolbar activity that has a corresponding layout file. I need this player to show up at the bottom of another activity. I use a ViewStub and inflate the audio toolbar\'s lay开发
I\'m 开发者_开发技巧having a couple of problems with an alarm app I am developing. The first thing that I think is a bit weird is that when an alarm goes of and wakes the phone up. These things happe
How my application is structured... Class A extends Activity { Button cButton = (Button) findViewById(...);
I am using an ActivityGroup to spawn multiple activities and switch views from within the same tab in a TabActivity.
How do I close a whole hierarchy of activities and show a new activity not present in the current task?