[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
That did it! Thanks a lot for your help Chrigi! Cheers André On Feb 10, 11:32 pm, Christoph Renner wrote: > you need to use: >         Button3 = (Button) dialog.findViewById(R.id.button3); >         Button4 = (Button) dialog.findViewById(R.id.button4); >         Button5 = (Button) dialog.findV

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
you need to use: Button3 = (Button) dialog.findViewById(R.id.button3); Button4 = (Button) dialog.findViewById(R.id.button4); Button5 = (Button) dialog.findViewById(R.id.button5); Button6 = (Button) dialog.findViewById(R.id.button6); because button 3-6 are in the layo

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
Done! To the email in your profile. On Feb 10, 11:00 pm, Christoph Renner wrote: > I cannot see the problem. Could you maybe send me (or upload) a zip > file with the xml, java and Manifest files (or maybe the whole > directory containing your project). > > Chrigi > > > > On Wed, Feb 10, 2010 a

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
I cannot see the problem. Could you maybe send me (or upload) a zip file with the xml, java and Manifest files (or maybe the whole directory containing your project). Chrigi On Wed, Feb 10, 2010 at 10:43 PM, André wrote: > No problem, here it is: > > http://schemas.android.com/apk/res/ > android

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
No problem, here it is: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" > To me it looks right, but I am new to this. On Fe

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
Hi Andre On Wed, Feb 10, 2010 at 9:45 PM, André wrote: > Hi Chrigi, > > except for for the id name and the string name the button is an exact > copy of button1 + 2. Eclipse accepts both popup_new and R.id.button3, > it turns the text blue. Doesn't that mean it has found them? That simply means t

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
Hi Chrigi, except for for the id name and the string name the button is an exact copy of button1 + 2. Eclipse accepts both popup_new and R.id.button3, it turns the text blue. Doesn't that mean it has found them? If I put // in front of the 4 buttons that doesn't seem to work the popup window works

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
Hi Andre from the logcat: 192): java.lang.NullPointerException E/AndroidRuntime( 192):at com.button.test1.ButtonTest1.onCreateDialog(ButtonTest1.java:90) This means that a NullPointerException was thrown at line 90 in ButtonTest1.java. This usually happens if you try to access use a r

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread kamran Manzoor
Salam I am trying to used the android emulator services except maps please tell me if any one know Thanx kamran Manzoor Student of FAST_NU -- 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] Re: multiple buttons + dialog box

2010-02-10 Thread André
Ok, I think I got it. Try this link, http://www.andreborud.com/android/trace3.txt On Feb 10, 3:34 pm, Christoph Renner wrote: > It should look like the second example > onhttp://youtrack.jetbrains.net/issue/IDEA-24746. If you run "adb > logcat" this text should appear when your application cr

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
It should look like the second example on http://youtrack.jetbrains.net/issue/IDEA-24746 . If you run "adb logcat" this text should appear when your application crashes. On Wed, Feb 10, 2010 at 3:24 PM, André wrote: > I've never used logcat before but I think I got it right. Here is a > link to i

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
I've never used logcat before but I think I got it right. Here is a link to it: http://www.andreborud.com/android/trace2.txt Thanks André On Feb 10, 3:01 pm, Christoph Renner wrote: > This is not really useful, could you use logcat (either in eclipse or > by running adb logcat) to get to the s

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
This is not really useful, could you use logcat (either in eclipse or by running adb logcat) to get to the stack trace which gives information about the exception thrown? On Wed, Feb 10, 2010 at 2:54 PM, André wrote: > This is what I get on the InvocationTargetExce > > // Compiled from Invocation

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
This is what I get on the InvocationTargetExce // Compiled from InvocationTargetException.java (version 1.5 : 49.0, super bit) public class java.lang.reflect.InvocationTargetException extends java.lang.Exception { // Method descriptor #8 ()V // Stack: 3, Locals: 1 protected InvocationTarget

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
What exactly is the problem? Is there a compiler error or is an exception thrown when executing? In both cases, an error message might be useful. Cheers, Chrigi On Wed, Feb 10, 2010 at 2:39 PM, André wrote: > Thanks for you reply Chrigi! > > I tried what you suggested but the problem still looks

[android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread André
Thanks for you reply Chrigi! I tried what you suggested but the problem still looks exactly the same. Would you happen to have any other suggestions? Cheers André On Feb 10, 2:01 pm, Christoph Renner wrote: > Hi Andre > > I assume that buton 3-6 are in R.layout.poput_new and not > R.layout.main