Is it possible to default the screen to Portrait mode?

by Dianne Hackborn » Sat, 19 Sep 2009 06:23:23 GMT


Sponsored Links
 I believe it defaults to whatever the native orientation of your screen is.
If you want it to start out rotated, you will need to change
PhoneWindowManager to implement the policy you want.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Is it possible to default the screen to Portrait mode?

by Dianne Hackborn » Tue, 22 Sep 2009 04:15:27 GMT


 It's whatever your driver reports the screen size to be.  Sorry I can't help
you more than that, I don't know anything about your driver.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


Other Threads

1. How to launch ACTION_SENDTO intent with Intent.EXTRA_STREAM parameter

Hi,

My application is able to launch ACTION_SEND_TO with the following code:
Intent intent4 = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
                                                        "mailto", 
"testem...@gmail.com", null));
startActivity(intent4);

But when try to attach JPEG file with the Intent

        Intent intent4 = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
                                                        "mailto", 
"testem...@gmail.com", null));
String mimeType = Bitmap.CompressFormat.JPEG.name();

intent4.setType(mimeType);
                                        
System.out.println (" mTempFile" + mTempFile);
                                        
intent4.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+ mTempFile));

I have checked the file at "file://"+ mTempFile does exist.

But I get this exception:

Caused by: android.content.ActivityNotFoundException: No Activity
found to handle Intent { action=android.intent.action.SENDTO type=JPEG
(has extras) }
E/AndroidRuntime( 1806):        at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1484)
E/AndroidRuntime( 1806):        at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
E/AndroidRuntime( 1806):        at
android.app.Activity.startActivityForResult(Activity.java:2656)
E/AndroidRuntime( 1806):        at
android.app.Activity.startActivity(Activity.java:2700)

--~--~---------~--~----~------------~-------~--~----~

2. does android runs on OMAP5912 board ?

Hi ALL,
           I want to port android on OMAP5912 board which has a arm9
processor. Here is the details of board :
http://focus.ti.com/docs/toolsw/folders/print/tmdsosk5912.html
          Can anyone tell me whether android runs on this board or
not ? We are planning to port android on omap 59xx board (it is a arm9
board) as part of my master thesis.

          Please let me know which omap 59xx board will be best for
porting android.

Thanks
Tapas
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Re : Re : Re : Sharing data between an Android service and an application.

4. startActivity(intent) and ActivityNotFoundException

5. Hierarchy Viewer is not working on 1.5 sdk

6. porting android on imx31 platform

7. porting android on mips