Jump to content
marcus321

Connaître les processus qui tournent

Recommended Posts

Hello tout le monde,

C'est mon premier sujet ici alors s'il vous plait soyez indulgent avec le petit "noob" que je suis ^^.

Je suis actuellement au japon, et il me reste 2 mois pour faire une application sous android, et j'avais pour idée de faire un genre de gestionnaire de tâche.. Il me reste en gros 1 mois et demi pour le faire et je n'avance pas du tout, je suis un peu désappointé par tout ce qu'il y a à lire et je ne sais plus où donner de la tête. C'est pour quoi je fais appel a vous, cher compatriotes ;).

Pour commencer ma première question est la suivante :

Est-il possible de récupérer les pids des processus qui tournent à un instant X ?

Accessoirement j'ai une deuxième question, si je veux kill une application, que dois-je faire ? Tuer les processus, ou les activities, ou peut-être autre chose ?

Merci de votre aide :)

Share this post


Link to post
Share on other sites

En fait, il y a déjà un programme gratuit qui s'appelle Android Task Killer qui fait tout ça très bien ...

Share this post


Link to post
Share on other sites

Effectivement, ton appli sera la millieme sur une longue liste, mais je te conseille de jeter un coup d'oeil par ces commandes lachées en vrac:

activityManager = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE); 

List allTasks = activityManager.getRunningTasks(30); 

List allRTasks = activityManager.getRunningAppProcesses();

Share this post


Link to post
Share on other sites

Le but n'est pas de la proposer sur le market, c'est juste mon projet de stage, donc qu'importe le nombre d'applications déjà existantes ;).

Merci je vais voir ce que je peux faire avec ce que tu m'as donné Pro-fête :D

Share this post


Link to post
Share on other sites

en fait j'ai un écran d'acceuil et pour tester ce que Pro-Fete a mis, j'ai fait ceci :

activityManager = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);
       okButton = (Button) findViewById(R.id.oK);
       quitButton = (Button) findViewById(R.id.quitter);

       okButton.setOnClickListener(new OnClickListener() {
           public void onClick(View v) {

                List allTasks = activityManager.getRunningTasks(30); 

               List allRTasks = activityManager.getRunningAppProcesses();
       }


});

En gros quand j'appuie sur le bouton, mon application plante... Le problème provient surement d'activityManager. Quelqu'un peut-il m'aider ? ^^

Edited by marcus321

Share this post


Link to post
Share on other sites

C'est la ligne

List allTasks = activityManager.getRunningTasks(30);

qui me pose problème, pouvez-vous m'aider svp ?

Share this post


Link to post
Share on other sites

Je te dis la réponse tout de suite, platement et simplement, comme je l'ai fait avant ou je parie mes chaussettes que tu n'as pas initialisé la variable allTasks comme une nouvelle liste?

Share this post


Link to post
Share on other sites

Tu veux dire ca ?

List allTasks = new ArrayList();

Si c'est ce dont tu me parles bah tu me dois tes chaussettes sinon je veux bien que tu m'explique platement et simplement..

Share this post


Link to post
Share on other sites

Effectivement, j'ai perdu mes chaussettes!

Si tu écrivais le LogCat et ce qu'il dit, on saurait directement ce qui ne va pas et ca m'éviterait de perdre d'autres vetements!

Edit:

Pour mes chaussettes, pourquoi avoir mis List à gauche et ArrayList à droite de l'égalité?

Je ne sais pas si ca fonctionne ou si c'est cela qui cause l'erreur, mais 3 pommes = 3 poires ca me fait toujours bizarre

Edited by Profete162

Share this post


Link to post
Share on other sites

Avec la stack trace du LogCat on pourrait déjà plus te guider...

[edit]grilled by pro-fete[/edit]

Edited by Nivek

Share this post


Link to post
Share on other sites

Dans Eclipse, perspective DDMS, onglet LogCat en ayant pris soin de sélectionner la ligne correspondant à ton émulateur en colonne de gauche (développer sans ça, je comprends que ce soit difficile ;-) )

Share this post


Link to post
Share on other sites

05-17 09:36:18.042: INFO/vold(27): Android Volume Daemon version 2.0
05-17 09:36:18.092: INFO/DEBUG(28): debuggerd: Nov 24 2009 13:56:31
05-17 09:36:18.232: INFO/vold(27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118
05-17 09:36:18.411: INFO/vold(27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions
05-17 09:36:18.411: INFO/vold(27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0
05-17 09:36:18.411: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard'
05-17 09:36:18.411: INFO/vold(27): Aborting start of /sdcard (bootstrap = 1)
05-17 09:36:18.411: INFO/vold(27): Volmgr not ready to handle device
05-17 09:36:18.411: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
05-17 09:36:18.411: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
05-17 09:36:18.411: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
05-17 09:36:18.411: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
05-17 09:36:18.411: DEBUG/vold(27): Bootstrapping complete
05-17 09:36:18.462: DEBUG/qemud(35): entering main loop
05-17 09:36:18.923: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:18.923: DEBUG/qemud(35): created client 0xe078 listening on fd 8
05-17 09:36:18.923: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'boot-properties'
05-17 09:36:18.923: DEBUG/qemud(35): client_fd_receive:    -> received channel id 1
05-17 09:36:18.931: DEBUG/qemud(35): client_registration: registration succeeded for client 1
05-17 09:36:18.931: INFO/qemu-props(45): connected to 'boot-properties' qemud service.
05-17 09:36:18.942: INFO/qemu-props(45): received: qemu.sf.lcd_density=160
05-17 09:36:18.942: INFO/qemu-props(45): received: dalvik.vm.heapsize=16m
05-17 09:36:19.592: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:19.592: DEBUG/qemud(35): created client 0xe078 listening on fd 11
05-17 09:36:19.602: DEBUG/qemud(35): fdhandler_event: disconnect on fd 11
05-17 09:36:19.631: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:19.631: DEBUG/qemud(35): created client 0xe078 listening on fd 11
05-17 09:36:19.631: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gsm'
05-17 09:36:19.631: DEBUG/qemud(35): client_fd_receive:    -> received channel id 2
05-17 09:36:19.642: DEBUG/qemud(35): client_registration: registration succeeded for client 2
05-17 09:36:19.851: DEBUG/AndroidRuntime(30): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-17 09:36:19.851: DEBUG/AndroidRuntime(30): CheckJNI is ON
05-17 09:36:20.721: INFO/(31): ServiceManager: 0xac38
05-17 09:36:20.751: INFO/AudioFlinger(31): AudioFlinger's thread ready to run for output 0
05-17 09:36:20.771: INFO/CameraService(31): CameraService started: pid=31
05-17 09:36:20.931: DEBUG/AndroidRuntime(30): --- registering native functions ---
05-17 09:36:21.511: INFO/Zygote(30): Preloading classes...
05-17 09:36:21.521: DEBUG/dalvikvm(30): GC freed 800 objects / 44048 bytes in 13ms
05-17 09:36:21.891: DEBUG/dalvikvm(30): GC freed 240 objects / 13920 bytes in 6ms
05-17 09:36:21.971: DEBUG/dalvikvm(30): GC freed 228 objects / 14376 bytes in 7ms
05-17 09:36:22.221: DEBUG/dalvikvm(30): GC freed 505 objects / 31896 bytes in 10ms
05-17 09:36:22.321: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libexif.so 0x0
05-17 09:36:22.331: DEBUG/dalvikvm(30): Added shared lib /system/lib/libexif.so 0x0
05-17 09:36:22.331: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libFFTEm.so 0x0
05-17 09:36:22.341: DEBUG/dalvikvm(30): Added shared lib /system/lib/libFFTEm.so 0x0
05-17 09:36:22.351: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libmedia_jni.so 0x0
05-17 09:36:22.621: DEBUG/dalvikvm(30): Added shared lib /system/lib/libmedia_jni.so 0x0
05-17 09:36:22.631: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libmedia_jni.so 0x0
05-17 09:36:22.631: DEBUG/dalvikvm(30): Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
05-17 09:36:22.631: INFO/dalvikvm(30): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so)
05-17 09:36:22.631: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libmedia_jni.so 0x0
05-17 09:36:22.631: DEBUG/dalvikvm(30): Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
05-17 09:36:22.631: INFO/dalvikvm(30): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so)
05-17 09:36:22.631: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libmedia_jni.so 0x0
05-17 09:36:22.631: DEBUG/dalvikvm(30): Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
05-17 09:36:22.631: INFO/dalvikvm(30): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so)
05-17 09:36:22.681: DEBUG/dalvikvm(30): GC freed 323 objects / 20144 bytes in 10ms
05-17 09:36:23.371: DEBUG/dalvikvm(30): GC freed 3536 objects / 168944 bytes in 31ms
05-17 09:36:23.441: DEBUG/dalvikvm(30): GC freed 133 objects / 8640 bytes in 20ms
05-17 09:36:23.561: DEBUG/dalvikvm(30): GC freed 518 objects / 31496 bytes in 19ms
05-17 09:36:23.651: DEBUG/dalvikvm(30): GC freed 175 objects / 9448 bytes in 21ms
05-17 09:36:23.721: DEBUG/dalvikvm(30): GC freed 222 objects / 12440 bytes in 34ms
05-17 09:36:23.761: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libsrec_jni.so 0x0
05-17 09:36:23.771: DEBUG/dalvikvm(30): Added shared lib /system/lib/libsrec_jni.so 0x0
05-17 09:36:23.781: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libsrec_jni.so 0x0
05-17 09:36:23.781: DEBUG/dalvikvm(30): Shared lib '/system/lib/libsrec_jni.so' already loaded in same CL 0x0
05-17 09:36:24.001: DEBUG/dalvikvm(30): GC freed 235 objects / 31976 bytes in 22ms
05-17 09:36:24.331: DEBUG/dalvikvm(30): GC freed 764 objects / 46968 bytes in 36ms
05-17 09:36:24.511: DEBUG/dalvikvm(30): GC freed 311 objects / 20088 bytes in 42ms
05-17 09:36:24.611: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libwebcore.so 0x0
05-17 09:36:24.731: DEBUG/dalvikvm(30): Added shared lib /system/lib/libwebcore.so 0x0
05-17 09:36:24.911: DEBUG/dalvikvm(30): GC freed 421 objects / 22544 bytes in 35ms
05-17 09:36:25.141: DEBUG/dalvikvm(30): GC freed 441 objects / 29952 bytes in 37ms
05-17 09:36:25.331: DEBUG/dalvikvm(30): GC freed 280 objects / 17712 bytes in 38ms
05-17 09:36:25.491: DEBUG/dalvikvm(30): GC freed 467 objects / 27088 bytes in 42ms
05-17 09:36:25.632: DEBUG/dalvikvm(30): GC freed 585 objects / 31568 bytes in 40ms
05-17 09:36:26.041: DEBUG/dalvikvm(30): GC freed 1860 objects / 97432 bytes in 46ms
05-17 09:36:26.201: DEBUG/dalvikvm(30): GC freed 656 objects / 49160 bytes in 42ms
05-17 09:36:27.451: DEBUG/dalvikvm(30): GC freed 13139 objects / 470648 bytes in 91ms
05-17 09:36:27.932: DEBUG/dalvikvm(30): GC freed 10438 objects / 443680 bytes in 76ms
05-17 09:36:28.501: DEBUG/dalvikvm(30): GC freed 10305 objects / 466352 bytes in 88ms
05-17 09:36:29.142: DEBUG/dalvikvm(30): GC freed 7715 objects / 461680 bytes in 78ms
05-17 09:36:29.802: DEBUG/dalvikvm(30): GC freed 8311 objects / 458016 bytes in 78ms
05-17 09:36:30.542: DEBUG/dalvikvm(30): GC freed 8936 objects / 513696 bytes in 88ms
05-17 09:36:30.862: DEBUG/dalvikvm(30): GC freed 2111 objects / 134264 bytes in 78ms
05-17 09:36:31.152: DEBUG/dalvikvm(30): GC freed 776 objects / 44280 bytes in 61ms
05-17 09:36:31.292: DEBUG/dalvikvm(30): GC freed 527 objects / 34824 bytes in 60ms
05-17 09:36:31.422: DEBUG/dalvikvm(30): GC freed 376 objects / 23632 bytes in 61ms
05-17 09:36:31.452: INFO/Zygote(30): ...preloaded 1355 classes in 9943ms.
05-17 09:36:31.532: DEBUG/dalvikvm(30): GC freed 160 objects / 18280 bytes in 75ms
05-17 09:36:31.532: INFO/Zygote(30): Preloading resources...
05-17 09:36:31.612: DEBUG/dalvikvm(30): GC freed 52 objects / 2512 bytes in 69ms
05-17 09:36:32.252: DEBUG/dalvikvm(30): GC freed 327 objects / 16672 bytes in 68ms
05-17 09:36:32.612: DEBUG/dalvikvm(30): GC freed 269 objects / 12552 bytes in 78ms
05-17 09:36:32.652: INFO/Zygote(30): ...preloaded 48 resources in 1123ms.
05-17 09:36:32.682: INFO/Zygote(30): ...preloaded 15 resources in 32ms.
05-17 09:36:32.752: DEBUG/dalvikvm(30): GC freed 113 objects / 8640 bytes in 62ms
05-17 09:36:32.823: DEBUG/dalvikvm(30): GC freed 207 objects / 8192 bytes in 61ms
05-17 09:36:32.892: DEBUG/dalvikvm(30): GC freed 24 objects / 928 bytes in 72ms
05-17 09:36:32.902: INFO/dalvikvm(30): Splitting out new zygote heap
05-17 09:36:32.931: INFO/dalvikvm(30): System server process 53 has been created
05-17 09:36:32.931: INFO/Zygote(30): Accepting command socket connections
05-17 09:36:33.092: DEBUG/dalvikvm(53): Trying to load lib /system/lib/libandroid_servers.so 0x0
05-17 09:36:33.332: DEBUG/dalvikvm(53): Added shared lib /system/lib/libandroid_servers.so 0x0
05-17 09:36:33.362: INFO/sysproc(53): Entered system_init()
05-17 09:36:33.362: INFO/sysproc(53): ServiceManager: 0x156f00
05-17 09:36:33.362: INFO/SurfaceFlinger(53): SurfaceFlinger is starting
05-17 09:36:33.362: INFO/SurfaceFlinger(53): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
05-17 09:36:33.362: ERROR/MemoryHeapBase(53): error opening /dev/pmem: No such file or directory
05-17 09:36:33.371: ERROR/SurfaceFlinger(53): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
05-17 09:36:33.412: ERROR/libEGL(53): couldn't load  library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
05-17 09:36:33.422: INFO/SurfaceFlinger(53): EGL informations:
05-17 09:36:33.422: INFO/SurfaceFlinger(53): # of configs : 6
05-17 09:36:33.422: INFO/SurfaceFlinger(53): vendor    : Android
05-17 09:36:33.422: INFO/SurfaceFlinger(53): version   : 1.31 Android META-EGL
05-17 09:36:33.422: INFO/SurfaceFlinger(53): extensions: 
05-17 09:36:33.422: INFO/SurfaceFlinger(53): Client API: OpenGL ES
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): using (fd=21)
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): id           = 
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): xres         = 320 px
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): yres         = 480 px
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): xres_virtual = 320 px
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): yres_virtual = 960 px
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): bpp          = 16
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): r            = 11:5
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): g            =  5:6
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): b            =  0:5
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): width        = 49 mm (165.877548 dpi)
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): height       = 74 mm (164.756760 dpi)
05-17 09:36:33.422: INFO/EGLDisplaySurface(53): refresh rate = 60.00 Hz
05-17 09:36:33.432: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 09:36:33.432: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 09:36:33.441: INFO/SurfaceFlinger(53): OpenGL informations:
05-17 09:36:33.441: INFO/SurfaceFlinger(53): vendor    : Android
05-17 09:36:33.441: INFO/SurfaceFlinger(53): renderer  : Android PixelFlinger 1.0
05-17 09:36:33.441: INFO/SurfaceFlinger(53): version   : OpenGL ES-CM 1.0
05-17 09:36:33.441: INFO/SurfaceFlinger(53): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap 
05-17 09:36:33.441: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 09:36:33.441: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 09:36:33.441: WARN/HAL(53): load: module=/system/lib/hw/overlay.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.goldfish.so' not found
05-17 09:36:33.441: WARN/HAL(53): load: module=/system/lib/hw/overlay.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.default.so' not found
05-17 09:36:33.462: INFO/sysproc(53): System server: starting Android runtime.
05-17 09:36:33.462: INFO/sysproc(53): System server: starting Android services.
05-17 09:36:33.462: INFO/SystemServer(53): Entered the Android system server!
05-17 09:36:33.481: INFO/sysproc(53): System server: entering thread pool.
05-17 09:36:33.551: INFO/SystemServer(53): Starting Entropy Service.
05-17 09:36:33.551: VERBOSE/RandomBlock(53): reading from file /data/system/entropy.dat
05-17 09:36:33.576: VERBOSE/RandomBlock(53): writing to file /dev/urandom
05-17 09:36:33.592: VERBOSE/RandomBlock(53): reading from file /dev/urandom
05-17 09:36:33.632: VERBOSE/RandomBlock(53): writing to file /data/system/entropy.dat
05-17 09:36:33.712: INFO/SystemServer(53): Starting Power Manager.
05-17 09:36:33.752: INFO/SystemServer(53): Starting Activity Manager.
05-17 09:36:34.071: ERROR/libEGL(64): couldn't load  library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
05-17 09:36:34.252: INFO/SystemServer(53): Starting telephony registry
05-17 09:36:34.282: INFO/SystemServer(53): Starting Package Manager.
05-17 09:36:34.322: INFO/ARMAssembler(64): generated scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at [0x165a8:0x16674] in 8467628 ns
05-17 09:36:34.332: INFO/Installer(53): connecting...
05-17 09:36:34.332: INFO/installd(32): new connection
05-17 09:36:34.472: INFO/PackageManager(53): Got library android.test.runner in /system/framework/android.test.runner.jar
05-17 09:36:34.472: INFO/PackageManager(53): Got library com.android.im.plugin in /system/framework/com.android.im.plugin.jar
05-17 09:36:34.902: WARN/PackageManager(53): Running ENG build: no pre-dexopt!
05-17 09:36:35.092: DEBUG/dalvikvm(53): GC freed 6239 objects / 282384 bytes in 166ms
05-17 09:36:35.172: DEBUG/PackageManager(53): Scanning app dir /system/framework
05-17 09:36:35.433: VERBOSE/PackageParser(53): android:backupAgent = com.android.internal.backup.SystemBackupAgent from android+com.android.internal.backup.SystemBackupAgent
05-17 09:36:35.471: DEBUG/PackageManager(53): Scanning app dir /system/app
05-17 09:36:36.632: DEBUG/dalvikvm(53): GC freed 3744 objects / 209768 bytes in 155ms
05-17 09:36:36.641: VERBOSE/PackageParser(53): android:backupAgent = com.android.inputmethod.latin.LatinIMEBackupAgent from com.android.inputmethod.latin+LatinIMEBackupAgent
05-17 09:36:37.102: VERBOSE/PackageParser(53): android:backupAgent = com.android.providers.settings.SettingsBackupAgent from com.android.providers.settings+SettingsBackupAgent
05-17 09:36:37.584: WARN/PackageParser(53): Intent filter for activity ActivityIntentInfo{43837800 com.android.camera.ReviewImage} defines no actions
05-17 09:36:37.636: DEBUG/PackageManager(53): Scanning app dir /data/app
05-17 09:36:37.641: INFO/PackageParser(53): Impliciting adding android.permission.WRITE_EXTERNAL_STORAGE to old pkg Layout.linear
05-17 09:36:37.641: INFO/PackageParser(53): Impliciting adding android.permission.READ_PHONE_STATE to old pkg Layout.linear
05-17 09:36:37.671: INFO/PackageParser(53): Impliciting adding android.permission.WRITE_EXTERNAL_STORAGE to old pkg world.hello
05-17 09:36:37.671: INFO/PackageParser(53): Impliciting adding android.permission.READ_PHONE_STATE to old pkg world.hello
05-17 09:36:37.691: INFO/PackageParser(53): Impliciting adding android.permission.WRITE_EXTERNAL_STORAGE to old pkg manager.task
05-17 09:36:37.691: INFO/PackageParser(53): Impliciting adding android.permission.READ_PHONE_STATE to old pkg manager.task
05-17 09:36:37.702: DEBUG/PackageManager(53): Scanning app dir /data/app-private
05-17 09:36:37.702: INFO/PackageManager(53): Time to scan packages: 2.8 seconds
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
05-17 09:36:37.712: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.google.android.providers.enhancedgooglesearch
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES in package com.google.android.providers.enhancedgooglesearch
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.browser
05-17 09:36:37.721: WARN/PackageManager(53): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
05-17 09:36:38.022: DEBUG/dalvikvm(53): GC freed 5029 objects / 302256 bytes in 150ms
05-17 09:36:38.181: DEBUG/dalvikvm(53): GC freed 1945 objects / 118944 bytes in 100ms
05-17 09:36:38.211: INFO/SystemServer(53): Starting Content Manager.
05-17 09:36:38.221: INFO/SyncManager(53): No initial accounts
05-17 09:36:38.232: INFO/SyncManager(53): No initial status
05-17 09:36:38.232: INFO/SyncManager(53): No initial pending operations
05-17 09:36:38.232: INFO/SyncManager(53): No initial statistics
05-17 09:36:38.261: WARN/ActivityManager(53): Unable to start service Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService }: not found
05-17 09:36:38.261: WARN/AccountMonitor(53): Couldn't connect to Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService } (Missing service?)
05-17 09:36:38.261: INFO/SystemServer(53): Starting System Content Providers.
05-17 09:36:38.282: INFO/ActivityThread(53): Publishing provider settings: com.android.providers.settings.SettingsProvider
05-17 09:36:38.331: INFO/SystemServer(53): Starting Battery Service.
05-17 09:36:38.331: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/usb/online'
05-17 09:36:38.331: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/battery/batt_vol'
05-17 09:36:38.331: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/battery/batt_temp'
05-17 09:36:38.352: INFO/SystemServer(53): Starting Hardware Service.
05-17 09:36:38.352: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:38.352: DEBUG/qemud(35): created client 0x11008 listening on fd 12
05-17 09:36:38.352: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'hw-control'
05-17 09:36:38.352: DEBUG/qemud(35): client_fd_receive:    -> received channel id 3
05-17 09:36:38.362: DEBUG/qemud(35): client_registration: registration succeeded for client 3
05-17 09:36:38.371: WARN/HAL(53): load: module=/system/lib/hw/lights.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.goldfish.so' not found
05-17 09:36:38.371: WARN/HAL(53): load: module=/system/lib/hw/lights.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.default.so' not found
05-17 09:36:38.681: INFO/SystemServer(53): Starting Alarm Manager.
05-17 09:36:38.712: INFO/SystemServer(53): Starting Sensor Service.
05-17 09:36:38.721: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:38.721: DEBUG/qemud(35): created client 0xc038 listening on fd 13
05-17 09:36:38.721: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'sensors'
05-17 09:36:38.721: DEBUG/qemud(35): client_fd_receive:    -> received channel id 4
05-17 09:36:38.731: DEBUG/qemud(35): client_registration: registration succeeded for client 4
05-17 09:36:38.741: DEBUG/qemud(35): fdhandler_event: disconnect on fd 13
05-17 09:36:38.741: INFO/SystemServer(53): Starting Window Manager.
05-17 09:36:38.792: INFO/EventHub(53): New device: path=/dev/input/event0 name=qwerty2 id=0x10000 (of 0x1) index=1 fd=42 classes=0xf
05-17 09:36:38.803: INFO/EventHub(53): New keyboard: publicID=65536 device->id=65536 devname='qwerty2' propName='hw.keyboards.65536.devname' keylayout='/system/usr/keylayout/qwerty.kl'
05-17 09:36:38.803: ERROR/EventHub(53): could not get driver version for /dev/input/mouse0, Not a typewriter
05-17 09:36:38.803: ERROR/EventHub(53): could not get driver version for /dev/input/mice, Not a typewriter
05-17 09:36:38.811: INFO/KeyInputQueue(53): Device added: id=0x0, name=qwerty2, classes=f
05-17 09:36:38.811: INFO/KeyInputQueue(53):   X: unknown values
05-17 09:36:38.811: INFO/KeyInputQueue(53):   Y: unknown values
05-17 09:36:38.811: INFO/KeyInputQueue(53):   Pressure: unknown values
05-17 09:36:38.811: INFO/KeyInputQueue(53):   Size: unknown values
05-17 09:36:38.851: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:38.851: DEBUG/qemud(35): created client 0xc038 listening on fd 13
05-17 09:36:38.851: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'sensors'
05-17 09:36:38.851: DEBUG/qemud(35): client_fd_receive:    -> received channel id 5
05-17 09:36:38.871: DEBUG/qemud(35): client_registration: registration succeeded for client 5
05-17 09:36:38.881: DEBUG/qemud(35): fdhandler_event: disconnect on fd 13
05-17 09:36:38.881: DEBUG/SensorManager(53): found sensor: Goldfish 3-axis Accelerometer, handle=0
05-17 09:36:38.961: INFO/SystemServer(53): Registering null Bluetooth Service (emulator)
05-17 09:36:38.992: ERROR/System(53): Failure starting core service
05-17 09:36:38.992: ERROR/System(53): java.lang.SecurityException
05-17 09:36:38.992: ERROR/System(53):     at android.os.BinderProxy.transact(Native Method)
05-17 09:36:38.992: ERROR/System(53):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
05-17 09:36:38.992: ERROR/System(53):     at android.os.ServiceManager.addService(ServiceManager.java:72)
05-17 09:36:38.992: ERROR/System(53):     at com.android.server.ServerThread.run(SystemServer.java:162)
05-17 09:36:39.001: ERROR/AndroidRuntime(53): Crash logging skipped, no checkin service
05-17 09:36:39.001: INFO/SystemServer(53): Starting Status Bar Service.
05-17 09:36:39.261: INFO/SystemServer(53): Starting Clipboard Service.
05-17 09:36:39.261: INFO/SystemServer(53): Starting Input Method Service.
05-17 09:36:39.281: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060000
05-17 09:36:39.291: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060001
05-17 09:36:39.341: INFO/InputManagerService(53): Enabled input methods: com.android.inputmethod.pinyin/.PinyinIME:com.android.inputmethod.latin/.LatinIME:jp.co.omronsoft.openwnn/.OpenWnnJAJP
05-17 09:36:39.461: INFO/SystemServer(53): Starting NetStat Service.
05-17 09:36:39.461: INFO/SystemServer(53): Starting Connectivity Service.
05-17 09:36:39.551: INFO/WifiService(53): WifiService starting up with Wi-Fi disabled
05-17 09:36:39.583: INFO/SystemServer(53): Starting Accessibility Manager.
05-17 09:36:39.601: INFO/SystemServer(53): Starting Notification Manager.
05-17 09:36:39.641: INFO/SystemServer(53): Starting Mount Service.
05-17 09:36:39.641: INFO/SystemServer(53): Starting DeviceStorageMonitor service
05-17 09:36:39.712: INFO/SystemServer(53): Starting Location Manager.
05-17 09:36:39.722: DEBUG/libhardware_legacy(53): using QEMU GPS Hardware emulation
05-17 09:36:39.731: INFO/SystemServer(53): Starting Search Service.
05-17 09:36:39.731: INFO/SystemServer(53): Starting Checkin Service.
05-17 09:36:39.741: WARN/ActivityManager(53): Unable to start service Intent { cmp=com.google.android.server.checkin/.CheckinService }: not found
05-17 09:36:39.741: WARN/SystemServer(53): Using fallback Checkin Service.
05-17 09:36:39.741: INFO/SystemServer(53): Starting Wallpaper Service
05-17 09:36:39.741: DEBUG/WallpaperService(53): WallpaperService startup
05-17 09:36:39.752: INFO/SystemServer(53): Starting Audio Service
05-17 09:36:39.931: WARN/GpsLocationProvider(53): Could not open GPS configuration file /etc/gps.conf
05-17 09:36:40.081: DEBUG/dalvikvm(53): Trying to load lib /system/lib/libsoundpool.so 0x0
05-17 09:36:40.091: DEBUG/dalvikvm(53): Added shared lib /system/lib/libsoundpool.so 0x0
05-17 09:36:40.101: DEBUG/SoundPool(53): error loading /system/media/audio/ui/Effect_Tick.ogg
05-17 09:36:40.101: WARN/AudioService(53): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
05-17 09:36:40.101: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressStandard.ogg
05-17 09:36:40.101: WARN/AudioService(53): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
05-17 09:36:40.101: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressSpacebar.ogg
05-17 09:36:40.101: WARN/AudioService(53): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
05-17 09:36:40.101: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressDelete.ogg
05-17 09:36:40.101: WARN/AudioService(53): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
05-17 09:36:40.112: DEBUG/GpsLocationProvider(53): enable
05-17 09:36:40.121: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:40.121: DEBUG/qemud(35): created client 0xc038 listening on fd 13
05-17 09:36:40.121: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressReturn.ogg
05-17 09:36:40.121: WARN/AudioService(53): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
05-17 09:36:40.121: INFO/SystemServer(53): Starting HeadsetObserver
05-17 09:36:40.121: WARN/HeadsetObserver(53): This kernel does not have wired headset support
05-17 09:36:40.121: INFO/SystemServer(53): Starting AppWidget Service
05-17 09:36:40.181: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gps'
05-17 09:36:40.181: DEBUG/qemud(35): client_fd_receive:    -> received channel id 6
05-17 09:36:40.192: DEBUG/qemud(35): client_registration: registration succeeded for client 6
05-17 09:36:40.281: DEBUG/GpsLocationProvider(53): GpsEventThread starting
05-17 09:36:40.311: INFO/WindowManager(53): Menu key state: 0 safeMode=false
05-17 09:36:40.311: DEBUG/GpsLocationProvider(53): NetworkThread starting
05-17 09:36:40.341: DEBUG/GpsLocationProvider(53): NetworkThread wait for network
05-17 09:36:40.361: INFO/WindowManager(53): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3 orien=1 layout=18}
05-17 09:36:40.381: DEBUG/PowerManagerService(53): system ready!
05-17 09:36:40.392: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10
05-17 09:36:40.392: DEBUG/qemud(35): created client 0xc088 listening on fd 14
05-17 09:36:40.392: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'sensors'
05-17 09:36:40.392: DEBUG/qemud(35): client_fd_receive:    -> received channel id 7
05-17 09:36:40.411: DEBUG/qemud(35): client_registration: registration succeeded for client 7
05-17 09:36:40.431: INFO/ActivityManager(53): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.launcher/.Launcher }
05-17 09:36:40.511: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f03002f
05-17 09:36:40.541: WARN/ActivityManager(53): Unable to start service Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService }: not found
05-17 09:36:40.541: ERROR/LockPatternKeyguardView(53): Failed to bind to GLS while checking for account
05-17 09:36:40.771: DEBUG/dalvikvm(53): GC freed 3801 objects / 203672 bytes in 187ms
05-17 09:36:41.171: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f030000
05-17 09:36:41.181: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f030003
05-17 09:36:41.201: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f03000e
05-17 09:36:41.241: DEBUG/ActivityManager(53): Start running!
05-17 09:36:41.351: INFO/Zygote(53): Process: zygote socket opened
05-17 09:36:41.412: INFO/ActivityManager(53): Start proc com.android.phone for added application com.android.phone: pid=94 uid=1001 gids={3002, 3001, 3003}
05-17 09:36:41.612: INFO/ActivityManager(53): Start proc android.process.acore for activity com.android.launcher/.Launcher: pid=97 uid=10001 gids={3003, 1015}
05-17 09:36:41.831: WARN/ResourceType(53): No package identifier when getting value for resource number 0x00000000
05-17 09:36:41.831: WARN/StatusBar(53): Icon not found in : 0
05-17 09:36:43.051: INFO/WindowManager(53): onOrientationChanged, rotation changed to 0
05-17 09:36:43.051: DEBUG/StatusBar(53): updateResources
05-17 09:36:43.161: INFO/jdwp(53): received file descriptor 61 from ADB
05-17 09:36:43.221: INFO/jdwp(94): received file descriptor 13 from ADB
05-17 09:36:43.331: DEBUG/ddm-heap(53): Got feature list request
05-17 09:36:43.341: INFO/jdwp(97): received file descriptor 13 from ADB
05-17 09:36:43.351: DEBUG/ddm-heap(94): Got feature list request
05-17 09:36:43.651: DEBUG/ddm-heap(97): Got feature list request
05-17 09:36:45.311: INFO/ActivityThread(97): Publishing provider user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
05-17 09:36:45.532: INFO/ActivityThread(97): Publishing provider applications: com.android.providers.applications.ApplicationsProvider
05-17 09:36:45.601: INFO/ActivityThread(94): Publishing provider mms-sms: com.android.providers.telephony.MmsSmsProvider
05-17 09:36:45.911: INFO/ActivityThread(94): Publishing provider icc: com.android.phone.IccProvider
05-17 09:36:45.992: INFO/ActivityThread(94): Publishing provider mms: com.android.providers.telephony.MmsProvider
05-17 09:36:46.062: INFO/ActivityThread(94): Publishing provider telephony: com.android.providers.telephony.TelephonyProvider
05-17 09:36:46.141: INFO/ActivityThread(94): Publishing provider sms: com.android.providers.telephony.SmsProvider
05-17 09:36:46.271: INFO/ActivityThread(97): Publishing provider com.google.android.providers.enhancedgooglesearch: com.google.android.providers.enhancedgooglesearch.SuggestionProvider
05-17 09:36:46.962: ERROR/ActivityThread(97): Failed to find provider info for com.google.settings
05-17 09:36:46.971: ERROR/ActivityThread(97): Failed to find provider info for com.google.settings
05-17 09:36:47.182: INFO/ActivityThread(97): Publishing provider com.android.globalsearch.SuggestionProvider: com.android.globalsearch.SuggestionProvider
05-17 09:36:47.871: DEBUG/AndroidRuntime(119): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-17 09:36:47.882: DEBUG/AndroidRuntime(119): CheckJNI is ON
05-17 09:36:48.442: INFO/ActivityThread(97): Publishing provider com.android.globalsearch.stats: com.android.globalsearch.StatsProvider
05-17 09:36:48.442: INFO/ActivityThread(97): Publishing provider contacts;call_log: com.android.providers.contacts.ContactsProvider
05-17 09:36:48.911: DEBUG/AndroidRuntime(119): --- registering native functions ---
05-17 09:36:48.922: INFO/jdwp(119): received file descriptor 20 from ADB
05-17 09:36:48.992: WARN/ActivityManager(53): Unable to start service Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService }: not found
05-17 09:36:49.002: WARN/AccountMonitor(97): Couldn't connect to Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService } (Missing service?)
05-17 09:36:49.002: WARN/ActivityManager(53): Unable to start service Intent { act=com.android.ussd.IExtendedNetworkService }: not found
05-17 09:36:49.002: INFO/ActivityThread(97): Publishing provider com.android.launcher.settings: com.android.launcher.LauncherProvider
05-17 09:36:49.142: DEBUG/PhoneApp(94): Resetting audio state/mode: IDLE
05-17 09:36:49.431: DEBUG/AlarmManagerService(53): Kernel timezone updated to 0 minutes west of GMT
05-17 09:36:49.571: DEBUG/dalvikvm(97): GC freed 3669 objects / 267752 bytes in 566ms
05-17 09:36:50.762: ERROR/ApplicationContext(53): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
05-17 09:36:52.701: DEBUG/dalvikvm(53): GREF has increased to 201
05-17 09:36:53.362: DEBUG/dalvikvm(97): GC freed 1540 objects / 103040 bytes in 639ms
05-17 09:36:53.731: DEBUG/PackageParser(53): Scanning package: /data/app/vmdl36403.tmp
05-17 09:36:53.981: DEBUG/HomeLoaders(97): load applications
05-17 09:36:53.991: DEBUG/HomeLoaders(97): loading user items
05-17 09:36:54.002: DEBUG/HomeLoaders(97):   --> starting workspace loader
05-17 09:36:54.041: DEBUG/HomeLoaders(97):   ----> running workspace loader (1)
05-17 09:36:54.191: WARN/ActivityManager(53): Activity idle timeout for HistoryRecord{43873df0 com.android.launcher/.Launcher}
05-17 09:36:54.451: DEBUG/vold(27): Accepted connection from framework
05-17 09:36:54.451: DEBUG/vold(27): dispatch_cmd(send_ums_status):
05-17 09:36:54.451: DEBUG/vold(27): dispatch_cmd(mount_volume:/sdcard):
05-17 09:36:54.451: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard'
05-17 09:36:54.461: DEBUG/MountListener(53): handleEvent volume_unmounted:/sdcard
05-17 09:36:54.481: INFO/PackageParser(53): Impliciting adding android.permission.WRITE_EXTERNAL_STORAGE to old pkg manager.task
05-17 09:36:54.521: WARN/logwrapper(144): Unable to background process (No such file or directory)
05-17 09:36:54.593: INFO/PackageParser(53): Impliciting adding android.permission.READ_PHONE_STATE to old pkg manager.task
05-17 09:36:54.672: INFO//system/bin/fsck_msdos(27): ** /dev/block//vold/179:0
05-17 09:36:54.701: INFO//system/bin/fsck_msdos(27): ** Phase 1 - Read and Compare FATs
05-17 09:36:54.701: INFO//system/bin/fsck_msdos(27): Attempting to allocate 508 KB for FAT
05-17 09:36:55.301: INFO//system/bin/fsck_msdos(27): Attempting to allocate 508 KB for FAT
05-17 09:36:55.551: DEBUG/dalvikvm(53): GC freed 6302 objects / 299768 bytes in 729ms
05-17 09:36:56.041: INFO//system/bin/fsck_msdos(27): ** Phase 2 - Check Cluster Chains
05-17 09:36:56.131: DEBUG/HomeLoaders(97):   --> done loading workspace
05-17 09:36:56.161: INFO//system/bin/fsck_msdos(27): ** Phase 3 - Checking Directories
05-17 09:36:56.171: DEBUG/HomeLoaders(97):   ----> worskpace items=5
05-17 09:36:56.181: DEBUG/HomeLoaders(97):   ----> worskpace widgets=0
05-17 09:36:56.181: DEBUG/HomeLoaders(97):   ----> items cloned, ready to refresh UI
05-17 09:36:56.181: DEBUG/HomeLoaders(97):   ----> onDesktopItemsLoaded()
05-17 09:36:56.192: DEBUG/Launcher(97): ------> binding 5 items
05-17 09:36:56.192: DEBUG/Launcher(97): ------> binding 0 widgets
05-17 09:36:56.192: DEBUG/Launcher(97): ------> start binding items
05-17 09:36:56.201: DEBUG/HomeLoaders(97):   ----> loading applications from workspace loader
05-17 09:36:56.211: INFO//system/bin/fsck_msdos(27): ** Phase 4 - Checking for Lost Files
05-17 09:36:56.211: DEBUG/HomeLoaders(97):   --> starting applications loader unlocked
05-17 09:36:56.232: DEBUG/HomeLoaders(97):   --> starting applications loader
05-17 09:36:56.241: INFO//system/bin/fsck_msdos(27): 2 files, 64503 free (129006 clusters)
05-17 09:36:56.251: DEBUG/HomeLoaders(97):   ----> running applications loader (1)
05-17 09:36:56.371: INFO/logwrapper(27): /system/bin/fsck_msdos terminated by exit(0)
05-17 09:36:56.371: DEBUG/vold(27): Filesystem check completed OK
05-17 09:36:56.392: INFO/vold(27): Sucessfully mounted vfat filesystem 179:0 on /sdcard (safe-mode on)
05-17 09:36:58.182: DEBUG/dalvikvm(94): GC freed 2710 objects / 190584 bytes in 187ms
05-17 09:36:59.051: DEBUG/HomeLoaders(97):   ----> cleared application list
05-17 09:36:59.491: INFO/PackageManager(53): Removing non-system package:manager.task
05-17 09:36:59.511: DEBUG/PackageManager(53): Removing package manager.task
05-17 09:36:59.511: DEBUG/PackageManager(53):   Activities: manager.task.TaskManager
05-17 09:36:59.601: INFO/Resources(94): Loaded time zone names for en_US in 9919ms.
05-17 09:36:59.611: DEBUG/SystemClock(94): Setting time of day to sec=1274089008
05-17 09:36:48.284: WARN/SystemClock(94): Unable to set rtc to 1274089008: Invalid argument
05-17 09:36:48.745: DEBUG/PackageManager(53): Scanning package manager.task
05-17 09:36:48.754: INFO/PackageManager(53): /data/app/vmdl36403.tmp changed; unpacking
05-17 09:36:48.774: DEBUG/installd(32): DexInv: --- BEGIN '/data/app/vmdl36403.tmp' ---
05-17 09:36:49.304: DEBUG/dalvikvm(146): DexOpt: load 65ms, verify 172ms, opt 2ms
05-17 09:36:49.365: DEBUG/installd(32): DexInv: --- END '/data/app/vmdl36403.tmp' (success) ---
05-17 09:36:49.374: DEBUG/PackageManager(53):   Activities: manager.task.TaskManager
05-17 09:36:49.584: INFO/installd(32): move /data/dalvik-cache/data@app@vmdl36403.tmp@classes.dex -> /data/dalvik-cache/data@app@manager.task.apk@classes.dex
05-17 09:36:49.614: DEBUG/PackageManager(53): New package installed in /data/app/manager.task.apk
05-17 09:36:49.814: DEBUG/AndroidRuntime(119): Shutting down VM
05-17 09:36:49.814: DEBUG/dalvikvm(119): DestroyJavaVM waiting for non-daemon threads to exit
05-17 09:36:49.834: DEBUG/dalvikvm(119): DestroyJavaVM shutting VM down
05-17 09:36:49.834: DEBUG/dalvikvm(119): HeapWorker thread shutting down
05-17 09:36:49.834: DEBUG/dalvikvm(119): HeapWorker thread has shut down
05-17 09:36:49.834: DEBUG/jdwp(119): JDWP shutting down net...
05-17 09:36:49.834: DEBUG/jdwp(119): Got wake-up signal, bailing out of select
05-17 09:36:49.834: INFO/dalvikvm(119): Debugger has detached; object registry had 1 entries
05-17 09:36:49.854: DEBUG/dalvikvm(119): VM cleaning up
05-17 09:36:49.904: DEBUG/dalvikvm(119): LinearAlloc 0x0 used 664084 of 4194304 (15%)
05-17 09:36:50.374: DEBUG/MountListener(53): handleEvent ums_disabled
05-17 09:36:50.394: INFO/SurfaceFlinger(53): Boot is finished (28376 ms)
05-17 09:36:50.394: DEBUG/MountListener(53): handleEvent ums_disconnected
05-17 09:36:50.394: DEBUG/MountListener(53): handleEvent volume_checking:/sdcard
05-17 09:36:50.414: DEBUG/ActivityManager(53): Uninstalling process manager.task
05-17 09:36:50.424: DEBUG/ActivityManager(53): Uninstalling process manager.task
05-17 09:36:50.884: DEBUG/dalvikvm(53): GC freed 5613 objects / 373560 bytes in 445ms
05-17 09:36:50.944: INFO/ActivityManager(53): Displayed activity com.android.launcher/.Launcher: 21661 ms (total 21661 ms)
05-17 09:36:50.964: INFO/WindowManager(53): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3 orien=1 layout=18}
05-17 09:36:51.264: DEBUG/dalvikvm(53): GC freed 1008 objects / 46680 bytes in 299ms
05-17 09:36:51.724: DEBUG/AndroidRuntime(153): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-17 09:36:51.724: DEBUG/AndroidRuntime(153): CheckJNI is ON
05-17 09:36:51.844: DEBUG/dalvikvm(97): GC freed 2966 objects / 161696 bytes in 493ms
05-17 09:36:51.844: DEBUG/HomeLoaders(97): application intent received: android.intent.action.PACKAGE_REMOVED, replacing=true
05-17 09:36:51.874: DEBUG/HomeLoaders(97):   --> package:manager.task
05-17 09:36:51.874: DEBUG/HomeLoaders(97): application intent received: android.intent.action.PACKAGE_ADDED, replacing=true
05-17 09:36:51.884: DEBUG/HomeLoaders(97):   --> package:manager.task
05-17 09:36:51.884: DEBUG/HomeLoaders(97):   --> update package manager.task
05-17 09:36:51.944: DEBUG/MountListener(53): handleEvent volume_mounted:/sdcard
05-17 09:36:52.014: INFO/ActivityManager(53): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=155 uid=10005 gids={1006, 1015, 2001, 3003}
05-17 09:36:52.044: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:52.154: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:52.854: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:53.874: ERROR/ActivityThread(94): Failed to find provider info for android.server.checkin
05-17 09:36:53.874: WARN/Checkin(94): Can't update stat PHONE_GSM_REGISTERED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
05-17 09:36:54.004: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:54.044: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:54.074: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4389ea80 155:android.process.media/10005}
05-17 09:36:54.364: DEBUG/AndroidRuntime(153): --- registering native functions ---
05-17 09:36:54.544: DEBUG/dalvikvm(53): GC freed 5081 objects / 494080 bytes in 433ms
05-17 09:36:54.644: DEBUG/HomeLoaders(97): aborting loaders
05-17 09:36:54.924: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060000
05-17 09:36:54.934: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060001
05-17 09:36:55.284: INFO/ActivityThread(155): Publishing provider downloads: com.android.providers.downloads.DownloadProvider
05-17 09:36:55.684: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060000
05-17 09:36:55.694: WARN/ResourceType(53): No package identifier when getting value for resource number 0x7f060001
05-17 09:36:55.774: INFO/ActivityThread(155): Publishing provider drm: com.android.providers.drm.DrmProvider
05-17 09:36:55.964: DEBUG/GpsLocationProvider(53): state: DISCONNECTED apnName: null reason: radioTurnedOff
05-17 09:36:55.964: DEBUG/GpsLocationProvider(53): state: DISCONNECTED apnName: null reason: gprsDetached
05-17 09:36:56.034: INFO/ActivityThread(155): Publishing provider media: com.android.providers.media.MediaProvider
05-17 09:36:56.224: DEBUG/GpsLocationProvider(53): state: DISCONNECTED apnName: null reason: null
05-17 09:36:56.294: DEBUG/StatusBar(53): updateResources
05-17 09:36:56.574: VERBOSE/MediaProvider(155): Attached volume: internal
05-17 09:36:56.584: DEBUG/HomeLoaders(97): load applications
05-17 09:36:56.604: DEBUG/HomeLoaders(97): loading user items
05-17 09:36:56.604: DEBUG/HomeLoaders(97):   --> starting workspace loader
05-17 09:36:56.634: DEBUG/HomeLoaders(97):   ----> running workspace loader (2)
05-17 09:36:56.684: VERBOSE/MediaProvider(155): /sdcard volume ID: 166662925
05-17 09:36:57.214: DEBUG/TelephonyProvider(94): Setting numeric '310260' to be the current operator
05-17 09:36:57.474: ERROR/ActivityThread(94): Failed to find provider info for android.server.checkin
05-17 09:36:57.484: WARN/Checkin(94): Can't update stat PHONE_GPRS_ATTEMPTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
05-17 09:36:57.544: DEBUG/GpsLocationProvider(53): state: CONNECTING apnName: epc.tmobile.com reason: simLoaded
05-17 09:36:57.704: ERROR/ActivityThread(94): Failed to find provider info for android.server.checkin
05-17 09:36:57.704: WARN/Checkin(94): Can't update stat PHONE_GPRS_CONNECTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
05-17 09:36:57.734: DEBUG/MobileDataStateTracker(53): CONNECTED event did not supply interface name.
05-17 09:36:57.743: DEBUG/MobileDataStateTracker(53): DNS server addresses are not known.
05-17 09:36:57.754: DEBUG/GpsLocationProvider(53): state: CONNECTED apnName: epc.tmobile.com reason: simLoaded
05-17 09:36:58.054: VERBOSE/MediaProvider(155): Attached volume: external
05-17 09:36:58.104: DEBUG/GpsLocationProvider(53): updateNetworkState available
05-17 09:36:58.104: DEBUG/GpsLocationProvider(53): NetworkThread wait for 9223372036854775807ms
05-17 09:36:58.434: DEBUG/HomeLoaders(97):   --> done loading workspace
05-17 09:36:58.464: DEBUG/HomeLoaders(97):   ----> worskpace items=5
05-17 09:36:58.474: DEBUG/HomeLoaders(97):   ----> worskpace widgets=0
05-17 09:36:58.484: DEBUG/HomeLoaders(97):   ----> items cloned, ready to refresh UI
05-17 09:36:58.484: DEBUG/HomeLoaders(97):   ----> loading applications from workspace loader
05-17 09:36:58.484: DEBUG/HomeLoaders(97):   --> starting applications loader unlocked
05-17 09:36:58.494: DEBUG/HomeLoaders(97):   --> starting applications loader
05-17 09:36:58.544: DEBUG/HomeLoaders(97):   ----> running applications loader (2)
05-17 09:36:58.593: DEBUG/HomeLoaders(97):   ----> onDesktopItemsLoaded()
05-17 09:36:58.593: DEBUG/Launcher(97): ------> binding 5 items
05-17 09:36:58.604: DEBUG/Launcher(97): ------> binding 0 widgets
05-17 09:36:58.604: DEBUG/Launcher(97): ------> start binding items
05-17 09:36:59.514: DEBUG/MediaPlayer(53): Couldn't open file on client side, trying server side
05-17 09:36:59.824: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:36:59.983: INFO/ActivityManager(53): Start proc com.android.alarmclock for broadcast com.android.alarmclock/.AlarmInitReceiver: pid=174 uid=10017 gids={}
05-17 09:36:59.983: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:37:00.004: INFO/ActivityManager(53): processNextBroadcast: waiting for ProcessRecord{4388e430 174:com.android.alarmclock/10017}
05-17 09:37:00.094: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:37:00.213: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:37:00.353: DEBUG/MediaScannerService(155): start scanning volume internal
05-17 09:37:00.353: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:37:00.513: DEBUG/ActivityManager(53): checkComponentPermission() adjusting {pid,uid} to {31,1013}
05-17 09:37:00.664: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
05-17 09:37:00.693: ERROR/MediaPlayer(53): Unable to to create media player
05-17 09:37:00.984: DEBUG/dalvikvm(53): GC freed 5401 objects / 313024 bytes in 306ms
05-17 09:37:00.994: WARN/NotificationService(53): error loading sound for content://settings/system/notification_sound
05-17 09:37:00.994: WARN/NotificationService(53): java.io.IOException: setDataSource failed.: status=0x80000000
05-17 09:37:00.994: WARN/NotificationService(53):     at android.media.MediaPlayer.setDataSource(Native Method)
05-17 09:37:00.994: WARN/NotificationService(53):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:621)
05-17 09:37:00.994: WARN/NotificationService(53):     at android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:76)
05-17 09:37:01.013: WARN/NotificationService(53): STOP command without a player
05-17 09:37:01.384: INFO/ActivityThread(174): Publishing provider com.android.alarmclock: com.android.alarmclock.AlarmProvider
05-17 09:37:01.454: INFO/ActivityManager(53): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=manager.task/.TaskManager }
05-17 09:37:01.593: DEBUG/AndroidRuntime(153): Shutting down VM
05-17 09:37:01.593: DEBUG/dalvikvm(153): DestroyJavaVM waiting for non-daemon threads to exit
05-17 09:37:01.614: INFO/ActivityManager(53): Start proc manager.task for activity manager.task/.TaskManager: pid=184 uid=10024 gids={1015}
05-17 09:37:01.634: DEBUG/dalvikvm(153): DestroyJavaVM shutting VM down
05-17 09:37:01.634: DEBUG/dalvikvm(153): HeapWorker thread shutting down
05-17 09:37:01.664: DEBUG/dalvikvm(153): HeapWorker thread has shut down
05-17 09:37:01.674: DEBUG/jdwp(153): JDWP shutting down net...
05-17 09:37:01.704: DEBUG/dalvikvm(153): VM cleaning up
05-17 09:37:01.864: DEBUG/dalvikvm(153): LinearAlloc 0x0 used 674660 of 4194304 (16%)
05-17 09:37:02.113: INFO/jdwp(155): received file descriptor 32 from ADB
05-17 09:37:02.194: INFO/jdwp(174): received file descriptor 25 from ADB
05-17 09:37:02.194: DEBUG/ddm-heap(155): Got feature list request
05-17 09:37:02.324: DEBUG/ddm-heap(174): Got feature list request
05-17 09:37:02.364: INFO/jdwp(184): received file descriptor 20 from ADB
05-17 09:37:02.414: ERROR/jdwp(184): Failed sending req to debugger: Broken pi** (-1 of 27)
05-17 09:37:02.434: ERROR/jdwp(184): Failed sending req to debugger: Broken pi** (-1 of 27)
05-17 09:37:02.474: ERROR/jdwp(184): Failed sending reply to debugger: Broken pi**
05-17 09:37:02.485: INFO/dalvikvm(184): Debugger has detached; object registry had 2 entries
05-17 09:37:03.144: INFO/ActivityManager(53): Start proc com.android.mms for broadcast com.android.mms/.transaction.MmsSystemEventReceiver: pid=194 uid=10021 gids={3003, 1015}
05-17 09:37:03.384: INFO/jdwp(184): received file descriptor 24 from ADB
05-17 09:37:03.444: DEBUG/ddm-heap(184): Got feature list request
05-17 09:37:03.664: DEBUG/HomeLoaders(97):   ----> cleared application list
05-17 09:37:03.874: INFO/jdwp(194): received file descriptor 20 from ADB
05-17 09:37:04.034: DEBUG/ddm-heap(194): Got feature list request
05-17 09:37:04.254: DEBUG/AndroidRuntime(184): Shutting down VM
05-17 09:37:04.285: WARN/dalvikvm(184): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
05-17 09:37:04.285: ERROR/AndroidRuntime(184): Uncaught handler: thread main exiting due to uncaught exception
05-17 09:37:04.304: ERROR/AndroidRuntime(184): java.lang.RuntimeException: Unable to start activity ComponentInfo{manager.task/manager.task.TaskManager}: java.lang.NullPointerException
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread.access$2100(ActivityThread.java:116)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.os.Looper.loop(Looper.java:123)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread.main(ActivityThread.java:4203)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at java.lang.reflect.Method.invokeNative(Native Method)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at java.lang.reflect.Method.invoke(Method.java:521)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at dalvik.system.NativeStart.main(Native Method)
05-17 09:37:04.304: ERROR/AndroidRuntime(184): Caused by: java.lang.NullPointerException
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at manager.task.TaskManager.onCreate(TaskManager.java:40)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     ... 11 more
05-17 09:37:04.364: INFO/Process(53): Sending signal. PID: 184 SIG: 3
05-17 09:37:04.364: INFO/dalvikvm(184): threadid=7: reacting to signal 3
05-17 09:37:04.684: INFO/ActivityManager(53): Stopping service: com.android.providers.downloads/.DownloadService
05-17 09:37:04.704: INFO/dalvikvm(184): Wrote stack trace to '/data/anr/traces.txt'
05-17 09:37:05.024: INFO/ARMAssembler(53): generated scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at [0x2857e0:0x285884] in 18936488 ns
05-17 09:37:05.364: DEBUG/MediaScanner(155): opendir /system/media/ failed, errno: 2
05-17 09:37:05.554: DEBUG/MediaScanner(155):  prescan time: 3545ms
05-17 09:37:05.654: DEBUG/MediaScanner(155):     scan time: 906ms
05-17 09:37:05.714: DEBUG/MediaScanner(155): postscan time: 85ms
05-17 09:37:05.744: DEBUG/MediaScanner(155):    total time: 4536ms
05-17 09:37:05.834: DEBUG/MediaScannerService(155): done scanning volume internal
05-17 09:37:05.887: INFO/ActivityManager(53): Stopping service: com.android.providers.media/.MediaScannerService
05-17 09:37:06.144: DEBUG/dalvikvm(97): GC freed 4433 objects / 239880 bytes in 534ms
05-17 09:37:07.074: INFO/ActivityManager(53): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=206 uid=10003 gids={}
05-17 09:37:07.254: INFO/jdwp(206): received file descriptor 20 from ADB
05-17 09:37:07.404: DEBUG/ddm-heap(206): Got feature list request
05-17 09:37:07.814: DEBUG/MediaScannerService(155): start scanning volume external
05-17 09:37:09.004: INFO/ActivityManager(53): Stopping service: com.android.mms/.transaction.TransactionService
05-17 09:37:09.294: INFO/ActivityManager(53): Stopping service: com.android.providers.downloads/.DownloadService
05-17 09:37:09.344: VERBOSE/MediaScanner(155): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@437a6c30
05-17 09:37:09.404: VERBOSE/MediaScanner(155): /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@437a6c30
05-17 09:37:09.454: DEBUG/MediaScanner(155):  prescan time: 1125ms
05-17 09:37:09.454: DEBUG/MediaScanner(155):     scan time: 56ms
05-17 09:37:09.454: DEBUG/MediaScanner(155): postscan time: 196ms
05-17 09:37:09.454: DEBUG/MediaScanner(155):    total time: 1377ms
05-17 09:37:09.494: DEBUG/MediaScannerService(155): done scanning volume external
05-17 09:37:09.523: INFO/ActivityManager(53): Stopping service: com.android.providers.media/.MediaScannerService
05-17 09:37:09.604: INFO/ActivityManager(53): Stopping service: com.android.mms/.transaction.SmsReceiverService
05-17 09:37:11.525: WARN/ActivityManager(53): Launch timeout has expired, giving up wake lock!
05-17 09:37:12.903: WARN/ActivityManager(53): Activity idle timeout for HistoryRecord{437e4910 manager.task/.TaskManager}

