Can not read apk file on android emulator - SDK 1.1

by danielececil...@gmail.com » Thu, 30 Apr 2009 02:05:56 GMT


Sponsored Links
 Hi,

It seems my code cannot read an apk File I have created on the Android
emulator.

- First off, I created an sdcard with command 'mksdcard ...'
- then I run this code:

------------- Begin Cut Here --------------->

File tmpdir = new File(tmpdirpath+name);

if (!tmpdir.exists())
 {
  boolean b = tmpdir.mkdirs();
 }
else
 {
  if (!tmpdir.isDirectory())
  {
   throw new RuntimeException("here : the tmp dir conflicts");
  }
 }
File apk = new File(tmpdirpath + name + "/" + name + ".apk");
if (!apk.exists())
 {
  apk.createNewFile();
 }
// with name = name of my apk file.

------------- End Cut Here --------------->

- The apk file is successfully created on a temporary directory on /
sdcard,
but I have no permissions to read it:

- - - - r w - r w -

- I tryed to change them:
# adb shell
# chmod 777 myFile.apk

No error but permissions remain the same

- - - - r w - r w -

and I get the following exception:
        04-28 14:56:16.296: ERROR/dalvikvm(231): Can't open dex cache '/data/
        dalvik-cache/
        
sdc...@.tmpdir@org.python.pycode._p...@org.python.pycode._pyx0.apk@classes.dex':
        No such file or directory
        04-28 14:56:16.296: INFO/dalvikvm(231): Unable to open or create
cache
        for /sdcard/.tmpdir/org.python.pycode._pyx0/
        org.python.pycode._pyx0.apk
        04-28 14:56:16.306: WARN/System.err(231): java.io.IOException: unable
        to open DEX file
        04-28 14:56:16.326: WARN/System.err(231):     at
        dalvik.system.DexFile.openDexFile(Native Method)
        04-28 14:56:16.336: WARN/System.err(231):     at
        dalvik.system.DexFile.<init>(DexFile.java:55)
        04-28 14:56:16.346: WARN/System.err(231):     at
        dalvik.system.DexFile.<init>(DexFile.java:41)
        04-28 14:56:16.355: WARN/System.err(231):     at
        org.python.debug.FixMe.getClassByName(FixMe.java:93)


Can somebody help please?


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Touch Screen Issue Please suggest some approach

Hi Experts,
Once again I am in need of your comments and guidance. I am able to
get the Android Home screen (which is locked) on AT91SAM9263-ek board,
which has ADS784x touchscreen. But the touchscreen does'nt seem to
work. I am able to do "getevent &" and when I touch the screen I get
some values in /dev/input/event1. I am not getting how to proceed from
here. Please help me out with your comments and suggestions.

Also how do I Unlock my screen?
Below are my processes and my logcat messages. Please suggest me as to
how to proceed.

Regards,
Shridhar

