Android Emulator Network Issues - android

We have an issue where an application we are developing cannot hit certain environments when ran through the Android Emulator program. However, if we hit one of those same URLs in the Android Emulator Web Browser (chrome for instance), we can hit the pages just fine. Does anyone know how network traffic is handled in the emulator, and if there is anywhere to see if the emulator is just bridging my NIC?

Related

Chrome://inspect shows my device but I can't inspect it

I want to get my hands dirty with app automation so I've been playing around with learning Appium (if anybody has any good tutorials send em my way!). I have an app on my local machine that I'm wanting to use for testing purposes.
The app is one I've created with c# and Xamarin Forms so I have all the files and the .apk locally.
I found a video that said you could use the chrome://inspect page to view apps in an emulator and even inspect them. When my app is running (starting it via Visual Studio) I can see it pop up in the device list but I don't have the option to inspect it.
I'm not sure how people feel about pictures but I don't really have any code to post so I'll just show you that the app is, indeed, running and what I see on the chrome devices page.
Here is my app running
And here is the device list from chrome. You can see the emulator there but I can't do anything with it
What am I missing here?
Chrome://Inspect is a part of Chrome Dev Tools that lets you see port forwarded web views from the mobile in a desktop browser. This is because we cannot inspect elements in Chrome mobile (something we do in desktop browser with CTRL+SHIFT+I) and we have to forward the chrome mobile window to chrome desktop.
To inspect element, if you're working on a web page or web application, just simply right click on that page and choose Inspect
And in your case, for inspecting Android application (apk), you should use UiAutomatorViewer, AppiumStudio, Katalon mobile spy, etc...
Here is my answer to similar question: https://stackoverflow.com/a/58204262/7302505

Phonegap not showing up in Chrome remote debug

I'm trying to debug a Phonegapp app on my Android tablet running via the Phonegap developer app.
According to this post, and Google's own remote debugging docs, Phonegap should show up as a tab in DevTools > remote devices because Cordova is basically just a WebView (as I understand it.) The device is connected via USB and is successfully detected. Alas, this is all I see when my app is running on the device:
If I open Chrome on the tablet, and go to a page, it does show up, so it seems it's only the app it won't show. What am I doing wrong?
[Update:
I also found this post, which makes the process sound decidedly more complicated. However, it's 3 years old and talks about modifying a file (AndroidManifest.xml) that I don't have in my PG build, so I assume it's outdated.]

How to optimize google Chrome browser in Genymotion android emulator

My question today is about optimizing google Chrome browser in Genymotion android emulator. I've run my Selenium / Appium scripts just perfectly on my several real Samsung & HTC devices, even parallel. Since sometime I decided to try the same run on android emulators. To tell honestly, I've never tried original Android Studio virtual devices because they are extremely slow. When I run scripts on genymotion emulator custom installed google Chrome browser (means with the help of ARM translation and google apps zip files), the browser always behaves weirdly. Sometimes it randomly closes or just stuck. But the biggest problem is that browser is very slow. Text is being inserted into textfields slowly, pages are being reloaded slowly, images appears slowly as well. I've followed several advises from google search like https://www.youtube.com/watch?v=vZKiqJyLBkU and others, but they just about optimizing emulator itself, not the Chrome browser. So far I have tried different versions of Emulators: Android 6.0 / 5.0 / 4.4 / 4.3 / all of them have slow chrome browser once custom installed. My Genymotion menu doesn't offer to create emulator with preinstalled Google Play (I assume that's because I use free version). The result of slow Chrome browser is my script always throws me a different errors on different runs so it makes no sense for me to resolve them as those scripts run excellent on real devices. If anybody overcame this problem with slowness of google Chrome browser for Genymotion emulator, please post your solutions here. Thanks.

Debugging a site issue specific to a phone

I have a website which I hot on WinHost.com. In the past few weeks, I have found that 80% of the time, a page stalls while loading. That is, it never loads. It just sits there trying to load.
This issue never happens on my PC.
It does however, happen on my wife's phone too (Same network provider).
We both use Chrome, but it happens on all browsers.
I found a 'Phone Emulator' site, and have no such problems. It seems to load the mobile version fine. It only happens on my, and my wife's phone. The site is in development, so we're the only users.
Is there a way I can debug what is happening, on my phone? Like in the Desktop version of Chrome, I can F12 and see what's happening?
The site runs Asp.Net MVC4, with a Twitter Bootstrap UI.
Sure you can do it by using the latest version of Chrome.
https://developer.chrome.com/devtools/docs/remote-debugging
After connecting, just open the Inspector tool, and select Network tab in PC, reload the page to see what happen.
I found the easiest way was to share my phones internet connection, tether my laptop to it, and run Chrome, pressing F12 to get the network traffic.

Android Emulate Device Without Phone Number

I have an android application and I'm able to simulate the network going in and out, however I wish to know if there is a way to simulate an android device without a phone number.
I have a program which can run just through wireless, so the phones don't need service. I'm curious if there is a way to emulate this with the android emulator in eclipse.
I use the Genymotion emulator. This emulator doesn't have a telephony module - for example, switching off wifi switches off all network connectivity. The emulator works great for Eclipse, IntelliJ and Android Studio.
And you also get the benefit of having an insanely fast emulator.

Categories

Resources