Android 1.6 emulator crash - android

I have 3 1.6 emulators that continue to crash a few minutes after I start them (Note my 2.1 and 2.2 emulators work fine). I made a brand new one today (without the market enabled or SD card support) and it still had the same problem. The strange thing is they crash without using them. I just start them up, walk away for 5 minutes and boom, the emulator is gone from the DDMS devices view in Eclipse. It is still visible on screen, and I can run the standard apps it comes with, but Eclipse no longer recognizes it to run/debug any apps on it.
The log is enormous from start up to crash and it has what looks to be a ton of faults, so I'm going to try to post some individual logs rather than the whole darn thing.
Any thoughts what I could do? Thanks all
Error list:
12-31 14:32:26.592: ERROR/MemoryHeapBase(67): error opening /dev/pmem: No such file or directory
12-31 14:32:26.592: ERROR/SurfaceFlinger(67): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
12-31 14:32:26.692: ERROR/libEGL(67): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
12-31 14:32:27.222: ERROR/libEGL(78): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
12-31 14:32:49.081: ERROR/BatteryService(67): Could not open '/sys/class/power_supply/usb/online'
12-31 14:32:49.081: ERROR/BatteryService(67): Could not open '/sys/class/power_supply/battery/batt_vol'
12-31 14:32:49.081: ERROR/BatteryService(67): Could not open '/sys/class/power_supply/battery/batt_temp'
12-31 14:32:49.851: ERROR/EventHub(67): could not get driver version for /dev/input/mouse0, Not a typewriter
12-31 14:32:49.851: ERROR/EventHub(67): could not get driver version for /dev/input/mice, Not a typewriter
12-31 14:32:50.122: ERROR/System(67): Failure starting core service
12-31 14:32:50.122: ERROR/System(67): java.lang.SecurityException
12-31 14:32:50.122: ERROR/System(67): at android.os.BinderProxy.transact(Native Method)
12-31 14:32:50.122: ERROR/System(67): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-31 14:32:50.122: ERROR/System(67): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-31 14:32:50.122: ERROR/System(67): at com.android.server.ServerThread.run(SystemServer.java:162)
12-31 14:32:50.122: ERROR/AndroidRuntime(67): Crash logging skipped, no checkin service
12-31 14:33:02.751: ERROR/ActivityThread(141): Failed to find provider info for com.google.settings
12-31 14:33:06.832: ERROR/ActivityThread(141): Failed to find provider info for com.google.settings
12-31 14:33:02.868: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:05.538: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:06.150: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:06.740: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:06.890: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:07.859: ERROR/ApplicationContext(67): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
12-31 14:33:12.489: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
Warn list:
12-31 14:32:26.711: WARN/HAL(67): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
12-31 14:32:26.711: WARN/HAL(67): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
12-31 14:32:26.721: WARN/HAL(67): load: module=/system/lib/hw/copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found
12-31 14:32:26.721: WARN/HAL(67): load: module=/system/lib/hw/copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found
12-31 14:32:26.721: WARN/HAL(67): load: module=/system/lib/hw/overlay.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.goldfish.so' not found
12-31 14:32:26.721: WARN/HAL(67): load: module=/system/lib/hw/overlay.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.default.so' not found
12-31 14:32:26.832: WARN/EntropyService(67): unable to load initial entropy (first boot?)
12-31 14:32:26.832: WARN/EntropyService(67): java.io.FileNotFoundException: /data/system/entropy.dat
12-31 14:32:26.832: WARN/EntropyService(67): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:231)
12-31 14:32:26.832: WARN/EntropyService(67): at java.io.FileInputStream.<init>(FileInputStream.java:80)
12-31 14:32:26.832: WARN/EntropyService(67): at java.io.FileInputStream.<init>(FileInputStream.java:135)
12-31 14:32:26.832: WARN/EntropyService(67): at com.android.server.RandomBlock.fromFile(RandomBlock.java:44)
12-31 14:32:26.832: WARN/EntropyService(67): at com.android.server.EntropyService.loadInitialEntropy(EntropyService.java:88)
12-31 14:32:26.832: WARN/EntropyService(67): at com.android.server.EntropyService.<init>(EntropyService.java:75)
12-31 14:32:26.832: WARN/EntropyService(67): at com.android.server.ServerThread.run(SystemServer.java:97)
12-31 14:32:27.422: WARN/PackageManager(67): Running ENG build: no pre-dexopt!
12-31 14:32:29.541: WARN/dalvikvm(91): DexOpt: resolve class illegal access: Landroid/text/PackedIntVectorTest; -> Landroid/text/PackedIntVector;
12-31 14:32:29.582: WARN/dalvikvm(91): DexOpt: resolve class illegal access: Lcom/android/internal/os/LoggingPrintStreamTest$TestPrintStream; -> Lcom/android/internal/os/LoggingPrintStream;
12-31 14:32:43.822: WARN/PackageParser(67): Intent filter for activity ActivityIntentInfo{438019c8 com.android.camera.ReviewImage} defines no actions
12-31 14:32:44.802: WARN/PackageParser(67): Intent filter for activity ActivityIntentInfo{438ba948 com.example.android.apis.media.MediaPlayerDemo_Audio} defines no actions
12-31 14:32:44.802: WARN/PackageParser(67): Intent filter for activity ActivityIntentInfo{438c4680 com.example.android.apis.media.MediaPlayerDemo_Video} defines no actions
12-31 14:32:48.231: WARN/PackageManager(67): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
12-31 14:32:48.241: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
12-31 14:32:48.241: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
12-31 14:32:48.241: WARN/PackageManager(67): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings
12-31 14:32:48.241: WARN/PackageManager(67): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings
12-31 14:32:48.241: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.google.android.providers.enhancedgooglesearch
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES in package com.google.android.providers.enhancedgooglesearch
12-31 14:32:48.251: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.browser
12-31 14:32:48.262: WARN/PackageManager(67): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
12-31 14:32:48.632: WARN/ActivityManager(67): Unable to start service Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService }: not found
12-31 14:32:48.632: WARN/AccountMonitor(67): Couldn't connect to Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService } (Missing service?)
12-31 14:32:49.174: WARN/HAL(67): load: module=/system/lib/hw/lights.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.goldfish.so' not found
12-31 14:32:49.181: WARN/HAL(67): load: module=/system/lib/hw/lights.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/lights.default.so' not found
12-31 14:32:49.431: WARN/SettingsProvider(67): Unable to add bookmark: com.google.android.gm/com.google.android.gm.ConversationListActivityGmail
12-31 14:32:49.431: WARN/SettingsProvider(67): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.gm/com.google.android.gm.ConversationListActivityGmail}
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:498)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:526)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.onCreate(DatabaseHelper.java:124)
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:197)
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:408)
12-31 14:32:49.431: WARN/SettingsProvider(67): at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:374)
12-31 14:32:49.431: WARN/SettingsProvider(67): at android.os.HandlerThread.run(HandlerThread.java:59)
12-31 14:32:49.441: WARN/SettingsProvider(67): Unable to add bookmark: com.android.providers.im/com.android.providers.im.LandingPage
12-31 14:32:49.441: WARN/SettingsProvider(67): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.android.providers.im/com.android.providers.im.LandingPage}
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:498)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:526)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.onCreate(DatabaseHelper.java:124)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:197)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:408)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:374)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.os.HandlerThread.run(HandlerThread.java:59)
12-31 14:32:49.441: WARN/SettingsProvider(67): Unable to add bookmark: com.android.calendar/com.android.calendar.LaunchActivity
12-31 14:32:49.441: WARN/SettingsProvider(67): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.android.calendar/com.android.calendar.LaunchActivity}
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:498)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:526)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.onCreate(DatabaseHelper.java:124)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:197)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:408)
12-31 14:32:49.441: WARN/SettingsProvider(67): at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:374)
12-31 14:32:49.441: WARN/SettingsProvider(67): at android.os.HandlerThread.run(HandlerThread.java:59)
12-31 14:32:49.451: WARN/SettingsProvider(67): Unable to add bookmark: com.google.android.apps.maps/com.google.android.maps.MapsActivity
12-31 14:32:49.451: WARN/SettingsProvider(67): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity}
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:498)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:526)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.onCreate(DatabaseHelper.java:124)
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:197)
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:408)
12-31 14:32:49.451: WARN/SettingsProvider(67): at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:374)
12-31 14:32:49.451: WARN/SettingsProvider(67): at android.os.HandlerThread.run(HandlerThread.java:59)
12-31 14:32:49.482: WARN/SettingsProvider(67): Unable to add bookmark: com.google.android.youtube/com.google.android.youtube.HomeActivity
12-31 14:32:49.482: WARN/SettingsProvider(67): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.youtube/com.google.android.youtube.HomeActivity}
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:498)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.loadBookmarks(DatabaseHelper.java:526)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.providers.settings.DatabaseHelper.onCreate(DatabaseHelper.java:124)
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:197)
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:408)
12-31 14:32:49.482: WARN/SettingsProvider(67): at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:374)
12-31 14:32:49.482: WARN/SettingsProvider(67): at android.os.HandlerThread.run(HandlerThread.java:59)
12-31 14:32:50.372: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f060000
12-31 14:32:50.372: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f060001
12-31 14:32:50.421: WARN/ResourceType(67): Failure getting entry for 0x7f060000 (t=5 e=0) in package 0: 0xffffffb5
12-31 14:32:50.891: WARN/ActivityManager(67): Unable to start service Intent { cmp=com.google.android.server.checkin/.CheckinService }: not found
12-31 14:32:50.891: WARN/SystemServer(67): Using fallback Checkin Service.
12-31 14:32:51.031: WARN/GpsLocationProvider(67): Could not open GPS configuration file /etc/gps.conf
12-31 14:32:51.181: WARN/AudioService(67): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
12-31 14:32:51.181: WARN/AudioService(67): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
12-31 14:32:51.191: WARN/AudioService(67): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
12-31 14:32:51.191: WARN/AudioService(67): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
12-31 14:32:51.191: WARN/AudioService(67): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
12-31 14:32:51.191: WARN/HeadsetObserver(67): This kernel does not have wired headset support
12-31 14:32:51.421: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f03002f
12-31 14:32:51.472: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f030000
12-31 14:32:51.491: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f030003
12-31 14:32:51.501: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f03000e
12-31 14:32:51.511: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f030009
12-31 14:32:51.682: WARN/ResourceType(67): No package identifier when getting value for resource number 0x00000000
12-31 14:32:51.682: WARN/StatusBar(67): Icon not found in <system>: 0
12-31 14:32:57.011: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f060000
12-31 14:32:57.032: WARN/ResourceType(67): No package identifier when getting value for resource number 0x7f060001
12-31 14:33:01.292: WARN/UsageStats(67): Unexpected resume of com.android.launcher while already resumed in com.android.sdksetup
12-31 14:33:01.631: WARN/ActivityManager(67): Unable to start service Intent { act=com.android.ussd.IExtendedNetworkService }: not found
12-31 14:33:02.270: WARN/SystemClock(119): Unable to set rtc to 1293823982: Invalid argument
12-31 14:33:02.868: WARN/Checkin(119): Can't update stat PHONE_GSM_REGISTERED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
12-31 14:33:05.538: WARN/Checkin(119): Can't update stat PHONE_GPRS_ATTEMPTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
12-31 14:33:06.150: ERROR/ActivityThread(119): Failed to find provider info for android.server.checkin
12-31 14:33:06.150: WARN/Checkin(119): Can't update stat PHONE_GPRS_CONNECTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
12-31 14:33:06.740: WARN/Checkin(119): Can't update stat PHONE_GPRS_ATTEMPTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
12-31 14:33:06.890: WARN/Checkin(119): Can't update stat PHONE_GPRS_CONNECTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
12-31 14:33:07.449: WARN/ActivityManager(67): Unable to start service Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService }: not found
12-31 14:33:07.470: WARN/AccountMonitor(141): Couldn't connect to Intent { act=android.accounts.IAccountsService cmp=com.google.android.googleapps/.GoogleLoginService } (Missing service?)
12-31 14:33:08.688: WARN/SurfaceFlinger(67): timeout expired mFreezeDisplay=1, mFreezeCount=0
12-31 14:33:08.799: WARN/WindowManager(67): App freeze timeout expired.
12-31 14:33:08.799: WARN/WindowManager(67): Force clearing freeze: AppWindowToken{43908b48 token=HistoryRecord{4388a4d0 com.android.launcher/.Launcher}}
12-31 14:33:11.049: WARN/SQLiteDirectCursorDriver(67): Found SQL string that ends in ; -- PRAGMA table_info(favorites);
12-31 14:33:11.380: WARN/LauncherProvider(141): Unable to add favorite: com.google.android.apps.maps/com.google.android.maps.MapsActivity
12-31 14:33:11.380: WARN/LauncherProvider(141): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity}
12-31 14:33:11.380: WARN/LauncherProvider(141): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.addShortcut(LauncherProvider.java:562)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.loadFavorites(LauncherProvider.java:534)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.onCreate(LauncherProvider.java:243)
12-31 14:33:11.380: WARN/LauncherProvider(141): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider.query(LauncherProvider.java:103)
12-31 14:33:11.380: WARN/LauncherProvider(141): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:33:11.380: WARN/LauncherProvider(141): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel.updateShortcutLabels(LauncherModel.java:652)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel.access$900(LauncherModel.java:50)
12-31 14:33:11.380: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel$DesktopItemsLoader.run(LauncherModel.java:759)
12-31 14:33:11.380: WARN/LauncherProvider(141): at java.lang.Thread.run(Thread.java:1060)
12-31 14:33:11.472: WARN/LauncherProvider(141): Unable to add favorite: com.android.vending/com.android.vending.AssetBrowserActivity
12-31 14:33:11.472: WARN/LauncherProvider(141): android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}
12-31 14:33:11.472: WARN/LauncherProvider(141): at android.app.ApplicationContext$ApplicationPackageManager.getActivityInfo(ApplicationContext.java:1670)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.addShortcut(LauncherProvider.java:562)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.loadFavorites(LauncherProvider.java:534)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider$DatabaseHelper.onCreate(LauncherProvider.java:243)
12-31 14:33:11.472: WARN/LauncherProvider(141): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherProvider.query(LauncherProvider.java:103)
12-31 14:33:11.472: WARN/LauncherProvider(141): at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
12-31 14:33:11.472: WARN/LauncherProvider(141): at android.content.ContentResolver.query(ContentResolver.java:152)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel.updateShortcutLabels(LauncherModel.java:652)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel.access$900(LauncherModel.java:50)
12-31 14:33:11.472: WARN/LauncherProvider(141): at com.android.launcher.LauncherModel$DesktopItemsLoader.run(LauncherModel.java:759)
12-31 14:33:11.472: WARN/LauncherProvider(141): at java.lang.Thread.run(Thread.java:1060)

