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
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
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();
I have written below code for showing a custom dialog
void CheckHighScore() {
AlertDialog.Builder builder;
AlertDialog alertDialog;
Context mContext = getApplicationContext();
LayoutInflater i
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
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
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
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" ?
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
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
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
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
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
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
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?
---
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
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
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
--
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)
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
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
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'
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
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...
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
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
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
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
28 matches
Mail list logo