IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Android Discussion :

Modifier le contenu d'un fichier XML


Sujet :

Android

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut Modifier le contenu d'un fichier XML
    Bonjour,
    j'ai écrit une application. J'aimerais sauvegarder l'état de cette application. Pour cela, je sais qu'il y a les méthodes de SharedPreferences etc... que je ne maîtrise pas.
    En fait au cours de mon application, le texte de certains boutons est susceptible de changer sous certaines conditions. J'utilise donc des
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    bouton.setText("condition réalisée donc nouveau texte");
    J'aimerais sauvegarder le nouveau texte de ces boutons quand l'utilisateur réouvre l'application. Est-il possible de mettre à jour le fichier xml correspondant en changeant les text des button à partir du code java ? Comme ça je n'aurai pas besoin d'utiliser les SharedPreferences...
    Si ce n'est pas le cas, quelle est la meilleure façon d'enregistrer les nouveaux text des button ?

  2. #2
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    Tu voudrais modifier un fichier xml à partir d'un programme ... et tu trouve que les SharedPréférences c'est compliqué ^^

    C'est très simple à utiliser :
    Pour ajouter une variable:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    	    SharedPreferences.Editor editor = preferences.edit();
    	 	editor.putString("montexte", valeur);
    	 	editor.commit();
    et pour la récupérer :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    chaine = preferences.getString("montexte", "");
    et ensuite tu n'as plus qu'à afficher ta variable :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    bouton.setText(chaine);
    Tu peux aussi stocker ta valeur dans un fichier mais ce sera plus compliqué.
    Si tu évite toujours certaines fonctions sous prétexte que tu ne connais pas tu ne pourras jamais les maîtriser et tu n'avanceras pas.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    j'ai obtenu une "fermeture soudaine de l'application" à partir des bouts de code ci-dessous:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
     
    import etc...;
    public class Principale extends Activity {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    SharedPreferences.Editor editor = preferences.edit();
    Button bouton_1;
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_principale);
            bouton_1=(Button)findViewById(R.id.bouton1);
            bouton_1.setOnClickListener(new OnClickListener(){
                public void onClick (View view){
                        ...
                }
            })
    public void onActivityResult (int requestCode, int resultCode, Intent data){
     
        	editor.putString("montexte", "resolu");
         	editor.commit();
     
            switch (requestCode){
            case (1):
            if (resultCode==RESULT_OK){
            	String chaine = preferences.getString("montexte", "");
            	bouton_1.setText(chaine);
            }
           }
    }
    Je commence à capter les SharedPreferences mais je ne vois pas où est l'erreur...

  4. #4
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    regarde dans ton logcat

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    Voilà le logcat
    (étant débutant je ne vois pas trop comment dénicher l'erreur mais je continue de chercher)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    12-23 19:03:47.280: I/DEBUG(27): debuggerd: May  6 2010 09:07:51
    12-23 19:03:49.780: I/vold(26): Android Volume Daemon version 2.0
    12-23 19:03:49.780: E/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
    12-23 19:03:49.780: E/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
    12-23 19:03:49.780: E/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
    12-23 19:03:49.780: E/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)functions ---
    12-23 19:03:50.979: I/SamplingProfilerIntegration(29): Profiler is disabled.
    12-23 19:03:51.019: I/Zygote(29): Preloading classes...
    12-23 19:03:58.999: I/Zygote(29): Preloading resources...
    12-23 19:03:59.039: D/dalvikvm(29): GC freed 5 objects / 224 bytes in 30ms
    12-23 19:03:59.059: W/Zygote(29): Preloaded drawable resource #0x1080093 (res/drawable-hdpi/sym_def_app_icon.png) that varies with configuration!!
    12-23 19:03:59.059: W/Zygote(29): Preloaded drawable resource #0x1080002 (res/drawable-hdpi/arrow_down_float.png) that varies with configuration!!
    12-23 19:03:59.129: W/Zygote(29): Preloaded drawable resource #0x10800b4 (res/drawable/btn_check.xml) that varies with configuration!!
    12-23 19:03:59.139: W/Zygote(29): Preloaded drawable resource #0x10800b7 (res/drawable-hdpi/btn_check_label_background.9.png) that varies with configuration!!
    12-23 19:03:59.139: W/Zygote(29): Preloaded drawable resource #0x10800b8 (res/drawable-hdpi/btn_check_off.png) that varies with configuration!!
    12-23 19:03:59.139: W/Zygote(29): Preloaded drawable resource #0x10800bd (res/drawable-hdpi/btn_check_on.png) that varies with configuration!!
    12-23 19:03:59.169: W/Zygote(29): Preloaded drawable resource #0x1080004 (res/drawable/btn_default.xml) that varies with configuration!!
    12-23 19:03:59.199: W/Zygote(29): Preloaded drawable resource #0x1080005 (res/drawable/btn_default_small.xml) that varies with configuration!!
    12-23 19:03:59.239: D/dalvikvm(29): GC freed 265 objects / 14552 bytes in 32ms
    12-23 19:03:59.270: W/Zygote(29): Preloaded drawable resource #0x1080006 (res/drawable/btn_dropdown.xml) that varies with configuration!!
    12-23 19:03:59.319: W/Zygote(29): Preloaded drawable resource #0x1080008 (res/drawable/btn_plus.xml) that varies with configuration!!
    12-23 19:03:59.369: D/dalvikvm(29): GC freed 92 objects / 5032 bytes in 34ms
    12-23 19:03:59.409: W/Zygote(29): Preloaded drawable resource #0x1080007 (res/drawable/btn_minus.xml) that varies with configuration!!
    12-23 19:03:59.459: W/Zygote(29): Preloaded drawable resource #0x1080009 (res/drawable/btn_radio.xml) that varies with configuration!!
    12-23 19:03:59.489: D/dalvikvm(29): GC freed 100 objects / 5064 bytes in 34ms
    12-23 19:03:59.549: W/Zygote(29): Preloaded drawable resource #0x108000a (res/drawable/btn_star.xml) that varies with configuration!!
    12-23 19:03:59.599: D/dalvikvm(29): GC freed 281 objects / 12760 bytes in 34ms
    12-23 19:03:59.599: W/Zygote(29): Preloaded drawable resource #0x1080125 (res/drawable/btn_toggle.xml) that varies with configuration!!
    12-23 19:03:59.599: W/Zygote(29): Preloaded drawable resource #0x1080187 (res/drawable-hdpi/ic_emergency.png) that varies with configuration!!
    12-23 19:03:59.609: W/Zygote(29): Preloaded drawable resource #0x1080012 (res/drawable-hdpi/divider_horizontal_bright.9.png) that varies with configuration!!
    12-23 19:03:59.609: W/Zygote(29): Preloaded drawable resource #0x1080014 (res/drawable-hdpi/divider_horizontal_dark.9.png) that varies with configuration!!
    12-23 19:03:59.639: W/Zygote(29): Preloaded drawable resource #0x1080016 (res/drawable/edit_text.xml) that varies with configuration!!
    12-23 19:03:59.652: W/Zygote(29): Preloaded drawable resource #0x1080161 (res/drawable/expander_group.xml) that varies with configuration!!
    12-23 19:03:59.689: W/Zygote(29): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
    12-23 19:03:59.699: W/Zygote(29): Preloaded drawable resource #0x1080217 (res/drawable-hdpi/menu_background.9.png) that varies with configuration!!
    12-23 19:03:59.699: W/Zygote(29): Preloaded drawable resource #0x1080218 (res/drawable-hdpi/menu_background_fill_parent_width.9.png) that varies with configuration!!
    12-23 19:03:59.729: W/Zygote(29): Preloaded drawable resource #0x1080219 (res/drawable/menu_selector.xml) that varies with configuration!!
    12-23 19:03:59.742: W/Zygote(29): Preloaded drawable resource #0x1080224 (res/drawable-hdpi/panel_background.9.png) that varies with configuration!!
    12-23 19:03:59.742: W/Zygote(29): Preloaded drawable resource #0x108022e (res/drawable-hdpi/popup_bottom_bright.9.png) that varies with configuration!!
    12-23 19:03:59.749: W/Zygote(29): Preloaded drawable resource #0x108022f (res/drawable-hdpi/popup_bottom_dark.9.png) that varies with configuration!!
    12-23 19:03:59.760: W/Zygote(29): Preloaded drawable resource #0x1080230 (res/drawable-hdpi/popup_bottom_medium.9.png) that varies with configuration!!
    12-23 19:03:59.760: W/Zygote(29): Preloaded drawable resource #0x1080231 (res/drawable-hdpi/popup_center_bright.9.png) that varies with configuration!!
    12-23 19:03:59.799: D/dalvikvm(29): GC freed 323 objects / 21840 bytes in 36ms
    12-23 19:03:59.809: W/Zygote(29): Preloaded drawable resource #0x1080232 (res/drawable-hdpi/popup_center_dark.9.png) that varies with configuration!!
    12-23 19:03:59.819: W/Zygote(29): Preloaded drawable resource #0x1080235 (res/drawable-hdpi/popup_full_dark.9.png) that varies with configuration!!
    12-23 19:03:59.819: W/Zygote(29): Preloaded drawable resource #0x1080238 (res/drawable-hdpi/popup_top_bright.9.png) that varies with configuration!!
    12-23 19:03:59.859: D/dalvikvm(29): GC freed 263 objects / 12448 bytes in 30ms
    12-23 19:03:59.859: W/Zygote(29): Preloaded drawable resource #0x1080239 (res/drawable-hdpi/popup_top_dark.9.png) that varies with configuration!!
    12-23 19:03:59.879: W/Zygote(29): Preloaded drawable resource #0x108006d (res/drawable/progress_indeterminate_horizontal.xml) that varies with configuration!!
    12-23 19:03:59.889: W/Zygote(29): Preloaded drawable resource #0x108023f (res/drawable/progress_small.xml) that varies with configuration!!
    12-23 19:03:59.889: W/Zygote(29): Preloaded drawable resource #0x1080240 (res/drawable/progress_small_titlebar.xml) that varies with configuration!!
    12-23 19:03:59.889: W/Zygote(29): Preloaded drawable resource #0x1080262 (res/drawable-hdpi/scrollbar_handle_horizontal.9.png) that varies with configuration!!
    12-23 19:03:59.899: W/Zygote(29): Preloaded drawable resource #0x1080263 (res/drawable-hdpi/scrollbar_handle_vertical.9.png) that varies with configuration!!
    12-23 19:03:59.909: W/Zygote(29): Preloaded drawable resource #0x1080071 (res/drawable/spinner_dropdown_background.xml) that varies with configuration!!
    12-23 19:03:59.920: W/Zygote(29): Preloaded drawable resource #0x1080326 (res/drawable-hdpi/title_bar_shadow.9.png) that varies with configuration!!
    12-23 19:03:59.920: W/Zygote(29): Preloaded drawable resource #0x10801c6 (res/drawable-hdpi/indicator_code_lock_drag_direction_green_up.png) that varies with configuration!!
    12-23 19:03:59.929: W/Zygote(29): Preloaded drawable resource #0x10801c7 (res/drawable-hdpi/indicator_code_lock_drag_direction_red_up.png) that varies with configuration!!
    12-23 19:03:59.941: W/Zygote(29): Preloaded drawable resource #0x10801c8 (res/drawable-hdpi/indicator_code_lock_point_area_default.png) that varies with configuration!!
    12-23 19:03:59.960: W/Zygote(29): Preloaded drawable resource #0x10801c9 (res/drawable-hdpi/indicator_code_lock_point_area_green.png) that varies with configuration!!
    12-23 19:03:59.969: W/Zygote(29): Preloaded drawable resource #0x10801ca (res/drawable-hdpi/indicator_code_lock_point_area_red.png) that varies with configuration!!
    12-23 19:03:59.969: I/Zygote(29): ...preloaded 48 resources in 969ms.
    12-23 19:03:59.989: I/Zygote(29): ...preloaded 15 resources in 16ms.
    12-23 19:04:00.019: D/dalvikvm(29): GC freed 353 objects / 26008 bytes in 34ms
    12-23 19:04:00.059: D/dalvikvm(29): GC freed 247 objects / 10136 bytes in 32ms
    12-23 19:04:00.099: D/dalvikvm(29): GC freed 2 objects / 48 bytes in 32ms
    12-23 19:04:00.099: I/dalvikvm(29): Splitting out new zygote heap
    12-23 19:04:00.109: I/dalvikvm(29): System server process 51 has been created
    12-23 19:04:00.109: I/Zygote(29): Accepting command socket connections
    12-23 19:04:00.169: D/dalvikvm(51): Trying to load lib /system/lib/libandroid_servers.so 0x0
    12-23 19:04:00.279: D/dalvikvm(51): Added shared lib /system/lib/libandroid_servers.so 0x0
    12-23 19:04:00.289: E/BatteryService(51): usbOnlinePath not found
    12-23 19:04:00.289: E/BatteryService(51): batteryVoltagePath not found
    12-23 19:04:00.289: E/BatteryService(51): batteryTemperaturePath not found
    12-23 19:04:00.299: I/sysproc(51): Entered system_init()
    12-23 19:04:00.299: I/sysproc(51): ServiceManager: 0x144088
    12-23 19:04:00.299: I/SurfaceFlinger(51): SurfaceFlinger is starting
    12-23 19:04:00.299: I/SurfaceFlinger(51): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    12-23 19:04:00.299: E/SurfaceFlinger(51): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
    12-23 19:04:00.409: I/gralloc(51): using (fd=22)
    12-23 19:04:00.409: I/gralloc(51): id           = 
    12-23 19:04:00.409: I/gralloc(51): xres         = 768 px
    12-23 19:04:00.409: I/gralloc(51): yres         = 1280 px
    12-23 19:04:00.409: I/gralloc(51): xres_virtual = 768 px
    12-23 19:04:00.409: I/gralloc(51): yres_virtual = 2560 px
    12-23 19:04:00.409: I/gralloc(51): bpp          = 16
    12-23 19:04:00.409: I/gralloc(51): r            = 11:5
    12-23 19:04:00.409: I/gralloc(51): g            =  5:6
    12-23 19:04:00.409: I/gralloc(51): b            =  0:5
    12-23 19:04:00.409: I/gralloc(51): width        = 118 mm (165.315247 dpi)
    12-23 19:04:00.409: I/gralloc(51): height       = 197 mm (165.035538 dpi)
    12-23 19:04:00.409: I/gralloc(51): refresh rate = 60.00 Hz
    12-23 19:04:00.429: D/libEGL(51): egl.cfg not found, using default config
    12-23 19:04:00.429: D/libEGL(51): loaded /system/lib/egl/libGLES_android.so
    12-23 19:04:00.440: I/SurfaceFlinger(51): EGL informations:
    12-23 19:04:00.440: I/SurfaceFlinger(51): # of configs : 8
    12-23 19:04:00.440: I/SurfaceFlinger(51): vendor    : Android
    12-23 19:04:00.440: I/SurfaceFlinger(51): version   : 1.4 Android META-EGL
    12-23 19:04:00.440: I/SurfaceFlinger(51): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer 
    12-23 19:04:00.440: I/SurfaceFlinger(51): Client API: OpenGL ES
    12-23 19:04:00.440: I/SurfaceFlinger(51): EGLSurface: 5-6-5-0, config=0x1000000
    12-23 19:04:00.440: I/SurfaceFlinger(51): flags     : 001c0000
    12-23 19:04:00.449: I/SurfaceFlinger(51): OpenGL informations:
    12-23 19:04:00.449: I/SurfaceFlinger(51): vendor    : Android
    12-23 19:04:00.449: I/SurfaceFlinger(51): renderer  : Android PixelFlinger 1.2
    12-23 19:04:00.449: I/SurfaceFlinger(51): version   : OpenGL ES-CM 1.0
    12-23 19:04:00.449: I/SurfaceFlinger(51): 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_OES_EGL_image GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap 
    12-23 19:04:00.530: I/sysproc(51): System server: starting Android runtime.
    12-23 19:04:00.530: I/sysproc(51): System server: starting Android services.
    12-23 19:04:00.530: I/SystemServer(51): Entered the Android system server!
    12-23 19:04:00.530: I/sysproc(51): System server: entering thread pool.
    12-23 19:04:00.582: I/SystemServer(51): Entropy Service
    12-23 19:04:00.629: I/SystemServer(51): Power Manager
    12-23 19:04:00.649: I/SystemServer(51): Activity Manager
    12-23 19:04:00.649: I/ActivityManager(51): Memory class: 64
    12-23 19:04:00.750: D/libEGL(61): egl.cfg not found, using default config
    12-23 19:04:00.750: D/libEGL(61): loaded /system/lib/egl/libGLES_android.so
    12-23 19:04:00.759: W/zipro(61): Unable to open zip '/data/local/bootanimation.zip': No such file or directory
    12-23 19:04:00.759: W/zipro(61): Unable to open zip '/system/media/bootanimation.zip': No such file or directory
    12-23 19:04:00.872: I/SystemServer(51): Telephony Registry
    12-23 19:04:00.891: I/SystemServer(51): Package Manager
    12-23 19:04:00.891: I/Installer(51): connecting...
    12-23 19:04:00.900: I/installd(31): new connection
    12-23 19:04:00.990: I/ARMAssembler(61): generated scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at [0x1c438:0x1c504] in 6040111 ns
    12-23 19:04:01.029: I/PackageManager(51): Libs: android.test.runner:/system/framework/android.test.runner.jar javax.obex:/system/framework/javax.obex.jar
    12-23 19:04:01.029: I/PackageManager(51): Features: android.hardware.camera android.hardware.wifi android.hardware.location.network android.hardware.bluetooth android.hardware.location android.hardware.location.gps android.hardware.camera.autofocus android.hardware.touchscreen android.hardware.sensor.accelerometer android.hardware.sensor.compass
    12-23 19:04:01.249: D/dalvikvm(51): GC freed 5265 objects / 250248 bytes in 67ms
    12-23 19:04:01.320: W/PackageManager(51): Running ENG build: no pre-dexopt!
    12-23 19:04:01.340: D/PackageManager(51): Scanning app dir /system/framework
    12-23 19:04:01.460: D/PackageManager(51): Scanning app dir /system/app
    12-23 19:04:02.142: D/dalvikvm(51): GC freed 6220 objects / 359912 bytes in 69ms
    12-23 19:04:02.552: D/PackageManager(51): Scanning app dir /data/app
    12-23 19:04:02.800: W/PackageParser(51): No actions in intent filter at /data/app/ApiDemos.apk Binary XML file line #1718
    12-23 19:04:02.800: W/PackageParser(51): No actions in intent filter at /data/app/ApiDemos.apk Binary XML file line #1724
    12-23 19:04:02.800: W/PackageManager(51): Package com.example.android.apis desires unavailable shared library com.example.will.never.exist; ignoring!
    12-23 19:04:02.970: D/dalvikvm(51): GC freed 7500 objects / 409216 bytes in 72ms
    12-23 19:04:03.020: D/PackageManager(51): Scanning app dir /data/app-private
    12-23 19:04:03.020: I/PackageManager(51): Time to scan packages: 1.697 seconds
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.browser
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
    12-23 19:04:03.020: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
    12-23 19:04:03.030: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
    12-23 19:04:03.030: W/PackageManager(51): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
    12-23 19:04:03.160: D/dalvikvm(51): GC freed 3548 objects / 234488 bytes in 61ms
    12-23 19:04:03.170: I/SystemServer(51): Account Manager
    12-23 19:04:03.180: W/ResourceType(51): Resources don't contain package for resource number 0x7f0700e5
    12-23 19:04:03.180: W/ResourceType(51): Resources don't contain package for resource number 0x7f020031
    12-23 19:04:03.180: W/ResourceType(51): Resources don't contain package for resource number 0x7f020030
    12-23 19:04:03.180: W/ResourceType(51): Resources don't contain package for resource number 0x7f050000
    12-23 19:04:03.190: I/SystemServer(51): Content Manager
    12-23 19:04:03.190: I/SyncManager(51): No initial accounts
    12-23 19:04:03.190: I/SyncManager(51): No initial status
    12-23 19:04:03.190: I/SyncManager(51): No initial pending operations
    12-23 19:04:03.190: I/SyncManager(51): No initial statistics
    12-23 19:04:03.270: I/SystemServer(51): System Content Providers
    12-23 19:04:03.270: I/ActivityThread(51): Publishing provider settings: com.android.providers.settings.SettingsProvider
    12-23 19:04:03.290: I/SystemServer(51): Battery Service
    12-23 19:04:03.302: I/SystemServer(51): Hardware Service
    12-23 19:04:03.302: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:03.302: D/qemud(34): created client 0x12f88 listening on fd 12
    12-23 19:04:03.302: D/qemud(34): client_fd_receive: attempting registration for service 'hw-control'
    12-23 19:04:03.302: D/qemud(34): client_fd_receive:    -> received channel id 3
    12-23 19:04:03.380: D/qemud(34): client_registration: registration succeeded for client 3
    12-23 19:04:03.450: I/SystemServer(51): Alarm Manager
    12-23 19:04:03.460: I/SystemServer(51): Init Watchdog
    12-23 19:04:03.460: I/SystemServer(51): Sensor Service
    12-23 19:04:03.460: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:03.460: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:03.460: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:03.460: D/qemud(34): client_fd_receive:    -> received channel id 4
    12-23 19:04:03.537: D/qemud(34): client_registration: registration succeeded for client 4
    12-23 19:04:03.609: D/qemud(34): fdhandler_event: disconnect on fd 13
    12-23 19:04:03.620: I/SystemServer(51): Window Manager
    12-23 19:04:03.660: I/EventHub(51): New keyboard: publicID=65536 device->id=0x10000 devname='qwerty2' propName='hw.keyboards.65536.devname' keylayout='/system/usr/keylayout/qwerty.kl'
    12-23 19:04:03.660: I/EventHub(51): New device: path=/dev/input/event0 name=qwerty2 id=0x10000 (of 0x1) index=1 fd=48 classes=0x7
    12-23 19:04:03.660: E/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter
    12-23 19:04:03.660: E/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter
    12-23 19:04:03.660: I/KeyInputQueue(51): Device added: id=0x0, name=qwerty2, classes=7
    12-23 19:04:03.660: I/KeyInputQueue(51):   X: min=0 max=767 flat=0 fuzz=0
    12-23 19:04:03.660: I/KeyInputQueue(51):   Y: min=0 max=1279 flat=0 fuzz=0
    12-23 19:04:03.660: I/KeyInputQueue(51):   Pressure: unknown values
    12-23 19:04:03.660: I/KeyInputQueue(51):   Size: unknown values
    12-23 19:04:03.660: I/KeyInputQueue(51): No virtual keys found
    12-23 19:04:03.680: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:03.680: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:03.680: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:03.680: D/qemud(34): client_fd_receive:    -> received channel id 5
    12-23 19:04:03.760: D/qemud(34): client_registration: registration succeeded for client 5
    12-23 19:04:03.840: D/qemud(34): fdhandler_event: disconnect on fd 13
    12-23 19:04:03.850: D/SensorManager(51): found sensor: Goldfish 3-axis Accelerometer, handle=0
    12-23 19:04:03.850: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:03.850: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:03.850: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:03.850: D/qemud(34): client_fd_receive:    -> received channel id 6
    12-23 19:04:03.930: D/qemud(34): client_registration: registration succeeded for client 6
    12-23 19:04:04.020: D/qemud(34): fdhandler_event: disconnect on fd 13
    12-23 19:04:04.020: D/SensorManager(51): found sensor: Goldfish 3-axis Magnetic field sensor, handle=1
    12-23 19:04:04.020: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:04.020: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:04.035: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:04.035: D/qemud(34): client_fd_receive:    -> received channel id 7
    12-23 19:04:04.107: D/qemud(34): client_registration: registration succeeded for client 7
    12-23 19:04:04.110: D/qemud(34): fdhandler_event: disconnect on fd 13
    12-23 19:04:04.110: D/SensorManager(51): found sensor: Goldfish Orientation sensor, handle=2
    12-23 19:04:04.110: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:04.110: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:04.120: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:04.120: D/qemud(34): client_fd_receive:    -> received channel id 8
    12-23 19:04:04.200: D/qemud(34): client_registration: registration succeeded for client 8
    12-23 19:04:04.210: D/qemud(34): fdhandler_event: disconnect on fd 13
    12-23 19:04:04.210: D/SensorManager(51): found sensor: Goldfish Temperature sensor, handle=3
    12-23 19:04:04.250: I/SystemServer(51): Registering null Bluetooth Service (emulator)
    12-23 19:04:04.250: E/System(51): Failure starting core service
    12-23 19:04:04.250: E/System(51): java.lang.SecurityException
    12-23 19:04:04.250: E/System(51): 	at android.os.BinderProxy.transact(Native Method)
    12-23 19:04:04.250: E/System(51): 	at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
    12-23 19:04:04.250: E/System(51): 	at android.os.ServiceManager.addService(ServiceManager.java:72)
    12-23 19:04:04.250: E/System(51): 	at com.android.server.ServerThread.run(SystemServer.java:176)
    12-23 19:04:04.260: E/AndroidRuntime(51): Crash logging skipped, no checkin service
    12-23 19:04:04.260: I/SystemServer(51): Status Bar
    12-23 19:04:04.340: D/dalvikvm(51): GC freed 1842 objects / 106280 bytes in 62ms
    12-23 19:04:04.460: I/SystemServer(51): Clipboard Service
    12-23 19:04:04.460: I/SystemServer(51): Input Method Service
    12-23 19:04:04.470: W/ResourceType(51): Resources don't contain package for resource number 0x7f060000
    12-23 19:04:04.480: W/ResourceType(51): Resources don't contain package for resource number 0x7f060001
    12-23 19:04:04.490: I/InputManagerService(51): Enabled input methods: com.android.inputmethod.pinyin/.PinyinIME:com.android.inputmethod.latin/.LatinIME:jp.co.omronsoft.openwnn/.OpenWnnJAJP
    12-23 19:04:04.550: I/SystemServer(51): NetStat Service
    12-23 19:04:04.550: I/SystemServer(51): Connectivity Service
    12-23 19:04:04.550: V/ConnectivityService(51): ConnectivityService starting up
    12-23 19:04:04.560: V/ConnectivityService(51): Starting Wifi Service.
    12-23 19:04:04.580: I/WifiService(51): WifiService starting up with Wi-Fi disabled
    12-23 19:04:04.600: I/SystemServer(51): Accessibility Manager
    12-23 19:04:04.600: I/SystemServer(51): Notification Manager
    12-23 19:04:04.620: I/SystemServer(51): Mount Service
    12-23 19:04:04.620: I/SystemServer(51): Device Storage Monitor
    12-23 19:04:04.640: I/SystemServer(51): Location Manager
    12-23 19:04:04.640: I/SystemServer(51): Search Service
    12-23 19:04:04.640: I/SystemServer(51): Checkin Service
    12-23 19:04:04.640: W/ActivityManager(51): Unable to start service Intent { cmp=com.google.android.server.checkin/.CheckinService }: not found
    12-23 19:04:04.640: W/SystemServer(51): Using fallback Checkin Service.
    12-23 19:04:04.640: I/SystemServer(51): Wallpaper Service
    12-23 19:04:04.650: D/libhardware_legacy(51): using QEMU GPS Hardware emulation
    12-23 19:04:04.650: W/GpsLocationProvider(51): Could not open GPS configuration file /etc/gps.conf
    12-23 19:04:04.660: D/GpsLocationProvider(51): enable
    12-23 19:04:04.660: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:04.660: D/qemud(34): created client 0xc038 listening on fd 13
    12-23 19:04:04.660: D/qemud(34): client_fd_receive: attempting registration for service 'gps'
    12-23 19:04:04.660: D/qemud(34): client_fd_receive:    -> received channel id 9
    12-23 19:04:04.660: I/SystemServer(51): Audio Service
    12-23 19:04:04.670: D/qemud(34): client_registration: registration succeeded for client 9
    12-23 19:04:04.770: D/dalvikvm(51): Trying to load lib /system/lib/libsoundpool.so 0x0
    12-23 19:04:04.770: D/dalvikvm(51): Added shared lib /system/lib/libsoundpool.so 0x0
    12-23 19:04:04.770: D/SoundPool(51): error loading /system/media/audio/ui/Effect_Tick.ogg
    12-23 19:04:04.770: W/AudioService(51): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
    12-23 19:04:04.770: D/SoundPool(51): error loading /system/media/audio/ui/KeypressStandard.ogg
    12-23 19:04:04.770: W/AudioService(51): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
    12-23 19:04:04.770: D/SoundPool(51): error loading /system/media/audio/ui/KeypressSpacebar.ogg
    12-23 19:04:04.770: W/AudioService(51): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
    12-23 19:04:04.770: D/SoundPool(51): error loading /system/media/audio/ui/KeypressDelete.ogg
    12-23 19:04:04.770: W/AudioService(51): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
    12-23 19:04:04.780: D/SoundPool(51): error loading /system/media/audio/ui/KeypressReturn.ogg
    12-23 19:04:04.780: W/AudioService(51): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
    12-23 19:04:04.780: I/SystemServer(51): Headset Observer
    12-23 19:04:04.780: W/HeadsetObserver(51): This kernel does not have wired headset support
    12-23 19:04:04.780: I/SystemServer(51): Dock Observer
    12-23 19:04:04.780: W/DockObserver(51): This kernel does not have dock station support
    12-23 19:04:04.780: I/SystemServer(51): Backup Service
    12-23 19:04:04.810: W/ActivityManager(51): Unable to start service Intent { cmp=com.google.android.backup/.BackupTransportService }: not found
    12-23 19:04:04.810: I/BackupManagerService(51): Found stale backup journal, scheduling:
    12-23 19:04:04.810: I/BackupManagerService(51):     + com.android.inputmethod.latin
    12-23 19:04:04.820: I/BackupManagerService(51):     + com.android.browser
    12-23 19:04:04.820: I/BackupManagerService(51):     + com.android.providers.userdictionary
    12-23 19:04:04.820: I/BackupManagerService(51):     + android
    12-23 19:04:04.820: I/BackupManagerService(51):     + com.android.providers.settings
    12-23 19:04:04.820: I/BackupManagerService(51): Backup enabled => false
    12-23 19:04:04.830: D/GpsLocationProvider(51): GpsEventThread starting
    12-23 19:04:04.830: I/SystemServer(51): AppWidget Service
    12-23 19:04:04.900: I/WindowManager(51): SAFE MODE not enabled
    12-23 19:04:04.910: I/ActivityManager(51): Config changed: { scale=1.0 imsi=0/0 loc=fr_FR touch=3 keys=2/1/2 nav=1/1 orien=1 layout=268435490}
    12-23 19:04:04.930: D/PowerManagerService(51): system ready!
    12-23 19:04:04.930: I/ActivityManager(51): System now ready
    12-23 19:04:04.940: D/GpsLocationProvider(51): NetworkThread starting
    12-23 19:04:04.940: D/GpsLocationProvider(51): NetworkThread wait for network
    12-23 19:04:04.950: I/SystemServer(51): Making services ready
    12-23 19:04:04.980: W/ResourceType(51): Resources don't contain package for resource number 0x7f030000
    12-23 19:04:05.000: W/ResourceType(51): Resources don't contain package for resource number 0x7f030003
    12-23 19:04:05.010: W/ResourceType(51): Resources don't contain package for resource number 0x7f030034
    12-23 19:04:05.010: W/ResourceType(51): Resources don't contain package for resource number 0x7f030012
    12-23 19:04:05.030: W/ResourceType(51): Resources don't contain package for resource number 0x7f03000a
    12-23 19:04:05.061: I/Zygote(51): Process: zygote socket opened
    12-23 19:04:05.070: I/ActivityManager(51): Start proc com.android.inputmethod.pinyin for service com.android.inputmethod.pinyin/.PinyinIME: pid=91 uid=10007 gids={3003, 1015}
    12-23 19:04:05.090: I/ActivityManager(51): Start proc com.android.phone for added application com.android.phone: pid=92 uid=1001 gids={3002, 3001, 3003, 1015}
    12-23 19:04:05.140: I/ActivityManager(51): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.launcher/.Launcher }
    12-23 19:04:05.190: I/ActivityManager(51): Start proc android.process.acore for activity com.android.launcher/.Launcher: pid=97 uid=10007 gids={3003, 1015}
    12-23 19:04:05.490: D/dalvikvm(51): GC freed 4359 objects / 236632 bytes in 224ms
    12-23 19:04:05.950: I/ActivityThread(97): Publishing provider com.android.globalsearch.stats: com.android.globalsearch.StatsProvider
    12-23 19:04:06.040: I/ActivityThread(92): Publishing provider icc: com.android.phone.IccProvider
    12-23 19:04:06.070: I/ActivityThread(92): Publishing provider mms-sms: com.android.providers.telephony.MmsSmsProvider
    12-23 19:04:06.090: D/dalvikvm(51): GC freed 1551 objects / 76720 bytes in 132ms
    12-23 19:04:06.090: D/dalvikvm(91): Trying to load lib /system/lib/libjni_pinyinime.so 0x49d19298
    12-23 19:04:06.090: D/dalvikvm(91): Added shared lib /system/lib/libjni_pinyinime.so 0x49d19298
    12-23 19:04:06.170: I/ActivityThread(92): Publishing provider mms: com.android.providers.telephony.MmsProvider
    12-23 19:04:06.170: I/ActivityThread(92): Publishing provider sms: com.android.providers.telephony.SmsProvider
    12-23 19:04:06.190: I/ActivityThread(97): Publishing provider com.android.launcher.settings: com.android.launcher.LauncherProvider
    12-23 19:04:06.202: I/ActivityThread(97): Publishing provider com.android.social: com.android.providers.contacts.SocialProvider
    12-23 19:04:06.240: I/ActivityThread(92): Publishing provider telephony: com.android.providers.telephony.TelephonyProvider
    12-23 19:04:06.520: D/ddm-heap(51): Got feature list request
    12-23 19:04:06.963: D/ddm-heap(92): Got feature list request
    12-23 19:04:06.963: D/ddm-heap(97): Got feature list request
    12-23 19:04:07.020: I/ActivityThread(97): Publishing provider applications: com.android.providers.applications.ApplicationsProvider
    12-23 19:04:07.080: D/dalvikvm(51): GC freed 1076 objects / 54744 bytes in 194ms
    12-23 19:04:07.250: D/PhoneApp(92): mProximityWakeLock: null
    12-23 19:04:07.290: W/ActivityManager(51): Unable to start service Intent { act=com.android.ussd.IExtendedNetworkService }: not found
    12-23 19:04:07.340: W/StatusBar(51): No icon ID for slot ime
    12-23 19:04:07.360: I/ActivityThread(97): Publishing provider contacts;com.android.contacts: com.android.providers.contacts.ContactsProvider2
    12-23 19:04:07.380: D/PhoneApp(92): Resetting audio state/mode: IDLE
    12-23 19:04:07.450: I/ActivityManager(51): Start proc com.android.settings for broadcast com.android.settings/.widget.SettingsAppWidgetProvider: pid=131 uid=1000 gids={3002, 3001, 3003}
    12-23 19:04:07.560: D/AlarmManagerService(51): Kernel timezone updated to 0 minutes west of GMT
    12-23 19:04:07.590: D/SystemClock(92): Setting time of day to sec=1387825446
    12-23 19:04:06.486: W/SystemClock(92): Unable to set rtc to 1387825446: Invalid argument
    12-23 19:04:06.996: W/ContactAggregator(97): No more aggregation requests
    12-23 19:04:07.438: I/ActivityThread(97): Publishing provider com.android.globalsearch.SuggestionProvider: com.android.globalsearch.SuggestionProvider
    12-23 19:04:07.548: D/dalvikvm(92): GC freed 3868 objects / 233832 bytes in 395ms
    12-23 19:04:07.576: E/ActivityThread(92): Failed to find provider info for android.server.checkin
    12-23 19:04:07.576: W/Checkin(92): Can't update stat PHONE_GSM_REGISTERED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
    12-23 19:04:07.936: D/MccTable(92): updateMccMncConfiguration: mcc=310, mnc=260
    12-23 19:04:07.936: D/MccTable(92): locale set to en_us
    12-23 19:04:07.936: D/MccTable(92): WIFI_NUM_ALLOWED_CHANNELS set to 11
    12-23 19:04:07.946: I/WifiService(51): WifiService trying to setNumAllowed to 11 with persist set to true
    12-23 19:04:07.966: W/BackupManagerService(51): dataChanged but no participant pkg='com.android.providers.settings' uid=1001
    12-23 19:04:08.006: I/ActivityManager(51): Config changed: { scale=1.0 imsi=310/260 loc=fr_FR touch=3 keys=2/1/2 nav=1/1 orien=1 layout=268435490}
    12-23 19:04:08.046: D/dalvikvm(51): GREF has increased to 201
    12-23 19:04:08.076: I/UsageStats(51): Unexpected resume of com.android.launcher while already resumed in com.android.launcher
    12-23 19:04:08.088: I/ActivityManager(51): Start proc com.android.alarmclock for broadcast com.android.alarmclock/.AlarmInitReceiver: pid=139 uid=10017 gids={}
    12-23 19:04:08.266: D/AndroidRuntime(130): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
    12-23 19:04:08.266: D/AndroidRuntime(130): CheckJNI is ON
    12-23 19:04:08.526: D/dalvikvm(51): GC freed 3783 objects / 172104 bytes in 170ms
    12-23 19:04:08.606: I/ActivityThread(139): Publishing provider com.android.alarmclock: com.android.alarmclock.AlarmProvider
    12-23 19:04:08.616: D/TelephonyProvider(92): Setting numeric '310260' to be the current operator
    12-23 19:04:08.726: E/ActivityThread(92): Failed to find provider info for android.server.checkin
    12-23 19:04:08.726: W/Checkin(92): Can't update stat PHONE_GPRS_ATTEMPTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
    12-23 19:04:08.786: E/ActivityThread(92): Failed to find provider info for android.server.checkin
    12-23 19:04:08.786: W/Checkin(92): Can't update stat PHONE_GPRS_CONNECTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
    12-23 19:04:08.986: D/dalvikvm(97): GC freed 3209 objects / 232272 bytes in 398ms
    12-23 19:04:09.056: I/ActivityThread(97): Publishing provider call_log: com.android.providers.contacts.CallLogProvider
    12-23 19:04:09.056: I/ActivityThread(97): Publishing provider user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
    12-23 19:04:09.216: W/BackupManagerService(51): dataChanged but no participant pkg='com.android.providers.settings' uid=10017
    12-23 19:04:09.256: D/AndroidRuntime(130): --- registering native functions ---
    12-23 19:04:09.728: D/dalvikvm(51): GC freed 2813 objects / 133832 bytes in 120ms
    12-23 19:04:09.796: W/dalvikvm(97): threadid=3: spin on suspend #0 threadid=15 (h=4723416)
    12-23 19:04:09.796: W/dalvikvm(97): dumping state: process - 97
    12-23 19:04:09.796: I/dalvikvm(97): "main" prio=5 tid=3 RUNNABLE
    12-23 19:04:09.796: I/dalvikvm(97):   | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0xbd00
    12-23 19:04:09.796: I/dalvikvm(97):   | sysTid=97 nice=0 sched=0/0 cgrp=default handle=-1344001384
    12-23 19:04:09.796: I/dalvikvm(97):   at dalvik.system.VMRuntime.trackExternalAllocation(Native Method)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.Bitmap.nativeCreate(Native Method)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.Bitmap.createBitmap(Bitmap.java:468)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.Bitmap.createBitmap(Bitmap.java:435)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462)
    12-23 19:04:09.796: I/dalvikvm(97):   at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.content.res.Resources.loadDrawable(Resources.java:1705)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.content.res.Resources.getDrawable(Resources.java:580)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:160)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.content.res.Resources.loadDrawable(Resources.java:1690)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.View.<init>(View.java:1850)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.widget.ImageView.<init>(ImageView.java:109)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.launcher.HandleView.<init>(HandleView.java:42)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.launcher.HandleView.<init>(HandleView.java:38)
    12-23 19:04:09.806: I/dalvikvm(97):   at java.lang.reflect.Constructor.constructNative(Native Method)
    12-23 19:04:09.806: I/dalvikvm(97):   at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.createView(LayoutInflater.java:500)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.Activity.setContentView(Activity.java:1622)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.launcher.Launcher.onCreate(Launcher.java:221)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.ActivityThread.access$2200(ActivityThread.java:119)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.os.Handler.dispatchMessage(Handler.java:99)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.os.Looper.loop(Looper.java:123)
    12-23 19:04:09.806: I/dalvikvm(97):   at android.app.ActivityThread.main(ActivityThread.java:4363)
    12-23 19:04:09.806: I/dalvikvm(97):   at java.lang.reflect.Method.invokeNative(Native Method)
    12-23 19:04:09.806: I/dalvikvm(97):   at java.lang.reflect.Method.invoke(Method.java:521)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    12-23 19:04:09.806: I/dalvikvm(97):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    12-23 19:04:09.806: I/dalvikvm(97):   at dalvik.system.NativeStart.main(Native Method)
    12-23 19:04:09.806: I/dalvikvm(97): "ApplicationsProviderUpdater" prio=5 tid=15 RUNNABLE
    12-23 19:04:09.806: I/dalvikvm(97):   | group="main" sCount=1 dsCount=0 s=N obj=0x49d51420 self=0x489418
    12-23 19:04:09.806: I/dalvikvm(97):   | sysTid=128 nice=10 sched=0/0 cgrp=bg_non_interactive handle=4723416
    12-23 19:04:09.886: I/dalvikvm(97):   at com.android.providers.applications.ApplicationsProvider.updateApplicationsList(ApplicationsProvider.java:~431)
    12-23 19:04:09.886: I/dalvikvm(97):   at com.android.providers.applications.ApplicationsProvider.access$300(ApplicationsProvider.java:56)
    12-23 19:04:09.886: I/dalvikvm(97):   at com.android.providers.applications.ApplicationsProvider$UpdateHandler.handleMessage(ApplicationsProvider.java:171)
    12-23 19:04:09.886: I/dalvikvm(97):   at android.os.Handler.dispatchMessage(Handler.java:99)
    12-23 19:04:09.886: I/dalvikvm(97):   at android.os.Looper.loop(Looper.java:123)
    12-23 19:04:09.886: I/dalvikvm(97):   at android.os.HandlerThread.run(HandlerThread.java:60)
    12-23 19:04:09.896: W/dalvikvm(97): threadid=3: spin on suspend resolved in 349 msec
    12-23 19:04:10.006: D/MobileDataStateTracker(51): default Received state= DISCONNECTED, old= DISCONNECTED, reason= radioTurnedOff, apnTypeList= default
    12-23 19:04:10.056: D/MobileDataStateTracker(51): default Received state= DISCONNECTED, old= DISCONNECTED, reason= gprsDetached, apnTypeList= default
    12-23 19:04:10.146: D/dalvikvm(97): GC freed 1375 objects / 97080 bytes in 598ms
    12-23 19:04:10.396: D/MobileDataStateTracker(51): default Received state= DISCONNECTED, old= DISCONNECTED, reason= (unspecified), apnTypeList= default
    12-23 19:04:10.486: W/ResourceType(51): Resources don't contain package for resource number 0x7f03000a
    12-23 19:04:10.538: W/ResourceType(51): Resources don't contain package for resource number 0x7f030012
    12-23 19:04:10.546: W/ResourceType(51): Resources don't contain package for resource number 0x7f030034
    12-23 19:04:10.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f030003
    12-23 19:04:10.606: W/ResourceType(51): Resources don't contain package for resource number 0x7f030000
    12-23 19:04:10.666: D/MobileDataStateTracker(51): default Received state= CONNECTING, old= DISCONNECTED, reason= simLoaded, apnTypeList= *
    12-23 19:04:10.666: D/NetworkStateTracker(51): setDetailed state, old =IDLE and new state=CONNECTING
    12-23 19:04:10.666: D/ConnectivityService(51): ConnectivityChange for MOBILE: CONNECTING/CONNECTING
    12-23 19:04:10.676: D/MobileDataStateTracker(51): default Received state= CONNECTED, old= CONNECTING, reason= simLoaded, apnTypeList= *
    12-23 19:04:10.676: D/MobileDataStateTracker(51): CONNECTED event did not supply interface name.
    12-23 19:04:10.676: D/NetworkStateTracker(51): setDetailed state, old =CONNECTING and new state=CONNECTED
    12-23 19:04:10.706: D/ConnectivityService(51): ConnectivityChange for MOBILE: CONNECTED/CONNECTED
    12-23 19:04:10.706: V/NetworkStateTracker(51): Setting TCP values: [4094,87380,110208,4096,16384,110208] which comes from [net.tcp.buffersize.umts]
    12-23 19:04:10.718: D/ConnectivityService(51): adding dns 10.0.2.3 for MOBILE
    12-23 19:04:10.718: D/MobileDataStateTracker(51): replacing old mInterfaceName (null) with null for mms
    12-23 19:04:10.726: D/MobileDataStateTracker(51): replacing old mInterfaceName (null) with null for supl
    12-23 19:04:10.726: D/MobileDataStateTracker(51): replacing old mInterfaceName (null) with null for dun
    12-23 19:04:10.726: D/MobileDataStateTracker(51): replacing old mInterfaceName (null) with null for hipri
    12-23 19:04:10.746: I/ActivityManager(51): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=155 uid=10003 gids={1015, 1006, 2001, 3003}
    12-23 19:04:10.926: D/GpsLocationProvider(51): updateNetworkState available info: NetworkInfo: type: MOBILE[UMTS], state: CONNECTED/CONNECTED, reason: simLoaded, extra: internet, roaming: false, failover: false, isAvailable: true
    12-23 19:04:10.926: D/GpsLocationProvider(51): NetworkThread wait for 9223372036854775807ms
    12-23 19:04:11.116: D/dalvikvm(97): GC freed 194 objects / 8240 bytes in 580ms
    12-23 19:04:11.266: I/ActivityThread(155): Publishing provider drm: com.android.providers.drm.DrmProvider
    12-23 19:04:11.426: D/dalvikvm(51): GC freed 3925 objects / 272744 bytes in 175ms
    12-23 19:04:11.466: I/ActivityThread(155): Publishing provider media: com.android.providers.media.MediaProvider
    12-23 19:04:11.586: V/MediaProvider(155): Attached volume: internal
    12-23 19:04:12.056: I/ActivityThread(155): Publishing provider downloads: com.android.providers.downloads.DownloadProvider
    12-23 19:04:12.276: D/dalvikvm(97): GC freed 891 objects / 50832 bytes in 47ms
    12-23 19:04:12.686: D/HomeLoaders(97):   ----> items cloned, ready to refresh UI
    12-23 19:04:12.856: D/dalvikvm(97): GC freed 1041 objects / 53264 bytes in 104ms
    12-23 19:04:13.126: I/SurfaceFlinger(51): Boot is finished (13953 ms)
    12-23 19:04:13.146: D/PowerManagerService(51): bootCompleted
    12-23 19:04:13.166: D/qemud(34): fdhandler_accept_event: accepting on fd 10
    12-23 19:04:13.166: D/qemud(34): created client 0xc088 listening on fd 14
    12-23 19:04:13.166: D/qemud(34): client_fd_receive: attempting registration for service 'sensors'
    12-23 19:04:13.166: D/qemud(34): client_fd_receive:    -> received channel id 10
    12-23 19:04:13.178: D/qemud(34): client_registration: registration succeeded for client 10
    12-23 19:04:13.196: I/ARMAssembler(51): generated scanline__00000177:03515104_00000A01_00000000 [ 55 ipp] (79 ins) at [0x4e7eb0:0x4e7fec] in 1038920 ns
    12-23 19:04:13.216: D/OtaStartupReceiver(92): Not a CDMA phone, no need to process OTA
    12-23 19:04:13.256: D/vold(26): Accepted connection from framework
    12-23 19:04:13.256: D/vold(26): dispatch_cmd(send_ums_status):
    12-23 19:04:13.256: D/vold(26): dispatch_cmd(mount_volume:/sdcard):
    12-23 19:04:13.256: E/vold(26): Cannot start volume '/sdcard' (volume is not bound)
    12-23 19:04:13.256: D/MountListener(51): handleEvent volume_nomedia:/sdcard
    12-23 19:04:13.398: D/MountListener(51): handleEvent ums_disabled
    12-23 19:04:13.398: D/MountListener(51): handleEvent ums_disconnected
    12-23 19:04:13.398: D/MediaPlayer(51): Couldn't open file on client side, trying server side
    12-23 19:04:13.416: E/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound
    12-23 19:04:13.416: E/MediaPlayer(51): Unable to to create media player
    12-23 19:04:13.416: W/NotificationService(51): error loading sound for content://settings/system/notification_sound
    12-23 19:04:13.416: W/NotificationService(51): java.io.IOException: setDataSource failed.: status=0x80000000
    12-23 19:04:13.416: W/NotificationService(51): 	at android.media.MediaPlayer.setDataSource(Native Method)
    12-23 19:04:13.416: W/NotificationService(51): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699)
    12-23 19:04:13.416: W/NotificationService(51): 	at android.media.AsyncPlayer.startSound(AsyncPlayer.java:62)
    12-23 19:04:13.416: W/NotificationService(51): 	at android.media.AsyncPlayer.access$200(AsyncPlayer.java:33)
    12-23 19:04:13.416: W/NotificationService(51): 	at android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:99)
    12-23 19:04:13.876: I/ActivityManager(51): Start proc com.android.mms for broadcast com.android.mms/.transaction.MmsSystemEventReceiver: pid=174 uid=10014 gids={3003, 1015}
    12-23 19:04:14.216: D/MediaScannerService(155): start scanning volume internal
    12-23 19:04:14.546: W/BackupManagerService(51): dataChanged but no participant pkg='com.android.providers.settings' uid=10017
    12-23 19:04:14.586: W/BackupManagerService(51): dataChanged but no participant pkg='com.android.providers.settings' uid=10017
    12-23 19:04:14.606: I/ActivityManager(51): Start proc com.android.email for broadcast com.android.email/com.android.exchange.BootReceiver: pid=190 uid=10023 gids={3003, 1015}
    12-23 19:04:14.796: D/dalvikvm(51): GC freed 8238 objects / 399992 bytes in 106ms
    12-23 19:04:14.906: I/ActivityThread(190): Publishing provider com.android.email.provider: com.android.email.provider.EmailProvider
    12-23 19:04:14.926: I/ActivityThread(190): Publishing provider com.android.email.attachmentprovider: com.android.email.provider.AttachmentProvider
    12-23 19:04:14.976: D/Exchange(190): BootReceiver onReceive
    12-23 19:04:15.016: D/EAS SyncManager(190): !!! EAS SyncManager, onCreate
    12-23 19:04:15.086: D/EAS SyncManager(190): !!! EAS SyncManager, onStartCommand
    12-23 19:04:15.096: D/EAS SyncManager(190): !!! EAS SyncManager, stopping self
    12-23 19:04:15.126: D/Eas Debug(190): Logging: 
    12-23 19:04:15.137: D/EAS SyncManager(190): !!! EAS SyncManager, onDestroy
    12-23 19:04:15.196: D/PackageParser(51): Scanning package: /data/app/vmdl22248.tmp
    12-23 19:04:15.497: D/MediaScanner(155): opendir /system/media/ failed, errno: 2
    12-23 19:04:15.497: D/MediaScanner(155):  prescan time: 1168ms
    12-23 19:04:15.526: D/MediaScanner(155):     scan time: 5ms
    12-23 19:04:15.526: D/MediaScanner(155): postscan time: 1ms
    12-23 19:04:15.526: D/MediaScanner(155):    total time: 1174ms
    12-23 19:04:15.526: D/MediaScannerService(155): done scanning volume internal
    12-23 19:04:15.716: D/KeyguardViewMediator(51): pokeWakelock(5000)
    12-23 19:04:15.876: D/KeyguardViewMediator(51): pokeWakelock(5000)
    12-23 19:04:16.006: I/ARMAssembler(51): generated scanline__00000177:03515104_00001A01_00000000 [ 73 ipp] (98 ins) at [0x507c78:0x507e00] in 766560 ns
    12-23 19:04:16.437: I/ActivityManager(51): Displayed activity com.android.launcher/.Launcher: 12389 ms (total 12389 ms)
    12-23 19:04:17.256: I/PackageManager(51): Removing non-system package:com.example.ex61
    12-23 19:04:17.256: D/PackageManager(51): Removing package com.example.ex61
    12-23 19:04:17.256: D/PackageManager(51):   Activities: com.example.ex61.Principale com.example.ex61.Enfant1 com.example.ex61.Enfant2
    12-23 19:04:17.326: D/PackageManager(51): Scanning package com.example.ex61
    12-23 19:04:17.336: I/PackageManager(51): /data/app/vmdl22248.tmp changed; unpacking
    12-23 19:04:17.336: D/installd(31): DexInv: --- BEGIN '/data/app/vmdl22248.tmp' ---
    12-23 19:04:17.876: D/dalvikvm(201): DexOpt: couldn't find field Landroid/graphics/BitmapFactory$Options;.inMutable
    12-23 19:04:18.286: D/dalvikvm(201): DexOpt: load 120ms, verify 541ms, opt 27ms
    12-23 19:04:18.326: D/installd(31): DexInv: --- END '/data/app/vmdl22248.tmp' (success) ---
    12-23 19:04:18.326: D/PackageManager(51):   Activities: com.example.ex61.Principale com.example.ex61.Enfant1 com.example.ex61.Enfant2
    12-23 19:04:18.338: D/ActivityManager(51): Uninstalling process com.example.ex61
    12-23 19:04:18.386: I/installd(31): move /data/dalvik-cache/data@app@vmdl22248.tmp@classes.dex -> /data/dalvik-cache/data@app@com.example.ex61.apk@classes.dex
    12-23 19:04:18.386: D/PackageManager(51): New package installed in /data/app/com.example.ex61.apk
    12-23 19:04:18.447: D/AndroidRuntime(130): Shutting down VM
    12-23 19:04:18.447: D/dalvikvm(130): DestroyJavaVM waiting for non-daemon threads to exit
    12-23 19:04:18.447: D/dalvikvm(130): DestroyJavaVM shutting VM down
    12-23 19:04:18.447: D/dalvikvm(130): HeapWorker thread shutting down
    12-23 19:04:18.447: D/dalvikvm(130): HeapWorker thread has shut down
    12-23 19:04:18.447: D/jdwp(130): JDWP shutting down net...
    12-23 19:04:18.447: I/jdwp(130): adbd disconnected
    12-23 19:04:18.447: D/dalvikvm(130): VM cleaning up
    12-23 19:04:18.456: D/dalvikvm(130): LinearAlloc 0x0 used 621708 of 5242880 (11%)
    12-23 19:04:18.476: D/ActivityManager(51): Uninstalling process com.example.ex61
    12-23 19:04:18.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f0700e5
    12-23 19:04:18.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f020031
    12-23 19:04:18.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f020030
    12-23 19:04:18.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f050000
    12-23 19:04:18.586: W/ResourceType(51): Resources don't contain package for resource number 0x7f060000
    12-23 19:04:18.606: W/ResourceType(51): Resources don't contain package for resource number 0x7f060001
    12-23 19:04:18.696: I/ActivityManager(51): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=207 uid=10012 gids={}
    12-23 19:04:18.756: D/dalvikvm(97): GC freed 2659 objects / 142472 bytes in 198ms
    12-23 19:04:18.856: D/dalvikvm(29): GC freed 277 objects / 10560 bytes in 173ms
    12-23 19:04:19.016: D/dalvikvm(29): GC freed 45 objects / 1992 bytes in 151ms
    12-23 19:04:19.106: D/dalvikvm(51): GC freed 5823 objects / 393800 bytes in 368ms
    12-23 19:04:19.196: D/dalvikvm(29): GC freed 2 objects / 48 bytes in 188ms
    12-23 19:04:19.226: W/ResourceType(51): Resources don't contain package for resource number 0x7f0700e5
    12-23 19:04:19.226: W/ResourceType(51): Resources don't contain package for resource number 0x7f020031
    12-23 19:04:19.226: W/ResourceType(51): Resources don't contain package for resource number 0x7f020030
    12-23 19:04:19.226: W/ResourceType(51): Resources don't contain package for resource number 0x7f050000
    12-23 19:04:19.246: W/ResourceType(51): Resources don't contain package for resource number 0x7f060000
    12-23 19:04:19.246: W/ResourceType(51): Resources don't contain package for resource number 0x7f060001
    12-23 19:04:19.496: D/AndroidRuntime(208): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
    12-23 19:04:19.516: D/AndroidRuntime(208): CheckJNI is ON
    12-23 19:04:19.696: D/AndroidRuntime(208): --- registering native functions ---
    12-23 19:04:20.136: I/ActivityManager(51): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.ex61/.Principale }
    12-23 19:04:20.156: I/ActivityManager(51): Start proc com.example.ex61 for activity com.example.ex61/.Principale: pid=219 uid=10033 gids={}
    12-23 19:04:20.186: D/AndroidRuntime(208): Shutting down VM
    12-23 19:04:20.186: D/dalvikvm(208): DestroyJavaVM waiting for non-daemon threads to exit
    12-23 19:04:20.186: D/dalvikvm(208): DestroyJavaVM shutting VM down
    12-23 19:04:20.186: D/dalvikvm(208): HeapWorker thread shutting down
    12-23 19:04:20.186: D/dalvikvm(208): HeapWorker thread has shut down
    12-23 19:04:20.186: D/jdwp(208): JDWP shutting down net...
    12-23 19:04:20.186: I/jdwp(208): adbd disconnected
    12-23 19:04:20.186: D/dalvikvm(208): VM cleaning up
    12-23 19:04:20.206: E/AndroidRuntime(208): ERROR: thread attach failed
    12-23 19:04:20.206: D/dalvikvm(208): LinearAlloc 0x0 used 637292 of 5242880 (12%)
    12-23 19:04:20.286: D/ddm-heap(91): Got feature list request
    12-23 19:04:20.306: D/ddm-heap(131): Got feature list request
    12-23 19:04:20.326: D/ddm-heap(139): Got feature list request
    12-23 19:04:20.456: D/ddm-heap(219): Got feature list request
    12-23 19:04:20.456: I/ARMAssembler(51): generated scanline__00000177:03515104_00000001_00000000 [ 73 ipp] (95 ins) at [0x569ec8:0x56a044] in 1001027 ns
    12-23 19:04:20.558: D/AndroidRuntime(219): Shutting down VM
    12-23 19:04:20.558: W/dalvikvm(219): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
    12-23 19:04:20.558: E/AndroidRuntime(219): Uncaught handler: thread main exiting due to uncaught exception
    12-23 19:04:20.606: I/ARMAssembler(51): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x56a070:0x56a17c] in 2530198 ns
    12-23 19:04:20.626: E/AndroidRuntime(219): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.ex61/com.example.ex61.Principale}: java.lang.NullPointerException
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread.access$2200(ActivityThread.java:119)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.os.Looper.loop(Looper.java:123)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread.main(ActivityThread.java:4363)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at java.lang.reflect.Method.invokeNative(Native Method)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at java.lang.reflect.Method.invoke(Method.java:521)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at dalvik.system.NativeStart.main(Native Method)
    12-23 19:04:20.626: E/AndroidRuntime(219): Caused by: java.lang.NullPointerException
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.content.ContextWrapper.getPackageName(ContextWrapper.java:120)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:356)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:351)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at com.example.ex61.Principale.<init>(Principale.java:24)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at java.lang.Class.newInstanceImpl(Native Method)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at java.lang.Class.newInstance(Class.java:1479)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
    12-23 19:04:20.626: E/AndroidRuntime(219): 	... 11 more
    12-23 19:04:20.869: I/Process(51): Sending signal. PID: 219 SIG: 3
    12-23 19:04:20.876: I/dalvikvm(219): threadid=7: reacting to signal 3
    12-23 19:04:20.876: E/dalvikvm(219): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
    12-23 19:04:21.058: D/ddm-heap(190): Got feature list request
    12-23 19:04:21.086: D/ddm-heap(207): Got feature list request
    12-23 19:04:21.096: I/ARMAssembler(51): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x585fd8:0x586094] in 294466 ns
    12-23 19:04:21.136: I/ARMAssembler(51): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x586098:0x586260] in 344992 ns
    12-23 19:04:21.167: D/ddm-heap(174): Got feature list request
    12-23 19:04:21.167: D/ddm-heap(155): Got feature list request
    12-23 19:04:22.976: I/Process(219): Sending signal. PID: 219 SIG: 9
    12-23 19:04:22.988: I/ActivityManager(51): Process com.example.ex61 (pid 219) has died.
    12-23 19:04:22.988: I/UsageStats(51): Unexpected resume of com.android.launcher while already resumed in com.example.ex61
    12-23 19:04:23.046: W/InputManagerService(51): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@49eb2cc8
    12-23 19:13:47.696: D/dalvikvm(51): threadid=15: bogus mon 1+0>0; adjusting

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    sinon l'application fonctionne parfaitement quand je supprime tout ce qui est relatif aux SharedPreferences

  7. #7
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    hmm dans le doute, essai de déplacer
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    SharedPreferences.Editor editor = preferences.edit();
    juste au dessus de
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    editor.putString("montexte", "resolu");
         	editor.commit();
    dans le onActivityResult

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    ça remarche : le texte de mon bouton devient résolu quand une certaine condition est réalisée. Mais quand je quitte l'application (raccourci echap de l'émulateur) et que je la réouvre, j'obtiens le texte initial de mon appli: ça ne m'a pas sauvegardé l'état de mon appli...

  9. #9
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    Il faut que quand tu lance ton activité tu modifie le texte du bouton par le texte présent dans le sharedpref

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
     
    import etc...;
    public class Principale extends Activity {
     
    Button bouton_1;
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_principale);
            bouton_1=(Button)findViewById(R.id.bouton1);
            bouton_1.setOnClickListener(new OnClickListener(){
                public void onClick (View view){
                        ...
                }
            })
    public void onActivityResult (int requestCode, int resultCode, Intent data){
            SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
            SharedPreferences.Editor editor = preferences.edit();
        	editor.putString("montexte", "resolu");
         	editor.commit();
     
            switch (requestCode){
            case (1):
            if (resultCode==RESULT_OK){
            	String chaine = preferences.getString("montexte", "");
            	bouton_1.setText(chaine);
            }
           }
    }
    mais quand je rajoute bouton_1.setText(chaine) dans le onCreate, chaine "can't be solved as a variable" . Normal chaine est définie en dessous... résultat je vois pas trop comment arranger le code pour à la fois avoir les SharedPreferences dans le onActivityResult et le chaine dans l'activité principale sans qu'il y ait d'erreurs.

  11. #11
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    Dans le Oncreate tu met ça :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
      bouton_1=(Button)findViewById(R.id.bouton1);
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    String chaine = preferences.getString("montexte", "chaine par défaut");
            	bouton_1.setText(chaine);
    et tu remplace "chaine par défaut" par la chaine que tu souhaite avoir au 1er lancement lorsque l'utilisateur n'a encore rien fait.

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    import etc...;
    public class Principale extends Activity {
     
    Button bouton_1;
     
    public void onCreate(Bundle savedInstanceState) {
            bouton_1=(Button)findViewById(R.id.bouton_1);
            SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
            String chaine = preferences.getString("montexte", "chaine par défaut");
            bouton_1.setText(chaine);
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_principale);
            bouton_1=(Button)findViewById(R.id.bouton1);
            bouton_1.setOnClickListener(new OnClickListener(){
                public void onClick (View view){
                        ...
                }
            })
    public void onActivityResult (int requestCode, int resultCode, Intent data){
            SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
            SharedPreferences.Editor editor = preferences.edit();
        	editor.putString("montexte", "resolu");
         	editor.commit();
     
            switch (requestCode){
            case (1):
            if (resultCode==RESULT_OK){
            	String chaine = preferences.getString("montexte", "");
            	bouton_1.setText(chaine);
            }
           }
    }
    mais là pareil j'ai une "fermeture soudaine de l'appli" sans qu'il y ait d'erreur (ni dans Problems ni dan sle logcat où les dernières erreurs datent de 20h24...)

  13. #13
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    C'est normal tu déclare ton bouton avant d'avoir afficher la vue ...
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    import etc...;
    public class Principale extends Activity {
     
    Button bouton_1;
     
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_principale);
            bouton_1=(Button)findViewById(R.id.bouton_1);
            SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
            String chaine = preferences.getString("montexte", "chaine par défaut");
            bouton_1.setText(chaine);
     
            bouton_1.setOnClickListener(new OnClickListener(){
                public void onClick (View view){
                        ...
                }
            })
    public void onActivityResult (int requestCode, int resultCode, Intent data){
            SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
            SharedPreferences.Editor editor = preferences.edit();
        	editor.putString("montexte", "resolu");
         	editor.commit();
     
            switch (requestCode){
            case (1):
            if (resultCode==RESULT_OK){
            	String chaine = preferences.getString("montexte", "");
            	bouton_1.setText(chaine);
            }
           }
    }

  14. #14
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2011
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2011
    Messages : 84
    Points : 51
    Points
    51
    Par défaut
    ok j'ai plus d'erreur !
    Au fait pour réinitialiser l'application (comme lorsque l'utilisiteur démarre pour la première fois l'appli), comment fait-on ? Un bouton dans Eclipse prévu pour ?
    Je vais analyser le code pour les SharedPreferences, et je reviendrai si j'ai des questions

    Merci.

  15. #15
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2013
    Messages
    149
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2013
    Messages : 149
    Points : 196
    Points
    196
    Par défaut
    Soit tu crée un bouton spécial dans ton application ou tu modifie le sharedpref soit tu désintalle/réinstalle

Discussions similaires

  1. Modifier le contenu d'un fichier XML
    Par khouloudmad dans le forum Format d'échange (XML, JSON...)
    Réponses: 1
    Dernier message: 04/05/2012, 14h30
  2. Modifier le contenu d'un fichier XML
    Par bkwaadbk dans le forum Qt
    Réponses: 4
    Dernier message: 28/08/2011, 23h17
  3. Modifier Contenu d'un fichier XML Javascript
    Par missd12 dans le forum XML/XSL et SOAP
    Réponses: 9
    Dernier message: 15/07/2009, 14h31
  4. [DOM] Modifier un noeud dans un fichier XML
    Par erivoil dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 04/01/2007, 13h11
  5. Lire le contenu d'un fichier xml
    Par Invité dans le forum Bibliothèques
    Réponses: 4
    Dernier message: 10/01/2006, 20h13

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo