activity

Nested inner Activity class in android

Is declaring a class that extends Activity inside another Activity class possible? If it is, how would I register that class in the manifest? Also, is that something that can be reasonably done or is it a bad idea? I was thinking of something like class ListClass extends ListActivity{ ... ArrayList items; class ItemClass ...

Programming with SurfaceView and thread strategy for game development

Hi, I am using a SurfaceView and a rendering thread to develop a game based on structure like LunarLander. However, I faced many problems, and here I want to point them all out. I wish anyone who want to develop a game won't need to struggle with them anymore. And anyone who have a better idea of the structure can share their experienc...

Get current Activity reference from within Service

Hey, So say there's an app running (any app). I'd like to be able to get it's Activity from within a Service that will be triggered to run from a android.intent.action.SEARCH_LONG_PRESS. Is this possible? ...