shivam singhal wrote:what else i am missin in line 24?
Apparently an object ;)
Check the layout and make sure that the view you are trying to use exists and has the id set to continue_label. You might have different layouts in different resource folders based on screen size, language, or rotation. So double check all locations.
shivam singhal wrote:please tell me one thing ..
how do you know that its a layout problem??
I didn't know, but I had a strong inkling it was layout related.
The line you pointed to had two references in it, this and ContinueButton. The value pointed to by this can't be null. so the other reference had to be null. The ContinueButton was retrieved by findViewById(), which, as you can see in the API returns null when the view can't be found. The id you pass in must exist, or at least existed in the past, because it was present in R.id. So if the View exists and it isn't found then the view must not be present in the current layout. That means your layout might not be what you think it is. There is plenty of room for this type of mistake so it seemed a likely cause of the problem (a problem I have stepped into a fair amount of times).