last day (15 days later) » 

11:46 PM
0
A: 'getGoogleAppId failed with status: 10' and 'Uploading is not possible. App measurement disabled'. Added Issues

Daniel NugentI just ran your code and got it working. It looks like the main issue is that there is a space between key and your api key in the query url. You also didn't have any code that calls getMapAsync(), so you were not getting a map reference and onMapReady() would not have been called. Here is the...

 
I got the following error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gm‌​‌​s.maps.OnMapReadyCallback)' on a null object reference 11-30 04:22:19.877 18700-18700/com.iotaconcepts.aurum E/AndroidRuntime: at com.iotaconcepts.aurum.MapsActivity.onCreate(MapsActivity.java:42)
It's a null pointer exception. I dunno why
 
@bholagabbar Are you sure that you're using the same layout xml? It should find R.id.map without an issue. Not sure why it would be null there for you.
 
Could you add your XML code in your answer?
I'm getting rendering problems now that you mentioned it. It says 'cant detect fragment'. Let me try copy pasting the same XML code from the answer i mentioned above.
 
Sure, I basically used yours, but wrapped in a LinearLayout.
 
Oh wait i didn't see your code
Still the same error :/ Let me update my question
There you go. Question updated. Should give you a much better idea
 
11:46 PM
@bholagabbar Are you absolutely sure that you're modifying the correct layout xml file?
 
Meaning? Of course I'm modifying the correct file..do you want the link to the github repo code?
That should really resolve it..
 
Hey there! Sure, send me the link, I'll take a look at it.
 
Alright onto it. Bill send it to you in 2. Just committing and pushing
Can I have you github I'd? I'd like to add you as a collaborator if you don't mind
 
dmnugent80
 
The app we designed is basically a rural health care app. I'm trying to show the user the nearest hospital location
 
11:50 PM
Ok, cool.
 
It is done
I've also added you as collaborator. You can directly add this from android studio by using checkout from VCS
 
Nice, I'll take a look. As a side note, I think the first error you're getting is just due to running an older version of Google Play Services. I got the same logs running on my S4 with KitKat. Take a look at this: stackoverflow.com/questions/33531689/…
 
I'm running android Lollipop...and there isn't a direct version of the google play services in my phone
 
So, it looks like you just need to use activity_maps2.xml instead of activity_main.xml for this Activity
 
meaning? All of the code is in activity_maps2 itself
 
11:56 PM
Instead of setContentView(R.layout.activity_main);
Use setContentView(R.layout.activity_maps2);
 
Ok. In the activity_maps2 xml file you mean?
 
No, in the ActivityMaps2.java
 
aaah. Hold on
 
Sorry, MapsActivity2.java
 
Yeah. Just plugged in my phone. Running it
Gimme 1 sec
 
11:59 PM
I just updated the answer with that last piece....
 

  last day (15 days later) »