[android-developers] Screen orientation problem at transparent activity.

2012-04-22 Thread Cheoloh,Park
When a run transparent activity after normally destroy fullscreen
landscape activity which is not yet activityDestroyed, transparent
activity is shown landscape.
please see my reported bug.

http://code.google.com/p/android/issues/detail?id=28927

Thanks.

-- 
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] Screen Orientation changes automatically in 2.2 emulator

2011-10-31 Thread KK
Hi All,
I'm trying to create a simple stream media player app. Though the media
player is working fine and I'm able to play shoutcast stream, but I'm
facing a weird problem, screen orientation changes automatically in periods
of : 2mins of start of app---15 secs---15 secs---2minutes and the cycle
continues. The time is not 100% accurate, and just my observation. Would
appreciate if someone could point me what could be causing this problem.
Thanks for your time. Just a note, that I'm running the app on android
emulator and I'm on 2.2 API series.

logcat chunk is as below
10-31 21:04:41.830: INFO/WindowManager(59): *Setting rotation to 1,
animFlags=0*
10-31 21:04:41.840: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18
uiMode=17 seq=34}
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:42.040: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:04:42.040: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:04:42.040: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:42.620: DEBUG/dalvikvm(170): GC_FOR_MALLOC freed 11469 objects
/ 509344 bytes in 633ms
10-31 21:04:44.349: WARN/AudioFlinger(34): write blocked for 71 msecs,
57716 delayed writes, thread 0xb3f0
10-31 21:04:44.600: DEBUG/dalvikvm(59): GC_EXPLICIT freed 1748 objects /
69712 bytes in 157ms
10-31 21:04:49.435: WARN/AudioFlinger(34): write blocked for 74 msecs,
57757 delayed writes, thread 0xb3f0
10-31 21:04:52.620: INFO/WindowManager(59): *Setting rotation to 0,
animFlags=0*
10-31 21:04:52.620: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18
uiMode=17 seq=35}
10-31 21:04:54.502: WARN/AudioFlinger(34): write blocked for 71 msecs,
57790 delayed writes, thread 0xb3f0
10-31 21:04:55.290: DEBUG/dalvikvm(59): GC_EXPLICIT freed 335 objects /
16072 bytes in 234ms
10-31 21:04:59.549: WARN/AudioFlinger(34): write blocked for 70 msecs,
57824 delayed writes, thread 0xb3f0
10-31 21:05:04.715: WARN/AudioFlinger(34): write blocked for 72 msecs,
57863 delayed writes, thread 0xb3f0
10-31 21:05:09.814: WARN/AudioFlinger(34): write blocked for 71 msecs,
57910 delayed writes, thread 0xb3f0
10-31 21:05:09.830: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:05:09.830: INFO/WindowManager(59): *Setting rotation to 1,
animFlags=0*
10-31 21:05:09.840: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18
uiMode=17 seq=36}
10-31 21:05:09.860: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:05:12.540: DEBUG/dalvikvm(59): GC_EXPLICIT freed 443 objects /
1 bytes in 141ms
10-31 21:05:15.170: WARN/AudioFlinger(34): write blocked for 80 msecs,
57942 delayed writes, thread 0xb3f0
10-31 21:05:20.290: WARN/AudioFlinger(34): write blocked for 77 msecs,
57984 delayed writes, thread 0xb3f0
10-31 21:05:22.029: INFO/WindowManager(59): *Setting rotation to 0,
animFlags=0*
10-31 21:05:22.029: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18
uiMode=17 seq=37}
10-31 21:05:24.630: DEBUG/dalvikvm(59): GC_EXPLICIT freed 216 objects /
9928 bytes in 137ms
end of logcat chunk

Thanks,
KK

-- 
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] screen orientation.

2011-06-09 Thread Android K
Hello,
I am trying to control the orientation from which I start. It works fine if
I hold the phone in portrait mode and start my app. Otherwise dialog gets if
I start in landscape position.

Any help is appreciated.

Thanks,
Harsha


*public* *void* onCreate(Bundle savedInstanceState)

{

 *super*.onCreate(savedInstanceState);

setRequestedOrientation(ActivityInfo.*SCREEN_ORIENTATION_PORTRAIT*);



showDialog(TEST);

}



