[android-developers] Custom Dialog

2010-03-15 Thread Dirk Vranckaert
I'm trying to create a custom dialog in my application to show an about window but it ain't working. Maybe one of you knows a solution? So I have an activity with the onCreateDialog(int id) overriden in it: @Override protected Dialog onCreateDialog(int id) { Dialog

[android-developers] Custom Dialog

2009-06-17 Thread johnjj
Hi there, i want to create a custom dialog which looks more or less the same as an AlertDialog, especially the title. What I do is rather simple: I create an object of WeightView, which extends Dialog. In this class I set my custom content view which shows a SeekBar. WeightView dialog = new Weig

[android-developers] Custom Dialog help!!!

2010-03-28 Thread James
Hey i'm in need of some help. I want my menu item "info" to create a custom dialog. Yet i appear to to be having trouble: this is in my main java file @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater();

[android-developers] custom dialog crashing

2009-11-23 Thread Jags
I have written below code for showing a custom dialog void CheckHighScore() { AlertDialog.Builder builder; AlertDialog alertDialog; Context mContext = getApplicationContext(); LayoutInflater i

[android-developers] Custom Dialog Error

2009-05-03 Thread a.stolz
I'm trying to build a custom Dialog and using the example from the documentation but it crashes when show() ist invoked. http://pastie.org/464878 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Custom dialog background

2009-05-28 Thread illyge
Hello! I want to create custom dialog. I want to use my png drawable as background for it. I would like the background to be expandable vertically and it would be good if it was of constant width. Another requirement is that the top part of the drawable must be background for the title and also mu

[android-developers] Custom dialog issues

2010-12-13 Thread Antony BODY
Hi, I try to implement an custom dialog sadly when i call "show" method i get this stac: Thread [<3> main] (Suspended (exception WindowManager $BadTokenException)) ViewRoot.setView(View, WindowManager$LayoutParams, View) line: 491 WindowManagerImpl.addView(View, ViewGroup$Lay

Re: [android-developers] Custom Dialog help!!!

2010-03-29 Thread ~ TreKing
On Sun, Mar 28, 2010 at 6:00 PM, James wrote: > Hey i'm in need of some help. I want my menu item "info" to create a > custom dialog. Yet i appear to to be having trouble > What, exactly, is the "trouble" ?

[android-developers] Custom Dialog Not Showing

2011-10-22 Thread Alex Oh
I've read the google docs on Dialogs and posts here and on Stack Overflow, but I just can't get my dialog to show. showDialog( DIALOG_CREATEPC ); // called elsewhere private Dialog addPCDialog() { Dialog dialog = new Dialog( this ); dialog.setContentView( R.layout.party_createpc ); dial

Re: [android-developers] Custom dialog issues

2010-12-13 Thread Kostya Vasilyev
getApplicationContext is pure evil with UI classes. Use the parent tab activity for context. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 14.12.2010 1:34 пользователь "Antony BODY" написал: > Hi, > > I try to implement an custom dialog sadly when i call "show" > method i get this stac

Re: [android-developers] Custom dialog issues

2010-12-14 Thread TreKing
On Mon, Dec 13, 2010 at 4:34 PM, Antony BODY wrote: > Context mContext = getApplicationContext(); > Dialog dialog = new Dialog(mContext); > dialog.setContentView(R.layout.customdialog); > dialog.show(); > Let me guess, you were following the documentation, which is still completely and blatantly

[android-developers] Custom Dialog - 2 scenarios

2011-01-06 Thread Luís Vitório Cargnini
Hi I'm developing an application that will require a Dialog Window, using a listview to select an item from this list. The problem is I have two possibilities to implement, the easier (I think) is using the AlertDialog.Builder, but the problem is here is my code, when the button is pressed: Co

[android-developers] Custom Dialog with ListView

2011-03-07 Thread dim5b
Hi, Can anyone point me in the right direction. I am looking for a working tutorial regarding a custom dialog that shows a selectable list. Thanks in advance -- 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] Custom Dialog Not Showing

2011-10-22 Thread Christopher Van Kirk
Did you override the prepareDialog method as well? On 10/23/2011 1:30 AM, Alex Oh wrote: I've read the google docs on Dialogs and posts here and on Stack Overflow, but I just can't get my dialog to show. showDialog( DIALOG_CREATEPC ); // called elsewhere private Dialog addPCDialog() { Dial

Re: [android-developers] Custom Dialog Not Showing

2011-10-22 Thread TreKing
On Sat, Oct 22, 2011 at 12:30 PM, Alex Oh wrote: > Am I missing something here? Have you stepped through the code and / or printed log statements to verify all of your code is executing as expected? ---

[android-developers] Custom Dialog without context application

2011-01-29 Thread Antony BODY
Hi all, I'm trying to create an dialog wich is show on android desktop. My application contains a service who create notification. On notification click I would like show a dialog on desktop. My problem: each time I click on notification my dialog is showing with black screen behind (activity of m

Re: [android-developers] Custom Dialog - 2 scenarios

2011-01-06 Thread TreKing
2011/1/5 Luís Vitório Cargnini > So the question is why and how to solve this problem ? > Avoid getApplicationContext() in UI related functions like the plague. > The problem is how to obtain which element in the listview was selected ? > How to pass this information from one Activity to anoth

Re: [android-developers] Custom Dialog with ListView

2011-03-08 Thread TreKing
On Fri, Mar 4, 2011 at 5:53 AM, dim5b wrote: > Can anyone point me in the right direction. I am looking for a > working tutorial regarding a custom dialog that shows a selectable list. > http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList --

[android-developers] Custom Dialog example may be incorrect

2009-11-21 Thread Kevin S.
I spent quite a long time trying to get my first custom dialog box to work, following the example in the Android Dev Guide. Specifically: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog --- Context mContext = getApplicationContext(); Dialog dialog = new Dialog(mContext)

[android-developers] Custom Dialog for Force Closed Android

2012-03-21 Thread Vivek Khandelwal
I want my Application to show Custom Dialog When an Uncatch Exception occur. For that reason, I am implementing Thread.setDefaultUncaughtExceptionHandler. I am successfully able to handle all my uncatch Exceptions. And Try to show the Toast. But My Toast is not Displayed because my Main Loop

Re: [android-developers] Custom Dialog without context application

2011-01-29 Thread Kostya Vasilyev
Anthony, Rather than using a dialog, make an Activity that looks like one with this: -- Kostya 29.01.2011 15:51, Antony BODY пишет: Hi all, I'm trying to create an dialog wich is show on android desktop. My application contains a service who create notification. On notification click I woul

Re: [android-developers] Custom Dialog example may be incorrect

2009-11-22 Thread TreKing
My guess is the example is wrong (or at least outdated). If you search the forums you'll find that getApplicationContext() seems to do nothing but cause problems like these and is best avoided altogether. I would love to hear from a Google Engineer about the intended use of this function and what'

Re: [android-developers] Custom Dialog example may be incorrect

2009-11-22 Thread Dianne Hackborn
You definitely should not be using getApplicationContext() for showing UI -- in fact that is completely backwards, because the application context is the Application object, which exists the entire duration of the process, but explicitly does NOT allow for UI (since it is not associated with a UI c

[android-developers] Custom Dialog with Home Screen as background

2009-09-01 Thread martina
Hi All, I have one Custom Dialog with Home Screen as Its Background... When I change its orientation,then one black screen comes for a while as its background,then Home Screen comes..I want to remove that black screen which comes for a while on changing orientation... Any help is appreciated...

[android-developers] Custom Dialog with a Footer in it

2012-02-23 Thread ntimesc
I want create dialog box as described below , **preciously the checkbox in the footer** Visit the link http://i.stack.imgur.com/Dw6Uw.png so far I reached to this part Visit the link http://i.stack.imgur.com/BJSyJ.png now there are only two issues 1) Dialog Title Icon , as i don't k

Re: [android-developers] Custom Dialog for Force Closed Android

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 11:44 PM, Vivek Khandelwal < vivek.b.khandel...@gmail.com> wrote: > I want my Application to show Custom Dialog When an Uncatch Exception > occur. > Why? > And Try to show the Toast. > > But My Toast is not Displayed because my Main Looper (i.e My Main Thread) > is being s

[android-developers] Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?

2009-02-04 Thread g1bb
Hello, I have a 'settings' screen that is loaded from an XML layout like so: 'addPreferencesFromResource(R.layout.Settings)'. I have a in place that is working ok, but I'd like to spruce it up a bit, including adding text to be read from a file. Is this possible? How can I go about programatica

[android-developers] custom dialog frame - how to get a pointy triangle edge

2011-03-27 Thread Nick Longinow
Like a balloon-style dialog, with one side of the dialog having a triangle coming out of it so that the dialog appears to point to some portion of the screen. I've seen these in alot of apps - what is the basic idea here? Is it use of shapes and themes? Any simple examples out there? -- You re