Re: [android-developers] alertdialog

2015-12-08 Thread sardar khan
use layout as a dialog On Tue, Dec 8, 2015 at 4:27 PM, Hari Raj wrote: > can any any one guide me how to set layout like this? > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emai

[android-developers] alertdialog

2015-12-08 Thread Hari Raj
can any any one guide me how to set layout like this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To p

[android-developers] AlertDialog in Fragment

2013-02-22 Thread abhijit
Hii My Question is I am Using ViewPager for my Application in which number of fragments are there .In one Fragment i have two buttons,my objective is that by clicking each button it should show a AlertDialog here i am getting stuck because here i cant use onCreateDialog(int id) to pass Differe

Re: [android-developers] AlertDialog and AsyncTask

2013-01-27 Thread Tamilarasi Sivaraj
I think are you wanted after finishing the process in AsyncTask after that the dialog will close and your result will be displayed correct.. Is that you want you dismiss your dialog you use the code below.. *protected void onPostExecute(String str) { /*your code here*/ dialog.dismiss(); }* On

Re: [android-developers] AlertDialog and AsyncTask

2013-01-27 Thread TreKing
On Sat, Jan 26, 2013 at 8:37 PM, dashman wrote: > but if the Dialog instance has been dismissed - won't that instance be gone > > and therefore dialog.isShowing() would result in an error. > No. dismiss() does not somehow magically null out the reference on which it's called. It hides the dialog

Re: [android-developers] AlertDialog and AsyncTask

2013-01-27 Thread Piren
I'm assuming you have a reference of that dialog... if you're worried that an instance of an object was removed, just check it isnt null first :-) You can also use the dialog's events (as TreKing suggested) to cancel the asynctask (which means onPostExecute wont be called) On Sunday, January 27

Re: [android-developers] AlertDialog and AsyncTask

2013-01-26 Thread dashman
I see a method isShowing() but if the Dialog instance has been dismissed - won't that instance be gone and therefore dialog.isShowing() would result in an error. the problem i'm trying to make sure doesn't happen is the Asynctask fnishing after the dialog closes and I try to write to a dialog

Re: [android-developers] AlertDialog and AsyncTask

2013-01-26 Thread TreKing
On Sat, Jan 26, 2013 at 4:04 PM, dashman wrote: > Is it possible byt the time the AlertDialog finishes that the > AlertDialog is closed - i.e. ui control no longer valid. > I assume you meant "by" and "the AsyncTask finishes" - yes, of course it's possible. You just have to dismiss the dialog fa

[android-developers] AlertDialog and AsyncTask

2013-01-26 Thread dashman
I have an AlertDialog with some controls. As the text changes in one of the EditView controls, I launch an AsyncTask to do some background work and then post the results in a different UI control. Is it possible byt the time the AlertDialog finishes that the AlertDialog is closed - i.e. ui contro

[android-developers] AlertDialog

2012-08-08 Thread Lars
Hi, I have a problem with a alertDialog private AlertDialog nameDialog; nameDialog = new AlertDialog.Builder(this).create(); nameDialog.setTitle(R.string.errorName); nameDialog.setMessage(getString(R.string.errorNameText)); nameDialog.setIcon(R.drawable.ic_alert); nameDialog.setIconAttribute

Re: [android-developers] AlertDialog in Fragment

2012-08-05 Thread Marcin Orlowski
Read about activity/fragment lifecycle. You can clearly be notified when user goes away from it, so you can i.e. flag this to your other code or cancel a task etc. You may also try to block back for a while (see onBackPressed()). Regards, Marcin Orlowski *Tray Agenda * -

Re: [android-developers] AlertDialog in Fragment

2012-08-03 Thread Justin Anderson
Code? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Aug 3, 2012 at 6:08 AM, Sohan badaya wrote: > Hi I have a issue with AlertDialog in Fragment. > I click on a button in fragment that will launch AlertDialog. Button will > do some background wo

[android-developers] AlertDialog in Fragment

2012-08-03 Thread Sohan badaya
Hi I have a issue with AlertDialog in Fragment. I click on a button in fragment that will launch AlertDialog. Button will do some background work and after 2 second it will start AlertDialog. If in between before launching AlertDialog if I press back button my previous acticity is being display

Re: [android-developers] AlertDialog setCustomTitle styling to match standard AlertDialog title

2012-05-27 Thread Kostya Vasilyev
Blending your own elements into standard Android UI is often very painful. It's gradually getting better for some things, but not everything. Some UI related resources and values are considered by Google to be implementation details, and are thus supposed to stay hidden. If a resource is not publ

[android-developers] AlertDialog setCustomTitle styling to match standard AlertDialog title

2012-05-27 Thread Mike Jones
I'm working on an Android app and I have an AlertDialog subclass. I would like to put 2 ImageButtons on the right side of the title area of the dialog (similar to the ActionBar in an Activity). I'm using setCustomTitle() to do this, which replaces the title area with a custom view of my own c

[android-developers] AlertDialog and cursors

2012-03-16 Thread HeneryH
I've built an AlertDialog using a cursor to populate the list items in the dialog. All works well with creating the list. I even get the 'which' item back in the callback for the row selected. One problem remains... How do I get the text back for the item that was clicked??? I don't want to re

Re: [android-developers] AlertDialog through server

2012-03-16 Thread TreKing
On Wed, Mar 14, 2012 at 10:00 AM, Pavan Kumar wrote: > Can anyone please let me know if it's possible to invoke a alertdialog on > android through a server? > Yes, it's possible. > if it is possible, tell me how to implement it. > Send a message from your server. On receiving this message in

[android-developers] AlertDialog through server

2012-03-16 Thread Pavan Kumar
Hi, Can anyone please let me know if it's possible to invoke a alertdialog on android through a server? if it is possible, tell me how to implement it. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

Re: [android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!

2011-11-02 Thread Jake Wilson
Mind explaining what you did? How did you pass the cursor into the OnMultiChoiceClickListener() method? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscrib

Re: [android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!

2011-06-06 Thread Kent Loobey
Gosh, I finally figured it out. On Saturday, June 04, 2011 01:16:32 PM Kent Loobey wrote: > Has anyone got this dialog to work? > > How does one get the selected checkbox to reflect the change when clicked? > > = > String myList = ROW_ID + "," + ITM_DESC +

[android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!

2011-06-06 Thread Kent Loobey
Has anyone got this dialog to work? How does one get the selected checkbox to reflect the change when clicked? = String myList = ROW_ID + "," + ITM_DESC + "," + ITM_CHECKED; final Cursor myCursor = myDB.rawQuery( "SELECT " + myList + " FROM " + m

[android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!

2011-06-06 Thread Kent Loobey
Has anyone got this dialog to work? How does one get the selected checkbox to reflect the change when clicked? = String myList = ROW_ID + "," + ITM_DESC + "," + ITM_CHECKED; final Cursor myCursor = myDB.rawQuery( "SELECT " + myList + " FROM " + m

[android-developers] AlertDialog gets disappear when adding single coise item

2011-05-14 Thread ABS
Hi I am working on android app. but i stuck at one point when i tried to add SingleChoiceItems to alert dialog the alert message gets disapear.,i dont know why this happens here is my code snippet. // builder.setMessage(alertMessage).setCancelable(false);

Re: [android-developers] AlertDialog with an mail-to link

2011-05-03 Thread Kostya Vasilyev
The default TextView used by AlertDialog doens't have autoLink set. Create your own TextView (doesn't matter: xml or code) and use it with AlertDialog.Builder.setView(). The standard AlertDialog layout can be found here, so you can make your TextView look the same: android-sdk-\platforms\an

[android-developers] AlertDialog with an mail-to link

2011-05-03 Thread dashman
I'd like to display an alert dialog text with an url to an email address. user can tap on the link and then mail program opens. how can i do this. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] AlertDialog and GLSurfaceView

2011-03-07 Thread gsxruk
Hi, Could someone please advise if it is possible to add a GLSurfaceView to an AlertDialog? It seems to work fine with other types of View but the GLSurfaceView seems to cause problems. Maybe this is not supported but the reference documentation doesn't appear to indicate that only cetain types

[android-developers] AlertDialog and GLSurfaceView

2011-03-07 Thread gsxruk
Hi, Could someone please advise if it is possible to add a GLSurfaceView to an AlertDialog? It seems to work fine with other types of View but the GLSurfaceView seems to cause problems. Maybe this is not supported but the reference documentation doesn't appear to indicate that only cetain types

Re: [android-developers] AlertDialog

2011-02-22 Thread TreKing
On Tue, Feb 22, 2011 at 8:43 AM, Kostya Vasilyev wrote: > The cancel listener is called when the dialog has already been hidden. > > ...which might be too late if someone wanted to display some sort of > "Canceling." message and keep the dialog on the screen until the > operation is done canc

Re: [android-developers] AlertDialog

2011-02-22 Thread Kostya Vasilyev
22.02.2011 17:38, Mark Murphy пишет: That was the point of my "Why?" question in my original reply. I don't know why the OP feels that he needs to override onBackPressed(). The cancel listener is called when the dialog has already been hidden. ...which might be too late if someone wanted to di

Re: [android-developers] AlertDialog

2011-02-22 Thread Mark Murphy
On Tue, Feb 22, 2011 at 9:36 AM, Jonas Petersson wrote: > 2011-02-22 14:51, Mark Murphy skrev: >> >> I had forgotten about that, sorry. However, have you tried that with >> BACK, particularly since 2.0? > > Um, isn't onCancelListener() what you are after. Works fine for me. > http://developer.andr

Re: [android-developers] AlertDialog

2011-02-22 Thread Jonas Petersson
2011-02-22 14:51, Mark Murphy skrev: I had forgotten about that, sorry. However, have you tried that with BACK, particularly since 2.0? Um, isn't onCancelListener() what you are after. Works fine for me. http://developer.android.com/intl/zh-CN/reference/android/app/AlertDialog.Builder.html#setO

Re: [android-developers] AlertDialog

2011-02-22 Thread Mark Murphy
I had forgotten about that, sorry. However, have you tried that with BACK, particularly since 2.0? On Tue, Feb 22, 2011 at 8:32 AM, Kostya Vasilyev wrote: > 22.02.2011 15:58, Mark Murphy пишет: >>> >>> >  so does that mean that I cannot use the builder - >> >> Correct. >> > > AlertDialog.Builder

Re: [android-developers] AlertDialog

2011-02-22 Thread Kostya Vasilyev
22.02.2011 15:58, Mark Murphy пишет: > so does that mean that I cannot use the builder - Correct. AlertDialog.Builder has had setOnKeyListener since API level 1: http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setOnKeyListener(android.content.DialogInterface.OnKe

Re: [android-developers] AlertDialog

2011-02-22 Thread Mark Murphy
On Tue, Feb 22, 2011 at 4:57 AM, dashman wrote: > I use AlertDialog.Builder to build a dialog... > > but I need to override the onBackPressed() button. Why? > so does that mean that I cannot use the builder - Correct. > would have to create a sub-class...etc. Correct. Hence, the question, why

[android-developers] AlertDialog

2011-02-22 Thread dashman
I use AlertDialog.Builder to build a dialog... but I need to override the onBackPressed() button. so does that mean that I cannot use the builder - would have to create a sub-class...etc. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

Re: [android-developers] AlertDialog error with events

2011-02-13 Thread TreKing
On Sun, Feb 6, 2011 at 8:18 PM, prolink007 wrote: > I am trying to create an AlertDialog inside my SmartApp class when an > event is fired in my DataRobot class. I am getting an error when doing this. > The event is firing and calling the function successfully in SmartApp, but > when it gets to

[android-developers] AlertDialog error with events

2011-02-11 Thread prolink007
I am new to java/android. I am trying to create an AlertDialog inside my SmartApp class when an event is fired in my DataRobot class. I am getting an error when doing this. The event is firing and calling the function successfully in SmartApp, but when it gets to alert.show() the following error is

Re: [android-developers] AlertDialog for Share to Gmail, Twitter, Facebook etc.

2010-10-13 Thread Kumar Bibek
Look at the ACTION_SEND intent in the docs. A simple search will give you the answers. http://www.castlerockresearch.in/dev/2010/08/understanding-intents-and-intent-filters-in-android/ On Wed, Oct 13, 2010 at 9:45 AM, Vootsugu wrote: > haii.. i'm new in android .. can us help me for make alertd

[android-developers] AlertDialog for Share to Gmail, Twitter, Facebook etc.

2010-10-13 Thread Vootsugu
haii.. i'm new in android .. can us help me for make alertdialog list to share in gmail, twitter, facebook etc. ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To un

[android-developers] AlertDialog within a TabActivity

2010-10-12 Thread Bret Foreman
I have a TabActivity with 3 tabs. Each tab contains its own Activity. When one of the contained Activities pops up an AlertDialog, there are actually 3 dialogs created. The dialog has a Dismiss button and it must be pressed 3 times to finally dismiss the 3rd dialog. My AlertDialog code in the cont

Re: [android-developers] AlertDialog with customized ListView

2010-09-09 Thread TreKing
On Thu, Sep 9, 2010 at 10:18 AM, dave wrote: > After the ListView is added into the AlterDialog, there is a centered > gradient separator line below the title of the alter dialog, it is just > above the ListView. > How are you adding this ListView? Do you have a screenshot of what you're describ

[android-developers] AlertDialog with customized ListView

2010-09-09 Thread dave
Hi, I am playing with the AlterDialog with a customized ListView in it. After the ListView is added into the AlterDialog, there is a centered gradient separator line below the title of the alter dialog, it is just above the ListView. Is there any way to get rid of it or change its color ? I do n

Re: [android-developers] AlertDialog changes sequence of events

2010-07-30 Thread Kostya Vasilyev
AlertDialog is not "modal" - the call to show() returns immediately, leaving the dialog on the screen and button callbacks active. This is the reason for the sequence change you're seeing. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.07.2010 1:37 пользователь "TreKing" написал: On Fr

Re: [android-developers] AlertDialog changes sequence of events

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 4:31 PM, john brown wrote: > What can I do to make the code with the yes/no confirmation run in the > sequence I am expecting, i.e. like the first LogCat output? > Print "after" in response to clicking the dialog buttons. --

[android-developers] AlertDialog changes sequence of events

2010-07-30 Thread john brown
Hello, The following code runs as I expect it to.: (cntr is an int with the whole class as it's scope) System.out.println("before saveReading, cntr = " + Integer.toString(cntr)); saveReading(Integer.parseInt(etRead.getText().toString())); System.out.println("after saveRead

Re: [android-developers] AlertDialog with a list of selectable items

2010-07-01 Thread TreKing
On Mon, Jun 28, 2010 at 6:42 AM, ENSI wrote: > is there any solution please? Don't use an alert dialog. Try a ListView. - TreKing - Chicago transit tracking app for Android-powered devices http://si

[android-developers] AlertDialog with a list of selectable items

2010-06-29 Thread ENSI
i'm displaying an AlertDialog with a list of selectable items on my first page,choosing one item will load to another page,but the problem is that when i go back to first one i can no more see the AlertDialog,is there any solution please? -- You received this message because you are subscribed to

Re: [android-developers] AlertDialog and keyboard open configuration change

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 1:28 PM, Julian Bunn wrote: > And, even if it was, it's not clear to me what I would need to do to > avoid the AlertDialog from disappearing! > How are you showing the dialog? If you're using Activity.showDialog(int), it will maintain the dialog's state and keep it shown a

[android-developers] AlertDialog and keyboard open configuration change

2010-05-06 Thread Julian Bunn
My app creates and shows an AlertDialog which accepts input from the user (the user needs to type some text into an EditInput). With the AlertDialog on screen, if the user opens up the keyboard on the device, then the app's OnCreate and OnResume methods are called and my AlertDialog promptly disap

Re: [android-developers] AlertDialog Timeout

2010-04-22 Thread Liviu Ungureanu
Hi! You have to create a thread which count until 3 and when counter is 3 you have to call - via an handler - yourDialogObject.cancel(). Hope this help. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] AlertDialog Timeout

2010-04-22 Thread Shekhar
Hi, I have to create an alert dialog which will timeout after 3 seconds.How can I use timer for it? In AlertDialog class i am not seeing any member function to set it. Thanks, Shekhar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

Re: [android-developers] AlertDialog - selected item

2010-04-22 Thread Mark Murphy
Ajay wrote: > Hi, >I have an AlertDialog with a list of selectable items and a OK > button. How can I get the selected option, when the user clicks the OK > button? Try calling getListView() on the AlertDialog. From there, you should be able to call getCheckedItemPosition(). -- Mark Murphy (

[android-developers] AlertDialog - selected item

2010-04-22 Thread Ajay
Hi, I have an AlertDialog with a list of selectable items and a OK button. How can I get the selected option, when the user clicks the OK button? Thank you, AJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] AlertDialog in Android 1.5 and 2.0 / 2.0.1

2010-02-03 Thread TreKing
I've never had an issue with AlertDialogs in the emulator under any version. Post the code you're using, you're probably just doing something wrong. - TreKing - Chicago transit tracking app for Android-

[android-developers] AlertDialog in Android 1.5 and 2.0 / 2.0.1

2010-02-02 Thread angushir...@googlemail.com
Dear all, I am using AlertDialogs in an Android application, and find that when I run them in an emulator that's configured for Android 2.0 or 2.0.1 SDK they appear fine and function as I intended. However, running them in emulators configured for the Android 1.6 SDK or lower, then noth

[android-developers] AlertDialog and setMultiChoiceItems

2009-12-15 Thread Klaus Kartou
Hi, I am having some problems maintaining the checked state of items in a AlertDialog. I want to show a dialog with a list of checkboxes that reflects the contents and states of items I have in a array in my activity. In *onCreateDialog *I use: builder.setMultiChoiceItems (int itemsId, boolean[]

[android-developers] AlertDialog setSingleChoiceItems

2009-10-30 Thread Éva Lovrencsics
Hello, I have an AlertDialog with single choice items, but these items sometimes change, so I have to update the radiobuttons array every time when the dialog is showed. I know there is a method called onPrepareDialog but the Dialog doesn't have the setSingleChoiceItems, only the Builder. Here i

[android-developers] AlertDialog Landscape fullscreen problem

2009-10-26 Thread erdo
I think I've found a small bug, probably related to the WindowManager and possibly introduced in doughnut. It happens when displaying an alertDialog, with a certain type and amount of text in it, and then switching to landscape mode, when in full screen. It's actually so specific, I doubt many pe

[android-developers] AlertDialog buttons not following the currently installed theme!

2009-08-25 Thread Armond Avanes
Hi Folks, I'm trying to customize the theme of my Android application. But I have problem customizing the AlertDialogs. Actually the buttons and their background color do not obey the currently installed theme! All I could find was "alertDialogStyle" which only works for dialog overall backgroun

[android-developers] AlertDialog not showing with keyboard closed, sensor on, and in landscape mode

2009-06-21 Thread Ty
Hi, I am having an issue with an alert dialog that does not show when I am in landscape mode with the physical keyboard closed. My activity is set to sensor and when I move it to landscape it works great except for when I try to show the dialog. I have walked through all of this and it does the

[android-developers] AlertDialog small border on top and bottom of window - how to remove?

2009-05-28 Thread simpliway
I have an AlertDialog with a custom layout. The layout is created just like this: @Override public Dialog onCreateDialog (int id) { Context c = getApplicationContext(); AlertDialog.Builder builder = new AlertDialog.Builder (this); builder.setView(new D

[android-developers] AlertDialog in Subactivity does not show...

2009-03-09 Thread Tommaso
Hi there, I am facing a problem I cannot solve. Somehow this is frustrating me. What I want to do is, show an AlertDialog when a user enters an invalid eMail address: Button saveButton = (Button) findViewById(R.id.save); saveButton.setOnClickListener(new OnClickListener() {

[android-developers] AlertDialog Question

2009-03-09 Thread SimV01
Is there a way to change the textsize used in AlertDialog.Builder - setMultiChoiceItems(validRatesCursor, "show", "country", new DialogInterface.OnMultiChoiceClickListener()... Some of my "country" fields have rather long names and they are getting cut off (with a ... on the end). Can the textsiz

[android-developers] AlertDialog lose on change rotation

2009-01-18 Thread fala70
I've an application with a MapActivity used how main activity. I inserted an AlertDialog to show and edit a few infos. When I change from portrait to landscape for open the keyboard, my AlertDialog is detroied without replaced, then I must recall the command menu for show again my AlertDialog. An

[android-developers] AlertDialog OnKeyListener - How to get Focused Item?

2008-12-21 Thread coderiver
I have an AlertDialog with an OnKeyListener. I need to find the focused item when the Call key is pressed. This AlertDialog also has an OnClickListener that works great - I get the position of the item from my view when it is clicked. What I also want to do - is get the position of the currently

[android-developers] AlertDialog Question

2008-10-27 Thread disappearedng
Hi everyone, I have written the following code public class AndroidPhoneDialer extends Activity { final EditText phoneNumber = (EditText) findViewById(R.id.phoneNumber); final Button callButton = (Button) findViewById(R.id.callButton); callButton.setOnClickListener(new B

[android-developers] AlertDialog Padding

2008-08-21 Thread Gil
I need to implement an AlertDialog with a EditView and an an OK and a Cancel button. I would like to be able to enable/disable the OK button if the EditText has/does not have text in it. I have two choices but I have problems with each approach: 1) If I create the AlertDialog with a layout which

[android-developers] AlertDialog Questions

2008-08-18 Thread Gil
I'm building an AlertDialog using the code below: AlertDialog.Builder d = new AlertDialog.Builder( context); d.setTitle( title); d.setIcon( iconId); d.setMessage( "Please enter a valid username"); d.setPositiveButton( positive, positiveListener); d.

[android-developers] AlertDialog Icon Size

2008-08-18 Thread Gil
I built an AlertDialog and I set a 48x48 icon in the title. When I rotate the dialog to view it in landscape orientation the bottom part of the view is clipped. My view is similar to R.layout.alert_dialog_text_entry from the SDK samples. If I change the icon size to be 32x32 the AlertDialog is di

[android-developers] AlertDialog Item Icons

2008-05-21 Thread Gil
Hi everyone, I want to create an dialog list that has icons as well as text. I know this is possible because I have no trouble creating it by using a submenu item with the associated items (which can have icons). My question is: can I use the AlertDialog.Builder to achieve the same result? Curren

[android-developers] AlertDialog Existence Check

2008-05-04 Thread Greg
how can I check if alerdialog has been shown on the screen i mean i just want to do that if alertdialog is already shown then i don’t want to show it again ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] AlertDialog that looks like ProgressDialog?

2008-04-09 Thread Redhunt
To keep things consistent I would like to have my AlertDialog look similar to the default ProgressDialog (minus the spinning icon). But I want the text to be in the same style. The default AlertDialog looks more clunky bigger text and thicker lines. Any one have any odeas on how to accomplish thi