Harishkumar V wrote:
> I have a apk file, where i dont have the source for it.
> 
> When i run the apk, it automatically rotates the screen,
> 
> /WindowManager(  879): Setting rotation to 1, animFlags=0
> I/WindowManager(  879): Config changed: { scale=1.0 imsi=0/0
> locale=en_US touch=1 key=2/1/2 nav=3 orien=1 }
> 
> then after closing the application or coming out from the application,
> 
> I/WindowManager(  879): Setting rotation to 0, animFlags=0
> I/WindowManager(  879): Config changed: { scale=1.0 imsi=0/0
> locale=en_US touch=1 key=2/1/2 nav=3 orien=2 }
> 
> how to disable the rotation.

Step #1: Get the source for the APK. If you can't do that, you cannot
modify the APK's behavior.

Step #2: Modify the manifest to add android:screenOrientation attributes
to each <activity> element for which you wish to change the rotation rules:

http://developer.android.com/guide/topics/manifest/activity-element.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to