J'espere que c'est bien ce dont vous parliez ^^

Share this post


Link to post
Share on other sites

oui, et comme tu vois, cet outil, aucun dev ne peut s'en passer: on voit directement qu'à la ligne 40 de ton programme il y a quelquechose qui est 'null':

05-17 09:37:04.304: ERROR/AndroidRuntime(184): Caused by: java.lang.NullPointerException
05-17 09:37:04.304: ERROR/AndroidRuntime(184):     at manager.task.TaskManager.onCreate(TaskManager.java:40)

Il semblerait donc qu'apres avec écrit ceci:

activityManager = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);

activityManager soit toujours null... Bizarre car ca fonctionne super bien chez moi!

Share this post


Link to post
Share on other sites

Cela me parait bizarre étant donné que la ligne 40 de mon programme est celle-ci

okButton.setOnClickListener(new OnClickListener() {

et que cela n'a pas de rapport direct avec la liste

Share this post


Link to post
Share on other sites

Est-ce que ce ne serait pas une histoire d'autorisation ? Parce qu'en effet après avoir cherché sur le net, tout le monde fait la chose de cette manière et cela fonctionne chez eux.

Share this post


Link to post
Share on other sites

Comme quoi tu comprends l'utilité du logCat!!

C'est donc la ligne

okButton = (Button) findViewById(R.id.oK);

qui renvoie un null!

As tu bien mis ton layout par un setContenView()?

Autrement dit, est ce que tu vois bien ton layout avec tes boutons si tu mets les lignes "setOnClickListener" en commentaire?

Si oui, vérifie les noms!

:lol:

Share this post


Link to post
Share on other sites

Es-tu sûr de l'initialisation du okButton ? As-tu bien initialisé ton layout avant de faire cette recherche ?

Share this post


Link to post
Share on other sites

Si je mets les lignes setOnClickListener, mon activité ne plante pas, mais j'ai fait ceci :

public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);

       ActivityManager actvityManager = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE);
       procInfos = actvityManager.getRunningAppProcesses();
       try{

       allTasks = activityManager.getRunningTasks(30);
       }catch (Exception e) {
           TextView ex = new TextView(TaskManager.this);
           ex.setText(e.toString());
           setContentView(ex);
       }
       okButton = (Button) findViewById(R.id.oK);
       quitButton = (Button) findViewById(R.id.quitter);

      /* okButton.setOnClickListener(new OnClickListener() {
           public void onClick(View v) {
               Intent i = new Intent(TaskManager.this, ProcessList.class);
               startActivity(i);
           }
       });

      quitButton.setOnClickListener(new OnClickListener() {
           @Override
           public void onClick(View v) {
               onDestroy();
               int id = getTaskId();
               System.out.println(id);
               finish();
           }
       });*/

   }

