• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Proble in using MapActivity

I have developed an application using using android 2.3.3. the application is working fine. but Now when I tried to include google map in it using MapActivity the application fails to load showing error message "The Application App name has stoped unexpectedly. please try again."... I have already set the Build target to Google API and include the "com.google.android.maps" library in the Application manifest file. Please help me..

Thanks and regards
 
I have developed an application using using android 2.3.3. the application is working fine. but Now when I tried to include google map in it using MapActivity the application fails to load showing error message "The Application App name has stoped unexpectedly. please try again."... I have already set the Build target to Google API and include the "com.google.android.maps" library in the Application manifest file. Please help me..

Thanks and regards
Hello, I face the Same Problem.

Scene (A):
> I create Android 2.2 Project with a Normal Activity and various Views+ViewGroups.
It work fine
> When i inserted another Activity that Extend MapActivity, I encountered this same error message, when startActivity on the Inserted MapActivity

Scene (B)
> I create Android 2.2 Project and now with only a Activity that Extend MapActivity
It work fine
> When i inserted another normal Activity, I encountered this same error message, when startActivity on the Inserted Normal Activity.

Anyone can Advise?
 
Upvote 0
Hello, I face the Same Problem.

Scene (A):
> I create Android 2.2 Project with a Normal Activity and various Views+ViewGroups.
It work fine
> When i inserted another Activity that Extend MapActivity, I encountered this same error message, when startActivity on the Inserted MapActivity

Scene (B)
> I create Android 2.2 Project and now with only a Activity that Extend MapActivity
It work fine
> When i inserted another normal Activity, I encountered this same error message, when startActivity on the Inserted Normal Activity.

Anyone can Advise?
Hi MythiosLow,
I managed to solve my problem but what exactly was causing problem is difficult to say...
Check the following thing as i did to solve my problem

1- set "<uses-library android:name="com.google.android.maps" />" in your manifest file
2- use a valid google map api key
3- check all your activities for any duplicate Id of any widget in your layout files

best of luck
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones