Do you declare:

<uses-library android:name="com.google.android.maps" />

in your manifest?



On Wed, Apr 4, 2012 at 3:48 PM, deb-account <[email protected]> wrote:

> On 03/04/12 14:52, Alexandre LOCTIN wrote:
>
>> 04-03 14:40:33.670: E/AndroidRuntime(414): Caused by:
>> java.lang.**IllegalArgumentException: MapViews can only be created inside
>> instances of MapActivity.
>>
>>
> Your code is:
> public class AR_course extends Activity{
>
>
>  I maybe not using the right way to do it. Is it possible to do it?
>>
>>  I would like in the future, exploit the map and draw a course on it with
>> the GPS.
>> I attached a part of my source code to help understanding my problem.
>> Thanks.
>>
>>
> You're not ready to develop an app. Spend more time on the android dev
> site...
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to