google map on Android Emulator Behind Proxy - android

I m facing the problem of accessing Maps of Android Emulator. I am working on Android emulator 2.3.1 (Google API) API 9.
The problem is i am working behind corporate proxy. Emulator doesnt allowed to open Google Maps. It gives error :
this application requires active data connection
I have tried with the command line options but it didn't work, i don't have an android phone so the second options not there for me.
I had set the proxy settings in the emulator but that's not working with maps etc.
Only browser works. Any help will greatly be appreciated.

In the fact that i got the same problem as you, and then i searched and put the same question as u. But sadly, someone told me that, connect internet via proxy in android emulator does not support connecting to google map.This also happen with connect to web service via proxy.

Related

Android emulator not being able to interact with local rest APIs?

So, is there some kind of setup to be made if you want to have a rest API working in the android emulator? To be mentioned is that my emulator has access to the internet and can access links on chrome and web test browser(I'm working in visual studio and trying to develop an asp.net web rest API)
So far I tried a bunch of stuff and none made a difference:
Try running projects both in Visual Studio and Android Studio
Cold boot the emulator from both ide
Add internet/network permissions in the androidManifest files
Try to run projects w the rest APIs that are supposed to be working as intended
Try to change DNS
Change the localhost address to 10.0.2.2
So far nothing works, the emulator neither in the browser nor in the app doesn’t see the local API
Did anyone have such a problem and found a fix?
Try changing your firewall settings, preferably turn it off.

Localhost API Call from my xamarin forms app works on emulator but not on my Android device

I'm using HttpClient in my Xamarin Forms project to call my Asp.net core REST Api with Base address: https://10.0.2.2:portNumber and everything works fine on the Emulator.
However when I test on my Android device it doesn't work and I don't even get any error. I tried changing the base address to my computer's IPv4 and disabling firewall like it was suggested in here How can I access my localhost from my Android device?.
Still nothing seems to work.
I would really appreciate a help here. Thanks

How to connect android T.V emulator to internet?

I am using android T.V emulator but the internet is not working. I use the api 23. is there other work around in order to connect the android T.V emulator to internet.
Note: my laptop is connected via wifi.
Thank you in advance.
This problem was solved. Please check updates. Google released a new update for API23_x86 and API23_arm emulators.
Look at this thread to clear things up. For now the only solution is to use an older Android version(API 22 and below) to make the emulator for Android TV connect to the internet.

Why Gmap and App Map do not work on Emulator?

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.

Not able to connect secure sites ("https:") from android emulator

I am working on a android application, which is accessing a secured (https://) web service for some data. But I am facing some problem while testing the application in AVD emulator. The problem is that I am not been able to access the "https:" site neither from my application nor from the emulator browser. While I am trying to connect the site (in fact any secured website ) from the browser it's showing the error message as "Data connectivity problem.
A secure connection could not be established.". Though I can access the same websites from my window's web browsers.
According to my analysis the problem is with the privilege setting of the emulator. I am running the application on a corporate (my office) machine, where I don't have the admin rights (but I am a power user) and the machine is also behind the proxy. But as mentioned before I can access those secure sites from the machine's browsers, the only problem seems to be with the emulator accessibility.
I tried to test the same code from my personal laptop and as expected it's working perfectly.
Can somebody please help me out to find out the solution for this? How can I access a secured site from the emulator? FYI I am using eclipse Helios & Android 2.1
Please let me know if you need any more information from my side.

Categories

Resources