Et en fait il y quand même une erreur au final car l'ecran affiche java.Lang.NullPointerException.

Sinon j'ai bien le bouton ok dans le layout :

       android:id="@+id/oK"
       android:layout_width="100dip"
       android:layout_height="wrap_content"
       android:layout_below="@id/text"
       android:layout_gravity="center"
       android:text="Enter"/>

Share this post


Link to post
Share on other sites

Plutôt qu'afficher ton exception dans une TextView, fais la figurer dans le LogCat avec l'instruction suivante :

Log.e(this.getClass().getSimpleName(), "Erreur :", e);

Tu auras alors dans LogCat le détail de la pile d'exécution au moment de la survenue de l'exception, ce qui donner plus d'infos sur le pb.

Par ailleurs as-tu bien déclaré la permission GET_TASKS http://developer.android.com/reference/android/Manifest.permission.html#GET_TASKS qui est indiquée comme nécessaire dans la javadoc de la méthode getRunningAppProcesses() http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29 ?

Share this post


Link to post
Share on other sites

Dans le manifeste

<?xml version="1.0" encoding="utf-8"?>
     package="manager.task"
     android:versionCode="1"
     android:versionName="1.0">
    [b] [/b]

                 android:label="@string/app_name">











Et sinon pour l'histoire des bouttons je fais comment pour les setOnclickListener...C'est que j'aimerais bien les utiliser tant qu'à faire mes bouttons ^^

