Your view containing the button is not loaded yet.
try
-  factory3.inflate(R.layout.setbasal2, YOUR_PARENT_VIEW);

On May 21, 9:55 pm, guruk <[email protected]> wrote:
> in the logcat it shows me:
>
> D/dalvikvm(  889): VM cleaning up
> D/dalvikvm(  889): LinearAlloc 0x0 used 639228 of 4194304 (15%)
> D/dalvikvm(  890): GC freed 2404 objects / 288488 bytes in 103ms
> I/ActivityManager(  568): Displayed activity
> com.chris.mydays_15_basic/.datepick
> er: 2489 ms
> D/AndroidRuntime(  890): Shutting down VM
> W/dalvikvm(  890): threadid=3: thread exiting with uncaught exception
> (group=0x4
> 000fe70)
> E/AndroidRuntime(  890): Uncaught handler: thread main exiting due to
> uncaught e
> xception
> E/AndroidRuntime(  890): java.lang.NullPointerException
> E/AndroidRuntime(  890):        at
> com.chris.mydays_15_basic.datepicker.onCreate
> Dialog(datepicker.java:987)
> E/AndroidRuntime(  890):        at android.app.Activity.showDialog
> (Activity.java
> :2397)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to