Localhost page not found when not connected to internet on Rhomobile application - android

I have an application build with Rhodes that runs well in many kinds of devices.
But, in a Samsung GalaxyTab with Android 3.2 it has a problem (GT-P6210).
The device doesn't have 3G, only Wi-Fi.
When Wi-Fi is enabled, it works fine.
When Wi-Fi is disabled, it works for some minutes and so it shows a page saying "Web page unavailable" and shows the URL (http://localhost:53899/app/....) exactly the same screen that appear on the Android's default browser when it do not find an URL.
If I copy the URL and go to the browser and try to access it so the page is loaded normally.
Do somebody has any idea of what could be happening?
Thanks in advance.

On Launchpad there's currently a proof of concept to fix this:
https://developer.motorolasolutions.com/message/11817#11817

Related

Problems with remote debugging an Android app on my phone

I am developing a cordova Android application and want to remote debug it.
When I start my app on my Android phone thats connected to my Mac I can see the device and the inspectable app webview on Chrome's
chrome://inspect/#devices - page.
But whenever I click on the 'inspect' link a window opens and at once closes again.
I double checked the android:debugable-flag is set to true in AndroidManifest.xml application element and my device is set to be able to use USB-debugging. I use cordova version: 3.5.0-0.2.6.
Really don't know what went wrong.
Any help is appreciated.
I just found the answer today after searching the web again. I got to the following document:
Google remote debugging webviews
I just had to make sure I use:
Chrome Canary browser for debugging
instead of the normal Chrome browser. I test it and debugging works like a charme.
Just posted this answer for those which got a similar problem since nobody answered me.

How to see information related to network tab in chrome mobile browser

Is there any way to see the network related logs in chrome mobile phone browser?
I have tried and I found that in desktop browser we can view network related information
I want to see how page load time in network tab for chrome mobile browser
Yeah, you definitely can. Check out this tutorial:
https://developer.chrome.com/devtools/docs/remote-debugging
It'll allow you to debug your mobile browser from the desktop dev tools.
Maybe it is a little late but i still leave my answer here.
Android
if your android app is using stetho, then you can:
Connect your device with a usb cable to your PC
Navigate to chrome://inspect/#devices
It opens a page which includes the list of your devices
Click on the link of your device and it opens Developer tools of chrome for you, which includes console, and Network tabs
But, keep in mind that your app must benefit from stetho, otherwise you don't see anything.
IOS:
Install Charlesproxy
Follow this guideline

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 UnresolvedHostException on real device using servername

Hi I am developing an application which is connected to a cooperate network via a VPN-connection.
Now I have the following problem:
If I try to send a HTTP-Request from a real device to a server located in the network using the server-name the logcat shows an UnresolvedHostException.
If I am using the IP of the server instead everything works fine as expected.
On the emulator the problem does not appear at all and everything works.
So I tested this on the browser of my device and the browser seems to have the same problem, using the IP, the browser can access the server, but if I use the server-name the browser returns a 404 error.
Does anyone have a clue why this problem is appearing or can give me a hint how to solve this issue, I have searched the web but cannot find a proper solution anywhere.
If anyone is having the same problem, shutdown your device wait a moment so it totally powers of and then restart it, this solves the problem and saves you a lot of time, stress and rage, it seems like their is a bug in the system (at least on some API versions)

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