Solved

google maps in android?

Posted on 2013-01-08
5
317 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
Comment Utility
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
Comment Utility
Hi pillmill,

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

Author Comment

by:pillmill
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now