I developed an android maps application on Google API 2.1 update-1 platform. And it is the simplest code to show a map on the screen, there is no other things.
However, map doesn't shown on phone. The problem is, the same program runs on my android emulator right but it is not working on my android phone properly, I mean program starts on phone but I see only greeds instead of map. phone android version is th same, 2.1 update-1.
Please help me,
Thanks.
If the same APK file works on the emulator but does not work on the phone, ensure that:
The phone has a working Internet connection
The phone's built-in Maps application works
Related
I have used map in Android app its working on my phone and emulator but its apk not working on other phones .SHA1 fingerprint is already generated. I have tried API key in both debug/res/values/ and release/res/values.Please tell me what I am missing. I'll highly appreciate your help.
I have developed an android app which uses google maps api v2. I usb-debuged and run the app on Nexus 5 with no problem. Now I want to test the app on Galaxy S3. I installed the app using debug apk on galaxy and when it runs, it does not allow me to click on some buttons. It drives me crazy because I could not find any reason for that. So I found another galaxy s3 and installed the apk but this time the app is not even started. It says app is stopped. Could anyone give me some ideas about these problems?
Note: I already checked the min android version in the manifest file.
Thanks.
To get more information about why it is crashing activate the developer mode and the usb debug mode in the settings and then check the logs.
I use Eclipse and Android SDK to develop apps for android,recently i wrote a program to show a map on it, it works fine on real device but it don't show any map on emulator.
I check the emulator internet connection and it works and i checked the browser on emulator and it works and i checked the Google map app on the emulator and it show me an black page.
I think about a graphical library or something would be missing, is it possible ? what can i do to correct it?
PS:
1-I use Google APIs 4.2.2 image.
2-I know there are many emulator but they don't works with DDMS on Eclipse.for example DDMS can't send GPS location or SMS to theme or call theme.and i want some log system like LogCat.
You have to use genny motion . Its works like real device.
http://www.genymotion.com/
android genymotion vs emulator
use the following steps to make avd for s4 or any type:withe help of genymotion third party pulgin:
download first genymotion https://cloud.genymotion.com/page/launchpad/download/
cmd for install genymotion http://schier.co/post/install-genymotion-2.0-in-ubuntu
then: The installation of the plugin can be done by launching Eclipse and going to "Help / Install New Software" menu, then just add a new Update Site with the following URL: http://plugins.genymotion.com/eclipse.
installing the google play service from the following : http://blog.zeezonline.com/2013/11/install-google-play-on-genymotion-2-0/
Genny Motion is the best solution by far and had almost all features a developer needs.
But the reason that i cant see the map is the time i should wait and https protocol which is don't work properly in our country because of it's encryption ,it seems it took a while to appear a map, i left the program to eat dinner , when i came back it appears !!! but Google map App still don't work , maybe it needs time too.
Emulator does not having gps hardware to run google map, that the reason it's showing blank, To run Map we need both a internet and gps as well.
I am facing a strange issue wherein HTML5 Geolocation is not working only on Android Emulator. I have a very simple code as follows:
navigator.geolocation.getCurrentPosition(suc, locFail, { 'enableHighAccuracy': true, 'timeout': 60000, 'maximumAge': 60000 });
Once the emulator is running I do supply mock coordinates using DDMS/telnet geo fix.
But the moment it executes the above line of code, the emulator hangs. In LogCat I get messages notifying that each service is dying and then I get the Android Emulator Launch screen. I cannot do anything with the emulator except closing it and restarting it.
Version of Android: 2.3.3
ADT Version: 20
Emulator Settings: Allow mock locations is enabled. Use GPS Satellites is enabled.
The same code works perfectly fine on my desktop browser.
Any help will be highly appreciated.
Thank you
When you create an AVD, you will see two versions. For e.g. The Target names for 2.3.3 will be Android 2.3.3 and Google APIs (Google Inc). Try selecting the Google APIs version for your AVD and see if it works.
Try to move to the Google Maps version of the AVD and see if you are able to see the mock locations.
I am testing facebook Single-Sign-On application.
I am using android platform 2.2 and api level 8. I have similarly created emulator with the same configuration. It is working fine in emulator. But when i test it on actual device that is HTC Desire HD ver 2.2 froyo updated. It opens up a dialog with facebook as title and shows loading screen then disappears.
I am unable to understand the reason for such behavior.
Please help me on this.
Regards,
Pankaj
You need to get the debug on device working and see the error that appears in LogCat.You can find instructions oh how to use debug on device here
You can plug in your device using the usb cable (making sure usb debugging is on in the options).
then debug your application and you will see what the cause is in the debugging console.
I suspect tho your problem is to do with how you are transferring the apk file to the phone (it needs to be signed for facebook SSO to work and you need to have set the key correctly in your facebook app).
See here for more information:
http://www.juje.me/2011/04/export-the-signature-of-your-android-app-for-facebook-api-use/