Error to start new Activity with Intent after click Button in AlertDialog?

It looks like your Cursor c is null. In your PlaceItemizedOverlay I see you have declared a private variable c but you have not assigned to it anywhere. The onClick code refers to this variable and will crash as above I guess you want to pass your Cursor in from your AboutMap Activity.

Maybe add another parameter to the constructor of PlaceItemizedOverlay to share the cursor? Public PlaceItemizedOverlay(Drawable defaultMarker, Context context, Cursor cursor) { super(boundCenterBottom(defaultMarker)); mContext = context; c = cursor; }.

It looks like your Cursor c is null. In your PlaceItemizedOverlay I see you have declared a private variable c but you have not assigned to it anywhere. The onClick code refers to this variable and will crash as above.

I guess you want to pass your Cursor in from your AboutMap Activity. Maybe add another parameter to the constructor of PlaceItemizedOverlay to share the cursor? Public PlaceItemizedOverlay(Drawable defaultMarker, Context context, Cursor cursor) { super(boundCenterBottom(defaultMarker)); mContext = context; c = cursor; }.

Yeah, you're right. I got it. Thanks you so much.

The last thing I would like to ask u..is that, when I click See more detail button,but, Every places pop up at once. This is weird. I wanna it show only 1 place per one click and the same title, same information.

I think it might because of mContext. But, I have no idea how to fix this. Do you have any idea?

Anyway, Thanks you so much for your kindness – April Sep 4 at 9:50 I guess this depends on your implementation of the Place activity? You would have to show the code for that for anyone to see what is going wrong. Maybe you could create a new question (as opposed to in this comment stream) and describe it fully too, so there is more chance for people to see it and help you.

:) – antonyt Sep 4 at 10:02 I got got it now...How stupid am i? LOL anyway, thank you so much – April Sep 4 at 10:56.

You never initialized your button nor assigned to it, so it is null. // always call super. Tbutun = (Button)findViewById(R.id.

Terms of service. Not the answer you're looking for?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions