Dont find any solution, maps in android v2 dont shows up - android

I have seen a lot of posts, but when I pass the .apk project to a friend, my friend cannot see the maps. It only shows the +- arrows and a gray background. On my phone and tablet it works fine, but on his phone it does not.
Can help me with this, or pass me a link to a similar problem?

make sure your maps api key is setup correctly. You probably have a missing mapsapi key or an invalid one.

Related

APIKey Android Google Map

I'am using Android Studio right now, and I decied to make an app that use Google Map API.
My app is very simple, I have a AutoCompleteTextView. Everytime I write something in AutoCompleteTextView, it will automatic suggest some location that is the same with the name I text.
I follow how to get the api key of google, and I did exactly. But when I text, it not suggest anything.
I thought my code is wrong, but when I change my Api key by another api key of someone I took in the internet. It worked fine.
Please tell me why ?
Sorry about my English, it is not native.
This problem are solved.
Just because I forgot create API by browser

Google API Key still in use after deletion

I'm having a weird issue with an app and maybe there's something I don't know that's causing it...
I did a simple app (OldApp) which uses Google Maps and it worked fine. I then tried to do a second app (NewApp) using Maps, so I got a new API Key for it, renamed the packages, etc.
My problem was that the map wasn't being shown in NewApp, I just had a light yellowish image with Google's logo. After checking that everything was ok with the keys and names, I deleted the key for the OldApp that I'd setup before, to make sure it wasn't somehow "blocking" something.
Now, my OldApp (for which there's no key signed) is still showing the map ! I even set the key as :
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="adf" />
Meanwhile my NewApp is still not working.
So, is there a reason for this behaviour ? Does it take some time for the keys to update maybe?
Thank you in advance, and let me know if it's not clear or if there's something I could add.
As to why it kept working, the answer was provided here : https://stackoverflow.com/a/20049864/3802589 , basically the key was still in memory.
As to why the new map wouldn't load the map, it was just because Wifi Direct kept turning off Wifi and therefore it couldn't load the tiles.

How to do a Google Image Search in an android app

I'm developing an Android app that will do a Google Image Search and return the images to the user in a list. I've looked around on StackOverflow and have run into some problems. First off, I'm a total newbie programmer with only 4 months' worth of programming experience, so I appreciate you guys being patient with me.
I looked through Google Image Search API and I know it's being depreciated and will get shut down someday. Because of this, I don't want to use it. After extensive research on the topic, I don't want to use Bing or another image search service, and I don't want to do a "reverse image search. I just want to use a simple image search via string. I've used this app (https://github.com/tonytamsf/Android-Image-Search) to look at the code, but in all honesty, it's just not helping and it's confusing me more on how to exactly search for an image on Google. Plus, the app won't compile in Eclipse :(
I've also looked around at Google Developer APIs, and I'm not sure if I need to turn on an API key for myself? Still, a bit confused about that. I thought I needed to do a custom search engine, but just by looking at that, I don't think it's exactly what I'm looking for.
Can anyone point me to some resources for this? I would really appreciate it. Thank you!
Just a heads up, but what you're asking is pretty challenging and it sounds like you're just getting started. Here's what I can suggest though:
To get that demo code working in eclipse, I had to right-click the project, click properties, click Android, then check the box for the version of android installed. (I had android 19 installed, and the code was expecting 16, so it was giving up. Tell it to use what you have, which probably is 19). This worked for me after using the git plugin in eclipse to import the project. If you are importing a different way, you may have different issues. * Using git and importing the project is a good skill to have, so if that's unfamiliar territory, take the time to look at that.
Ok, that's the end of what I am sure of. The rest is an educated guess, but I'm sure others can correct me.
Next, if tinkering with that project isn't enough, getting real google image search working will take several skills, especially since the old API is gone. In total you'll need to know:
Java
Android programming
google cloud services
google custom search API
REST
some other libraries to glue the custom search to your app
It's a big chunk there. Currently, it seems the only way to use google's image search is to run a google app engine (you basically set up an online account for google to run a server for you. It does computation and sends messages back and forth for you. You only get a little bit for free each day and then if you want more you have to pay. This is one-way Google earns money. It's not something they let you run on your own computer anymore.). Then you make your android app talk to that server using your new login ID, and the server will take the search term and send back the answers to your android app.
You can get the app engine running and use it in chrome without dealing with android to save yourself time, then add the android part later in the future. Good luck!

How do I add markers to streets only - Android Development

After plenty of searching, I haven't yet found a solution that works for me and I'm really hoping someone here could help me. First I'll explain my problem, and then I'll mention some of the approaches I've attempted/considered so far.
Basically, I'm developing an Android app where markers randomly appear around the user's location. The catch is, the markers need to be placed on streets only.
I've been working with Google Maps Android API V2 but I'm trying to work around using anything with "limitations" such as 'geocoding'.
I've considered using different map API's such as Nutiteq but I've had some trouble implementing them. It would be nice to stick to Google since I've become familiar with it but I'm willing to try any suggestions you may have.
I have even considered loading up Google Maps API V3 in an html file so that I can use GDirections to load a path from one point to itself and then parse this data to Google Maps Android API V2 using JS but turns out GDirections has a limit as well.
Anyone have any idea how I can go about doing this? Even if the solution is hacky, it's still something.
I'm fairly new to Android Development.
Funny what you want to achieve. You don't need to load API V3 html. You can use directions api directly: http://maps.googleapis.com/maps/api/directions/json?origin=51,19&destination=51,19&sensor=false
It still has limitations, but is was like 2000 or something a day a device. And you don't want to put more than 2000 markers on single user's screen, do you?
This is easy to parse, for example with Gson.

Index Out of Bounds suddenly for some users in Mapview ANDROID

java.lang.ArrayIndexOutOfBoundsException
at com.google.googlenav.map.Map.drawMapBackground(Unknown Source)
at com.google.googlenav.map.Map.preLoad(Unknown Source)
at com.google.android.maps.MapController.animateTo(MapController.java:234)
at com.google.android.maps.MapController.animateTo(MapController.java:225)
Code has been working beautifully for months, now suddenly I am getting reports of the following bug. The API KEY is correct, and works for me so I don't think that's it.. but I suppose I could resubmit the MD5 to Google, but fear that will change the KEY and break everyone who hasn't upgraded.
I don't know why this is happening, as its not in code that I control, I do call an aminate to user location but validate that the location is not null before I call it, so I don't think that's it.. Is it possible that UserLocation can exist but have invalid values? API says it should be NULL if it hasn't been set yet, but I've been burned before by manufacturers who don't follow the API properly.
I Really wish The Android Marketplace would include device information with bug reports.
I don't know what you are exactly looking for, b'coz you didn't provide any code..
but i am facing the same problem in zoom in/out ,strong text and i am finally got the answer in Android Cluster Mapping.
look for it ..it might help you.
one of the i followed:
Android Maps Point Clustering

Categories

Resources