I tried using Manisfest file too.



?xml version=*1.0* encoding=*utf-8*?

manifest xmlns:android=*http://schemas.android.com/apk/res/android;
*

package=*com.playWAV
*

android:versionCode=*1
*

android:versionName=*1.0
*

android:screenOrientation=*portrait*

uses-permission

android:name=*android.permission.INTERNET* /

uses-permission

android:name=*android.permission.READ_CONTACTS* /

uses-permission

android:name=*android.permission.READ_PHONE_STATE* /

application android:icon=*@drawable/icon*

android:label=*@string/app_name
*

android:screenOrientation=*portrait*

-- 
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] Screen Orientation changes after Camera Application runs

2010-04-02 Thread bappa
Dear All,

After running Camera Application in Eclair, when i just get back from
Cam App,  Home Screen and All other widget's orientation changed and
rotate 90 degree till i restart hardware.

So my question is where to update, so that Other's  Orientation not
changed during running Cam App.?

Thanks in Advance.

Regards
Bappa

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Screen Orientation in Android

2010-02-16 Thread uday kiran
Hi All..

Im facing some problems on Screen Orientation in android.
In my application one screen contains Name,Age(as EditTexts). When i
click on Name EditText internal Keypad is opening and some of the
buttons are hiding due to that keypad.

I have some questions regarding this.
1) Whether i need to shrink the application screen as per the keypad
layout??
2) How much space the keypad will occupy??
3) How to change from Portrait mode to landscape mode dynamically??

So Please help me to resolve the issue.

Any help greatly appreciated...

Thanks in advance

-- 
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] Screen Orientation Change

2009-10-08 Thread Neilz

Hi all. I notice when using the emulator that when the screen is
flipped, I get a following logcat message:

INFO/WindowManager(589): onOrientationChanged, rotation changed to 1

How can I catch this in the code? I want to know whenever the
orientation changes. I assume I have to set a listener, but I can't
find an example anywhere.
--~--~-~--~~~---~--~~
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] screen orientation not honoured when called from share ?

2009-09-04 Thread Jason Proctor

i set screenOrientation to portrait inside my application, and 
usually this keeps things pointing the right way.

however, i allow users to share pics  videos via the share menu in 
the various Camera apps etc, and it seems like if the host app is in 
landscape, then orientation doesn't change back to portrait when it 
invokes my share-activity.

is this intended?

thanks
-- 
jason.vp.engineering.particle

--~--~-~--~~~---~--~~
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] Screen Orientation change and TabHost

2009-06-30 Thread UK Android Apps UK Android Apps

Hello,

I have a TabActivity that shows the results of HTTP calls.

There are four tabs.

When the activity is created the HTTP calls are made and a
ProgressDialog is shown.

Whilst the HTTP calls are being made and the tabs added if the user
changes the screen orientation I get a error in the TabHost 298 in
relation to a nullpointerexception.

I know that the activity will get destroyed and recreated.

Any ideas on how to progress?

Thanks
--~--~-~--~~~---~--~~
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] screen orientation change not working

2009-06-20 Thread geopicmob...@googlemail.com

Hi!

I'm having problems with applications not switching back to portrait-
mode.
Switching from portrait-mode to landscape-mode works fine, the first
time - but after that it won't change back.
This goes for all applications except the Home-Screen.
I use Ctrl-F11 and/or Ctrl-F12 to change the screen orientation in the
emulator.
And I just updated to SDK version 1.5

Here is some output from LogCat which caught my attention:

// Starting the Android-Settings
06-20 20:23:35.251: INFO/ActivityManager(581): Starting activity:
Intent { action=android.settings.SETTINGS flags=0x1020 comp=
{com.android.settings/com.android.settings.Settings} }
06-20 20:23:35.421: WARN/InputManagerService(581): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@43674ee0
06-20 20:23:41.011: DEBUG/dalvikvm(621): GC freed 1095 objects / 49048
bytes in 118ms

// Changing screen orientation to landscape-mode
06-20 20:23:43.815: INFO/WindowManager(581): Setting rotation to 1,
animFlags=1
06-20 20:23:43.821: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/1 nav=3 orien=2 }
06-20 20:23:44.231: DEBUG/StatusBar(581): updateResources
06-20 20:23:46.802: DEBUG/dalvikvm(581): GC freed 2249 objects / 98192
bytes in 131ms