What I would do is reinstall your 1.6 sdk from default install. After that I would recreate your emulators that you have already created and delete the original emulators that you made.

Related

Android Bitmap decode error, not on all devices

i finished my App and started testing it on other devices. My own Device is a HTC One M7 and its working fine. Then i tested it on a Samsung Galaxy S4, the first 2 Layouts are shown but when i start the GameActivity it crashes. Same on an emulated Nexus 7.
But on a ldpi Emulator it works fine.
This is the error i get on the Nexus 7.
12-31 11:27:55.755: E/AndroidRuntime(1514): FATAL EXCEPTION: main
12-31 11:27:55.755: E/AndroidRuntime(1514): Process: com.example.test, PID: 1514
12-31 11:27:55.755: E/AndroidRuntime(1514): java.lang.OutOfMemoryError
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
12-31 11:27:55.755: E/AndroidRuntime(1514): at com.example.test.GameView.<init>(GameView.java:93)
12-31 11:27:55.755: E/AndroidRuntime(1514): at com.example.test.GameActivity.onResume(GameActivity.java:49)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.Activity.performResume(Activity.java:5310)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread.access$800(ActivityThread.java:135)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.os.Handler.dispatchMessage(Handler.java:102)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.os.Looper.loop(Looper.java:136)
12-31 11:27:55.755: E/AndroidRuntime(1514): at android.app.ActivityThread.main(ActivityThread.java:5017)
12-31 11:27:55.755: E/AndroidRuntime(1514): at java.lang.reflect.Method.invokeNative(Native Method)
12-31 11:27:55.755: E/AndroidRuntime(1514): at java.lang.reflect.Method.invoke(Method.java:515)
12-31 11:27:55.755: E/AndroidRuntime(1514): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-31 11:27:55.755: E/AndroidRuntime(1514): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-31 11:27:55.755: E/AndroidRuntime(1514): at dalvik.system.NativeStart.main(Native Method)
Can anyone tell me why it is working on 2 Devices and failing on 2 others?

