[android-developers] Re: Rotated alert dialog

2011-10-23 Thread gg9h0st
I have a landscape looking view which is portrait(activity) for some
reason(it should not be an activity).



On Oct 23, 11:55 pm, lbendlin  wrote:
> you want the alert dialog to show in a different orientation than the active
> application? Why?

-- 
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] Rotated alert dialog

2011-10-23 Thread gg9h0st
hello.

I'm trying to make a rotated(vertically wide) alert dialog.

I've done it by making a transparent activity(force landscape) and
shows alert dialog.
but the problem is behind activity is rotating landscape too although
it was set to portrait only.

I badly need help to do it.

any solution or idea welcomed please.

-- 
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] activities with different screen orientation OR rotated alert dialog.

2011-10-06 Thread gg9h0st
hi.

I'm dealing with rotating alert dialog which impossible according to
forum search.
so now I'm trying to make a tranculcent activity(rotated) and shows
dialog.

It is ok so far, shows rotated alert dialog.
but the problem is the behind activity(portrait) is rotating landscape
although I set it's screenOrientation="portrait".
and look very ugly because forward activity is transparent.

Why the "Portrait ONLY" behind activity rotates and Landscape?
(android:screenOrientation="portrait")

A(android:screenOrientation="portrait")
B(android:screenOrientation="landscape")

A startActivity B  causing  A&B landscape.

Please give me something to do this.
- A portrait whatever happened.
or
- rotated alert dialog.

-- 
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] Re: No activity found for ACTION_APPLICATION_DEVELOPMENT_SETTINGS

2010-12-04 Thread gg9h0st
em~ thanks for the reply Mark.

I've tried it on emulator API7 and It crashes again for same reason.

12-04 22:19:52.812: ERROR/AndroidRuntime(295):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS
flg=0x3000 }

I'll just put the way to ACTION_APPLICATION_SETTINGS unless I find
something from what you told. the queryIntentActivities().

thanks.

On Dec 4, 10:17 pm, Mark Murphy  wrote:
> I have seen where some devices mess up those Settings.ACTION_* values
> -- they change something around in the Settings app and fail to set up
> the IntentFilters or something.
>
> If you do try it on the emulator, let me know what the results are. If
> it works there but fails on hardware, that is a CTS bug, as we should
> be testing for that sort of thing. I will file an issue on
> b.android.com if that is the case. If it fails on the emulator, I'll
> try to reproduce the problem, and that would indicate an actual
> Android OS bug, which too I'll file on b.android.com.
>
> In terms of coping with the problem, use PackageManager and
> queryIntentActivities() to see if anything will match your desired
> Intent. If not, you will need to perhaps fall back to
> ACTION_APPLICATION_SETTINGS for devices that do not let you get all
> the way to ACTION_APPLICATION_DEVELOPMENT_SETTINGS.
>
>
>
>
>
>
>
>
>
> On Sat, Dec 4, 2010 at 8:10 AM, gg9h0st  wrote:
> > It's been tested on API level6, devices GalaxyA(SHW-M100S),
> > Motorio(XT720).
>
> > I'll try it on emulator again and post.
>
> > On Dec 4, 9:53 pm, Mark Murphy  wrote:
> >> What are you testing this on? If it's an emulator, what SDK level is
> >> it? If it is a device, what model is it?
>
> >> On Sat, Dec 4, 2010 at 5:03 AM, gg9h0st  wrote:
> >> > hello~
>
> >> > I'm working on a fake gps app and want to show "Settings ->
> >> > Application -> Development" activity when "Allow mock locations"
> >> > setting is inactive.
> >> > below is the code work pretty good.
>
> >> > Intent intent = new Intent();
> >> > intent.setAction(Settings.ACTION_APPLICATION_SETTINGS);
> >> > startActivity(intent);
>
> >> > The problem is I want "Development" activity not "Application"
> >> > activity. so I replace the
> >> > ACTION_APPLICATION_SETTINGS to
> >> > ACTION_APPLICATION_DEVELOPMENT_SETTINGS, like here.
> >> > Then it crashes.
>
> >> > Intent intent = new Intent();
> >> > intent.setAction(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
> >> > startActivity(intent);
>
> >> > 12-04 18:53:20.052: ERROR/AndroidRuntime(12511): Caused by:
> >> > android.content.ActivityNotFoundException: No Activity found to handle
> >> > Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS }
>
> >> > anyone have a idea?
> >> > 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
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> _Android Programming Tutorials_ Version 3.0.1 Available!
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.1 Available!

-- 
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] Re: No activity found for ACTION_APPLICATION_DEVELOPMENT_SETTINGS

2010-12-04 Thread gg9h0st
It's been tested on API level6, devices GalaxyA(SHW-M100S),
Motorio(XT720).

I'll try it on emulator again and post.

On Dec 4, 9:53 pm, Mark Murphy  wrote:
> What are you testing this on? If it's an emulator, what SDK level is
> it? If it is a device, what model is it?
>
>
>
>
>
>
>
>
>
> On Sat, Dec 4, 2010 at 5:03 AM, gg9h0st  wrote:
> > hello~
>
> > I'm working on a fake gps app and want to show "Settings ->
> > Application -> Development" activity when "Allow mock locations"
> > setting is inactive.
> > below is the code work pretty good.
>
> > Intent intent = new Intent();
> > intent.setAction(Settings.ACTION_APPLICATION_SETTINGS);
> > startActivity(intent);
>
> > The problem is I want "Development" activity not "Application"
> > activity. so I replace the
> > ACTION_APPLICATION_SETTINGS to
> > ACTION_APPLICATION_DEVELOPMENT_SETTINGS, like here.
> > Then it crashes.
>
> > Intent intent = new Intent();
> > intent.setAction(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
> > startActivity(intent);
>
> > 12-04 18:53:20.052: ERROR/AndroidRuntime(12511): Caused by:
> > android.content.ActivityNotFoundException: No Activity found to handle
> > Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS }
>
> > anyone have a idea?
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.1 Available!

-- 
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] No activity found for ACTION_APPLICATION_DEVELOPMENT_SETTINGS

2010-12-04 Thread gg9h0st
hello~

I'm working on a fake gps app and want to show "Settings ->
Application -> Development" activity when "Allow mock locations"
setting is inactive.
below is the code work pretty good.

Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_SETTINGS);
startActivity(intent);


The problem is I want "Development" activity not "Application"
activity. so I replace the
ACTION_APPLICATION_SETTINGS to
ACTION_APPLICATION_DEVELOPMENT_SETTINGS, like here.
Then it crashes.

Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
startActivity(intent);

12-04 18:53:20.052: ERROR/AndroidRuntime(12511): Caused by:
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS }

anyone have a idea?
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] mLinearLayout.getLayoutParams() returns RelativeLayout.LayoutParams ????

2010-06-01 Thread gg9h0st
<>.getLayoutParams()
returns
<>.LayoutParams 

I found that happends and so freaked.

Is there any reason? or just a bug?

it's eclair.

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