# ps
USER     PID   PPID  VSIZE RSS   WCHAN    PC         NAME
root     1     0     296   176   c0091fe8 0000c86c S /init
root     2     0     0     0     c0053168 00000000 S kthreadd
root     3     2     0     0     c0044c50 00000000 S ksoftirqd/0
root     4     2     0     0     c0061830 00000000 S watchdog/0
root     5     2     0     0     c004fd90 00000000 S events/0
root     6     2     0     0     c004fd90 00000000 S khelper
root     61    2     0     0     c004fd90 00000000 S kblockd/0
root     76    2     0     0     c0181618 00000000 S khubd
root     81    2     0     0     c004fd90 00000000 S kmmcd
root     103   2     0     0     c006d1a4 00000000 S pdflush
root     104   2     0     0     c006d1a4 00000000 S pdflush
root     105   2     0     0     c00709c0 00000000 S kswapd0
root     107   2     0     0     c004fd90 00000000 S aio/0
root     108   2     0     0     c004fd90 00000000 S nfsiod
root     771   2     0     0     c0175b9c 00000000 S mtdblockd
root     816   2     0     0     c004937c 00000000 S w1_control
root     833   2     0     0     c004fd90 00000000 S rpciod/0
root     1571  1     740   316   c0042a58 afe0d08c S /system/bin/sh
system   1572  1     808   260   c01594ec afe0c45c S /system/bin/
servicemanager
root     1573  1     848   368   c0092574 afe0c584 S /system/bin/vold
root     1574  1     668   248   c01bd894 afe0cdec S /system/bin/
de{*filter*}d
root     1576  1     72416 20692 c0092574 afe0c584 S zygote
media    1577  1     17720 3504  ffffffff afe0c45c S /system/bin/
mediaserver
root     1578  1     808   320   c02097c4 afe0c1bc S /system/bin/
installd
root     1580  1     1268  104   ffffffff 0000e8f4 S /sbin/adbd
system   1590  1576  182580 25908 ffffffff afe0c45c S system_server
radio    1629  1576  107204 14156 ffffffff afe0d3e4 S
com.android.phone
app_2    1633  1576  113992 19748 ffffffff afe0d3e4 S
android.process.acore
app_0    1659  1576  93240 12528 ffffffff afe0d3e4 S
com.android.alarmclock
app_4    1663  1576  96408 13356 ffffffff afe0d3e4 S
android.process.media
root     1699  2     0     0     c01ab7c8 00000000 S mmcqd
root     1723  1571  884   340   00000000 afe0c1bc R ps
#
#
#
# logcat -d
I/vold    ( 1573): Android Volume Daemon version 2.0
I/vold    ( 1573): New MMC card 'SD02G' (serial 2801505104) added @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54
I/DEBUG   ( 1574): de{*filter*}d: Apr 21 2009 20:55:00
I/vold    ( 1573): Disk (blkdev 179:0), 3932160 secs (1920 MB) 2
partitions
I/vold    ( 1573): New blkdev 179.0 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 2
I/vold    ( 1573): Partition (blkdev 179:1), 83184 secs (40 MB) type
0xc
I/vold    ( 1573): New blkdev 179.1 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 1
I/vold    ( 1573): Partition (blkdev 179:2), 3848960 secs (1879 MB)
type 0x83
I/vold    ( 1573): New blkdev 179.2 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 0
E/vold    ( 1573): Unable to open '/sys/class/switch' (m)
D/vold    ( 1573): Bootstrapping complete
E/flash_image( 1579): can't find recovery partition
D/AndroidRuntime( 1576):
D/AndroidRuntime( 1576): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1576): CheckJNI is ON
I/        ( 1577): ServiceManager: 0xac38
W/AudioHardwareInterface( 1577): Using stubbed audio hardware. No
sound will be produced.
I/AudioFlinger( 1577): AudioFlinger's thread ready to run for output 0
I/CameraService( 1577): CameraService started: pid=1577
D/AndroidRuntime( 1576): --- registering native functions ---
I/Zygote  ( 1576): Preloading classes...
D/dalvikvm( 1576): GC freed 763 objects / 42128 bytes in 8ms
D/dalvikvm( 1576): GC freed 278 objects / 17200 bytes in 8ms
D/dalvikvm( 1576): GC freed 208 objects / 12664 bytes in 10ms
D/dalvikvm( 1576): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1576): Added shared lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1576): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1576): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1576): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1576): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1576): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1576): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1576): GC freed 462 objects / 29168 bytes in 13ms
D/dalvikvm( 1576): GC freed 3589 objects / 171896 bytes in 39ms
D/dalvikvm( 1576): GC freed 11324 objects / 400784 bytes in 74ms
D/dalvikvm( 1576): GC freed 10472 objects / 438400 bytes in 78ms
D/dalvikvm( 1576): GC freed 10975 objects / 459816 bytes in 85ms
D/dalvikvm( 1576): GC freed 14372 objects / 507000 bytes in 101ms
D/dalvikvm( 1576): GC freed 11332 objects / 481928 bytes in 96ms
D/dalvikvm( 1576): GC freed 5910 objects / 247712 bytes in 77ms
D/dalvikvm( 1576): GC freed 349 objects / 37056 bytes in 62ms
D/dalvikvm( 1576): GC freed 778 objects / 48352 bytes in 86ms
D/dalvikvm( 1576): GC freed 321 objects / 37304 bytes in 87ms
D/dalvikvm( 1576): GC freed 477 objects / 29560 bytes in 88ms
D/dalvikvm( 1576): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1576): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1576): GC freed 441 objects / 26176 bytes in 89ms
D/dalvikvm( 1576): GC freed 505 objects / 41408 bytes in 90ms
D/dalvikvm( 1576): GC freed 537 objects / 38768 bytes in 92ms
D/dalvikvm( 1576): GC freed 342 objects / 22608 bytes in 92ms
D/dalvikvm( 1576): GC freed 338 objects / 18704 bytes in 96ms
D/dalvikvm( 1576): GC freed 628 objects / 32040 bytes in 98ms
D/dalvikvm( 1576): GC freed 14258 objects / 497400 bytes in 156ms
D/dalvikvm( 1576): GC freed 11172 objects / 469752 bytes in 150ms
D/dalvikvm( 1576): GC freed 7125 objects / 310616 bytes in 137ms
D/dalvikvm( 1576): GC freed 753 objects / 43544 bytes in 115ms
D/dalvikvm( 1576): GC freed 598 objects / 31440 bytes in 117ms
D/dalvikvm( 1576): GC freed 413 objects / 26288 bytes in 158ms
I/Zygote  ( 1576): ...preloaded 1166 classes in 15492ms.
D/dalvikvm( 1576): GC freed 313 objects / 19920 bytes in 119ms
I/Zygote  ( 1576): Preloading resources...
D/dalvikvm( 1576): GC freed 54 objects / 11248 bytes in 118ms
D/dalvikvm( 1576): GC freed 337 objects / 14992 bytes in 122ms
D/dalvikvm( 1576): GC freed 280 objects / 11720 bytes in 123ms
I/Zygote  ( 1576): ...preloaded 48 resources in 1247ms.
I/Zygote  ( 1576): ...preloaded 15 resources in 30ms.
D/dalvikvm( 1576): GC freed 117 objects / 8424 bytes in 124ms
D/dalvikvm( 1576): GC freed 205 objects / 8120 bytes in 122ms
D/dalvikvm( 1576): GC freed 36 objects / 1392 bytes in 122ms
I/dalvikvm( 1576): Splitting out new zygote heap
I/dalvikvm( 1576): System server process 1590 has been created
I/Zygote  ( 1576): Accepting command socket connections
D/dalvikvm( 1590): Trying to load lib /system/lib/
libandroid_servers.so 0x0
D/dalvikvm( 1590): Added shared lib /system/lib/libandroid_servers.so
0x0
I/sysproc ( 1590): Entered system_init()
I/sysproc ( 1590): ServiceManager: 0x154ef8
I/SurfaceFlinger( 1590): SurfaceFlinger is starting
I/SurfaceFlinger( 1590): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
E/MemoryHeapBase( 1590): error opening /dev/pmem: No such file or
directory
E/SurfaceFlinger( 1590): Couldn't open /sys/power/wait_for_fb_sleep or
/sys/power/wait_for_fb_wake
E/GLLogger( 1590): couldn't load <libhgl.so> library (Cannot find
library)
I/SurfaceFlinger( 1590): EGL informations:
I/SurfaceFlinger( 1590): # of configs : 6
I/SurfaceFlinger( 1590): vendor    : Android
I/SurfaceFlinger( 1590): version   : 1.31 Android META-EGL
I/SurfaceFlinger( 1590): extensions:
I/SurfaceFlinger( 1590): Client API: OpenGL ES
W/EGLDisplaySurface( 1590): FBIOPUT_VSCREENINFO failed, page flipping
not supported
W/EGLDisplaySurface( 1590): page flipping not supported
(yres_virtual=320, requested=640)
I/EGLDisplaySurface( 1590): using (fd=21)
I/EGLDisplaySurface( 1590): id           =
I/EGLDisplaySurface( 1590): xres         = 240 px
I/EGLDisplaySurface( 1590): yres         = 320 px
I/EGLDisplaySurface( 1590): xres_virtual = 240 px
I/EGLDisplaySurface( 1590): yres_virtual = 320 px
I/EGLDisplaySurface( 1590): bpp          = 16
I/EGLDisplaySurface( 1590): r            =  0:5
I/EGLDisplaySurface( 1590): g            =  5:5
I/EGLDisplaySurface( 1590): b            = 10:5
I/EGLDisplaySurface( 1590): width        = 38 mm (160.421051 dpi)
I/EGLDisplaySurface( 1590): height       = 51 mm (159.372543 dpi)
I/EGLDisplaySurface( 1590): refresh rate = 56.81 Hz
W/HAL     ( 1590): load: module=/system/lib/hw/copybit.atmel.so
error=Cannot find library
W/HAL     ( 1590): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/SurfaceFlinger( 1590): ro.sf.lcd_density not defined, using 160 dpi
by default.
I/SurfaceFlinger( 1590): OpenGL informations:
I/SurfaceFlinger( 1590): vendor    : Android
I/SurfaceFlinger( 1590): renderer  : Android PixelFlinger 1.0
I/SurfaceFlinger( 1590): version   : OpenGL ES-CM 1.0
I/SurfaceFlinger( 1590): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_paletted_texture GL_OES_draw_texture
GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression
GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture
GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object
GL_ANDROID_generate_mipmap
W/HAL     ( 1590): load: module=/system/lib/hw/copybit.atmel.so
error=Cannot find library
W/HAL     ( 1590): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/HAL     ( 1590): load: module=/system/lib/hw/overlay.atmel.so
error=Cannot find library
W/HAL     ( 1590): load: module=/system/lib/hw/overlay.default.so
error=Cannot find library
I/sysproc ( 1590): System server: starting Android runtime.
I/sysproc ( 1590): System server: starting Android services.
I/SystemServer( 1590): Entered the Android system server!
I/sysproc ( 1590): System server: entering thread pool.
E/GLLogger( 1590): couldn't load <libhgl.so> library (Cannot find
library)
I/SystemServer( 1590): Starting Power Manager.
I/ARMAssembler( 1590): generated
scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at
[0x18f560:0x18f62c] in 0 ns
I/SystemServer( 1590): Starting Activity Manager.
I/SystemServer( 1590): Starting telephony registry
I/SystemServer( 1590): Starting Package Manager.
I/Installer( 1590): connecting...
I/installd( 1578): new connection
I/PackageManager( 1590): Got library android.awt in
/system/framework/android.awt.jar
I/PackageManager( 1590): Got library android.test.runner in
/system/framework/android.test.runner.jar
I/PackageManager( 1590): Got library com.android.im.plugin in
/system/framework/com.android.im.plugin.jar
D/PackageManager( 1590): Scanning app dir /system/framework
D/dalvikvm( 1590): GC freed 5809 objects / 244928 bytes in 202ms
D/PackageManager( 1590): Scanning app dir /system/app
E/PackageManager( 1590): Package com.android.netspeed has mismatched
uid: 1000 on disk, 10010 in settings; read messages:
E/PackageManager( 1590): Read completed successfully: 35 packages, 4
shared uids
E/PackageManager( 1590): Package com.android.fallback has mismatched
uid: 1000 on disk, 10006 in settings
E/PackageManager( 1590): Package com.android.htmlviewer has mismatched
uid: 1000 on disk, 10007 in settings
E/PackageManager( 1590): Package com.android.browser has mismatched
uid: 1000 on disk, 10017 in settings
E/PackageManager( 1590): Package com.android.term has mismatched uid:
1000 on disk, 10014 in settings
E/PackageManager( 1590): Package com.android.providers.contacts has
mismatched uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.calculator2 has
mismatched uid: 1000 on disk, 10001 in settings
E/PackageManager( 1590): Package com.android.inputmethod.pinyin has
mismatched uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.customlocale has
mismatched uid: 1000 on disk, 10003 in settings
E/PackageManager( 1590): Package com.android.inputmethod.latin has
mismatched uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.music has mismatched uid:
1000 on disk, 10009 in settings
E/PackageManager( 1590): Package com.android.alarmclock has mismatched
uid: 1000 on disk, 10000 in settings
E/PackageManager( 1590): Package com.android.providers.downloads has
mismatched uid: 1000 on disk, 10004 in settings
E/PackageManager( 1590): Package com.android.development has
mismatched uid: 1000 on disk, 10016 in settings
E/PackageManager( 1590): Package com.android.contacts has mismatched
uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.launcher has mismatched
uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.packageinstaller has
mismatched uid: 1000 on disk, 10011 in settings
E/PackageManager( 1590): Package com.android.sdksetup has mismatched
uid: 1000 on disk, 10012 in settings
E/PackageManager( 1590): Package com.android.spare_parts has
mismatched uid: 1000 on disk, 10013 in settings
D/dalvikvm( 1590): GC freed 4015 objects / 236288 bytes in 193ms
E/PackageManager( 1590): Package com.android.providers.media has
mismatched uid: 1000 on disk, 10004 in settings
I/PackageManager( 1590): /system/app/Mms.apk changed; collecting certs
E/PackageManager( 1590): Package com.android.mms has mismatched uid:
1000 on disk, 10015 in settings
I/PackageManager( 1590): /system/app/Mms.apk changed; unpacking
E/installd( 1578): dexopt cannot chown
'/data/dalvik-cache/sys...@app@mms....@classes.dex'
E/PackageManager( 1590): Package com.android.phone has mismatched uid:
1000 on disk, 1001 in settings
D/dalvikvm( 1590): GC freed 5433 objects / 522288 bytes in 203ms
E/PackageManager( 1590): Package com.android.providers.telephony has
mismatched uid: 1000 on disk, 1001 in settings
E/PackageManager( 1590): Package com.android.soundrecorder has
mismatched uid: 1000 on disk, 10008 in settings
E/PackageManager( 1590): Package com.android.googlesearch has
mismatched uid: 1000 on disk, 10002 in settings
E/PackageManager( 1590): Package com.android.camera has mismatched
uid: 1000 on disk, 10004 in settings
E/PackageManager( 1590): Package com.android.providers.drm has
mismatched uid: 1000 on disk, 10004 in settings
E/PackageManager( 1590): Package com.android.email has mismatched uid:
1000 on disk, 10005 in settings
E/PackageManager( 1590): Package com.android.providers.userdictionary
has mismatched uid: 1000 on disk, 10002 in settings
D/PackageManager( 1590): Scanning app dir /data/app
E/PackageManager( 1590): Package com.android.meg has mismatched uid:
1000 on disk, 10021 in settings
E/PackageManager( 1590): Package com.android.mrudula has mismatched
uid: 1000 on disk, 10019 in settings
W/PackageParser( 1590): Skipping non-package file:
/data/app/.nfs00000000000d6a8400000001
D/PackageManager( 1590): Scanning app dir /data/app-private
I/PackageManager( 1590): Time to scan packages: 5.379 seconds
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.providers.contacts
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package
com.android.providers.contacts
W/PackageManager( 1590): Unknown permission
com.google.android.providers.gmail.permission.WRITE_GMAIL in package
com.android.settings
W/PackageManager( 1590): Unknown permission
com.google.android.providers.gmail.permission.READ_GMAIL in package
com.android.settings
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.settings
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.development
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in
package com.android.development
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in
package com.android.development
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in
package com.android.development
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.browser
W/PackageManager( 1590): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.contacts
D/dalvikvm( 1590): GC freed 5158 objects / 327816 bytes in 211ms
I/SystemServer( 1590): Starting Content Manager.
W/ActivityManager( 1590): Unable to start service Intent {
action=android.accounts.IAccountsService
comp={com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}
}: not found
W/AccountMonitor( 1590): Couldn't connect to Intent {
action=android.accounts.IAccountsService
comp={com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}
} (Missing service?)
I/SystemServer( 1590): Starting System Content Providers.
I/ActivityThread( 1590): Publishing provider settings:
com.android.providers.settings.SettingsProvider
I/ActivityThread( 1590): Publishing provider sync:
android.content.SyncProvider
I/SystemServer( 1590): Starting Battery Service.
I/SystemServer( 1590): Starting Hardware Service.
W/HAL     ( 1590): load: module=/system/lib/hw/lights.atmel.so
error=Cannot find library
W/HAL     ( 1590): load: module=/system/lib/hw/lights.default.so
error=Cannot find library
I/SystemServer( 1590): Starting Alarm Manager.
I/SystemServer( 1590): Starting Sensor Service.
I/SystemServer( 1590): Starting Window Manager.
E/EventHub( 1590): could not get driver version for /dev/input/mice,
Not a typewriter
D/SensorManager( 1590): found sensor: AK8976A 3-axis Accelerometer,
handle=0
D/SensorManager( 1590): found sensor: AK8976A 3-axis Magnetic field
sensor, handle=1
D/SensorManager( 1590): found sensor: AK8976A Orientation sensor,
handle=2
D/SensorManager( 1590): found sensor: AK8976A Temperature sensor,
handle=3
I/EventHub( 1590): New device: path=/dev/input/event0 name=gpio-keys
id=0x10000 (of 0x1) index=1 fd=40 classes=0x0
I/EventHub( 1590): New device: path=/dev/input/event1 name=ADS784x
Touchscreen id=0x10001 (of 0x2) index=2 fd=41 classes=0x4
I/SystemServer( 1590): Starting Bluetooth Service.
E/EventHub( 1590): could not get driver version for /dev/input/mouse0,
Not a typewriter
I/KeyInputQueue( 1590): Device added: id=0x10001, name=null, classes=4
I/KeyInputQueue( 1590):   X: min=150 max=3830 flat=0 fuzz=0
I/KeyInputQueue( 1590):   Y: min=190 max=3830 flat=0 fuzz=0
I/KeyInputQueue( 1590):   Pressure: min=0 max=15000 flat=0 fuzz=0
I/KeyInputQueue( 1590):   Size: unknown values
I/KeyInputQueue( 1590): Device added: id=0x10000, name=null, classes=0
I/SystemServer( 1590): Starting Status Bar Service.
I/SystemServer( 1590): Starting Clipboard Service.
I/SystemServer( 1590): Starting Input Method Service.
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x7f060000
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x7f060001
I/InputManagerService( 1590): Enabled input methods:
com.android.inputmethod.pinyin/.PinyinIME:com.android.inputmethod.latin/.LatinIME
I/SystemServer( 1590): Starting NetStat Service.
I/SystemServer( 1590): Starting Connectivity Service.
I/WifiService( 1590): WifiService starting up with Wi-Fi disabled
I/SystemServer( 1590): Starting Notification Manager.
I/SystemServer( 1590): Starting Mount Service.
I/SystemServer( 1590): Starting DeviceStorageMonitor service
I/SystemServer( 1590): Starting Location Manager.
D/libhardware_legacy( 1590): no GPS hardware on this device
W/PackageManager( 1590): Couldn't clear application caches
I/SystemServer( 1590): Starting Search Service.
I/SystemServer( 1590): Starting Checkin Service.
W/ActivityManager( 1590): Unable to start service Intent {
comp={com.google.android.server.checkin/
com.google.android.server.checkin.CheckinService}
}: not found
W/SystemServer( 1590): Using fallback Checkin Service.
I/SystemServer( 1590): Starting Wallpaper Service
D/WallpaperService( 1590): WallpaperService startup
I/SystemServer( 1590): Starting Audio Service
D/dalvikvm( 1590): Trying to load lib /system/lib/libsoundpool.so 0x0
D/dalvikvm( 1590): Added shared lib /system/lib/libsoundpool.so 0x0
W/AudioService( 1590): Soundpool could not load file:
/system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1590): Soundpool could not load file:
/system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 1590): Soundpool could not load file:
/system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 1590): Soundpool could not load file:
/system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 1590): Soundpool could not load file:
/system/media/audio/ui/KeypressReturn.ogg
I/SystemServer( 1590): Starting HeadsetObserver
W/HeadsetObserver( 1590): This kernel does not have wired headset
support
I/SystemServer( 1590): Starting AppWidget Service
I/WindowManager( 1590): Menu key state: -1 safeMode=false
I/WindowManager( 1590): Config changed: { scale=1.0 imsi=0/0
locale=en_US touch=3 key=1/1/2 nav=1 orien=1 }
D/PowerManagerService( 1590): system ready!
W/ActivityManager( 1590): Unable to start service Intent {
action=android.accounts.IAccountsService
comp={com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}
}: not found
E/LockPatternKeyguardView( 1590): Failed to bind to GLS while checking
for account
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x7f030000
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x7f030003
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x7f03000c
D/ActivityManager( 1590): Start running!
D/dalvikvm( 1590): GC freed 4246 objects / 316608 bytes in 223ms
I/Zygote  ( 1590): Process: zygote socket opened
I/ActivityManager( 1590): Start proc com.android.phone for added
application com.android.phone: pid=1629 uid=1001 gids={3002, 3001,
3003}
I/ActivityManager( 1590): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.HOME} flags=0x10000000
comp={com.android.launcher/com.android.launcher.Launcher} }
I/ActivityManager( 1590): Start proc android.process.acore for
activity com.android.launcher/.Launcher: pid=1633 uid=10002
gids={3003}
W/ResourceType( 1590): No package identifier when getting value for
resource number 0x00000000
W/StatusBar( 1590): Icon not found in <system>: 0
I/ActivityThread( 1629): Publishing provider mms-sms:
com.android.providers.telephony.MmsSmsProvider
I/ActivityThread( 1633): Publishing provider user_dictionary:
com.android.providers.userdictionary.UserDictionaryProvider
I/ActivityThread( 1633): Publishing provider
com.android.googlesearch.SuggestionProvider:
com.android.googlesearch.SuggestionProvider
I/ActivityThread( 1633): Publishing provider contacts;call_log:
com.android.providers.contacts.ContactsProvider
I/ActivityThread( 1629): Publishing provider mms:
com.android.providers.telephony.MmsProvider
I/ActivityThread( 1629): Publishing provider telephony:
com.android.providers.telephony.TelephonyProvider
I/ActivityThread( 1629): Publishing provider sms:
com.android.providers.telephony.SmsProvider
I/ActivityThread( 1629): Publishing provider sim:
com.android.phone.SimProvider
I/DeviceStorageMonitorService( 1590): Running low on memory. Sending
notification
W/ActivityManager( 1590): Unable to start service Intent {
action=android.accounts.IAccountsService
comp={com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}
}: not found
W/AccountMonitor( 1633): Couldn't connect to Intent {
action=android.accounts.IAccountsService
comp={com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}
} (Missing service?)
I/ActivityThread( 1633): Publishing provider
com.android.launcher.settings: com.android.launcher.LauncherProvider
D/StatusBar( 1590): updateResources
W/ActivityManager( 1590): Unable to start service Intent {
action=com.android.ussd.IExtendedNetworkService }: not found
D/PhoneApp( 1629): Resetting audio state/mode: IDLE
D/dalvikvm( 1590): GC freed 5829 objects / 307088 bytes in 506ms
D/BT HSHFP( 1629): Starting BluetoothHeadsetService
D/dalvikvm( 1633): GC freed 2873 objects / 194032 bytes in 703ms
D/HomeLoaders( 1633): load applications
D/HomeLoaders( 1633): loading user items
D/HomeLoaders( 1633):   --> starting workspace loader
I/ActivityManager( 1590): Displayed activity
com.android.launcher/.Launcher: 6114 ms
I/SurfaceFlinger( 1590): Boot is finished (15215 ms)
I/WindowManager( 1590): Config changed: { scale=1.0 imsi=0/0
locale=en_US touch=3 key=1/1/2 nav=1 orien=1 }
I/ARMAssembler( 1590): generated
scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at
[0x23fd70:0x23fe14] in 0 ns
D/dalvikvm( 1590): GC freed 5096 objects / 481664 bytes in 249ms
D/vold    ( 1573): Accepted connection from framework
D/vold    ( 1573): dispatch_cmd(send_ums_status):
D/MountListener( 1590): handleEvent volume_nomedia:/sdcard
I/ActivityManager( 1590): Start proc com.android.alarmclock for
broadcast com.android.alarmclock/.AlarmInitReceiver: pid=1659
uid=10000 gids={}
D/MountListener( 1590): handleEvent ums_disabled
D/MountListener( 1590): handleEvent ums_disconnected
D/HomeLoaders( 1633):   --> starting applications loader
I/ActivityManager( 1590): Start proc android.process.media for content
provider com.android.providers.media/.MediaProvider: pid=1663
uid=10004 gids={1006, 2001, 3003}
I/ActivityThread( 1663): Publishing provider downloads:
com.android.providers.downloads.DownloadProvider
I/ActivityThread( 1659): Publishing provider com.android.alarmclock:
com.android.alarmclock.AlarmProvider
I/ActivityThread( 1663): Publishing provider drm:
com.android.providers.drm.DrmProvider
I/ActivityThread( 1663): Publishing provider media:
com.android.providers.media.MediaProvider
V/MediaProvider( 1663): Attached volume: internal
D/ActivityManager( 1590): checkComponentPermission() adjusting
{pid,uid} to {1577,1013}
D/ActivityManager( 1590): checkComponentPermission() adjusting
{pid,uid} to {1577,1013}
D/dalvikvm( 1590): GREF has increased to 201
D/ActivityManager( 1590): checkComponentPermission() adjusting
{pid,uid} to {1577,1013}
D/ActivityManager( 1590): checkComponentPermission() adjusting
{pid,uid} to {1577,1013}
E/MediaPlayerService( 1577): Couldn't open fd for
content://settings/system/notification_sound
E/MediaPlayer( 1590): Unable to to create media player
D/MediaScannerService( 1663): start scanning volume internal
W/NotificationService( 1590): error loading sound for
content://settings/system/notification_sound
W/NotificationService( 1590): java.io.IOException: setDataSource
failed.: status=0x80000000
W/NotificationService( 1590):   at
android.media.MediaPlayer.setDataSource(Native Method)
W/NotificationService( 1590):   at
android.media.MediaPlayer.setDataSource(MediaPlayer.java:610)
W/NotificationService( 1590):   at
android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:76)
I/ActivityManager( 1590): Stopping service:
com.android.providers.downloads/.DownloadService
D/MediaScanner( 1663): opendir /system/media/ failed, errno: 2
D/MediaScanner( 1663):  prescan time: 269ms
D/MediaScanner( 1663):     scan time: 73ms
D/MediaScanner( 1663): postscan time: 1ms
D/MediaScanner( 1663):    total time: 343ms
D/MediaScannerService( 1663): done scanning volume internal
I/ActivityManager( 1590): Stopping service:
com.android.providers.media/.MediaScannerService
I/vold    ( 1573): Destroying blkdev 179.2 @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54/block/mmcblk0/
mmcblk0p2
on media SD02G
D/vold    ( 1573): Volmgr notified of 179:2 eject
I/vold    ( 1573): Destroying blkdev 179.1 @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54/block/mmcblk0/
mmcblk0p1
on media SD02G
D/vold    ( 1573): Volmgr notified of 179:1 eject
I/vold    ( 1573): Destroying blkdev 179.0 @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54/block/mmcblk0 on
media SD02G
D/vold    ( 1573): Volmgr notified of 179:0 eject
I/vold    ( 1573): MMC card 'SD02G' (serial 2801505104) @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54 removed
I/vold    ( 1573): New MMC card 'SD02G' (serial 2801505104) added @
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54
I/vold    ( 1573): Disk (blkdev 179:0), 3932160 secs (1920 MB) 2
partitions
I/vold    ( 1573): New blkdev 179.0 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 2
I/vold    ( 1573): Partition (blkdev 179:1), 83184 secs (40 MB) type
0xc
I/vold    ( 1573): New blkdev 179.1 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 1
I/vold    ( 1573): Partition (blkdev 179:2), 3848960 secs (1879 MB)
type 0x83
I/vold    ( 1573): New blkdev 179.2 on media SD02G, media path
/devices/platform/at91_mci.1/mmc_host/mmc0/mmc0:fb54, Dpp 0
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 
-~----------~----~----~----~------~----~------~--~---

2. How to get Mimetype from extentions? (.txt/.vcf)

Hi,

I am trying to get Mimetype from extention for .txt file, using below
method:
                    MimeTypeMap map = MimeTypeMap.getSingleton();
                    type = map.getMimeTypeFromExtension(extension);

But the returned type is always "null".

Looking into MimeTypeMap.java code,  in function loadEntry(), I found
below code&msg.
private void loadEntry(String mimeType, String extension,
            boolean textType) {
        ......
        // here, we don't want to map extensions to text MIME types;
        // otherwise, we will start replacing generic text/plain and
        // text/html with text MIME types that our platform does not
        // understand.
        //
        if (!textType) {
            mExtensionToMimeTypeMap.put(extension, mimeType);
        }
    }

Per above codes, all text series extentions (like txt, rtf, text,
vcf...)  can not get Mimetype using the getMimeTypeFromExtension()
function.

Is there any other way to get Mimetype for *.txt or *.vcf file?

Thanks,
ylx
--~--~---------~--~----~------------~-------~--~----~

3. ALSA buffer size

4. Saving a preference isn't working

5. What copybit does and where image conversion from YUV to RGB is implemented?

6. WebView Dialog Activity

7. JNI check failures when trying to use a configured SOCKS Proxy object...