Android App crashing due to classcastexception when using sliding menu library [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I am getting this error when my app crashes due to Sliding Menu Library
12-31 14:02:54.319: E/AndroidRuntime(4121): java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.ListView.setupChild(ListView.java:1826)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.ListView.makeAndAddView(ListView.java:1793)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.ListView.fillSpecific(ListView.java:1337)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.ListView.layoutChildren(ListView.java:1620)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.AbsListView.onLayout(AbsListView.java:2087)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.onLayout(CustomViewAbove.java:476)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.View.layout(View.java:14817)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewGroup.layout(ViewGroup.java:4631)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.Choreographer.doFrame(Choreographer.java:544)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.os.Handler.handleCallback(Handler.java:733)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.os.Handler.dispatchMessage(Handler.java:95)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.os.Looper.loop(Looper.java:136)
12-31 14:02:54.319: E/AndroidRuntime(4121): at android.app.ActivityThread.main(ActivityThread.java:5001)
12-31 14:02:54.319: E/AndroidRuntime(4121): at java.lang.reflect.Method.invokeNative(Native Method)
12-31 14:02:54.319: E/AndroidRuntime(4121): at java.lang.reflect.Method.invoke(Method.java:515)
12-31 14:02:54.319: E/AndroidRuntime(4121): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
12-31 14:02:54.319: E/AndroidRuntime(4121): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
12-31 14:02:54.319: E/AndroidRuntime(4121): at dalvik.system.NativeStart.main(Native Method)
can anyone help me in this issue. i tried to download fresh copy of library and use, but even then it is not solved. im compiling all my project dependent projects and app with android 5.0
Check/Organise your imports(ctrl + shift + o, in Eclipse) in CustomViewAbove.java and ensure that if LayoutParams have been used anywhere, they are from the package of android.widget.AbsListView.
Basically that is what your error is telling you:
12-31 14:02:54.319: E/AndroidRuntime(4121): java.lang.ClassCastException:
android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
If LayoutParams are being used at multiple places(other than line no. 476), then need to import both packages accordingly.

No implementation found with android chromeview

I'm trying to run chromeview and when I call ChromeView.initialize an UnsatsifiedLinkError exception is thrown.
12-31 16:16:28.050: D/dalvikvm(4910): Late-enabling CheckJNI
12-31 16:16:28.155: I/LibraryLoader(4910): loading: webviewchromium
12-31 16:16:28.155: D/dalvikvm(4910): Trying to load lib /data/app-lib/com.example.chromeviewtest-1/libwebviewchromium.so 0x41c443c0
12-31 16:16:28.155: D/dalvikvm(4910): Added shared lib /data/app-lib/com.example.chromeviewtest-1/libwebviewchromium.so 0x41c443c0
12-31 16:16:28.155: I/LibraryLoader(4910): loaded: webviewchromium
12-31 16:16:28.155: W/dalvikvm(4910): No implementation found for native Lorg/chromium/content/app/LibraryLoader;.nativeLibraryLoaded:([Ljava/lang/String;)I
12-31 16:16:28.155: D/AndroidRuntime(4910): Shutting down VM
12-31 16:16:28.155: W/dalvikvm(4910): threadid=1: thread exiting with uncaught exception (group=0x41995c50)
12-31 16:16:28.160: E/AndroidRuntime(4910): FATAL EXCEPTION: main
12-31 16:16:28.160: E/AndroidRuntime(4910): Process: com.example.chromeviewtest, PID: 4910
12-31 16:16:28.160: E/AndroidRuntime(4910): java.lang.UnsatisfiedLinkError: Native method not found: org.chromium.content.app.LibraryLoader.nativeLibraryLoaded:([Ljava/lang/String;)I
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.content.app.LibraryLoader.nativeLibraryLoaded(Native Method)
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.content.app.LibraryLoader.initializeAlreadyLocked(LibraryLoader.java:122)
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.content.app.LibraryLoader.ensureInitialized(LibraryLoader.java:63)
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.android_webview.AwBrowserProcess$1.run(AwBrowserProcess.java:50)
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:28)
12-31 16:16:28.160: E/AndroidRuntime(4910): at org.chromium.android_webview.AwBrowserProcess.start(AwBrowserProcess.java:46)
12-31 16:16:28.160: E/AndroidRuntime(4910): at us.costan.chrome.impl.ChromeInitializer.initialize(ChromeInitializer.java:49)
12-31 16:16:28.160: E/AndroidRuntime(4910): at us.costan.chrome.ChromeView.initialize(ChromeView.java:851)
12-31 16:16:28.160: E/AndroidRuntime(4910): at com.example.chromeviewtest.MyApplication.onCreate(MyApplication.java:10)
12-31 16:16:28.160: E/AndroidRuntime(4910): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
12-31 16:16:28.160: E/AndroidRuntime(4910): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4396)
These are the steps I did:
Add chromeview as an eclipse project
Created a new android app, chromeviewtest
Added chromeview as a library
Copied the pak file to assets/
Added an Application class like in the README
How can I fix this?
The problem was that chromeview doesn't work on Android 4.4.

trying to use a recycled bitmap android.graphics.Bitmap

I am displaying one .gif in my activity A. When user presses one button user moves to activity b and same .gif is displaying there but I am getting "trying to use a recycled bitmap android.graphics.Bitmap" this error on my activity b.
I am displaying .gif from sd card and on onStop() I am setting imageview of activity a to null as well in activity A but I am not able to solve this issue.
Please help in this case.
//Log Cat
12-31 10:58:49.819: E/AndroidRuntime(20903): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap#405131c8
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.graphics.Canvas.throwIfRecycled(Canvas.java:955)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.graphics.Canvas.drawBitmap(Canvas.java:1044)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:325)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.widget.ImageView.onDraw(ImageView.java:854)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.View.draw(View.java:6880)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.View.draw(View.java:6883)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.View.draw(View.java:6883)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.widget.FrameLayout.draw(FrameLayout.java:357)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.View.draw(View.java:6883)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.widget.FrameLayout.draw(FrameLayout.java:357)
12-31 10:58:49.819: E/AndroidRuntime(20903): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1871)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewRoot.draw(ViewRoot.java:1542)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewRoot.performTraversals(ViewRoot.java:1269)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.view.ViewRoot.handleMessage(ViewRoot.java:1883)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.os.Handler.dispatchMessage(Handler.java:99)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.os.Looper.loop(Looper.java:130)
12-31 10:58:49.819: E/AndroidRuntime(20903): at android.app.ActivityThread.main(ActivityThread.java:3737)
12-31 10:58:49.819: E/AndroidRuntime(20903): at java.lang.reflect.Method.invokeNative(Native Method)
12-31 10:58:49.819: E/AndroidRuntime(20903): at java.lang.reflect.Method.invoke(Method.java:507)
12-31 10:58:49.819: E/AndroidRuntime(20903): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:894)
12-31 10:58:49.819: E/AndroidRuntime(20903): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
12-31 10:58:49.819: E/AndroidRuntime(20903): at dalvik.system.NativeStart.main(Native Method)
You can have check before recycling the bitmap, as like :
if (img != null && !img.isRecycled())
{
img.recycle();
img = null;
System.gc();
}
Here img is bitmap.
Try this type error is solved.
Try to find references of usage of the method recycle() in your code or in any library that you use. It indicates that someone is recycling a bitmap that is still being used which is not good. You can only safely call the recycle() method when you are absolutely sure that the given bitmap won't be necessary anymore.
It is usually a common problem when you are dealing with bitmap caches, not sure if that is your case.
Solution already provided here : Canvas: trying to use a recycled bitmap android.graphics.Bitmap in android
This one should work . Otherwise checkout the link for more solutions
if (mBitmap != null && !mBitmap.isRecycled()) {
mBitmap.recycle();
mBitmap = null;
}

Access a database from Broadcast receiver?

I cant access my SQlite database from my broadcast receiver. Is it even possible? I keep getting a NullPointerException. In the onReceive of the BroadcastReceiver I call
mDbHelper = new ResponderDbAdapter(context);
mDbHelper.open();
Is it something to do with the context? I want to pull database info that gets set in my MainActivity into the BroadCast Receiver.
Ideas?
EDIT :
ERROR:
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): FATAL EXCEPTION: main
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): java.lang.RuntimeException: Unable to start receiver com.test.example.feed.receiver.RecieveSMS: java.lang.NullPointerException
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1805)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.app.ActivityThread.access$2400(ActivityThread.java:117)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:981)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.os.Looper.loop(Looper.java:130)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.app.ActivityThread.main(ActivityThread.java:3684)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at java.lang.reflect.Method.invokeNative(Native Method)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at java.lang.reflect.Method.invoke(Method.java:507)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:845)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:603)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at dalvik.system.NativeStart.main(Native Method)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): Caused by: java.lang.NullPointerException
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at com.test.example.feed.receiver.RecieveSMS.onReceive(RecieveSMS.java:67)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1794)
07-29 16:43:46.491: ERROR/AndroidRuntime(6772): ... 10 more
EDIT: A Better Explanation
I have a separate activity that allows the user to add items to the database. I want to share this with the receiver so that the broadcast receiver knows what items are in the database. ResponderDbAdapter is a class that accesses the Db and performs fetches and inserts to the DB. What would the context be...if I have the broadcast receiver running even if the application is closed how can it access a database?
The Broadcast Receivers version of the context is probably not working for the DBHelper. Have the Receiver fire up a service and have the service access the DB

Categories

Resources