i have some problem with the ordinary Google Maps Activity (New Project -> Google Maps Activity). So i start a new project with this activity and set the API key in google_maps_api.xml. Now if i run the app on emulator, the app is starting and i get an grey screen with location names. Sometimes there is also a thin blue triangle of color which graphs sea or land. If i try to move on the map the app crashes after 1 second. Please watch the picture screenshot i attached.
*I checked the API level of my app and emulator
*I don't touched the code for this starter example
*No error occurs
Any idea?
EDIT: The app works on the real phone.
Sorry for answering so late. Thank you metahost for your activity.
I am new in android/java, so it is not easy for me to define my questions so detailed that an advanced developer understand my problems.
But i learn and find the solution on my on.
The problem was in getting the API key.
I knew that i needed a limited API key for android. The problem was that i used the wrong SHA fingerprint.
Everything works now.
Related
It's about several days I'm fighting with Google declaration. I tried "No", I tried "Yes" with almost all option selected but still, once I submit declaration, it is gone but after some time it appears again.
What can be the issue? My app is built with Unity. Should I add/change something on App side? Why I still get message from Google that I need to fill declaration form despite how I fill?
Any advice will be highly appreciated.
I am building an Android app that signs in users to GitHub using OAuth. I followed the instructions here to do so. As the first part of the process, I sent users to the URL
https://github.com/login/oauth/authorize?scope=repo&client_id=MY_CLIENT_ID
However, when I sign in on my Android device, the Authorize xxxx button appears to be greyed out and I can't click it. Does anyone have a clue why this is? (Large screenshot below)
I think the button may not have been greyed out before, the first time I ran the app and signed in. However, I can't tell for sure because I was in a rush.
So, I pasted the link into Chrome on my computer and the OAuth process worked fine. I noticed the button was greyed out at first, but then became bright green. This got me wondering: was JavaScript enabled by default in the Android WebView? Sure enough, it wasn't. I found this answer which details how to enable JS. This was the key line that got everything working:
webView.getSettings().setJavaScriptEnabled(true);
I absolutely support what #james-ko said - JS has to be enabled for the WebView.
But sometimes it doesn't help. I found a little bit more info and would be happy to share it here.
Similar story - I have an app which is supposed to login the user with GitHub OAuth, everything works fine except the "Authorise" button - it just stays disabled whatever setting were applied is some cases.
Here is summary:
The button is always stays disabled on emulator with API 22 and 23 (I didn't try 24-27 though) regardless of settings and user behaviour.
It works well on emulator with API 28 and 29.
On the real device Pixel 3 (API 29), the button was disabled initially and nothing was happening for a while. But when I taped the screen twice in random places it got enabled. The app restarting reproduces the situation: initially disabled button --> tap on the screen --> button gets enabled.
Apparently some antifraud mechanism is involved.
But it gives kinda poor experience to the final user it looks like a bug in the app and there is not much what we can do about it :-/
I had the same problem in Safari, but I located a potential cause, the content security policy of the site was set to: script-src github.githubassets.com
I am trying to setup googlemap into a demo app by following along with this tutorial (https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Tutorial-for-Windows).
Now the app does run, but it show an empty map that look like this:
I have tried to troubleshoot it via this guide (https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/TroubleShooting:-Blank-Map).
Everything I have done seems correct. No error or anything to trace what has been done wrong. I am testing it on real device. How can I fix it?
I think it would be because of incorrect API key. Same thing is happening with me but by changing the API key, it resolved the problem.
I created a mobile application using android 4.4.2.
I tried to share it using mobizen, and sidesync, in pc, some of the application activity on mobizen doesn't show (black color) but some can see. I tried using sidesync and it's also showing black color. I'm not sure what is wrong with my application. Pls help!
Would love to know if you got this fixed so that I can pass this information along to our App team as a bug fix. I am trying to show our app and upon launch it shows the black screen. It used to work before one of the Mobizen updates.
Even though I made no changes to my code the google map still stopped working. Now I can't make it work no matter what I try. Please note that both apps were fully functional and runnable before this incident.
At the moment all I'm getting from Google is a grey screen with the 'Google' text on the lower left corner. So I'm sure the map still sort of works. Also hitting the Google server for location queries also crashes the app ( URL = "http://maps.googleapis.com/maps/api/geocode/json?address=" + search + "&sensor=false"; ...and so forth...).
So what's up? Did google screw something up? Does anyone else have this problem? The official Google Maps App does work fine for me. I checked the API panel and everything seems to be just fine. I even made new API keys for both apps but they don't work either. Can someone shed some light on the situation? Maybe I'm just missing something, but either way this is really bad for me.
Is it Google or is it me? The query problem seems to indicate that the problem is on Google's side.
If you updated your google-play-service from the SDK Manager to revision 13, then there is a new meta-data tag you need to add in your application's Manifest file:
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
without it your application will crash. Place it right next to your Google Map API key meta-data tag.