I am having a strange problem using findViewById(id). It comes back with resource not found even though the resource is definitely there. It is a textview in a layout next t
Try cleaning your project or post some code.
Sometimes the ID's do not get correctly regenerated if you are using Eclipse. This requires the project to be cleaned and sometimes refreshed.
textViewCount.setText(someArray.size());
was my problem.
Simply call toString();
to fix the problem.
Integer size = mSomeArray.size();
textViewReplyCount.setText(size.toString());
In my case, I had int
variable (on top of my Activity class) and I was trying to pass that int variable as second parameter to Toast.makeText()
(to show that to the user), I don't know I was stupid or android dev platform is! :p