I would like the dialog asking for permissions to be full-screen, is it possible ?
try
Dialog dialog=new Dialog(this,android.R.style.Theme_Dark_NoTitleBar_FullScreen)
this will set dialog to show with full screen.
(if I understand your question properly...)
I do not think that we have control over how the Android Manifest Permissions are shown to the user.
As far as I am aware, this is done by the Google Play Store app, and is based only on the permissions declared in the manifest.
You can create custom dialog boxes.
There are answers already available on stackoverflow.
Check this -
How to create a Custom Dialog box in android?
create an activity and set its theme as dialog
Related
I want to show an input dialog exactly like this:
On the android dev page I couldn't find a fitting dialog type? (Alerts, simple dialogs and confirmation dialogs)
I would appreciate it if someone could explain which component this is.
You should use simple Dialog fragment.
Refer following link http://stacktips.com/tutorials/android/android-dialog-fragment-example
I have an activity that I display to the user as a dialog via a change in the manifest:
android:theme="#android:style/Theme.Holo.Dark.Dialog"
I haven't been able to find any help regarding how to change the divider via this method of calling a dialog - only from typical dialog code.
setDivider doesn't seem to be supported.
Thanks for any help.
How to do this — does anyone have any idea of how to do this in tablets honeycomb?
EDIT= is it possible in android in possible how to do this.
and this
edit:how load another activity(Mapview (or) Any other activity) with in the popup dialog. when i click button?
Yes, you basically have to create custom dialog boxes and implemnet as per your requirement
Check this link for custom dialog
i want to create message box which must be seen on current screen(Ex i am playing song or creating message on that screen also that message must got pop-up/seen)like notification..
so.please help me to achieve this.....
Thanks in Advance--
You can use a Toast to accomplish what you wish, it will be visible over the activity/screen and can be styled with a custom layout.
You may also want to read the Android Developer documentation on Notifying the User for other alternatives & common methods of notification on Android.
I agree that a normal android notification would be better. IF you do want to do this though, take a look at the "Creating a Custom Dialog" section here:
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
I'm looking to replicate and improve upon the following AlertDialog in my app:
http://i.stack.imgur.com/aU3Ep.png
Is this a built-in AlertDialog, or was this made from scratch? If it was made from scratch, what control/widget is the number picker? Or is that built from scratch too?
Thanks!
btw.. screenshot is from Math Alarm Clock Pro
Looks like custom dialog made like explained here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
Kind of looks similar to this one:
http://www.quietlycoding.com/?p=5
So that would mean: custom made.
You find some interesting links if you search on google for "android NumberPicker"
Built in Dialogs are AlertDialog, DatePickerDialog, ProgressDialog, TimePickerDialog (see developer.android.com/reference/android/app/AlertDialog.html )
This explains the default AlertDialogs: http://developer.android.com/guide/topics/ui/dialogs.html
But there is one interesting function in AlertDialog (setView(...)) you could use to make the above (but you have to create the view by yourself - edittext and two buttons plus okay button - and assign the onclickevents). See the function here: http://developer.android.com/reference/android/app/AlertDialog.html#setView(android.view.View)
Just looks like a standard dialog set to have no title. It then has an EditText sandwiched between two buttons with a confirmation button at the bottom.
Edit: Here is an abridged snippet from my onCreateDialog override in an app of mine.
Dialog dialog;
dialog = new Dialog(this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);