Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open activity as pop-up and not in other screen in Android?

I am working with Bluetooth Chat sample code. In sample app the Device opens up in another screen but I have implemented the same code with the difference that DeviceListActivity is called as soon as the app is started but this opens it in another screen and I want that it should be opened as pop-up in Bluetooth chat sample code.

Can someone let me know how to open Activity as pop-up?

like image 621
sunil Avatar asked Nov 22 '10 13:11

sunil


1 Answers

in your manifest file, set your activity theme to dialog

 <activity android:theme="@android:style/Theme.Dialog">
like image 67
Pentium10 Avatar answered Sep 21 '22 03:09

Pentium10