Re: [android-developers] Re: Rotation event handling

2010-03-17 Thread Dianne Hackborn
On Wed, Mar 17, 2010 at 9:39 PM, AndroidShail wrote: > You can not get this event in service. > You must have Activity Class to recieve this event . > Not true, Service also has onConfigurationChanged(). -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send

[android-developers] Re: Rotation event handling

2010-03-17 Thread AndroidShail
You can not get this event in service. You must have Activity Class to recieve this event . On Mar 9, 11:37 am, Dilip Dilip wrote: > Hi , >   I wanted notification in my service ( sorry for wrong question ). its a > java file , it runs in background .. i want rotate notification here. > someone

Re: [android-developers] Re: Rotation event handling

2010-03-08 Thread Dilip Dilip
Hi , I wanted notification in my service ( sorry for wrong question ). its a java file , it runs in background .. i want rotate notification here. someone please explain me how to do it. Thanks and Regards, Dileep. On Mon, Mar 8, 2010 at 9:40 AM, Farha Ansari wrote: > Hi, you can add these l

[android-developers] Re: Rotation event handling

2010-03-07 Thread Farha Ansari
Hi, you can add these lines in AndroidManifest.xml, and then in your activity, override this method:- @Override public void onConfigurationChanged(Configuration newConfig) { if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {