[android-developers] Dialog fragment to db to listview update: help?

2017-02-12 Thread Charlotte A.Wilson
Been having trouble with this all night, fairly new to android as well. Any help would be appreciated: http://stackoverflow.com/questions/42194753/android-attempt-to-invoke-interface-method-on-a-null-object-reference-within -- You received this message because you are subscribed to the Google

[android-developers] Dialog v7 crashing on some device with sdk 24 and 25

2016-11-07 Thread Willi Ye
Hi, some users reported my app is crashing for them Log: http://pastebin.com/iBWMYEHi it crashes right when show gets executed. I tried to replicate this bug with several devices, but no luck. It only happens only with sdk 24/25 (23 and below are just fine) Is there any known fix for this? --

Re: [android-developers] Dialog Box Position

2013-02-26 Thread Narendra Singh Rathore
On Wed, Jan 4, 2012 at 6:18 PM, aru padam deepesh...@gmail.com wrote: Hi all, How can set a dialog box at the bottom of the screen?. Please help me.. Hi Deepesh, refer the following link: http://stackoverflow.com/questions/9467026/change-dialog-position-on-the-screen -- -- You

[android-developers] Dialog options from a library project?

2012-10-24 Thread ColorTheorist
I've noticed that when developing an SDK library project, there is a desire to have a check as to whether the bluetooth functionality is turned on for the device before proceeding. However, as a library project, I am restricted to the absence of my own activity. I had hoped to call the

[android-developers] Dialog with dynamic ListView content

2012-07-17 Thread superpsycho
I would like to build an Alertdialog containing a ListView with dynamic changing content in the ListView. All I build is an AlertDialog and I don´t know what to implement next. ListView, ListAdapter, Activitys or w00t? Anyway the all mighty google gave me answers to questions i didn´t ask. I

Re: [android-developers] Dialog with dynamic ListView content

2012-07-17 Thread Justin Anderson
Use one of the variations of setSingleChoiceOptions... Here is the link to one of them: http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setSingleChoiceItems%28java.lang.CharSequence[],%20int,%20android.content.DialogInterface.OnClickListener%29 Thanks, Justin Anderson

[android-developers] Dialog Box Position

2012-01-04 Thread aru padam
Hi all, How can set a dialog box at the bottom of the screen?. Please help me.. Deepesh C -- 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 unsubscribe from

[android-developers] Dialog and Android lifecycle on ICS (Galaxy Nexus)

2011-12-09 Thread Royston
I have an odd but repeatable issue with Dialogs and Android lifecycle on a Nexus (emulated and actual device). I am using showDialog(ID) throughout and dismissDialog(ID) to remove. In the tests I run I show a dialog with and ID of 10 and dismiss it, I then show a dialog with an Id of 9 and

Re: [android-developers] Dialog and Android lifecycle on ICS (Galaxy Nexus)

2011-12-09 Thread Dianne Hackborn
I'd suggest using fragments and DialogFragment. On Fri, Dec 9, 2011 at 8:24 AM, Royston roystonpcar...@gmail.com wrote: I have an odd but repeatable issue with Dialogs and Android lifecycle on a Nexus (emulated and actual device). I am using showDialog(ID) throughout and dismissDialog(ID) to

Re: [android-developers] Dialog and Android lifecycle on ICS (Galaxy Nexus)

2011-12-09 Thread Royston
Dianne, Thank you for the response. Can I infer from you answer that the behaviour I have seen is as expected? I think I should have gone the DialogFragment route from project inception but probably not a good solution at this stage. I do note that if I consistently use removeDialog instead of

Re: [android-developers] Dialog and Android lifecycle on ICS (Galaxy Nexus)

2011-12-09 Thread Dianne Hackborn
Well... managed dialogs are saved and restored in a map, and so if you have multiple ones displayed the order they are re-created won't be guaranteed to be the same. If you only have one displayed at a time you should be fine (and I would recommend only having one displayed anyway since it

Re: [android-developers] Dialog Activity

2011-11-25 Thread Aki
It is the application context. I want to display the dialog from a service. -- 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 unsubscribe from this group, send email

Re: [android-developers] Dialog Activity

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 6:19 AM, Aki arnab...@gmail.com wrote: It is the application context. I want to display the dialog from a service. So what do you need with button click listeners? - TreKing

Re: [android-developers] Dialog Activity

2011-11-25 Thread TreKing
Or ... why not just handle the button clicks within the Dialog-themed Activity itself? On Fri, Nov 25, 2011 at 6:46 AM, TreKing treking...@gmail.com wrote: On Fri, Nov 25, 2011 at 6:19 AM, Aki arnab...@gmail.com wrote: It is the application context. I want to display the dialog from a

Re: [android-developers] Dialog Activity

2011-11-24 Thread Aki
Cannot display an AlertDialog from a non-activity context. -- 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 unsubscribe from this group, send email to

Re: [android-developers] Dialog Activity

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 3:14 AM, Aki arnab...@gmail.com wrote: Cannot display an AlertDialog from a non-activity context. OK ... so now, what non-activity context are you trying to display a dialog from and why?

[android-developers] Dialog Activity

2011-11-23 Thread Aki
I am trying to create an Activity which can be used like a dialog. My Activity has a dialog theme, so it has the dialog feel. In my layout I have added a TextView, to display a message, and three buttons (Positive, Negative, Neutral). The text message which is to be displayed is passed as an

Re: [android-developers] Dialog Activity

2011-11-23 Thread TreKing
On Thu, Nov 24, 2011 at 12:06 AM, Aki arnab...@gmail.com wrote: I am trying to create an Activity which can be used like a dialog. Before addressing your actual question ... what is the purpose of this? I.E., why not just use an AlertDialog?

[android-developers] dialog box discovery

2011-11-03 Thread teo988
Hello everyone, I should do an application that uses BT. Does anyone know if is possible don't show the confermation dialog box for discovery? thanks...and sorry for my english -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Dialog with ListView and Scrollbar not centered

2011-10-04 Thread Pent
I have an activity with style Theme.Dialog with a ListView. If the list view doesn't have many items, all is good, the dialog is centered. If the list view has a lot of items the dialog is no longer centered horizontally because the gap between it and the screen-right gets bigger whereas the left

Re: [android-developers] Dialog dismiss()

2011-09-14 Thread Emanuel Moecklin
I ran into these issues too and the only solution I found so far that works in any case (rotation, home button restart activity, sliding out keyboard, killing an app etc.) is using an AsyncTask. I'm not a big fan of AsyncTasks normally but to show and dismiss a ProgressDialog this seems to be

Re: [android-developers] Dialog dismiss()

2011-09-14 Thread Streets Of Boston
I found the use of activities (with a Theme.Dialog or such theme) much easier and prefer it over the use of dialogs. And usually, i put busy-indicators such as indeterminate progress-bars on the screen it self (the right top corner of the screen or as a 'full' screen overlay). This prevents me

Re: [android-developers] Dialog dismiss()

2011-09-13 Thread Greg Donald
On Friday, September 9, 2011 10:44:24 PM UTC-5, TreKing wrote: At this point I'm going with setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ); It's a sure thing. It's not Yup, it's not. I have crash logs (many of them, and for multiple resolutions) with

Re: [android-developers] Dialog dismiss()

2011-09-13 Thread Miguel Morales
It really isn't that hard. I went ahead and created a test project to show the way I'm doing it. I'll probably write a blog post about it. See: https://github.com/therevoltingx/android_orientation_test/blob/master/src/com/solrpg/orientation_test/DefaultActivity.java On Tue, Sep 13, 2011 at 9:50

Re: [android-developers] dialog

2011-09-09 Thread Rafael Maas
http://developer.android.com/guide/topics/ui/dialogs.html http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog 2011/9/8 Miguel Morales therevolti...@gmail.com: Override the dialog class and set your own layout. I *think* dialog builder also has a method for setting your own

Re: [android-developers] Dialog dismiss()

2011-09-09 Thread Greg Donald
On Thu, Sep 8, 2011 at 2:29 PM, TreKing treking...@gmail.com wrote: Or use showDialog() / dismissDialog(). I tried this and it's actually worse now. It crashes everytime I rotate, not just occasionally like before. My pattern looks like this now: private static final int DIALOG_GAMES = 0;

Re: [android-developers] Dialog dismiss()

2011-09-09 Thread TreKing
On Fri, Sep 9, 2011 at 8:24 PM, Greg Donald gdon...@gmail.com wrote: Also tried it without the dismissDialog() call in onDestroy(). The exceptional condition is: 09-09 20:05:12.626: ERROR/AndroidRuntime(3831): Caused by: java.lang.IllegalArgumentException: no dialog with id 0 was ever shown

[android-developers] Dialog dismiss()

2011-09-08 Thread Greg Donald
I keep getting this crash report from my users: java.lang.IllegalArgumentException: View not attached to window manager at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355) at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200) at

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread TreKing
On Thu, Sep 8, 2011 at 2:14 PM, Greg Donald gdon...@gmail.com wrote: How can I keep my dismiss() calls from blowing up? Keep a class-level reference to the dialog and dismiss it if you're being destroyed. Or use showDialog() / dismissDialog(). The issue (I ran into this): 1 - You show your

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Greg Donald
On Thu, Sep 8, 2011 at 2:29 PM, TreKing treking...@gmail.com wrote: On Thu, Sep 8, 2011 at 2:14 PM, Greg Donald gdon...@gmail.com wrote: How can I keep my dismiss() calls from blowing up? Keep a class-level reference to the dialog and dismiss it if you're being destroyed. Well, I just have

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
The problem is that you are attempting to update the UI in a foreign thread. This line: progressDialog.dismiss(); You seem to be using a handler, so just change it to: handler.postRunnable(new Runnable() { @Override public void run() { progressDialog.dismiss(); }); Don't ever

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
Actually, don't use a ProgressDialog, use Activity.showDialog() instead. This handles device orientation. On Thu, Sep 8, 2011 at 2:41 PM, Miguel Morales therevolti...@gmail.com wrote: The problem is that you are attempting to update the UI in a foreign thread. This line:

[android-developers] dialog

2011-09-08 Thread bob
Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- 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 unsubscribe from

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread TreKing
On Thu, Sep 8, 2011 at 4:30 PM, Greg Donald gdon...@gmail.com wrote: I don't get why if( this != null ) evaluates to true when the stack trace seems to imply the Activity is gone already. Be careful - in you code *this* refers to the thread itself, *not* the Activity. In any case, the parent

Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Miguel Morales
dismiss() can be called from any thread: http://developer.android.com/reference/android/app/Dialog.html#dismiss() It just queues the dialog up for cleanup - or something along those lines. Hmm, I see. I would argue it shouldn't be thread safe, since it violates the don't touch the UI rule.

Re: [android-developers] dialog

2011-09-08 Thread Miguel Morales
Override the dialog class and set your own layout. I *think* dialog builder also has a method for setting your own layout. On Thu, Sep 8, 2011 at 3:09 PM, bob b...@coolgroups.com wrote: Can someone tell me how to pop up a dialog with two buttons on it that say Facebook and Twitter? -- You

[android-developers] Dialog problems on orientation change

2011-08-19 Thread Snowak
Hello, I'm creating a simple dialog via onCreateDialog with a xml drawable as a background, which just repeats a png image in both directions. It works perfectly fine, until I rotate the screen. The drawable isn't repeated anymore and gets stretched... Another bug in Android. Is there a way I can

Re: [android-developers] Dialog problems on orientation change

2011-08-19 Thread TreKing
On Fri, Aug 19, 2011 at 4:29 PM, Snowak psno...@gmail.com wrote: Is there a way I can force Android to clear it's dialog cache when activity starts so the dialog will be recreated? http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)

Re: [android-developers] Dialog boxes

2011-07-14 Thread TreKing
On Wed, Jul 13, 2011 at 10:53 PM, kypriakos demet...@ece.neu.edu wrote: For example, if I want to notify the user of an operation that a background process is about to perform and ask his/hers permission while blocking that process, would that be possible? No. You would wait for the user

[android-developers] Dialog boxes

2011-07-13 Thread kypriakos
Hi all, are asynchronous alert boxes the only dialog model that Android allows? For example, if I want to notify the user of an operation that a background process is about to perform and ask his/hers permission while blocking that process, would that be possible? Thanks -- You received this

Re: [android-developers] Dialog with no Activity?

2011-06-10 Thread Marcin Orlowski
you can also consider using activity - it does not have to go full screen (which seems to be your major concern) On Jun 10, 2011 3:38 AM, jtomasko j...@tomasko.net wrote: On the xoom tablet (3.1), after selecting a notification of a google calendar event, a dialog box (as far as I can tell)

Re: [android-developers] Dialog with no Activity?

2011-06-10 Thread TreKing
On Thu, Jun 9, 2011 at 3:35 AM, jtomasko j...@tomasko.net wrote: According to my interpetation of the Andriod Dev docs, a dialog needs to be activated from an activity, so how is the Google calendar doing this? http://developer.android.com/guide/topics/ui/themes.html#ApplyingStyles

[android-developers] Dialog with no Activity?

2011-06-09 Thread jtomasko
On the xoom tablet (3.1), after selecting a notification of a google calendar event, a dialog box (as far as I can tell) opens center screen with options to view the calendar event or dismiss it. According to my interpetation of the Andriod Dev docs, a dialog needs to be activated from an

[android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-06 Thread sahana uday
Hi, I'm using showDialog() and onCreateDialog() methods for displaying Dialog and Progress Dialog. But on orientation change it recreates the Dialog and Progress Dialog, due to which I'm facing the below problem: 1. Related to Progress Dialog: Current Behavior: I'm using Progress Dialog to send

[android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-01 Thread sahana uday
Hi, -Display the dialog on a button click (now we are in portrait mode). -Change to Landscape mode, dialog still appears. -Change back to Portrait mode, dialog continues to remain. -Now press Back key dialog is removed. -Change to Landscape mode again dialog is still visible in Landscape mode,

Re: [android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-01 Thread TreKing
On Tue, May 31, 2011 at 4:23 AM, sahana uday sahanau...@gmail.com wrote: Can you let me know the problem asap? You have a bug. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

[android-developers] Dialog inflation bug in SDK r11 (3.1)?

2011-05-31 Thread String
I've run into an interesting problem that I think I've narrowed down to a regression bug in (at least) the latest version of the Android SDK, and I'm hoping someone here can help me confirm it. The trace of the crash is this: [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974):

Re: [android-developers] dialog placement

2011-04-01 Thread Dianne Hackborn
The dialog is just centered on the screen based on the entire contents. I assume you have some alpha around the edges that make the positioning look off. You just need to have the image designed so that it will visually appeared center for you. If the red lines are showing the edges of your

[android-developers] Dialog box without title

2011-03-26 Thread Archit Jain
Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in

Re: [android-developers] Dialog box without title

2011-03-26 Thread TreKing
On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain dce.arc...@gmail.com wrote: Dialog alertDialog = new Dialog(getApplicationContext()); Never use getApplicationContext() - it's pointless and doesn't work for Dialogs. I'm surprised you're seeing anything. But it shows a titlebar with no text in it.

[android-developers] Dialog, TabView

2011-03-21 Thread Daniel Rindt
Hello, in my Tabhost is an activity shown which has a button. The button has assigned an OnClickListener. The listener calls showDialog(DIALOG_ASK_NAME) which is implemented in onCreateDialog(). But when the layout changes the Dialog disappears and never comes back until i press again the key. I

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Justin Anderson
Change your TabHost to display views instead of activities... TabHost doesn't handle activities very well. From what I understand it is only partially implemented and dates back to the Android 1.1 days. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Filip Havlicek
Hi Daniel, although some people here don't like TabHost, I'm using it just fine and have been able to make everything I wanted so far (or from what I can remember). Could you evaluate what is happening in more detail? From what I can understand, you have a TabHost with an Activity. This Activity

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Daniel Rindt
Am Montag, den 21.03.2011, 13:37 -0600 schrieb Justin Anderson: Change your TabHost to display views instead of activities... TabHost doesn't handle activities very well. From what I understand it is only partially implemented and dates back to the Android 1.1 days. Hello Justin, thanks for

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Justin Anderson
Unfortunately I've never used tabs so I won't be of much help there... I'm just regurgitating stuff that I've seen Dianne Hackborn say... She is one of the actual Android Framework Engineers that posts on this group. Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Filip Havlicek
Daniel, that is not enough. Post better description of your problem and probably the whole activity code. 2011/3/21 Justin Anderson magouyaw...@gmail.com Unfortunately I've never used tabs so I won't be of much help there... I'm just regurgitating stuff that I've seen Dianne Hackborn say...

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Miguel Morales
You may have to initialize the dialog using the top-level activity context and not the tab's sub activity. Haven't tried it, but it *should* work. On Mon, Mar 21, 2011 at 2:05 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: Daniel, that is not enough. Post better description of your problem

[android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Dear reader, my code is pasted here http://rifers.org/paste/show/1254. The problem is that the dialog showContextDialog() is not displayed. The dialog code is directly used from android examples. I played a lot around put that code directly in onResume and so on - no efforts. I'm thankful for

Re: [android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 3:37 AM, Daniel Rindt daniel.ri...@googlemail.comwrote: The problem is that the dialog showContextDialog() is not displayed. Well, a dialog is not going to be displayed if you don't tell the system to display it, which is done with the show() method. The dialog code

Re: [android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Am Montag, den 14.03.2011, 07:44 -0500 schrieb TreKing: Well, a dialog is not going to be displayed if you don't tell the system to display it, which is done with the show() method. Can you post the examples you got that from? Because that's wrong in so many ways.

Re: [android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread Mark Murphy
On Mon, Mar 14, 2011 at 9:43 AM, Daniel Rindt daniel.ri...@googlemail.com wrote: 1 - Never use getApplicationContext() - it's utterly pointless and just does not work with dialogs. How then obtain the Context to display it? Your activity *is* a Context. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 8:43 AM, Daniel Rindt daniel.ri...@googlemail.comwrote: 2 - Call show() on the Dialog you create to actually show it. In the docs i found: AlertDialog.Builder.create(); also shows the Dialog. Where? In the docs I found:

Re: [android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Am Montag, den 14.03.2011, 08:53 -0500 schrieb TreKing: Creates a AlertDialog with the arguments supplied to this builder. It does not show() the dialog. This allows the user to do any extra processing before displaying the dialog. Use show() if you don't have any other processing to do and

[android-developers] Dialog, ListView, ListViewAdapter, form elements

2010-12-28 Thread Hendrik Greving
I have a Dialog, setContentView set to a xml ListView. I then use a ListAdapter that returns view form elements, like RadioGroup and a Button. I took the ListView to get scrolling if the RadioGroup is big. First, is there a better, smarter way to do this? My current problem is, yet it works,

[android-developers] Dialog Resize on Keyboard Up

2010-12-13 Thread srp
Hi, I have opened a url in Webview and the page contains a edittext field at the bottom. When i click it the keyboard pops up and i am unable to see the Edittext. Is there a way to move the webview up on edittext click so that i can see the edittext field while typing the data. thanks, Ratna

Re: [android-developers] Dialog Resize on Keyboard Up

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 2:36 AM, srp pauljason89...@gmail.com wrote: Is there a way to move the webview up on edittext click so that i can see the edittext field while typing the data. See if this helps: http://developer.android.com/resources/articles/on-screen-inputs.html

[android-developers] Dialog and Other View

2010-11-28 Thread Jithin
Hi All, I need to create a dialog which contains a ListView. That shoulb be displayed when a button is clicked. My requirement is that When the dialog opens both the dialog and the button should have user interaction. ie Listview in the Dialog and button in the main Activity should be

Re: [android-developers] Dialog and Other View

2010-11-28 Thread Kumar Bibek
Nope. Not possible. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Nov 28, 2010 at 11:46 PM, Jithin danijanuv...@gmail.com wrote: Hi All, I need to create a dialog which contains a ListView. That shoulb be displayed when a button is clicked. My requirement is

[android-developers] Dialog not displayed properly in Landscape mode

2010-10-31 Thread Dilli
Hi all, @landscape mode In messaging application screen i am trying to attach a audio , it pop up a dialog and, at the same time some incoming call came, after disconnecting the call the popup dialog displayed (half) not full dialog ( only header of dialog visible no buttons are visible to

[android-developers] Dialog change orientation

2010-10-22 Thread SImplyG2010
Hi, Does anyone know if it is possible to change the orientation of a dialog ONLY. So i show a dialog in landscape while the activity remains in portrait. Anyone know how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Dialog and ListView

2010-10-18 Thread TreKing
On Mon, Oct 18, 2010 at 12:21 AM, Hendrik Greving fourhend...@gmail.comwrote: What's the easiest way to move the Dialog to the position of the ListView item? You can't, AFAIK. Maybe by extending and drawing your own dialog. This hardly seems worth it.

[android-developers] Dialog and ListView

2010-10-17 Thread Hendrik Greving
I am using a Dialog instead of a ContextMenu in order to be able to customie its look. I show the Dialog when long clicking on a ListView item. What's the easiest way to move the Dialog to the position of the ListView item? -- You received this message because you are subscribed to the Google

[android-developers] dialog won't show on call

2010-07-18 Thread ecforu
I have a dialog that I want to call from a method. However when I call dlg.show(), in the method nothing happens. However the dialog does appear when the method calling parent method completes. Why is this? It seems as though it is waiting for the parent thread to give up control, so it can

[android-developers] Dialog without something in the background

2010-07-09 Thread Boozel
I have an aplication that is just a service but before it is run i would like the user to accept some terms and conditions that appear in a dialog box. Can any one please help me find a way to do this without having a visable activity show up in the background. I dont mind doing this in an

Re: [android-developers] Dialog without something in the background

2010-07-09 Thread Mark Murphy
Use a Theme.Dialog activity. On Fri, Jul 9, 2010 at 3:30 PM, Boozel boozelcl...@gmail.com wrote: I have an aplication that is just a service but before it is run i would like the user to accept some terms and conditions that appear in a dialog box. Can any one please help me find a way to do

Re: [android-developers] Dialog is leaked on orientation change

2010-06-25 Thread TreKing
On Wed, Jun 23, 2010 at 8:02 AM, Surfer kalik...@yahoo.com wrote: Hi, built a simple app that displays an alertDialog with two buttons. The problem is it's not getting dismissed when i change orientation. After change i get a leak warning on debugger and the dialog appears twice(pressing back

[android-developers] Dialog is leaked on orientation change

2010-06-23 Thread Surfer
Hi, built a simple app that displays an alertDialog with two buttons. The problem is it's not getting dismissed when i change orientation. After change i get a leak warning on debugger and the dialog appears twice(pressing back hides the first dialog, only a second back dismisses it completely).

Re: [android-developers] Dialog is leaked on orientation change

2010-06-23 Thread Brad Gies
You should dismiss it in OnPause and recreate it in OnResume if you still want it. On 23/06/2010 6:02 AM, Surfer wrote: Hi, built a simple app that displays an alertDialog with two buttons. The problem is it's not getting dismissed when i change orientation. After change i get a leak warning

Re: [android-developers] Dialog not responding to fill_parent setting

2010-04-27 Thread TreKing
On Mon, Apr 26, 2010 at 8:32 PM, Jeffrey jeffisagen...@gmail.com wrote: How do I fix this? Try changing the dialog's theme? - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] Dialog not responding to fill_parent setting

2010-04-26 Thread Jeffrey
How do I fix this? I'm sure most of you have had this problem. I want my dialog box to fill the screen as I have seekbars set on fill parent, and so it makes this tiny dialog in the middle of the screen with tiny seekbars to go along with it. This is really irritating as I can't find any help

[android-developers] Dialog display at bottom of Screen

2010-04-20 Thread Nithin
Hi, The dialog(android.app.Dialog) normally pops up in the center of screen. Can we make the dialog to come in the bottom of screen. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Dialog display duration

2010-04-20 Thread ~ TreKing
On Mon, Apr 19, 2010 at 7:54 AM, angushir...@googlemail.com angushir...@yahoo.co.uk wrote: What would be the best way of displaying a dialog for 500ms and then dismissing it? Call show() or showDialog(int) then post a runnable object to your UI thread that just calls dismiss() or

[android-developers] Dialog display at bottom of Screen

2010-04-20 Thread CrazzyAndroidians
Hi, The dialog, that we are displaying will come in the center of the screen. Can we make it to the bottom of the screen. Nithin -- 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] Dialog display duration

2010-04-19 Thread angushir...@googlemail.com
Dear all, I need to display an alert message for no more than a half a second. As I understand it, Toast only has 2 available durations, with no way to alter them. Correct me if I'm wrong. Which leads me to sing the AlertDialog. What would be the best way of displaying a dialog for

[android-developers] Dialog box not (onClick event is not invoked) coming up while scanning for devices

2010-04-08 Thread guru
HI This is regarding Bluetooth application. Some times when I do scan for devices and device name change simultaneously, the dialog for name change request is not coming up. I am not getting why how scanning affects the device name change? how these are internally organized so that one can

[android-developers] Dialog goes away on click of search button

2010-02-25 Thread A R
Hi, I have an activity which starts with a progress bar and I do not want the progress bar to go away until the processing is done, I have set the dialog to be setCancelable(false) so now user cannot cancel it with back but there are several other situations which hides the dialog for eg

[android-developers] Dialog problem

2010-02-09 Thread André
Hello, I'm trying to make a dialog box to open when I start a program. Eclipse likes my code, I like my code =), but the emulator does not like my code. It says that something went totally worong and the application has to shut down. Bellow you can see my code. When I run it in debug mode

Re: [android-developers] Dialog problem

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 3:24 PM, André pha...@hotmail.com wrote: Context mContext = getApplicationContext(); You're probably seeing something about a BadToken in the debug log, yes? DO NOT use getApplicationContext(). Use your current activity or the context from one of your views. I swear

[android-developers] Dialog sizing question

2010-01-19 Thread Zsolt Vasvari
I have a pop-up dialog with a handful of views. When I test it on a high-res, medium density screen (480x800x160dpi), the dialog is very small, about half of the available screen width. I define the layout as such: ?xml version=1.0 encoding=utf-8? LinearLayout

Re: [android-developers] Dialog on Lock Screen

2010-01-12 Thread Elvis Prokopis
I am goind to sleep,good night 2010/1/12 Jason Proctor jason.android.li...@gmail.com let's not get into all that again :-) there was a thread before the holidays entitled Block Switch App where this was discussed at length. I thought you could replace the lock screen? On Mon, Jan 11,

Re: [android-developers] Dialog on Lock Screen

2010-01-12 Thread Elvis Prokopis
thank you a lot but I am too busy in the moment Regards Prokopis Elvis Serbia,Europe +381605713821 2010/1/12 sansu sansu.andr...@gmail.com I need to display a dialog on top of lock screen when volume keys are pressed. How can I do this? Thanks in advance, -- You received this message

[android-developers] Dialog on Lock Screen

2010-01-11 Thread sansu
I need to display a dialog on top of lock screen when volume keys are pressed. How can I do this? Thanks in advance, -- 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

Re: [android-developers] Dialog on Lock Screen

2010-01-11 Thread Mark Murphy
sansu wrote: I need to display a dialog on top of lock screen when volume keys are pressed. How can I do this? You can't. -- Only foreground activities can find out about volume key presses, as there do not appear to be broadcast Intents for them -- Only activities can display dialogs --

Re: [android-developers] Dialog on Lock Screen

2010-01-11 Thread Kevin Duffey
I thought you could replace the lock screen? On Mon, Jan 11, 2010 at 3:08 PM, Mark Murphy mmur...@commonsware.comwrote: sansu wrote: I need to display a dialog on top of lock screen when volume keys are pressed. How can I do this? You can't. -- Only foreground activities can find out

Re: [android-developers] Dialog on Lock Screen

2010-01-11 Thread Jason Proctor
let's not get into all that again :-) there was a thread before the holidays entitled Block Switch App where this was discussed at length. I thought you could replace the lock screen? On Mon, Jan 11, 2010 at 3:08 PM, Mark Murphy mailto:mmur...@commonsware.commmur...@commonsware.com

[android-developers] Dialog with backgroundDimAmount=0 may cause black screen! (Bug?)

2010-01-07 Thread Yuchih
Hello, all! For some reason, I need a dialog with backgroundDimAmount=0. But I found that if I start a new emulator, show my dialog will get a black screen, and never come back even press BACK key. This will happen every time I test on 1.6 donut version. To solve it is to show any dialog without

[android-developers] Dialog windowBackground style item

2009-12-14 Thread skink
hi, i'd like to create custom Dialog with custom background Drawable. so i creaded style that defines windowBackground item and sets it to @drawable/dialog_background: style name=CustomDialog parent=android:Theme.Dialog item name=android:windowBackground@drawable/dialog_background/ item

[android-developers] Dialog management by Activities

2009-11-11 Thread Stephen Abrams
Hello all, I'm looking for a little more information about dialogs managed by activities than is provided here: http://developer.android.com/guide/topics/ui/dialogs.html and havn't found any good web resources. In particular, I'm having a problem where a dialog must be updated in

[android-developers] Dialog management by Activities

2009-11-11 Thread Stephen Abrams
Hello all, I'm looking for a little more information about dialogs managed by activities than is provided here: http://developer.android.com/guide/topics/ui/dialogs.html and havn't found any good web resources. In particular, I'm having a problem where a dialog must be updated in

[android-developers] Dialog theme

2009-08-28 Thread adam.csordas
Helo! I'm using a custom theme in my application, defined in the Manifest.xml, but I want to usa an other them on my dialogs. How can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

  1   2   >