Is modeless window supported in Android?

by ferne.ych » Mon, 23 Jun 2008 10:15:56 GMT


Sponsored Links
 Hi all,

    Is modeless window supported in Android? Or can I run an Activity
like running a Dialog (If I click the area outside of its size, it
will disappear)?

Best regards
--~--~---------~--~----~------------~-------~--~----~



Is modeless window supported in Android?

by hackbod » Mon, 23 Jun 2008 14:19:23 GMT


 For an activity that looks like a dialog, in your manifest just use
android:theme="Theme.Dialog".

For modeless windows, there are flags in WindowManager.LayoutParams
that can be used to the input behavior of a window (though you
probably only want to use these with dialog windows created inside of
an activity, not on an activity window itself).



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


Sponsored Links


Is modeless window supported in Android?

by ferne.ych » Mon, 23 Jun 2008 17:16:16 GMT


 Hi hackbod,

    Thanks a lot! The "Theme.Dialog" does work.
    But could you pls tell me which flag in WindowManager.LayoutParams
can be used to the input behavior of a window? I tried some but none
seemed to do the job.

Best regards




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



Is modeless window supported in Android?

by hackbod » Tue, 24 Jun 2008 07:42:35 GMT


Is modeless window supported in Android?

by ferne.ych » Thu, 26 Jun 2008 11:44:09 GMT


 Hi hackbod,

    Actually, what I want to do is:
    1. run a activity with the theme of "Theme.Dialog". Supposing this
activity is running on the homescreen, so there are some icons of
applications on its background.
    2. click an icon, the application witch is clicked will be run.

    Is it possible to do this?

Best regards.







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



Other Threads

1. Which is the MOST EFFICIENT way to get INFREQUENT orientation updates?

I need to get updates from the orientation sensor about once every 2
or 3 seconds, having the sensor events delivered to a background
service thread.  My options seem to be:

1. register the service thread as an event listener, and throw away
most of the events, looking only at the most recent event every 2 or 3
seconds.

2. register the service thread as an event listener, get one event,
and then unregister.  repeat every 2 or 3 seconds.

Which is more efficient?  In Donut, all sensor activity delivered to
an application element seems to be attributed to the application (even
though it's running on the event thread), so #2 seems like it would
make more sense if you want an app that is going to be recieving
orientation events over the long haul.  I wish that there was a #3:

3. deliver orientation events ever N milliseconds to the following
event listener.
--~--~---------~--~----~------------~-------~--~----~

2. A problem about installing the ADT in Eclipse

When I install  the ADT in Eclipse,a dialog window jump
out,said:"An internal error occurred during:'Android  SDK Content
Loader'".Then  when I bulid a new android project the Eclipse remiand
me " An SDK  Target must be specified".
     The version of my eclipse is 5.5.1GA.
     Please help my solve the problem.

 Thank you.
 
Wenbo   Wang

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

3. Bug in GridView??

4. Eclipse Code Assist broke in Ubuntu 9.04

5. I have some question about pvmf_socket_node.cpp file

6. How to pass a LIst of MyObject in .aidl

7. Where I wuz