So the title pretty much says it all. I am trying to load a Google Map V2 which only loads when Wi-Fi is present on my device and doesn't load when I'm on 3G. However when I run it first on Wi-Fi then run it for a second time on 3G WIHOUT clearing the data or uninstalling the application it works. So my question is how can I make my new installed application loads the map over 3G from the FIRST time?
Okay I solved the problem. Turned out I chose to restrict background data of Google Play services. Once I unchecked it, it worked correctly.
Check if your device allows location services only when wifi is connected
Related
When I run my app for the first time (or when I clear cache) and I am not on a wifi connection the google map is not showing. If I connect to wifi the map will be shown also if I turn wifi off again on consecutive app starts. Is there a way to also get the map shown on first app start when one is on 4g f.e.?
edit:
looking at my log output both scenario's seem to more or less do the same. onMapReadyCallback is called in both. It just seems like somehow the map is not rendered in the case where I don't have wifi
It turns out the map not being rendered is a device related issue. I've got a HUAWEI P8 Lite and map is not rendered on this phone. Same as I start the Uber app for first time, the map is simply not rendered.
I've tested the code on another device, MOTO G, and there to map is shown just fine.
A few weeks ago I developped an Android app for my company. The app can be downloaded by our customers on the company's website.
It's an offline app, but the user needs to download all the datas at first use.
Me and my team went through a few tests on the office's wifi, with different devices (Samsung, Huawei, ...) running on different Android version (4.3 to 5.0)
At first use, the user logs in and a loading screen appears, saying that the datas for first use are being downloaded, and it could take time. However, this information is false as it only takes a few seconds
I have a lot of negative feedback from our customers saying that they are blocked at this "first use" loading screen. They can login but the download of the datas for the first use doesn't work. However, they were able to download the app easily, so their internet connection is working. Also, the login function also needs an internet connection, and it works.
I had one of the customer on the phone, I told him to reinstall the app. He did it a few times and it finally worked.
An other customer gave me his device after trying to reinstall the app a few times. I installed the app from my office and it worked perfectly.
It seems like the app doesn't work on some wifi.
I'm using Volley to make the request to download the datas, a message should be displayed if the device is not connected to the internet, but it doesn't show (it does if I stop the device's wifi). It seems like the app detects the network but has no internet connection, and only in a few cases (as it works in our office)
Could someone help me ?
What could possibly be wrong in my app ? How can I debug the situation ?
How can I use AdMob in android if I cannot connect to internet? Is there any way of simulating a google service on own my laptop so I can test my application even if I cannot connect to internet?
Well you can show an admob on the device if you don't have an internet connection, how you will guarantee that the add get viewed the number of times the app say.
So im gonna say (sadly) the answer its NOT.
Now if you don't want to break the app when there is not internet connection you can show a custom imagen follow this tutorial for more information
Is there any way of simulating a google service
Wich one? there is a lot
I am using Google Play Services in my app to get the current location.
I have also put a check to identify if Google Play Services is present or not or it needs to be updated.
When I run this code on a Tablet with Wifi, it works fine.
However when I use 3g, It show me this error "The date on the device appears to be incorrect. Please check the date on the device.". I wonder why
The app is inbuild in the device, once the device is switched on, the app will automatically start and 3g or Wifi will be connected.
The code to check for Google Play Services is from isGooglePlayServicesAvailable()
Any help?
Is there a recognized problem with geolocation via the default browser in Android 2.3.4 Gingerbread?
On an HTC G2 android 2.3.4, the default browser does not appear to use the GPS satellites to determine location. As a result, the location the browser sends to the app is off by a mile or so. Yes, the GPS and wi-fi were both on in the phone. We turned wi-fi off and got the same (bad) result.
Is there some voodoo that can be done to get the default browser in 2.3.4 to do proper geolocation?
On an iPhone 3s geolocation with the very same browser app works perfectly. The following link starts the Gmap4 app (I am the developer) and shows your location on the Google 'Hybrid" map:
http://www.mappingsupport.com/p/gmap4.php?mylocation=on
I believe this is not a browser problem, but a phone specific issue. If you are getting a position off by a mile, for sure the position has been acquired from wifi.
When you start the map, it tries to get the LastKnownLocation, and if it's to old it reverts to wifi position. Now, if you turn wifi off, the position acquiried using wi-fi will remain available as a recent LastKnownLocation and will be used to position the map again.
Until you get a better position from GPS this one will be used.
At least some phones discard the LastKnownLocation when you restart them. You can try it, with wifi off, to see what happens.
Regards.