// Changing screen orientation back to portrait-mode
06-20 20:23:52.640: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=2 }
06-20 20:23:52.921: DEBUG/StatusBar(581): updateResources
06-20 20:23:55.502: DEBUG/dalvikvm(581): GC freed 1707 objects / 74904
bytes in 133ms

// Pressing the Home-Button
06-20 20:24:01.401: INFO/ActivityManager(581): Starting activity:
Intent { action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x1020 comp=
{com.android.launcher/com.android.launcher.Launcher} }
06-20 20:24:01.421: WARN/UsageStats(581): Something wrong here, Didn't
expect com.android.settings to be paused
06-20 20:24:01.440: INFO/WindowManager(581): Setting rotation to 0,
animFlags=0
06-20 20:24:01.450: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.481: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.800: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.841: DEBUG/StatusBar(581): updateResources
06-20 20:24:02.450: DEBUG/dalvikvm(713): GC freed 4066 objects /
215288 bytes in 763ms


The WindowManager reports, that the Config changes, but orien is
always set to 2 - no matter how often i change orientation. It is not
untill i return to the home-screen, that orien is set to 1...

Any help would be greatly appreciated :)
--~--~-~--~~~---~--~~
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] screen orientation crash

2009-05-07 Thread youssef henry
I have developed an Android application it is a game using opengl. when i
change the screen orientation the application crash.
Any one can help.

--~--~-~--~~~---~--~~
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] Screen Orientation.

2009-03-24 Thread Suman

Hi all...


Thanks for replies. Can any one tell me by which
method i can check the screen orientation? I mean i want to check
whether it is land-scap mode or portrait mode. Thanks in advance.


Suman.

--~--~-~--~~~---~--~~
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] Screen Orientation change performance Question

2009-01-21 Thread j

From reading Romain Guy's blog post, I understand keep static
reference to a Drawable can create huge memory leaks.  So what is the
recommended solution if I don't want to reload my big Drawable image
every time screen orientation changes?  Currently my app takes 3
seconds to complete each orientation change.
--~--~-~--~~~---~--~~
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] screen orientation question

2008-11-29 Thread joshbeck

Hello all,
I am trying to determine exactly what happens when the screen
orientation changes.
(What I mean is, what happens to the lifecycle of an app when the user
slides the screen out.)

Reason:
 I show a dialog in my app.
 If the user slides the screen out, the app crashes with
'View not attached to window manager error.'

Is onPause called or something else?

I'm thinking if I can slip a progressdialog.dismiss(); into an
override, I'll
be able to eliminate that particular element when the screen changes.


Thanks,
Josh Beck

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Screen orientation woes

2008-11-27 Thread Stoyan Damov

Hi all,

For my app the landscape orientation is useless, so I set my
activity's Screen orientation attribute to portrait. Even when the
screen orientation changes to landscape, whatever I draw is simply
drawn flipped 90 degrees, which is what I want.

I also don't want my activity to get restarted when the screen
orientation changes, so I set the Config changes attribute to
mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|fontScale
and handle onConfigurationChanged myself. That's great too.

Now, the thing is, that when onConfigurationChanged gets called, the
orientation is always reported as portrait, while I really want to
know that the user has changed it to landscape, so I can put a message
saying something like landscape orientation is not supported.

Is there a way to do that? Is there a way in which I can query the
device for it's physical orientation?

On a side note, I read here[1] that I can set the orientation to
sensor, which will report screen orientation changes as the device's
physical orientation changes. Does this really work on a real device
(I still don't have one) or that's reserved for a future release? I'm
asking because from what I read in some G1 reviews, the device's
screen orientation changes to landscape only when the user slides the
keyboard open.

FWIW I'm using SDK 1.0 r1.

Thanks,
Stoyan

[1] 
http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] screen orientation values in Display class

2008-09-20 Thread Huebi

There are several classes where int values for screen orientations are
available (Configuration, ActivityInfo). Unfortunately, none matches
the values returned from the Display.getOrientation() method and there
is no documentation on the returned values. I can take the ints and
compare to them but using some kind of static variable from the API
would be more secure. Is there a place where the values returned by
this method are defined?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---