Posting Toast From Worker Thread to UI Thread

by Kumar Bibek » Wed, 11 Aug 2010 04:34:41 GMT


Sponsored Links
 Do you get an error? Check your logcat for some hints.

-Kumar Bibek
 http://techdroid.kbeanie.com 




--



Other Threads

1. Dynamically Resize Images for different Android devices

Hi All
    My issue is simple.I want to use one set of images which can be
used on mobile as well as tablets.I have a image of size 690 by 400 .i
want to use this image and resize it programmatically and have this
resized image displayed on mobiles.
   Could anyone please give an idea on how to accomplish this?This is
bcoz if i use different set of images it will increase the size of
"apk".

-- 

2. AVD with Google-API crash

Hello,

created an avd with google-api's API Level 9. My application uses GPS
when i simulate via GPX File the AndroidRuntime crashes. Here is the
stack:
=== 8< ===
D/dalvikvm( 1188): GC_EXTERNAL_ALLOC freed 104K, 51% free 2678K/5447K,
external 2094K/2137K, paused 68ms
D/GPSRecorder( 1188): Track MyTrack001 created, Id: 2
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   31): Build fingerprint:
'generic/google_sdk/generic:2.3/GRH55/79397:eng/test-keys'
I/DEBUG   (   31): pid: 899, tid: 992  >>> system_server <<<
I/DEBUG   (   31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000
I/DEBUG   (   31):  r0 00000000  r1 40549dd8  r2 41adfcbc  r3 46b9bd64
I/DEBUG   (   31):  r4 0000012e  r5 00000000  r6 40549dd8  r7 41adfcbc
I/DEBUG   (   31):  r8 84301321  r9 84302240  10 00100000  fp 00000001
I/DEBUG   (   31):  ip 82f0e7d4  sp 46b9bd50  lr 82f0ab37  pc 82f07d0e
cpsr 00000030
I/DEBUG   (   31):          #00  pc
00007d0e  /system/lib/libandroid_servers.so
I/DEBUG   (   31):          #01  pc
0000ab32  /system/lib/libandroid_servers.so
I/DEBUG   (   31):          #02  pc
00001414  /system/lib/hw/gps.goldfish.so
I/DEBUG   (   31):          #03  pc 00011a7c  /system/lib/libc.so
I/DEBUG   (   31):          #04  pc 00011640  /system/lib/libc.so
I/DEBUG   (   31): 
I/DEBUG   (   31): code around pc:
I/DEBUG   (   31): 82f07cec ab04b082 9301cb04 6f646804 b00247a0 
I/DEBUG   (   31): 82f07cfc bc08bc10 4718b002 b510b40c ab04b082 
I/DEBUG   (   31): 82f07d0c 6804cb04 34f89301 47a06824 bc10b002 
I/DEBUG   (   31): 82f07d1c b002bc08 46c04718 b510b40c ab04b082 
I/DEBUG   (   31): 82f07d2c 9301cb04 34986804 47a06824 bc10b002 
I/DEBUG   (   31): 
I/DEBUG   (   31): code around lr:
I/DEBUG   (   31): 82f0ab14 91099008 f7fb6aa0 900aeb14 1c3a910b 
I/DEBUG   (   31): 82f0ab24 6b646b23 930c1c28 1c31940d f7fd9b0f 
I/DEBUG   (   31): 82f0ab34 4906f8e7 44791c28 f7ff3150 b011fe1d 
I/DEBUG   (   31): 82f0ab44 46c0bdf0 0000454c 000042c8 00000786 
I/DEBUG   (   31): 82f0ab54 f7fbb510 bd10ec7c 4802b510 f7fb4478 
I/DEBUG   (   31): 
I/DEBUG   (   31): stack:
I/DEBUG   (   31):     46b9bd10  46b9be43  
I/DEBUG   (   31):     46b9bd14  46b9be49  
I/DEBUG   (   31):     46b9bd18  46b9be4a  
I/DEBUG   (   31):     46b9bd1c  46b9be53  
I/DEBUG   (   31):     46b9bd20  0000ab90  [heap]
I/DEBUG   (   31):     46b9bd24  81d48bd3  /system/lib/libdvm.so
I/DEBUG   (   31):     46b9bd28  0000ab90  [heap]
I/DEBUG   (   31):     46b9bd2c  46b9bd5c  
I/DEBUG   (   31):     46b9bd30  00010004  [heap]
I/DEBUG   (   31):     46b9bd34  81d3761b  /system/lib/libdvm.so
I/DEBUG   (   31):     46b9bd38  46b9be63  
I/DEBUG   (   31):     46b9bd3c  46b9be64  
I/DEBUG   (   31):     46b9bd40  46b9be65  
I/DEBUG   (   31):     46b9bd44  46b9be00  
I/DEBUG   (   31):     46b9bd48  df002777  
I/DEBUG   (   31):     46b9bd4c  e3a070ad  
I/DEBUG   (   31): #00 46b9bd50  00000000  
I/DEBUG   (   31):     46b9bd54
8053bf25  /system/lib/libandroid_runtime.so
I/DEBUG   (   31):     46b9bd58  0000012e  
I/DEBUG   (   31):     46b9bd5c
82f0ab37  /system/lib/libandroid_servers.so
I/DEBUG   (   31):     46b9bd60
41adfcbc  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   (   31):     46b9bd64  00000003  
I/DEBUG   (   31): #01 46b9bd68  f6a93f29  
I/DEBUG   (   31):     46b9bd6c  c043f2e9  
I/DEBUG   (   31):     46b9bd70  b9858095  
I/DEBUG   (   31):     46b9bd74  4066004a  /dev/ashmem/dalvik-heap
(deleted)
I/DEBUG   (   31):     46b9bd78  00000000  
I/DEBUG   (   31):     46b9bd7c  00000000  
I/DEBUG   (   31):     46b9bd80  00000000  
I/DEBUG   (   31):     46b9bd84  00000000  
I/DEBUG   (   31):     46b9bd88  00000000  
I/DEBUG   (   31):     46b9bd8c  00000000  
I/DEBUG   (   31):     46b9bd90  00000000  
I/DEBUG   (   31):     46b9bd94  00000000  
I/DEBUG   (   31):     46b9bd98  b13c4340  
I/DEBUG   (   31):     46b9bd9c  0000012e  
I/DEBUG   (   31):     46b9bda0  46b9be56  
I/DEBUG   (   31):     46b9bda4  00000003  
I/DEBUG   (   31):     46b9bda8  afd4d5c8  
I/DEBUG   (   31):     46b9bdac  46b9bde8  
I/DEBUG   (   31):     46b9bdb0  46b9be90  
I/DEBUG   (   31):     46b9bdb4
84302240  /system/lib/hw/gps.goldfish.so
I/DEBUG   (   31):     46b9bdb8  00000000  
I/DEBUG   (   31):     46b9bdbc
84301417  /system/lib/hw/gps.goldfish.so
I/ActivityManager(  899): Process android.process.media (pid 1055) has
died.
D/AndroidRuntime( 1231): 
D/AndroidRuntime( 1231): >>>>>> AndroidRuntime START
com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1231): CheckJNI is ON
D/AndroidRuntime( 1231): Calling main entry com.android.commands.pm.Pm
I/ActivityManager(  899): Process com.android.email (pid 1108) has died.
I/ActivityManager(  899): Low Memory: No more background processes.
D/AndroidRuntime( 1231): Shutting down VM
D/dalvikvm( 1231): GC_CONCURRENT freed 177K, 71% free 297K/1024K,
external 0K/0K, paused 2ms+2ms
D/dalvikvm( 1231): De{*filter*} has detached; object registry had 1 entries
I/AndroidRuntime( 1231): NOTE: attach of thread 'Binder Thread #3'
failed
I/BootReceiver(  899): Copying /data/tombstones/tombstone_01 to DropBox
(SYSTEM_TOMBSTONE)
D/Zygote  (  886): Process 899 terminated by signal (11)
I/Zygote  (  886): Exit zygote because system server (899) has
terminated
I/ServiceManager(   28): service 'batteryinfo' died
I/ServiceManager(   28): service 'SurfaceFlinger' died
I/ServiceManager(   28): service 'usagestats' died
I/ServiceManager(   28): service 'sensorservice' died
I/ServiceManager(   28): service 'telephony.registry' died
I/ServiceManager(   28): service 'entropy' died
I/ServiceManager(   28): service 'power' died
I/ServiceManager(   28): service 'permission' died
I/ServiceManager(   28): service 'account' died
I/ServiceManager(   28): service 'package' died
I/ServiceManager(   28): service 'meminfo' died
I/ServiceManager(   28): service 'cpuinfo' died
I/ServiceManager(   28): service 'activity' died
I/ServiceManager(   28): service 'content' died
I/ServiceManager(   28): service 'battery' died
I/ActivityThread( 1188): Removing dead content provider: settings
I/ActivityThread(  963): Removing dead content provider: settings
I/ActivityThread(  946): Removing dead content provider: settings
I/ServiceManager(   28): service '{*filter*}' died
I/ServiceManager(   28): service 'hardware' died
I/ServiceManager(   28): service 'alarm' died
I/ServiceManager(   28): service 'window' died
I/ServiceManager(   28): service 'statusbar' died
I/ServiceManager(   28): service 'clipboard' died
I/ServiceManager(   28): service 'device_policy' died
I/ServiceManager(   28): service 'netstat' died
I/ServiceManager(   28): service 'input_method' died
I/ServiceManager(   28): service 'network_management' died
I/ServiceManager(   28): service 'wifi' died
I/ServiceManager(   28): service 'connectivity' died
I/ServiceManager(   28): service 'throttle' died
I/ServiceManager(   28): service 'accessibility' died
I/ServiceManager(   28): service 'mount' died
I/ServiceManager(   28): service 'notification' died
I/ServiceManager(   28): service 'dropbox' died
I/ActivityThread(  959): Removing dead content provider: settings
I/ServiceManager(   28): service 'search' died
I/ServiceManager(   28): service 'devicestoragemonitor' died
I/ServiceManager(   28): service 'wallpaper' died
I/ServiceManager(   28): service 'location' died
I/ServiceManager(   28): service 'audio' died
I/ServiceManager(   28): service 'uimode' died
I/ServiceManager(   28): service 'backup' died
I/ServiceManager(   28): service 'appwidget' died
I/ServiceManager(   28): service 'diskstats' died
E/installd(   35): eof
E/installd(   35): failed to read size
I/installd(   35): closing connection
D/qemud   (   38): fdhandler_event: disconnect on fd 11
I/ServiceManager(   28): service 'media.audio_flinger' died
I/ServiceManager(   28): service 'media.audio_policy' died
I/ServiceManager(   28): service 'media.player' died
I/ServiceManager(   28): service 'media.camera' died
I/ServiceManager(   28): service 'isms' died
I/ServiceManager(   28): service 'simphonebook' died
I/ServiceManager(   28): service 'iphonesubinfo' died
I/ServiceManager(   28): service 'phone' died
=== 8< ===

Thanks for all suggestion they lead me to a workaround.
Daniel

-- 

3. GL_INVALID_OPERATION (1282) after glDrawElements using Vertex Buffer Objects (VBO)

4. drag and drop view in android?

5. Listener for Wifi Connection

6. Unable to restart runtime on Gingerbread

7. Digital Certificate Check on Android