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. SDK USB driver for Vista SP1 won't install - Solution?

This may help.

 http://www.***.com/ 











-- 
Writing code is one of few things
that teaches me I don't know everything.

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

2. G1 Firmware in ADP1?

Hello,

my friend has got himself Android Developer Phone 1. But he is not
developer, he just wants to use it as a normal phone and he doesn't
want any hassle with firmware updating (and he's not interested in
root access etc.). If I flash the official U.S. G1 firmware into his
phone, will he then receive normal OTA firmware upgrades, or will his
phone still report as ADP1 and will he have to update manually?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. where is fdatasync(int) implemented?

4. Kernels fail to boot on Rogers HTC Dream, but works on other Dream platforms (ADP1, T-Mo G1)

5. wait/force close notification

6. use of superscript in textview

7. How to restart video preview after the surfaceDestroyed()?