I think is all a bit moot because you won't get any interesting input
from the emulator sensor service. What would it take the sensor input
from? I could be wrong though, I've never tried to use it in the
emulator.

Cheers,
Justin
Android Team @ Google

On Jan 12, 7:47 pm, "Fred Grott(shareme)" <[email protected]>
wrote:
> HardwareTest permission not set right..
>
> should be uses-permission
> android.name=android.permission.HARDWARE_TEST
>
> On Jan 12, 9:30 pm, flashpro <[email protected]> wrote:
>
> > OK, here is my manifest file. Below that is the Logcat data:
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> > package="com.android.bouncingball" android:versionCode="11"
> > android:versionName="1.3.3">
> >     <uses-permission android:name="android.permission.INTERNET" />
> >     <application android:label="@string/app_name"
> > android:icon="@drawable/icon"
> > android:permission="android.permission.HARDWARE_TEST">
> >         <activity android:name=".BouncingBall" android:label="@string/
> > app_name">
> >             <intent-filter>
> >                 <action android:name="android.intent.action.MAIN" />
> >                 <category
> > android:name="android.intent.category.LAUNCHER" />
> >             </intent-filter>
> >         </activity>
> >         <activity android:name=".FileExplorer" android:label="Choose
> > File">
> >             <intent-filter>
> >                 <action android:name="android.intent.action.PICK" />
> >                 <category
> > android:name="android.intent.category.LAUNCHER" />
> >             </intent-filter>
> >         </activity>
> >     </application>
> > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > LOG
>
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): >>>>>>>>>>>>>>
> > AndroidRuntime START <<<<<<<<<<<<<<
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): CheckJNI is ON
> > 01-12 19:29:13.405: DEBUG/AndroidRuntime(297): --- registering native
> > functions ---
> > 01-12 19:29:13.405: INFO/jdwp(297): received file descriptor 19 from
> > ADB
> > 01-12 19:29:14.175: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54456.tmp
> > 01-12 19:29:14.305: WARN/PackageManager(55): Attempt to re-install
> > com.android.bouncingball without first uninstalling.
> > 01-12 19:29:14.305: INFO/installd(28): unlink /data/dalvik-cache/
> > d...@a...@[email protected]
> > 01-12 19:29:14.335: DEBUG/AndroidRuntime(297): Shutting down VM
> > 01-12 19:29:14.335: DEBUG/dalvikvm(297): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:14.345: INFO/dalvikvm(297): DestroyJavaVM shutting VM down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread shutting
> > down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread has shut
> > down
> > 01-12 19:29:14.355: DEBUG/jdwp(297): JDWP shutting down net...
> > 01-12 19:29:14.375: DEBUG/jdwp(297): +++ peer disconnected
> > 01-12 19:29:14.375: INFO/dalvikvm(297): Debugger has detached; object
> > registry had 1 entries
> > 01-12 19:29:14.395: DEBUG/dalvikvm(297): VM cleaning up
> > 01-12 19:29:14.415: DEBUG/dalvikvm(297): LinearAlloc 0x0 used 529468
> > of 4194304 (12%)
> > 01-12 19:29:14.645: DEBUG/dalvikvm(55): GC freed 4683 objects / 308520
> > bytes in 319ms
> > 01-12 19:29:14.765: DEBUG/AndroidRuntime(305): >>>>>>>>>>>>>>
> > AndroidRuntime START <<<<<<<<<<<<<<
> > 01-12 19:29:14.775: DEBUG/AndroidRuntime(305): CheckJNI is ON
> > 01-12 19:29:15.129: DEBUG/AndroidRuntime(305): --- registering native
> > functions ---
> > 01-12 19:29:15.145: INFO/jdwp(305): received file descriptor 19 from
> > ADB
> > 01-12 19:29:15.905: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54457.tmp
> > 01-12 19:29:16.034: DEBUG/PackageManager(55): Removing package
> > com.android.bouncingball
> > 01-12 19:29:16.045: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.045: DEBUG/PackageManager(55): Scanning package
> > com.android.bouncingball
> > 01-12 19:29:16.055: INFO/PackageManager(55): /data/app/vmdl54457.tmp
> > changed; unpacking
> > 01-12 19:29:16.065: DEBUG/installd(28): DexInv: --- BEGIN '/data/app/
> > vmdl54457.tmp' ---
> > 01-12 19:29:16.305: DEBUG/dalvikvm(313): DexOpt: load 39ms, verify
> > 96ms, opt 1ms
> > 01-12 19:29:16.335: DEBUG/installd(28): DexInv: --- END '/data/app/
> > vmdl54457.tmp' (success) ---
> > 01-12 19:29:16.335: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.415: INFO/installd(28): move /data/dalvik-cache/
> > d...@a...@[email protected] -> /data/dalvik-cache/
> > d...@[email protected][email protected]
> > 01-12 19:29:16.435: DEBUG/PackageManager(55): New package installed
> > in /data/app/com.android.bouncingball.apk
> > 01-12 19:29:16.595: DEBUG/AndroidRuntime(305): Shutting down VM
> > 01-12 19:29:16.605: DEBUG/dalvikvm(305): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:16.605: DEBUG/ActivityManager(55): Uninstalling process
> > com.android.bouncingball
> > 01-12 19:29:16.635: INFO/dalvikvm(305): DestroyJavaVM shutting VM down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWorker thread shutting
> > down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWorker thread has shut
> > down
> > 01-12 19:29:16.635: DEBUG/jdwp(305): JDWP shutting down net...
> > 01-12 19:29:16.635: DEBUG/jdwp(305): Got wake-up signal, bailing out
> > of select
> > 01-12 19:29:16.635: INFO/dalvikvm(305): Debugger has detached; object
> > registry had 1 entries
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): VM cleaning up
> > 01-12 19:29:16.645: DEBUG/dalvikvm(305): LinearAlloc 0x0 used 529468
> > of 4194304 (12%)
> > 01-12 19:29:16.865: DEBUG/dalvikvm(98): GC freed 1348 objects / 68720
> > bytes in 235ms
> > 01-12 19:29:17.195: DEBUG/AndroidRuntime(318): >>>>>>>>>>>>>>
> > AndroidRuntime START <<<<<<<<<<<<<<
> > 01-12 19:29:17.195: DEBUG/AndroidRuntime(318): CheckJNI is ON
> > 01-12 19:29:17.335: DEBUG/dalvikvm(55): GC freed 4520 objects / 237816
> > bytes in 341ms
> > 01-12 19:29:17.455: DEBUG/AndroidRuntime(318): --- registering native
> > functions ---
> > 01-12 19:29:17.465: INFO/jdwp(318): received file descriptor 19 from
> > ADB
> > 01-12 19:29:18.425: INFO/ActivityManager(55): Starting activity:
> > Intent { flags=0x10000000 comp={com.android.bouncingball/
> > com.android.bouncingball.BouncingBall} }
> > 01-12 19:29:18.425: WARN/ActivityManager(55): Permission Denial:
> > starting Intent { flags=0x10000000 comp={com.android.bouncingball/
> > com.android.bouncingball.BouncingBall} } from null (pid=-1, uid=-1)
> > requires android.permission.HARDWARE_TEST
> > 01-12 19:29:18.434: DEBUG/AndroidRuntime(318): Shutting down VM
> > 01-12 19:29:18.434: WARN/dalvikvm(318): threadid=3: thread exiting
> > with uncaught exception (group=0x40010e28)
> > 01-12 19:29:18.434: ERROR/AndroidRuntime(318): Uncaught handler:
> > thread main exiting due to uncaught exception
> > 01-12 19:29:18.434: ERROR/AndroidRuntime(318): *** EXCEPTION IN SYSTEM
> > PROCESS.  System will crash.
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):
> > java.lang.SecurityException: Permission Denial: starting Intent
> > { flags=0x10000000 comp={com.android.bouncingball/
> > com.android.bouncingball.BouncingBall} } from null (pid=-1, uid=-1)
> > requires android.permission.HARDWARE_TEST
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > android.os.Parcel.readException(Parcel.java:1234)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > android.os.Parcel.readException(Parcel.java:1222)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > android.app.ActivityManagerProxy.startActivity
> > (ActivityManagerNative.java:998)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > com.android.commands.am.Am.runStart(Am.java:197)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > com.android.commands.am.Am.run(Am.java:73)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > com.android.commands.am.Am.main(Am.java:51)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > com.android.internal.os.RuntimeInit.finishInit(Native Method)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > com.android.internal.os.RuntimeInit.main(RuntimeInit.java:186)
> > 01-12 19:29:18.455: ERROR/AndroidRuntime(318):     at
> > dalvik.system.NativeStart.main(Native Method)
> > 01-12 19:29:18.475: ERROR/JavaBinder(318): Unknown binder error code.
> > 0xfffffff7
> > 01-12 19:29:18.475: ERROR/AndroidRuntime(318): Crash logging skipped,
> > no checkin service
> > 01-12 19:29:18.475: INFO/Process(318): Sending signal. PID: 318 SIG: 9
>
> > PLEASE HELP! If i say <uses-permission> it gives me the error "Cannot
> > enable sensor 1"
--~--~---------~--~----~------------~-------~--~----~
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