Share this post


Link to post
Share on other sites

05-17 10:58:31.333: ERROR/MemoryHeapBase(53): error opening /dev/pmem: No such file or directory
05-17 10:58:31.425: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 10:58:31.425: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 10:58:31.433: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 10:58:31.433: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 10:58:31.433: WARN/HAL(53): load: module=/system/lib/hw/overlay.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.goldfish.so' not found
05-17 10:58:31.433: WARN/HAL(53): load: module=/system/lib/hw/overlay.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.default.so' not found
05-17 10:58:36.404: WARN/HAL(53): load: module=/system/lib/hw/lights.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.goldfish.so' not found
05-17 10:58:36.404: WARN/HAL(53): load: module=/system/lib/hw/lights.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.default.so' not found
05-17 10:58:38.113: DEBUG/SoundPool(53): error loading /system/media/audio/ui/Effect_Tick.ogg
05-17 10:58:38.123: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressStandard.ogg
05-17 10:58:38.123: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressSpacebar.ogg
05-17 10:58:38.123: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressDelete.ogg
05-17 10:58:38.134: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressReturn.ogg

Mon erreur serait un problème d'ouverture du repertoire /dev/pmem ?

Et pour l'histoire des pommes et des poires :

A gauche si je mets une ArrayList j'ai un problème de mismatch quand je fais

