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
. 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).