I'm struggling to get my android emulator showing a testpage from XAMPP for mobile development. I already tried the 10.0.2.2 and also my IP Adress. Both seem to work but the mobile browser is only showing up a blank page. So i think the page is found and simply not rendered correctly. The testpage looks like this:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Am I missing an important preference in XAMPP or something like that? On my PC (Windows 7) it works just fine.
Thanks for the help!
I think something is wrong with your browser on the emulator. First try some other browsers (like chrome, mozilla (for android), opera, etc). Because, If you are able to reach the server then you should also be able to load the page.
If that doesn't work, Try on different emulators like genymotion (use 10.0.2.3 instead of 10.0.2.2), bluestacks, etc.