Try removing
android:permission="android.permission.ACCESS_FINE_LOCATION"
from the "application" tag.
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Apr 23, 7:00 am, codefab <[email protected]> wrote:
> Hi,
>
> i try to access gps data in my little app and set up the permissions
> as followed in my manifest:
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
> package="de.codefabrik.tom"
> android:versionCode="1"
> android:versionName="1.0.0">
>
> <uses-permission
> android:name="android.permission.ACCESS_FINE_LOCATION" />
> <uses-permission
> android:name="android.permission.ACCESS_COARSE_LOCATION" />
> <uses-permission
> android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />
>
> <application android:icon="@drawable/icon"
> android:theme="@android:style/Theme.NoTitleBar" android:label="@string/
> app_name" android:debuggable="true"
> android:permission="android.permission.ACCESS_FINE_LOCATION"
> android:name="TOM">
> <activity android:name=".TOM" android:label="@string/app_name"
> android:multiprocess="true">
> <intent-filter>
> <action android:name="android.intent.action.MAIN" />
> <category
> android:name="android.intent.category.LAUNCHER" />
> </intent-filter>
> </activity>
> </application>
> </manifest>
>
> But i always receive the following error:
>
> 04-23 13:55:47.792: ERROR/AndroidRuntime(279): Uncaught handler:
> thread main exiting due to uncaught exception
> 04-23 13:55:47.792: ERROR/AndroidRuntime(279): *** EXCEPTION IN SYSTEM
> PROCESS. System will crash.
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279):
> java.lang.SecurityException: Permission Denial: starting Intent
> { flags=0x10000000 comp={de.codefabrik.tom/de.codefabrik.tom.TOM} }
> from null (pid=-1, uid=-1) requires
> android.permission.ACCESS_FINE_LOCATION
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> android.os.Parcel.readException(Parcel.java:1238)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> android.os.Parcel.readException(Parcel.java:1226)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> android.app.ActivityManagerProxy.startActivity
> (ActivityManagerNative.java:998)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> com.android.commands.am.Am.runStart(Am.java:197)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> com.android.commands.am.Am.run(Am.java:73)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> com.android.commands.am.Am.main(Am.java:51)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> com.android.internal.os.RuntimeInit.finishInit(Native Method)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> com.android.internal.os.RuntimeInit.main(RuntimeInit.java:186)
> 04-23 13:55:47.822: ERROR/AndroidRuntime(279): at
> dalvik.system.NativeStart.main(Native Method)
> 04-23 13:55:47.862: ERROR/JavaBinder(279): Unknown binder error code.
> 0xfffffff7
> 04-23 13:55:47.872: ERROR/AndroidRuntime(279): Crash logging skipped,
> no checkin service
>
> Did i miss something? Maybe a type or something else?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---