我用的是android2.1 的pachages,在packages中有Galler3D的源代码。
但是默认的make文件编译出来的img中是没有Gallery3D这个应用程序的
于是我修改了make文件,在其中加上了Gallery3D这个应用程序
编译出来的img 加载运行后,也是可以看到Gallery3D这个应用程序的。
但是问题来了,一点开,这个应用程序,程序就会异常,崩溃。
不知道有没有朋友遇到如下问题啊,或者能成功运行Gallery3D
Log 如下:
I/Process ( 377): Sending signal. PID: 377 SIG: 9
I/ActivityManager( 54): Process com.cooliris.media (pid 377) has died.
I/ActivityManager( 54): Start proc com.cooliris.media for activity com.cooliris.media/.Gallery: pid=392 uid=10022 gids={1015, 3003}
I/UsageStats( 54): Unexpected resume of com.cooliris.media while already resumed in com.cooliris.media
I/ActivityThread( 392): Publishing provider com.cooliris.picasa.contentprovider: com.cooliris.picasa.PicasaContentProvider
D/AccountManagerService( 54): bind attempt failed for Session: expectLaunch false, connected false, stats (0/0/0), lifetime 0.001, getAccountsByTypeAndFeatures, service_lh2
D/dalvikvm( 392): GC freed 7792 objects / 443240 bytes in 146ms
D/qemud ( 36): fdhandler_accept_event: accepting on fd 10
D/qemud ( 36): created client 0x19f28 listening on fd 15
D/qemud ( 36): client_fd_receive: attempting registration for service 'sensors'
D/qemud ( 36): client_fd_receive: -> received channel id 14
D/qemud ( 36): client_registration: registration succeeded for client 14
D/qemud ( 36): fdhandler_event: disconnect on fd 15
D/SensorManager( 392): found sensor: Goldfish 3-axis Accelerometer, handle=0
W/ResourceType( 392): Failure getting entry for 0x7f02003a (t=1 e=58) in package 0: 0xffffffb5
D/AndroidRuntime( 392): Shutting down VM
W/dalvikvm( 392): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime( 392): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 392): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cooliris.media/com.cooliris.media.Gallery}: android.content.res.Resources$NotFoundException: Resource ID #0x7f02003a
E/AndroidRuntime( 392): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime( 392): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 392): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 392): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 392): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 392): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 392): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 392): at java.lang.reflect.Method.invokeNative(Native Method)