List allTasks = activityManager.getRunningTasks(30);

et quand je mets List à droite cela ne fonctionne pas (Cannot instanciate the type List)

Edited by marcus321

Share this post


Link to post
Share on other sites

Derniere tentative d'explication de ma part.. Apres je vois plus:

List allTasks = activityManager.getRunningTasks(30);

dans ton bouton

pour le reste, ton code est exactement le meme que dans mon appli donc je vois pas ce qui peut planter!

et quand tu dis au post 13:

Si je mets les lignes setOnClickListener, mon activité ne plante pas.

Est ce que tu vois bien ton layout aparaitre avec tes boutons?

J'ai du mal à comprendre si le nullpointerexce^ption vient du bouton ou du running task.

Share this post


Link to post
Share on other sites

Et bien j'avais continué et tenté d'afficher que les proccessus, je faisais un TextView dans le setOncliclListener (enfin dans la méthode onCLick), et j'avais mis

List allTasks = activityManager.getRunningTasks(30);

en commentaire, et tout fonctionnait...

Maintenant j'ai mis

List allTasks = activityManager.getRunningTasks(30);

dans la méthode Onclick

avec un try/catch et l'exception c'est un java.lang.NullPointerException

et le logcat est le suivant

05-17 12:47:01.699: ERROR/MemoryHeapBase(53): error opening /dev/pmem: No such file or directory
05-17 12:47:01.759: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 12:47:01.759: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 12:47:01.769: WARN/HAL(53): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
05-17 12:47:01.769: WARN/HAL(53): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
05-17 12:47:01.769: WARN/HAL(53): load: module=/system/lib/hw/overlay.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.goldfish.so' not found
05-17 12:47:01.769: WARN/HAL(53): load: module=/system/lib/hw/overlay.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.default.so' not found
05-17 12:47:05.909: WARN/HAL(53): load: module=/system/lib/hw/lights.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.goldfish.so' not found
05-17 12:47:05.909: WARN/HAL(53): load: module=/system/lib/hw/lights.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.default.so' not found
05-17 12:47:07.290: DEBUG/SoundPool(53): error loading /system/media/audio/ui/Effect_Tick.ogg
05-17 12:47:07.290: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressStandard.ogg
05-17 12:47:07.290: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressSpacebar.ogg
05-17 12:47:07.300: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressDelete.ogg
05-17 12:47:07.300: DEBUG/SoundPool(53): error loading /system/media/audio/ui/KeypressReturn.ogg
05-17 12:47:23.621: WARN/NotificationService(53): error loading sound for content://settings/system/notification_sound

Et sinon dans ma console j'ai 2 warnings

[2010-05-17 14:47:10 - Task Manager] WARNING: Application does not specify an API level requirement!
[2010-05-17 14:47:10 - Task Manager] WARNING: Unknown device API version!

Edited by marcus321

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.






×
×
  • Create New...