ese-unibe-ch / ese2013-team5

3 stars 4 forks source link

App crashes on startup with NullPointer #50

Closed PlekszyGladz closed 10 years ago

PlekszyGladz commented 10 years ago

When starting the app it ALWAYS crashes on my phone with a nullpointer being thrown in the onConnected() method of the ActivityMain (line 323). @exside do you have any idea why this is happening? It seems to me that the location varibale set at line 316 is null but why?

exside commented 10 years ago

hm, no idea (also not about the settings button), does it work if you comment this out (the whole location stuff)?

PlekszyGladz commented 10 years ago

I commented it out to work with the app. I think it has to do something with the map in general, because also the mapfragment fails on my phone (not lading the map but showing the +/- buttons)

PlekszyGladz commented 10 years ago

Does this problem come from the google api key that is neede for the map?

exside commented 10 years ago

could be, the currently used api key is a debugging / default / developement key...maybe we have to make a real one

exside commented 10 years ago

actually I have to authorize your phones to use my api key...see last commit for how to generate a sha-1 fingerprint, which then has to be sent to me...yesterday I also had the onConnected() crash, but just once and couldn't reproduce it anymore...should do some catching there probably...

exside commented 10 years ago

is this also an issue with the new version...it could also be that you don't have the playservices available on your phone, you have google maps installed?

exside commented 10 years ago

no feedback is also a feedback, closed.