You can use the various options in WindowManager.LayoutParams to control how
your window is sized (you'll want WRAP_CONTENT to not be full screens),
where it is placed on screen (absolute position and/or gravity constants to
place relative to an edge), etc.
On Mon, Feb 8, 2010 at 11:34 PM, sheng
Using Activity Manager, operating on the HistoryRecord list
Guobin
2010/2/9 sheng wang banxia...@gmail.com
Hi GuoBin,
1. My translucent activity will be the root acitivity, and very possible
the home screen will be just behind, but what is the programmable way that
can get a activity
The activity that is no longer visible could have been destroyed by
the OS.
However, since your top-activity is (partially) translucent, this
probably won't happen.
If you really need to communicate back to the activity in the
background, there are various methods:
1. Use a static variable that
Hi GuoBin,
1. My translucent activity will be the root acitivity, and very possible
the home screen will be just behind, but what is the programmable way that
can get a activity variable equals to the Home Launcher ?
2010/2/8 Guobin zzg...@gmail.com
1. Possibly there are ways to find the
Hi,
You can't get the activity behind unless it is your own. Otherwise it is in
another process and untouchable by you.
There is only ever one activity resumed at a time, so if you are in the
front and resumed, then the home screen (or whatever) behind you is paused
(though not stopped because
Hi
About the make your window not fullscreen. The activity starts full
screen. I remember some theme can make the activity not fullscreen. But it's
not so flexible, the floating window will be centered on the screen and can
not be moved(correct me if I'm wrong)
Besides the theme, are there any
1. Whether the event can be send down to any thing behind the current
activity.
No, you can't.
On the Android platform, you define an Activity's UI using a hierarchy
of View and ViewGroup nodes.
Home your activity are different activity, they have their own view
hierarchy.
Key events are always
Hi GuoBin,
I understand what u mean below. I think that's the standard way the android
deal with the event. Event goes through a current path within the activity.
No event will go out of the current activity.
As a surround way, is there any method that can let the current activity
find out who
1. Possibly there are ways to find the activity behind the current
one.
Precondition: All activity are fullscreen.
If your activity is the root activity, then Home is in behind.
Otherwise find the previous activity in the task stack.
2. You could send the touch event to other activity, but it's
9 matches
Mail list logo