[android-developers] Re: How to detect application launch and shutdown events?
You can implement your own Application class. (MyApplication extends Application) and set it as your Application in the manifest. application android:name=MyApplication . . . In MyApplication you implement onCreate and onTerminate. See the docs for Application http://developer.android.com/intl/fr/reference/android/app/Application.html /Martin On May 22, 10:44 am, Narendar narendardisco...@gmail.com wrote: Hi all, How to detect application launch and shutdown events? I have used BroadcastReceiver for detecting incoming message, outgoing call and so on. but now I want to use Application Launch and its Shut Down event from my application.. Kindly waiting for any suggestion/link/source code Regards, Narendar Software Engineer -- 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 athttp://groups.google.com/group/android-developers?hl=en -- 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] ImageView in ListActivity
Hi, I have an ListActivity that I wan't to add a logo to at the top above the list but I'm unsuccessful. This is what my layout looks like at the moment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/logo android:layout_width=fill_parent android:layout_height=wrap_content / ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:drawSelectorOnTop=false /ListView TextView android:id=@+id/empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=@string/list_empty / /LinearLayout Then I add an drawable to the ImageView logo in onCreate. I've managed to show either the ListView or the ImageView but never both of them in the same LinearLayout. Is it possible to add other views together with a ListView? /Martin -- 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