I am trying to insert data of a Array List into ListView but it is showing problem.
Here is my xml file
and this is my Source file
But when i click on Insert Button on my activity it stops
Where am I going wrong?
posted 2 years ago
If an application crashes, the first thing you should always do is to read the logcat where the exception stack trace is recorded. That will tell you what kind of exception happened, and in which line of code.
In this case I bet it's a NullPointerException because you're calling a method on a null object reference.