?
Solved

google maps in android?

Posted on 2013-01-08
5
Medium Priority
?
394 Views
Last Modified: 2013-01-27
I am trying to have a google map open in a web page that is called in
an android app. The URL will open correctly in a windows browser, but
the call in android produces an error -"page not found".
How can I fix this?
0
Comment
Question by:pillmill
5 Comments
 
LVL 9

Expert Comment

by:tsaico
ID: 38757764
You sure it isn't a windows phone?  lol...
http://mashable.com/2013/01/05/google-maps-windows-phone/

My droid loses it internet connection for some reason from time to time (for the internet app only oddly enough, as all other internet required like email, maps apP etc) and the only way I can get it to work is to turn on airplane mode on, then back off again.
0
 
LVL 12

Expert Comment

by:PCableGuy
ID: 38761365
Hi pillmill,

Is this an App that you are developing, or an App that you installed on your phone?
0
 

Author Comment

by:pillmill
ID: 38761843
Thanks. It's an app I am developing. The URL is a google map.
It will open correctly on a PC, but on Android the URL causes
a "not found" error. The internet connection is good.
0
 
LVL 12

Expert Comment

by:PCableGuy
ID: 38765800
Can you post some code or the URL?

It might not be your code and this is just a guess, but the "not found" error might be occurring because Google Map is detecting a mobile browser and therefore redirects the mobile browser to a resource/URL that does not exist.

The settings in Android Chrome may vary, but on my Android Phone I merely unchecked Mobile View in the Phone Settings and that prevents the redirection.
0
 
LVL 13

Accepted Solution

by:
Molnar István earned 2000 total points
ID: 38782253
1. have you added ?
        <uses-permission android:name="android.permission.INTERNET" /> ?
2. have you tested the internet on  your emulator ? if there is no internet on android emulator, you could do the following:
       Window>Preferences>Android>Launch
       Default emulator options: -dns-server 8.8.8.8,8.8.4.4

hope it helps

ps: look at these tutorials:
https://developers.google.com/maps/documentation/android/start
http://www.chupamobile.com/tutorial/details/53/Integrating+Google+Maps+in+Android+App/
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article summarizes the problem of addictive cell phone usage that college students across the country are facing. It covers the issues with obsessive cell phone addiction, reasons why this is happening, and what we can do to solve this problem.
Ready to kick start your career in 2018? Add app developer skills to your resume. January’s Course of the Month features Android App Development training with hands-on learning.  Read on to learn why these skills are important.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question