Log in debug only?

by Pamplemousse Mk2 » Thu, 30 Jul 2009 16:06:40 GMT


Sponsored Links
 Hello,

I write a lot of logs in my program with the class android.util.Log.
Do the log methods (Log.v(), Log.d(), ...) are executed on the phone?
When my program will be finished, I won't like to see it try to output
logs in the release version.

I have seen that to make a conditional compilation (for Debug/Release
version), I can use a class like this:

public final class Debug {
          //set to false to allow compiler to identify and eliminate
          //unreachable code
          public static final boolean ON = false;
        }

and use if to add debug codes:

if (Debug.ON) {
  // Do debug works...
}

If Debug.ON is false, the compiler removes the unreachable parts of
code, i.e. the ones inside this if. Should I do the same for Log
functions to be able to activate and deactivate them?

Thanks.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Technical Editor for Android Book

If you have an interest in reviewing an upcoming Android development
book, we are in need of an "expert" technical proof-reader.  The title
is Unlocking Android, published by Manning.  You can learn more about
the book here: http://manning.com/ableson. ( Note that I am providing
this link so you can learn more about the title to determine if you
are interested in the technical proofreader project, not to promote
it.)

This is a paid position, paying $1 per page.  The total page count is
approximately 400 pages.

If you are interested, please send an email to me at fableson at msiservices.com

There is an aggressive schedule for completing this project so please
respond only if you are an experienced Android developer and can
devote time to this project over the next 2 to 3 weeks.

Thank you

Frank Ableson

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

2. a1200 porting issue, mismatch uid, binder cannot be permitted, pls help

D/AudioFlinger(  458): Audio hardware entering standby
I/ServiceManager(  456): ServiceManager: addService(AudioFlinger,
0x13148)
I/sysproc (  458): System server: starting Android runtime.
I/sysproc (  458): System server: starting Android services.
I/SystemServer(  458): Entered the Android system server!
I/ARMAssembler(  458): generated
scanline__00000077:03515104_00001A01_00000000 [ 46 ipp] (68 ins) at
[0x19b498:0x19b5a8] in 5955060 ns
I/sysproc (  458): System server: entering thread pool.
D/TouchDex(  458): TouchDex parent waiting for pid=477 (timeout=36.4s)
I/ServiceManager(  456): ServiceManager: unable to find service
activity
I/runtime (  456): Still waiting for activity manager...
I/ServiceManager(  456): ServiceManager: waiting for service activity
I/ServiceManager(  456): ServiceManager: unable to find service
activity
I/runtime (  456): Still waiting for activity manager...
I/ServiceManager(  456): ServiceManager: waiting for service activity
I/ServiceManager(  456): ServiceManager: unable to find service
activity
I/runtime (  456): Still waiting for activity manager...
I/ServiceManager(  456): ServiceManager: waiting for service activity
D/dalvikvm(  477): DestroyJavaVM waiting for non-daemon threads to
exit
I/dalvikvm(  477): DestroyJavaVM shutting VM down
D/dalvikvm(  477): HeapWorker thread shutting down
D/dalvikvm(  477): HeapWorker thread has shut down
D/dalvikvm(  477): All daemon threads shut down, cleaning up
D/dalvikvm(  477): LinearAlloc 0x0 used 295132 of 4194304 (7%)
I/TouchDex(  458): Dalvik-cache prep: status=0x0000, finished in
15019ms
D/SystemClock(  458): Setting time of day to sec=1200055320
W/SystemClock(  458): Unable to open alarm driver: No such file or
directory
I/SystemServer(  458): Starting Power Manager.
I/ServiceManager(  456): ServiceManager: unable to find service
activity
I/runtime (  456): Still waiting for activity manager...
I/ServiceManager(  456): ServiceManager: waiting for service activity
I/ServiceManager(  456): ServiceManager: addService(power, 0x131a8)
I/SystemServer(  458): Starting Activity Manager.
I/ServiceManager(  456): ServiceManager: addService(activity, 0x13280)
I/ServiceManager(  456): ServiceManager: addService(meminfo, 0x135f0)
I/ServiceManager(  456): ServiceManager: addService
(activity.receivers, 0x136e0)
I/ServiceManager(  456): ServiceManager: addService(activity.services,
0x13758)
I/ServiceManager(  456): ServiceManager: addService
(activity.providers, 0x13228)
I/SystemServer(  458): Starting Package Manager.
D/PackageManager(  458): Scanning app dir /system/framework
W/PackageParser(  458): Skipping non-package file: /system/framework/
monkey.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
pm.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
input.jar
D/        (  458): zip_openZipFile(/system/framework/framework-
res.apk)
W/PackageParser(  458): Skipping non-package file: /system/framework/
framework-tests.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
ext.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
ssltest.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
core.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
am.jar
W/PackageParser(  458): Skipping non-package file: /system/framework/
framework.jar
D/PackageManager(  458): Scanning app dir /system/app
E/PackageManager(  458): Package com.google.android.providers.media
has mismatched uid: 1000 on disk, 10000 in settings; read messages:
E/PackageManager(  458): Read completed successfully: 18 packages, 3
shared uids
D/        (  458): zip_openZipFile(/system/app/MediaProvider.apk)
E/PackageManager(  458): Package com.google.android.gtalksettings has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/GTalkSettings.apk)
E/PackageManager(  458): Package com.google.android.gtalkservice has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/gtalkservice.apk)
E/PackageManager(  458): Package com.google.android.fallback has
mismatched uid: 1000 on disk, 10001 in settings
D/        (  458): zip_openZipFile(/system/app/Fallback.apk)
I/dalvikvm-heap(  458): GC! (28 sec since last GC)
I/dalvikvm-heap(  458): GC old usage 70.2%; now 0.764MB used / 1.529MB
soft max (2.062MB real max)
I/dalvikvm-heap(  458): GC freed 5147 objects / 338828 bytes in 398ms
E/PackageManager(  458): Package com.google.android.masfproxyservice
has mismatched uid: 1000 on disk, 10002 in settings
D/        (  458): zip_openZipFile(/system/app/MasfProxyService.apk)
D/        (  458): zip_openZipFile(/system/app/SettingsProvider.apk)
E/PackageManager(  458): Package com.google.android.browser has
mismatched uid: 1000 on disk, 10003 in settings
D/        (  458): zip_openZipFile(/system/app/Browser.apk)
E/PackageManager(  458): Package
com.google.android.providers.telephony has mismatched uid: 1000 on
disk, 1001 in settings
D/        (  458): zip_openZipFile(/system/app/TelephonyProvider.apk)
E/PackageManager(  458): Package com.google.android.providers.contacts
has mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/ContactsProvider.apk)
E/PackageManager(  458): Package com.google.android.development has
mismatched uid: 1000 on disk, 10004 in settings
D/        (  458): zip_openZipFile(/system/app/Development.apk)
E/PackageManager(  458): Package com.google.android.phone has
mismatched uid: 1000 on disk, 1001 in settings
D/        (  458): zip_openZipFile(/system/app/Phone.apk)
E/PackageManager(  458): Package com.google.android.home has
mismatched uid: 1000 on disk, 10005 in settings
D/        (  458): zip_openZipFile(/system/app/Home.apk)
E/PackageManager(  458): Package com.google.android.maps has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/Maps.apk)
E/PackageManager(  458): Package com.google.android.providers.im has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/ImProvider.apk)
E/PackageManager(  458): Package
com.google.android.providers.googleapps has mismatched uid: 1000 on
disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/GoogleAppsProvider.apk)
E/PackageManager(  458): Package com.google.android.googleapps has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/GoogleApps.apk)
E/PackageManager(  458): Package com.google.android.contacts has
mismatched uid: 1000 on disk, 10006 in settings
D/        (  458): zip_openZipFile(/system/app/Contacts.apk)
D/PackageManager(  458): Scanning app dir /data/app
W/PackageParser(  458): /data/app/HelloWorld.apk (at Binary XML file
line #5): <activity> does not specify android:name
W/PackageParser(  458): /data/app/ApiDemos.apk (at Binary XML file
line #28): <activity> does not specify android:name
W/PackageParser(  458): /data/app/Notepadv1.apk (at Binary XML file
line #5): <activity> does not specify android:name
W/PackageManager(  458): Granting new permission
android.permission.WRITE_CONTACTS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.READ_CONTACTS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.ADD_SYSTEM_SERVICE to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.SYSTEM_ALERT_WINDOW to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.WRITE_CONTACTS to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.WRITE_SETTINGS to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.BROADCAST_STICKY to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.READ_CONTACTS to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.CALL_PHONE to android.server.PackageManagerService
$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.INTERNAL_SYSTEM_WINDOW to
android.server.packagemanagerservice$sharedusersett...@4003c118
W/PackageManager(  458): Granting new permission
android.permission.WRITE_SETTINGS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.BROADCAST_STICKY to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.RECEIVE_BOOT_COMPLETED to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
com.google.android.gtalkservice.permission.GTALK_SERVICE to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.CALL_PHONE to android.server.PackageManagerService
$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.ACCESS_LOCATION to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
com.google.android.maps.permission.READ_MY_MAPS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
com.google.android.maps.permission.WRITE_MY_MAPS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.ACCESS_CELL_ID to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.ACCESS_ASSISTED_GPS to
android.server.packagemanagerservice$sharedusersett...@400bf288
W/PackageManager(  458): Granting new permission
android.permission.ACCESS_GPS to android.server.PackageManagerService
$sharedusersett...@400bf288
D/        (  458): removing file '/data/system/packages-backup.xml'
I/dalvikvm-heap(  458): GC! (11 sec since last GC)
I/dalvikvm-heap(  458): GC old usage 52.4%; now 0.801MB used / 1.604MB
soft max (2.062MB real max)
I/dalvikvm-heap(  458): GC freed 11310 objects / 694104 bytes in 455ms
I/ServiceManager(  456): ServiceManager: addService(package, 0x13918)
I/SystemServer(  458): Starting Content Manager.
I/Zygote  (  458): Process: zygote socket opened
I/jdwp    (  487): prepping for JDWP over ADB
I/jdwp    (  487): PID sent as '01e7' to ADB
I/jdwp    (  487): trying to receive file descriptor from ADB
I/ActivityManager(  458): Starting app process
com.google.process.content to host service
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService}: pid=487
I/ServiceManager(  456): ServiceManager: addService(content, 0x139f8)
I/SystemServer(  458): Starting System Content Providers.
I/ActivityThread(  458): Publishing provider settings:
com.google.android.providers.settings.SettingsProvider
I/ActivityThread(  458): Loading code package
com.google.android.providers.settings (in null)
D/        (  458): zip_openZipFile(/system/app/SettingsProvider.apk)
W/ProcessState(  487): Opening '/dev/binder' failed: Permission denied
D/dalvikvm(  487): Exception Ljava/lang/NullPointerException; from
ActivityManagerNative.java:72 not caught locally
D/dalvikvm(  487): Exception Ljava/lang/NullPointerException; from
ZygoteInit.java:1553 not caught locally
D/AndroidRuntime(  487): Shutting down VM
W/dalvikvm(  487): threadid=3: thread exiting with uncaught exception
(group=0x4000fdf8)
E/AndroidRuntime(  487): Uncaught handler: thread Main exiting due to
uncaught exception
E/AndroidRuntime(  487): java.lang.NullPointerException
E/AndroidRuntime(  487):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  487):        at android.app.ActivityThread.attach
(ActivityThread.java:2953)
E/AndroidRuntime(  487):        at android.app.ActivityThread.main
(ActivityThread.java:3050)
E/AndroidRuntime(  487):        at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime(  487):        at java.lang.reflect.Method.invoke
(Method.java:356)
E/AndroidRuntime(  487):        at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1547)
E/AndroidRuntime(  487):        at android.os.ZygoteInit.main
(ZygoteInit.java:1445)
E/AndroidRuntime(  487):        at android.dalvik.NativeStart.main(Native
Method)
E/AndroidRuntime(  487): Error reporting crash:
java.lang.NullPointerException
E/AndroidRuntime(  487):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  487):        at android.os.RuntimeInit.crash
(RuntimeInit.java:248)
E/AndroidRuntime(  487):        at android.os.RuntimeInit
$UncaughtHandler.uncaughtException(RuntimeInit.java:56)
E/AndroidRuntime(  487):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:853)
E/AndroidRuntime(  487):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:850)
E/AndroidRuntime(  487):        at android.dalvik.NativeStart.main(Native
Method)
I/Process (  487): Sending signal. PID: 487 SIG: 9
I/ActivityThread(  458): Publishing provider android.server.checkin:
android.server.checkin.CheckinProvider
D/BatteryService(  458): BatteryService statup
D/BatteryService(  458): mUseProperties = false
D/BatteryService(  458): updateBattery level:0 scale:9 raw:0
state:Unknown icon:16908657
I/ServiceManager(  456): ServiceManager: addService(battery, 0x13a60)
I/SystemServer(  458): Starting Alarm Manager.
W/AlarmManager(  458): Failed to open alarm driver. Falling back to a
handler.
I/ServiceManager(  456): ServiceManager: addService(alarm, 0x13ac0)
I/SystemServer(  458): Starting Window Manager.
D/WindowManager(  458): Starting input thread.
I/EventHub(  458): New device: path=/dev/input/event0 name=pxa-
keyboard id=0x10000 (of 0x1) index=1 fd=43
I/EventHub(  458): new keyboard input device added, name = pxa-
keyboard
D/WindowManager(  458): Startup complete!
I/ServiceManager(  456): ServiceManager: addService(window, 0x137d8)
I/SystemServer(  458): Starting Bluetooth Service.
I/org.bluez.EventLoop(  458): Initializing class org.bluez.EventLoop.
I/org.bluez.Manager(  458): Initializing class org.bluez.Manager.
I/org.bluez.Manager(  458): initializeNativeDataNative
I/EventHub(  458): New keyboard: name=pxa-keyboard keymap=qwerty.kl
keymapPath=/system/usr/keychars/qwerty.kcm.bin
I/EventHub(  458): New device: path=/dev/input/event1 name=pcap-
touchscreen id=0x10001 (of 0x2) index=2 fd=44
I/EventHub(  458): Reporting device opened: id=0x10001, name=/dev/
input/event1
I/KeyInputQueue(  458): Device added: id=0x10001, name=null, classes=2
I/KeyInputQueue(  458):   X: min=0 max=1023 flat=0 fuzz=0
I/KeyInputQueue(  458):   Y: min=0 max=1023 flat=0 fuzz=0
I/KeyInputQueue(  458):   Pressure: min=0 max=1023 flat=0 fuzz=0
I/KeyInputQueue(  458):   Size: unknown values
I/EventHub(  458): Reporting device opened: id=0x10000, name=/dev/
input/event0
I/KeyInputQueue(  458): Device added: id=0x10000, name=pxa-keyboard,
classes=1
I/KeyInputQueue(  458):   Keymap: qwerty.kl
I/org.bluez.EventLoop(  458): initializeNativeDataNative
I/org.bluez.Security(  458): Initializing class org.bluez.Security.
I/org.bluez.Security(  458): initializeNativeDataNative
I/ServiceManager(  456): ServiceManager: addService
(org.bluez.bluetooth_service, 0x13c60)
I/SystemServer(  458): Starting USB Service.
I/ServiceManager(  456): ServiceManager: addService(USB, 0x13cc0)
I/SystemServer(  458): Starting Status Bar Service.
D/usb     (  458): [UsbListener] UsbListener.handleEvent ums_disabled
D/usb     (  458): [UsbListener] UsbListener.handleEvent
ums_disconnected
D/usb     (  458): [UsbListener] UsbListener.handleEvent ums_disabled
I/WindowManager(  458): Input configuration changed: { scale=1.0
locale=en_US touch=3 key=2/1 nav=2 orien=1 }
I/ServiceManager(  456): ServiceManager: addService(statusbar,
0x13998)
I/SystemServer(  458): Starting Hardware Service.
I/ServiceManager(  456): ServiceManager: addService(hardware, 0x13df8)
I/SystemServer(  458): Starting Notification Manager.
I/ServiceManager(  456): ServiceManager: addService(notification,
0x13e80)
I/SystemServer(  458): Starting Location Manager.
D/LocationManagerService(  458): loadProviders
D/LocationManagerService(  458): loadProvidersNoSync
I/LocationManagerService(  458): Found dir /data/misc/location/gps
I/LocationManagerService(  458): name = gps
D/LocationProvider(  458): Constructor: name = gps
D/LocationManagerService(  458): Loading properties file /data/misc/
location/gps/properties
I/LocationManagerService(  458): supportsAltitude: true
I/LocationManagerService(  458): supportsBearing: true
I/LocationManagerService(  458): supportsSpeed: true
I/dalvikvm-heap(  458): GC! (11 sec since last GC)
I/dalvikvm-heap(  458): GC old usage 70.1%; now 1.125MB used / 2.250MB
real max
I/dalvikvm-heap(  458): GC freed 6552 objects / 502576 bytes in 660ms
I/dalvikvm-heap(  458): GC! (14 sec since last GC)
I/dalvikvm-heap(  458): GC old usage 53.3%; now 1.202MB used / 2.405MB
real max
I/dalvikvm-heap(  458): GC freed 22172 objects / 1252376 bytes in
816ms
I/dalvikvm-heap(  458): GC! (15 sec since last GC)
I/dalvikvm-heap(  458): GC old usage 51.4%; now 1.255MB used / 2.512MB
real max
I/dalvikvm-heap(  458): GC freed 24905 objects / 1404652 bytes in
1074ms
I/ServiceManager(  456): ServiceManager: waiting for service phone
I/ServiceManager(  456): ServiceManager: unable to find service phone
D/LocationManagerService(  458): Constructed LocationManager Service
for Context android.app.applicationcont...@400ba4d0
I/ServiceManager(  456): ServiceManager: addService(location, 0x13f00)
I/SystemServer(  458): Starting Search Service.
I/SearchManagerService(  458): created
D/SearchManagerService(  458): created
I/ServiceManager(  456): ServiceManager: addService(search, 0x13f80)
I/SystemServer(  458): Starting Checkin Service
D/        (  458): removing file '/cache/update/update.install'
D/        (  458):  unable to unlink '/cache/update/
update.install' (errno=2)
I/CheckinService(  458): Idle
I/ServiceManager(  456): ServiceManager: addService(checkin, 0x14000)
D/ActivityManager(  458): Start running!
I/ActivityManager(  458): Starting app process com.google.android.home
to host added application {com.google.android.home/--}: pid=500
I/jdwp    (  500): prepping for JDWP over ADB
I/jdwp    (  500): PID sent as '01f4' to ADB
I/jdwp    (  500): trying to receive file descriptor from ADB
W/ProcessState(  500): Opening '/dev/binder' failed: Permission denied
D/dalvikvm(  500): Exception Ljava/lang/NullPointerException; from
ActivityManagerNative.java:72 not caught locally
D/dalvikvm(  500): Exception Ljava/lang/NullPointerException; from
ZygoteInit.java:1553 not caught locally
D/AndroidRuntime(  500): Shutting down VM
W/dalvikvm(  500): threadid=3: thread exiting with uncaught exception
(group=0x4000fdf8)
E/AndroidRuntime(  500): Uncaught handler: thread Main exiting due to
uncaught exception
E/AndroidRuntime(  500): java.lang.NullPointerException
E/AndroidRuntime(  500):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  500):        at android.app.ActivityThread.attach
(ActivityThread.java:2953)
E/AndroidRuntime(  500):        at android.app.ActivityThread.main
(ActivityThread.java:3050)
E/AndroidRuntime(  500):        at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime(  500):        at java.lang.reflect.Method.invoke
(Method.java:356)
E/AndroidRuntime(  500):        at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1547)
E/AndroidRuntime(  500):        at android.os.ZygoteInit.main
(ZygoteInit.java:1445)
E/AndroidRuntime(  500):        at android.dalvik.NativeStart.main(Native
Method)
E/AndroidRuntime(  500): Error reporting crash:
java.lang.NullPointerException
E/AndroidRuntime(  500):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  500):        at android.os.RuntimeInit.crash
(RuntimeInit.java:248)
E/AndroidRuntime(  500):        at android.os.RuntimeInit
$UncaughtHandler.uncaughtException(RuntimeInit.java:56)
E/AndroidRuntime(  500):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:853)
E/AndroidRuntime(  500):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:850)
E/AndroidRuntime(  500):        at android.dalvik.NativeStart.main(Native
Method)
I/Process (  500): Sending signal. PID: 500 SIG: 9
I/jdwp    (  505): prepping for JDWP over ADB
I/jdwp    (  505): PID sent as '01f9' to ADB
I/jdwp    (  505): trying to receive file descriptor from ADB
W/ProcessState(  505): Opening '/dev/binder' failed: Permission denied
I/ActivityManager(  458): Starting app process
com.google.android.phone to host added application
{com.google.android.phone/--}: pid=505
I/ActivityManager(  458): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.HOME} comp={com.google.android.home/
com.google.android.home.NewHome} }
W/ActivityManager(  458): startActivity called from non-Activity
context; forcing Intent.NEW_TASK_LAUNCH for: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.HOME} comp={com.google.android.home/
com.google.android.home.NewHome} }
D/dalvikvm(  505): Exception Ljava/lang/NullPointerException; from
ActivityManagerNative.java:72 not caught locally
D/dalvikvm(  505): Exception Ljava/lang/NullPointerException; from
ZygoteInit.java:1553 not caught locally
D/AndroidRuntime(  505): Shutting down VM
W/dalvikvm(  505): threadid=3: thread exiting with uncaught exception
(group=0x4000fdf8)
E/AndroidRuntime(  505): Uncaught handler: thread Main exiting due to
uncaught exception
E/AndroidRuntime(  505): java.lang.NullPointerException
E/AndroidRuntime(  505):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  505):        at android.app.ActivityThread.attach
(ActivityThread.java:2953)
E/AndroidRuntime(  505):        at android.app.ActivityThread.main
(ActivityThread.java:3050)
E/AndroidRuntime(  505):        at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime(  505):        at java.lang.reflect.Method.invoke
(Method.java:356)
E/AndroidRuntime(  505):        at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1547)
E/AndroidRuntime(  505):        at android.os.ZygoteInit.main
(ZygoteInit.java:1445)
E/AndroidRuntime(  505):        at android.dalvik.NativeStart.main(Native
Method)
E/AndroidRuntime(  505): Error reporting crash:
java.lang.NullPointerException
E/AndroidRuntime(  505):        at
android.app.ActivityManagerNative.getDefault
(ActivityManagerNative.java:72)
E/AndroidRuntime(  505):        at android.os.RuntimeInit.crash
(RuntimeInit.java:248)
E/AndroidRuntime(  505):        at android.os.RuntimeInit
$UncaughtHandler.uncaughtException(RuntimeInit.java:56)
E/AndroidRuntime(  505):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:853)
E/AndroidRuntime(  505):        at java.lang.ThreadGroup.uncaughtException
(ThreadGroup.java:850)
E/AndroidRuntime(  505):        at android.dalvik.NativeStart.main(Native
Method)
I/Process (  505): Sending signal. PID: 505 SIG: 9
W/ActivityManager(  458): goingToSleep with no resumed activity!
 Package com.google.android.providers.media has mismatched uid: 1000
on disk, 10000 in settings; read messages:
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. And the G2 is announced....

4. Playing simple sounds on the emulator

5. Persisting graphics on a canvas (map overlay)

6. Which View is the Android Main Menu?

7. about running gdbserver on emulator