Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7193

Electric Car Charging Android App crashes on start - custom list item and Adapter

$
0
0

I am doing a Udacity course on Android Development specifically in Networking atm. I am building an app that find the closest Electric Car Charging points and displays them in a listView. At the moment I am just trying to get the structure working before retrieving live data.

I am using a custom object - ChargePoint- which takes 5 inputs.

I am using a custom adapter - ChargePointAdapter - which translates the 5 bits of info onto the right places in a list_item.xml

My - MainActivity - stores the placeholder data, creates an adapter with the data, finds the listView from activity_main.xml and sets the adapter.

I dont get any errors, however my app crashes on start.

Here is a link to the project: https://github.com/Kovah101/ChargeMyCar

EDIT: On further inspection the app runs when I comment out the line:

chargePointListView.setAdapter(adapter)

which I assume means my custom adapter class isnt to blame? The only difference in the Log outputs from the running to non running version is

09-21 18:08:54.533 20790-20790/com.example.android.chargemycar I/Process: Sending signal. PID: 20790 SIG: 9

Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 7193

Trending Articles