No one's going to spend their time reading 204K of your code to help
you find your bug, even if they **are** caught up in the "Christmas
Spirit".  You need to distill down the problem somehow.

Learning how to describe problems and concepts to others is an
important part of your technical education -- probably more important
than technical expertise.

On Dec 25, 4:10 am, Tsolmon Narantsogt <mgltsol...@gmail.com> wrote:
> Thanks for your reply.
>
> I just want to ListActivity some item add and remove these.
>
> So i attached my source.
>
> Can anyone fix it then reply me.
>
> Thank you.
> Tsolmon
>
>
>
> On Fri, Dec 24, 2010 at 8:13 AM, Indicator Veritatis <mej1...@yahoo.com> 
> wrote:
> > No, we can't explain it for you. We might be able to help you figure
> > it out, though. NullPointerException is what you get if the virtual
> > machine encounters (guess what) a null pointer. The most common causes
> > of it are such things as passing a method an argument that has never
> > been initialized, or, more precisely, was initialized to null.
>
> > So you need to double check: what did you pass to setContentView? Was
> > it properly initialized? Did you pass it a View? Was the View properly
> > and fully initialized?
>
> > If you passed it an int, can Android find the resource with that ID?
>
> > On Dec 23, 9:24 am, Tsolmon Narantsogt <mgltsol...@gmail.com> wrote:
> >> Hello list
>
> >> I got a this error .
> >> java.lang.NullPointerException
> >> W/System.err(10127):    at 
> >> android.app.Activity.setContentView(Activity.java:1622)
> >> W/System.err(10127):    at
> >> android.app.ListActivity.ensureList(ListActivity.java:305)
> >> W/System.err(10127):    at
> >> android.app.ListActivity.setListAdapter(ListActivity.java:256)
> >> W/System.err(10127):    at
> >> com.dynamiclistview.dynamicListView$ListViewAdapter$1$1.onClick(dynamicListView.java:73)
> >> W/System.err(10127):    at
> >> com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158)
> >> W/System.err(10127):    at 
> >> android.os.Handler.dispatchMessage(Handler.java:99)
> >> W/System.err(10127):    at android.os.Looper.loop(Looper.java:123)
> >> W/System.err(10127):    at
> >> android.app.ActivityThread.main(ActivityThread.java:4363)
> >> W/System.err(10127):    at java.lang.reflect.Method.invokeNative(Native 
> >> Method)
> >> W/System.err(10127):    at java.lang.reflect.Method.invoke(Method.java:521)
> >> W/System.err(10127):    at
> >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
> >> W/System.err(10127):    at
> >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> >> W/System.err(10127):    at dalvik.system.NativeStart.main(Native Method)
>
> >> 72: dynamicListView d = new dynamicListView();
> >> 73: d.setListAdapter(new ListViewAdapter(con));
>
> >> I dont't understand it .
> >> Can anyone explain me.
> >> --
> >> Thanks
> >> Tsolmon
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> -------
>
> Хүндэтгэсэн:
> Н.Цолмон
>
>  AndroidAdvencedUI.tar.gz
> 204KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to