mapview working in india but not in switzerland - android

I am making an android app in which i am using google maps which are working perfectly in India but the same build is not working in Switzerland i.e. in switzerland the maps are not loading in.
Is ther anything that is country orregion specific in generating google api key or debug.keystore.

Is ther anything that is country orregion specific in generating google api key or debug.keystore.
No. The debug.keystore, by default, is developer-specific. Hence, the Google Map API key is developer-specific. Geography has nothing to do with it.
If this is the same exact APK file being used by both devices, then either:
The Swiss device lacks an Internet connection, or
The Swiss device is having difficulty reaching the Google Maps servers (e.g., they are on WiFi and there is some firewall or proxy issue), or
The Swiss device does not have really have Google Maps (e.g., it is a device with a pirated Maps app and lacks a working Google Maps API add-on for Android), or
The Alps were bulldozed and replaced by large black gridlines, so the map is being shown accurately
The first two should be testable by the user (e.g., try opening the native Maps application or browser). The last one should be testable by having the user look out a window. :-)
If, however, the APK file was built by one developer in India and a different APK file was built by a developer in Switzerland, and the app is working in India, then the Swiss developer needs to supply his or her own Maps API key into the source code, or use the same debug.keystore as is being used by the developer from India.

Related

Codes Work in USA but not in China?

I am using A/Studio 2.2
My code unpacks a bundle of LatLng-parameters from a preceeding activity and displays the corresponding G/Map, works well in USA. Loved it. In USA, I used Android 6.
I am in China now, I have downloaded Play Store, Google Maps, Gmail etc and installed them on a local popular low-end phone "vivo-v3m". When I installed G/Maps, a message flashed quickly across Android saying GPS is off and to authorize Google to download something to use Google maps, which I did. In China I am using Android 5.1
G/maps works well after that but my app is still not working.
I strongly suspect I have to include or compile some G/Map APIs into the dependencies in the gradle.
Before I start debugging why the code doesn't work here, I need to know whether it is some Google APIs I have to download to use G/Maps.
Google services is now blocked in China. So Google map is not working in china. use Baidu Maps for china
I was going through the same problem before while developing for a Chinese website and came across Baidu maps. After doing some analysis I found few links that give explanation on Baidu maps in English and steps to implement it. I hope it helps you.
http://www.maplandia.com/china/fujian/fuqing/baidu/
Examples of baidu map api :
http://api.map.baidu.com/library/MarkerClusterer/1.2/examples/simple.htm
Baidu Maps Javascript API Document:
https://qianggan.wordpress.com/2015/04/29/baidu-maps-javascript-api-document/
enter link description here

Currently, is using google maps for android in China working?

Currently developing an app including google maps, I'm willing to make it work for China as well.
I know the situation in China evolved a bit during the last years. So I would like to know: is it possible to use google maps for an android app in China?
If I attempt to use it as it is directly, the map remains blank, taking probably too long to load or being blocked by the chinese firewall. And my phone has the google services, which is not the case of many other phones.
However, a version of google maps exists in China. See this link: http://www.google.cn/maps?hl=en
So as a part of google is not blocked, would it be possible to load the data of the google maps API for android from the chinese server when the user himself is in China or doesn't have the google services or a VPN?
I finally gave up on google maps and change to GaoDe (amap).
First because Google maps need the googles services, which are not available on Chinese phones.
Then because if there is a way with JavaScript to get to the Chinese google map ( see the following link: developers.google.com/maps/faq?hl=en#china_ws_access ), for android with java it is still not reliable.
Nearly all of the Google service are not working in China.
Most Chinese developer use Baidu or Gaode as the location provider.

Access to home/work address stored in Google Maps ("My Place")

I am trying to programmatically obtain the home/work address stored in Google Maps.
It is present (at least) in the Android version of Google Maps, under "My Places" in the web version, and it is used by Google Now.
I have looked at the API docs and the Android SDK, but have found no trace of it.
Anyone know if it is possible?
Thanks.
Home and Work locations from Google Maps are not available in any of the Google Maps APIs, it's not possible to access these locations via the APIs.
I would file a Feature Request on the Issue Tracker to express your interest and share some use cases with the API team so they can consider this moving forward.

Using Google Maps API v2 on devices without Google Play

Google Maps API V2 for Android is a big leap forward compared to v1: better rendering, fragment support... But there is one grey area I am trying to clarify about its use.
I look forward to create a map-based application for an Android device that does not have Google Play on it i.e. did not pass Google validation such as a low-end tablet or a car radio, and distrbute it on third-party markets.
Such applications using V1 API are possible.
The V2 has a dependency on Google Play Services, which is available to devices with Google Play only.
Does it mean that the V2 API is definitely unavailable for the aforementioned devices?
I look forward to create a map-based application for an Android device that does not have Google Play on it i.e. did not pass Google validation such as a low-end tablet or a car radio, and distrbute it on third-party markets. Such applications using V1 API are possible.
Only because the makers of those devices pirated the Maps code, as both Maps V1 and Maps V2 are only available for manufacturers who pass validation and license that code.
Does it mean that the V2 API is definitely unavailable for the aforementioned devices?
Barring similar piracy, yes.
You can try manually install the bin files that are required for Google maps, same way as you would do if you wanted to get the emulator running a Google Map API V2.
you can get more information on how it's done from the following blog post I wrote:
link
I don't know if this solution will be applicable for those devices but you can try it.

Does Google Maps in android app works in UK

I have created android application that uses Google Maps, ans it works fine here in Palestine(Middle east). When someone try it on UK either on the emulator or on the real device it doesn't show any map!
What is the possible problem ?
Your UK tester doesn't have an Internet connection, or is using a different APK than the one you tested (and therefore you might have a problem with your signing key and Maps API key), or is testing using a device that does not legitimately have Google Maps on it, or something along those lines.

Categories

Resources