This tutorial is first of the detailed tutorial that am planning to write. Some short details about my development environment.
- Windows 7 Professional
- Android 2.3.3(API10)
- Google APIs (Google Inc)-API Level 10. (Create AVD of this API)
- Eclipse Classic version 3.7.0
Before we start with the development of our first Google Maps Application for Android. We need to get Google Maps Api Key. I have made it very simple to get the key. Follow the link.
Perform all the steps in the above link and get the key. When we have the key than we will proceed will our development of Google Maps Application for Android.
Start a new Android Project, when prompted for SDK selection
Select Google APIs Platform 2.3.3 API level 10, and move next. When the project has been created. Open your MainActivity.java file. In my case I have named it GooglemapsActivity.java. Import the following.
import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView;
Now change the line
public class GooglemapsActivity extends Activity {
to
public class GooglemapsActivity extends MapActivity {
Now open the main.xml file and add a MapView
<com.google.android.maps.<span class="hiddenSpellError">MapView android:id="@+id/mapview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="" />
Save the changes. Now open the AndroidManifest.xml file and Add the following permissions above the application tag.
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Now add the google maps library in the manifest file, inside the application tag above the activity tag.
<uses-library android:name="com.google.android.maps"/>
Save the changes. Now Open the Android Virtual Device Manager and create a new AVD with the following settings.
We must provide GPS and SD Card support in the AVD because we will need these two functionalities for our future tutorials. Now Right click on our googlemaps application from the PackageExplorer and click Run Configuration from Run As menu. Now Create new configuration from the selecting our googlemaps application on the Android Tab.
And Select our recently created AVD from the target Tab. Click Apply and Run. Everything is fine still the application will not load any map. Reason is that, we have not created an instance of our MapView in our main GooglemapsActivity Class. To do that. Add the following lines of code below the setContentView() line.
mapView = (MapView) findViewById(R.id.mapview1); mc = mapView.getController();
Save the changes and run the project again. Now everything is double fine but still the emulator will show empty grid like the one shown in the picture.
Reasons for this blank grid is that we have not supplied our application with the google maps api key. For this Open the main.xml file and replace the following code.
<com.google.android.maps.MapView android:id="@+id/mapview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="" />
with
<com.google.android.maps.MapView android:id="@+id/mapview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="xxxxxxxxxxxxxxxxxxxxxxxxxxx" />
The “xxxxxxxxxxxxxxxxxxxxxxx” show your Google Maps API Key that we have generated at the start of this tutorial. If the Google Maps API Key is correct than we will get a screen like this.
We can animate the map to a default location or to our desired coordinates. Add the following lines of code and the map will load at our desired coordinates and our desired zoom level.
String coordinates[] = {"30", "71"}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); GeoPoint p = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6)); mc.animateTo(p); mc.setZoom(7); mapView.invalidate();
We have provided latitude = 30 and longitude = 71, zooming level =7. The map will center at the provided coordinates at the provided zooming level. I may have forgotten to explain some details so i am attaching the complete code the 3 main files for this project.
GooglemapsActivity.java Complete code
package com.maptest.googlemap; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import android.os.Bundle; public class GooglemapsActivity extends MapActivity { private MapView mapView; private MapController mc; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mapView = (MapView) findViewById(R.id.mapview1); mc = mapView.getController(); String coordinates[] = {"30", "71"}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); GeoPoint p = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6)); mc.animateTo(p); mc.setZoom(7); mapView.invalidate(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }
AndroidManifest.xml Complete Code
<?xml version="1.0" encoding="utf-8"?> xmlns:android="http://schemas.android.com/apk/res/android" package="com.maptest.googlemap" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <uses-library android:name="com.google.android.maps"/> <activity android:name=".GooglemapsActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
main.xml Complete Code
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <com.google.android.maps.MapView android:id="@+id/mapview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> </LinearLayout>
Note:- Please leave your comments if this article was helpful.
Update # 1.
Addressing the issues in comments from harrison , hennie and topan. The problem with force cash is solved by the following :
replace ur mapview control code in main.xml with this
>
Harrison
Related articles
- Android Google Maps Tutorial Part 2. Using GPS in Android and Animating Google Maps to the Current GPS location. (mirnauman.wordpress.com)
- Android Google Maps Tutorial Part 3. Adding An Image to GoogleMaps Using Map Overlays. (mirnauman.wordpress.com)
- Android Google Maps Tutorial Part 5, Adding Multiple Images To Google Maps Using ItemizedOverlay. (mirnauman.wordpress.com)
- Android Google Maps Tutorial Part 6, Getting The Location That Is Touched. (mirnauman.wordpress.com)
- Android Google Maps Tutorial Part 7, Drawing A Path or Line Between Two Locations (mirnauman.wordpress.com)
- How to get Google Maps API Key for Android. Issues and Errors Solved. (mirnauman.wordpress.com)
- Our First Android Google Maps API Ver 2.0 Application. Part # 1 (mirnauman.wordpress.com)
69 comments
Comments feed for this article
January 30, 2012 at 3:59 pm
Using Google Maps in Android Development Tutorial Part 1. « Mir | pimproid.com
[…] more: Using Google Maps in Android Development Tutorial Part 1. « Mir This entry was posted in News and tagged api, avd, detailed, development, level, professional, […]
January 31, 2012 at 11:26 am
Bibek Subedi
Very good tutorial for Android beginner … I like your blog and the way you write ……… http://programming-technique.blogspot.com
February 1, 2012 at 10:29 am
Android Application Development
Good article!! Concise, clear, and just the right level for someone getting started. Thumbs up!
February 7, 2012 at 6:51 am
Using GPS in Android and Animating Google Maps to the Current GPS location. Android Tutorial Part 2. « Mir
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
February 8, 2012 at 2:12 am
Harrison
Very nice tutorial, very well written. But when I run this code in my Eclipse emulator it crashes every time it launches. Any ideas? thanks.
February 8, 2012 at 10:04 am
Mir
the error that ur code generated was
MapActivity(xxx): Couldn’t get connection factory client.
this is a very common error, alot of ppl say it due to emulator 8,9,10 bla bla bla. their is a bug, i have tried it wid all kinds of emulator but the problem was still there. than i checked the code. the the primary source of the error was MapController mc. like if u comment all the lines containing mc, the map loads fine and their is no error. i tried all sorts of things wid mc but couldn’t make it work. at last i tried this. i replaced ur code of the MapView Control with my code and the problem got solved. i have checked it wid my api key as well as ur api key. works fine.
just end Mapview control in the main.xml file wid this
/com.google.android.maps.MapView>
i am not using the start tag symbol “<" coz its automatically deleted from the comment. but u can have to put it there
I still don't know a valid reason but am digging this out why this problem is solved wid my code. it only has instead of />. both means the same.
February 10, 2012 at 1:20 am
Harrison
Mir,
putting
worked perfectly. The extra “>” and closing with “” is what was needed. Thank you!
February 10, 2012 at 1:21 am
Harrison
Shoot forgot XML was disabled. Anyways the solution worked. Needed “>” after the last of my code and close it with the “”
Thanks!
January 5, 2013 at 8:27 am
Kds23
Hey Mir! First of all, thanks for such a helpful tutorial. Both part1 & part2 worked fine for me, but in part2, when i give fake coordinates using DDMS, it shows force close. My logcat shows the same error as in the above comment. I tried your suggestion of changing the end of the mapview control in the main.xml file, but it didn’t work. Could you please post the main.xml file with above modification? Thanks!
February 13, 2012 at 6:18 am
Adding image to GoogleMaps using map overlays. Android tutorial Part 3 « Mir
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
February 14, 2012 at 9:45 am
Android Google Maps Tutorial Part 4, Adding Menu & Some Additional Functionality Like Zooming, Changing Map View, Animating To GPS Current Location Using Menu Button. « Mir
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
February 22, 2012 at 5:50 pm
Hennie
Dear Mir,
Have tried the exact code and all the suggestions, but I still get the Force Close message.
March 6, 2012 at 5:10 am
Mir
can u email me zip file of ur complete project. i ll check it n see wats causing the error.
March 12, 2012 at 12:17 am
mark
mine is just not working, when i install it on my phone i have no icon, and i wont run
March 12, 2012 at 3:10 pm
Mir
can u please give a lil more detail of the issue. i ll check it on a real device myself.
March 16, 2012 at 1:46 pm
san
hi mir,
this is very nice tutorial .. u explained step by step so nicely…
i tried this one but i got error “couldn`t get connection factory client” ..
i not able to get over it… i struck here for more than 2 days.. i think my map api key is a correct one..
i have included all user permission, and uses library in my project..
have u come across this error how do u over come this…
please post your reply .. i am waiting for it..
March 20, 2012 at 9:51 am
Mir
hi san,
first of all check ur key, if u have used jdk1.7 plus and used google’s documentation command, it gives SHA1 by default. if u use that still u will get a key from google, but it will not work. to get MD5 from jdk1.7 plus u need the command from my article https://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-android-issues-and-errors-solved/.
if u have generated confimed MD5, and than generated key from google than that key will be correct.
In another case jdk1.6 or older generates MD5 by default.
when u r done wid the above and have verified the key, than copy the code that i have given above. but create the project using the exact settings. change of versions can also create problems.
March 25, 2012 at 2:52 pm
topan10
Are the code in the article was update with the code who can solve the problem (issue on february 8)?
because my eclipse still crash when running the app
I’m not realy understand english, thats why I’m confuse to solve the problem with Mir and Harrison issue answer.
If the code in this tutorial was not update, can you update the tutorial or can you tell me where I must put the code in Mir and Harrison issue answer, I mean give me the full code, what file I must change, and maybe fullcode (code in this tutorial with problem solver code)
Thank you
March 26, 2012 at 9:08 am
Mir
Dear topan,
plz check the Update # 1 at the bottom of this article. this will solve ur force cash problem.
March 31, 2012 at 3:44 am
topan10
Thanks for the update, but it still can’t resolve my problem, my application still force close
April 1, 2012 at 8:52 am
topan10
I don’t know how it possible, after I re’built my application, it start running OK. Event, I just use default code from Mir, not use the ‘update code’
Thanks All
April 2, 2012 at 4:40 am
Mir
Dear topan,
can u explain wat changes u have done, while re-building ur application.
the problem may not be with the code but with the environment setup and tools configuration. i.e, sdk version, eclipse version, avd version and google api version. or maybe something in setting up the avd.
thanks.
April 5, 2012 at 7:02 pm
topan10
I think because the GooglemapsActivity.java
in this tutorial your file name is GoogleMapsActivity.java , but in your source code you write GooglemapsActivity.java
I don’t know, maybe it’s just about case sensitive
April 6, 2012 at 4:33 am
Mir
topan u r right, i made a mistake in explaining the code in tutorial. And it is case sensitive.
thanks for pointing this out
April 10, 2012 at 12:15 pm
Android Google Maps Tutorial Part 5, Adding Multiple Images To Google Maps Using ItemizedOverlay. « Mir
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
April 16, 2012 at 9:25 am
Android Google Maps Tutorial Part 6, Getting The Location That Is Touched. « Mir
[…] Android Google Maps Tutorial Part 1. Basic Development. (mirnauman.wordpress.com) Share this:TwitterLinkedInFacebookEmailPrintLike this:LikeBe the first to like this post. Categories […]
May 8, 2012 at 9:29 am
Kent Willan
Good tut. Thanks for that
May 14, 2012 at 6:21 pm
IMAN
hey…. i have images on the map for each point of interest….and im trying to make these images clickable and after clicking on each image a popup window will open that contains information about the image…….can you help me with this….thank you very much 🙂
June 5, 2012 at 2:57 pm
Abdul Samad Khan
I wanted to make a login activity, and on login wanted to go on some Class extended by MapActivity. But every times error comes, Can you please guide me.
July 6, 2012 at 3:19 pm
Ephraim
Very good tutorial. Thank you!
August 1, 2012 at 8:10 pm
Rajesh
nice….. It’s working
September 18, 2012 at 8:55 am
ThienNN
hic , i think you need to replace your update to head 😦
September 21, 2012 at 3:14 pm
daryna_kvitka (@bohemiene)
Thank you so much for these tutorial+ Very helpful. I will follow these further to develop my app 🙂
I thunk you forgot the opening manifest quotation in AndroidManifest.xml
October 7, 2012 at 6:13 am
htbear
I did like you.But It displays the empty grid.I don’t know where I can’t fix it.Please help me.
October 8, 2012 at 4:43 am
Mir
check ur google maps api key.
October 12, 2012 at 9:18 am
kumar
dear Mir, i am a newbie to android and gps. I have tried what u told in the tutorial. I am getting an error :
“the type maps must implement the inherited abstract method LocationListener.onLocationChanged(location),”
The same is for onProviderDisabled and the other two that are written in MyLocationListener class.
where ”maps” is my main maps class.
will you please tell me , why am i getting this. a quick response would me much helpful sir.
November 21, 2012 at 8:49 am
sagar trehan
Very good post…..very helpful for android beginners.
November 28, 2012 at 2:49 pm
Anjon
very good tutorial mir vai. Thanks for sharing.
December 3, 2012 at 3:02 pm
BIN WALEED
Dear is it possible to use this prog to locate NMEA (GPS details) from gps chip via bluetooth to this application???
December 3, 2012 at 6:27 pm
Mir
wat kind of GPS details.
wat u exactly want to do wid bluetooth
December 9, 2012 at 1:59 pm
akhilesh
Hi Mir
Its lovely to see ur Blog and i am using to build MapTest applications i did all u narrated in ur Blog but at last on launching emulator its showing me “The application has been stooped Unexpectedly try again”I fed up to serch for solutions i just started android learning..Plz help me
December 10, 2012 at 12:04 pm
Mir
update ur android SDK tools , the lates is revision 21
update ur android sdk platform tools , latest is revision 16.
than you might have to update the specific google api version too. hope that will solve the problem.
December 10, 2012 at 9:30 am
Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY on android 2.3.4 : Android Community - For Application Development
[…] I follow this example: https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/, I have chosen Google API of 2.3.3 downloaded from SDK manager. But I got the problem Installation […]
January 26, 2013 at 8:16 am
ageng
thanx. that’s very helpful. 😀
January 30, 2013 at 6:36 am
prathip
such a wonderful article. its more useful for me
January 31, 2013 at 12:17 pm
Rob Grady
Great Map Tutorial. Small issue on the 2nd line of the AndroidManifest.xml (complete code section above) – you have a missing <manifest tag before the
xmlns:android="http://schemas.android.com/apk/res/android" line,
It all works fine on my emulator with my debug key.
When I load it onto my test phone (in debug mode, with the same debug key) I only get grey tiles.
Do I need a relase key for debugging on the phone or am I missing something…
Phone: HTC
Eclipse Version: Juno Service Release 1
Build id: 20121004-1855
Any advice would be greatly welcomed.
Thanks
Rob
January 31, 2013 at 12:45 pm
Mir
Dear Rob,
I have not tested the app on actual device. my testing is only wat i do on the emulator. the empty grid that i have encountered was because of a wrong key, so you might need a release version but am not sure. i dont own an android device so i really cant test on physical device. The tutorial was written for android 2.3. You need to check that too. secondly Google has updated so many things that to run my own code that used to work previously, i had to install tones of updates.
January 31, 2013 at 12:53 pm
Rob Grady
Hi Mir,
Many thanks for getting back to me. I’ve used Google API-7. ALl teh Googel documentaion say Map V1 shoudl be OK with that.
I’ll keep trying and WHEN I get the answer I’ll post it here incase anyone else gets the same issue. Next I’ll try another handset? Then maybe Maps V2!!!
Cheers
Rob
February 1, 2013 at 5:18 pm
Rob Grady
OK… The API Key for “debug” ONLY works on emulators. If you use Eclise to load the software in “debug mode” to a handset, you will get tiles, not a map.
If you update the mapview with a “release” API key, then use Eclipse “EXPORT” to create an apk file, copy this to the sd card on the handset, then use an installer app (download free from Google Play) to install it on the phone IT WORKS!!!
Have fun…
February 4, 2013 at 1:02 pm
Mir
Thanks. i ll try it.
February 4, 2013 at 10:08 am
Usman
Kindly convert all of your tutorial to MAP API v2
February 4, 2013 at 10:11 am
Usman
API 1 is deprecated and AP2 don’t have such a thoroughly explained tutorials. so kindly convert all of your tutorial to API v2. That will be a great help for us.
Thanks
February 4, 2013 at 1:09 pm
Mir
Dear Usman.
sure i ll try but that might take some time. and currently am so much stuck with my job related developments and deadlines that. it wont be in the near future. ya after a month or so when all the current things settle down. i work on it. trying to start that save tutorial series for API V2.
thanks for reading my blog. 🙂
February 7, 2013 at 7:05 am
GPS not displaying places : Android Community - For Application Development
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
February 7, 2013 at 7:19 am
jayant shinde
Hi Mir i have developed an app and i am running into a bit of a problem and you solve it. I have posted the problem here…http://stackoverflow.com/questions/14744881/gps-not-displaying-places
March 3, 2013 at 11:00 am
maqsood
still i am not getting actual map it showing only grid map
please help
March 3, 2013 at 5:27 pm
Drawing A Path or Line Between Two Locations » Muhammad Yusro
[…] Android Google Maps Tutorial Part 1. Basic Development.(mirnauman.wordpress.com) […]
April 27, 2013 at 6:55 am
Garousi
HI
thank you for your blog .
I’m beginner in android . I read first part and did it .when I run the app , the map is blank .I think my APIkey is true . How can I make sure, what’s the problem ?
thanks .
April 30, 2013 at 7:41 am
Mir
check ur api key. normally when the map dont appear, its the problem of the key.
May 29, 2013 at 3:35 pm
seo ip
“It’s actually a cool and helpful piece of info. I am glad that you shared this helpful info with us. Please keep us informed like this. Thanks for sharing.”
June 9, 2013 at 1:55 pm
Helen
Hi Mir,
my api key use SHA1 but I cannot load the map. Plz help me.
Thanks.
June 11, 2013 at 4:30 am
Mir
dear helen, with google maps api v2, am working on the same, maybe its the debug and release key problem. i figure out this issue and will post all the details
June 12, 2013 at 4:47 am
Mir
follow my latest series of tutorials for android google maps api ver 2.0. it will solve all the issues from basic configurations, signing application with certificates,api key problems, map not showing problems etc.
June 12, 2013 at 4:28 am
Our First Android Google Maps API Ver 2.0 Application. Part # 1 | Mir
[…] https://mirnauman.wordpress.com/2012/01/30/using-google-maps-in-android-development-tutorial-part-1/ […]
July 10, 2013 at 8:59 am
greenapple
Reblogged this on Programmer's Toolbox and commented:
A very Good tutorial about google Maps Api integration by Mir
July 10, 2013 at 9:01 am
greenapple
A very googd tutorial, I’ve reblogged it in: http://programmertoolbox.wordpress.com/
December 4, 2013 at 7:16 am
shrawan
thanks for giving useful information
March 1, 2014 at 4:14 pm
terence
Dear Mir,
i copy all the codes here and follow your instruction but still when i run the application in emulator still force close. here is the catlog:
03-02 00:10:30.081: E/AndroidRuntime(594): FATAL EXCEPTION: main
03-02 00:10:30.081: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mobeelity.android.locationfinderapp/com.mobeelity.android.locationfinderapp.MainLocationActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class com.google.android.maps.
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.os.Handler.dispatchMessage(Handler.java:99)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.os.Looper.loop(Looper.java:130)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-02 00:10:30.081: E/AndroidRuntime(594): at java.lang.reflect.Method.invokeNative(Native Method)
03-02 00:10:30.081: E/AndroidRuntime(594): at java.lang.reflect.Method.invoke(Method.java:507)
03-02 00:10:30.081: E/AndroidRuntime(594): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-02 00:10:30.081: E/AndroidRuntime(594): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-02 00:10:30.081: E/AndroidRuntime(594): at dalvik.system.NativeStart.main(Native Method)
03-02 00:10:30.081: E/AndroidRuntime(594): Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class com.google.android.maps.
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-02 00:10:30.081: E/AndroidRuntime(594): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.Activity.setContentView(Activity.java:1657)
03-02 00:10:30.081: E/AndroidRuntime(594): at com.mobeelity.android.locationfinderapp.MainLocationActivity.onCreate(MainLocationActivity.java:18)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-02 00:10:30.081: E/AndroidRuntime(594): … 11 more
03-02 00:10:30.081: E/AndroidRuntime(594): Caused by: java.lang.ClassNotFoundException: com.google.android.maps. in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.mobeelity.android.locationfinderapp-2.apk]
03-02 00:10:30.081: E/AndroidRuntime(594): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
03-02 00:10:30.081: E/AndroidRuntime(594): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
03-02 00:10:30.081: E/AndroidRuntime(594): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.createView(LayoutInflater.java:471)
03-02 00:10:30.081: E/AndroidRuntime(594): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-02 00:10:30.081: E/AndroidRuntime(594): … 20 more
03-02 00:10:30.381: D/dalvikvm(594): GC_CONCURRENT freed 621K, 52% free 2933K/6023K, external 716K/1038K, paused 7ms+15ms
03-02 00:10:34.752: I/Process(594): Sending signal. PID: 594 SIG: 9
can you please help me? i really appreciate it and thank you in advance.
May 2, 2014 at 11:17 am
Android Google Maps Tutorial Part 1. Basic Development. | Mir - appgong
[…] Android Google Maps Tutorial Part 1. Basic Development. | Mir […]