Use the Activity:
Dialog dialog = new AboutBox(*this*);
-- Kostya
01.01.2011 19:56, John Lussmyer ?????:
That just causes the call to super(context) in my dialog constructor
to throw a NullPointerException.
I was working from the examples at
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
and they also use the getApplicationContext(). You need some context
to pass to the Dialog() constructor.
On Sat, Jan 1, 2011 at 8:46 AM, Kostya Vasilyev <[email protected]
<mailto:[email protected]>> wrote:
Get rid of getApplicationContext for a start, see if this helps.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en