[Galaxy Ace II Android Development] shaqman89:
Seems the latest optimization works quite good for battery performance.

I have even better idle time, with the latest build.

Thanks :)

Update:

I just tried out the camera again, and somehow it shows 'Failed to open camera. Camera may be in use by another application?'

This is the logcat:

mory 1 total memory 0

D/libgps ( 2208): proxy_gps_status_cb: called. status(4)

D/libgps ( 2208): proxy_gps_status_cb: normal GPS icon mode.

I/libgps ( 2208): disarming wakeLockTimer

I/libgps ( 2208): [proxy_gps_release_wakelock_cb][line = 662]: release_wakelock

(0)

I/Timeline(24491): Timeline: Activity_launch_request id:net.sourceforge.opencame

ra time:24267165

I/ActivityManager( 2208): START u0 {act=android.intent.action.MAIN cat=[android.

intent.category.LAUNCHER] flg=0x10200000 cmp=net.sourceforge.opencamera/.MainAct

ivity bnds=[384,736][480,800] (has extras)} from pid 24491

I/libblt_hw( 1763): Library opened (handle = 6, fd = 70)

I/ActivityManager( 2208): Config changes=480 {0.85 510mcc11mnc en_US ldltr sw480

dp w800dp h455dp 160dpi lrg long land finger -keyb/v/h -nav/h s.30 themeResource

=null}

I/libblt_hw( 1763): Library opened (handle = 13, fd = 71)

I/InputReader( 2208): Reconfiguring input devices. changes=0x00000004

I/InputReader( 2208): Device reconfigured: id=8, name='sec_touchscreen', size 48

0x800, orientation 1, mode 1, display id 0

I/InputReader( 2208): Reconfiguring input devices. changes=0x00000004

D/PhoneStatusBar( 2387): mSettingsPanelGravity = 55

I/Choreographer(24491): Skipped 79 frames! The application may be doing too muc

h work on its main thread.

I/ActivityManager( 2208): Start proc android.process.media for content provider

com.android.providers.media/.MediaProvider: pid=4234 uid=10005 gids={50005, 1028

, 1015, 1023, 1024, 2001, 3003, 3007}

I/libblt_hw( 1763): Library closed (handle = 12, fd = 56)

V/Zygote ( 4234): Switching descriptor 32 to /dev/null

V/Zygote ( 4234): Switching descriptor 9 to /dev/null

D/ActivityThread( 4234): handleBindApplication:android.process.media

D/ActivityThread( 4234): setTargetHeapUtilization:0.75

D/ActivityThread( 4234): setTargetHeapMinFree:524288

I/Choreographer(24573): Skipped 122 frames! The application may be doing too mu

ch work on its main thread.

I/Choreographer( 2387): Skipped 81 frames! The application may be doing too muc

h work on its main thread.

I/Choreographer( 2387): Skipped 40 frames! The application may be doing too muc

h work on its main thread.

I/TextToSpeech( 3195): Sucessfully bound to com.svox.pico

V/SynthProxy( 3785): About to load /system/lib/libttspico.so, applyFilter=true

I/SVOX Pico Engine( 3785): loaded en-US successfully

I/libgps ( 2208): disarming wakeLockTimer

D/AwesomePlayer( 1767): Before reset_l

I/libgps ( 2208): OnGpsExtensionMessage: MSG_REQUEST_LOCATION_ID

D/libgps ( 2208): proxy_gps_status_cb: called. status(3)

D/libgps ( 2208): proxy_gps_status_cb: normal GPS icon mode.

I/libgps ( 2208): disarming wakeLockTimer

I/libgps ( 2208): [proxy_gps_acquire_wakelock_cb][line = 652]: acquire_wakelock

(1)

D/OMXCodec( 1767): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

I/OMXCodec( 1767): Codec outputs a different number of channels than the input s

tream contains (contains 2 channels, codec outputs 1 channels).

I/AwesomePlayer( 1767): Could not offload audio decode, try pcm offload (16-bit)

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 8192

on input port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae3b68 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae3ca8 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae3d78 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae3e30 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 3276

8 on output port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae3f78 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae4110 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae4250 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae4378 on ou

tput port

D/AudioPlayer( 1767): start of Playback, useOffload 0

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae3f78 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae4110 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae4250 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae4378 successful

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 3276

8 on output port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae5480 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae5588 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae56c8 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ae57f0 on ou

tput port

D/AudioPlayer( 1767): Pause Playback at 31

D/AudioPlayer( 1767): reset: mPlaying=0 mReachedEOS=1 useOffload=0

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae3e30 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae3d78 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae3ca8 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae3b68 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae57f0 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae56c8 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae5588 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ae5480 successful

D/AwesomePlayer( 1767): Before reset_l

D/OMXCodec( 1767): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

I/OMXCodec( 1767): Codec outputs a different number of channels than the input s

tream contains (contains 2 channels, codec outputs 1 channels).

I/AwesomePlayer( 1767): Could not offload audio decode, try pcm offload (16-bit)

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 8192

on input port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41b0b550 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ca2178 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ca2248 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ca2300 on in

put port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 3276

8 on output port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41a4bb18 on ou

tput port

I/TextToSpeech( 3195): Connected to ComponentInfo{com.svox.pico/com.svox.pico.Pi

coService}

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41a4bd00 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41a4be40 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41a4bf68 on ou

tput port

D/AudioPlayer( 1767): start of Playback, useOffload 0

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41a4bb18 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41a4bd00 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41a4be40 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41a4bf68 successful

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocating 4 buffers of size 3276

8 on output port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x400205c8 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ca2358 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41ca2430 on ou

tput port

I/OMXCodec( 1767): [OMX.google.vorbis.decoder] allocated buffer 0x41aa5b48 on ou

tput port

I/TextToSpeech( 3195): Set up connection to ComponentInfo{com.svox.pico/com.svox

.pico.PicoService}

I/libblt_hw( 1763): Library opened (handle = 12, fd = 52)

D/AudioPlayer( 1767): Pause Playback at 30

D/AudioPlayer( 1767): reset: mPlaying=0 mReachedEOS=1 useOffload=0

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ca2300 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ca2248 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ca2178 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41b0b550 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41aa5b48 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ca2430 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x41ca2358 successful

I/OMXNodeInstance( 1767): OMX_FreeBuffer for buffer header 0x400205c8 successful

D/libgps ( 2208): proxy_gps_status_cb: called. status(1)

D/libgps ( 2208): proxy_gps_status_cb: normal GPS icon mode.

I/libblt_hw( 1763): Library opened (handle = 14, fd = 60)

E/CameraService( 1767): Camera HAL module not loaded

W/CameraBase( 3195): An error occurred while connecting to camera: 0

W/System.err( 3195): java.lang.RuntimeException: Fail to connect to camera servi

ce

W/System.err( 3195): at android.hardware.Camera.native_setup(Native Method)

W/System.err( 3195): at android.hardware.Camera.<init>(Camera.java:381)

W/System.err( 3195): at android.hardware.Camera.open(Camera.java:333)

W/System.err( 3195): at net.sourceforge.opencamera.CameraController.CameraCon

troller1.<init>(CameraController1.java:34)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.openCamera

(Preview.java:992)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.mySurfaceC

reated(Preview.java:563)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.surfaceCre

ated(Preview.java:589)

W/System.err( 3195): at android.view.SurfaceView.updateWindow(SurfaceView.jav

a:572)

W/System.err( 3195): at android.view.SurfaceView.access$000(SurfaceView.java:

86)

W/System.err( 3195): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java

:175)

W/System.err( 3195): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewT

reeObserver.java:847)

W/System.err( 3195): at android.view.ViewRootImpl.performTraversals(ViewRootI

mpl.java:1870)

W/System.err( 3195): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.ja

va:996)

W/System.err( 3195): at android.view.ViewRootImpl$TraversalRunnable.run(ViewR

ootImpl.java:5603)

W/System.err( 3195): at android.view.Choreographer$CallbackRecord.run(Choreog

rapher.java:761)

W/System.err( 3195): at android.view.Choreographer.doCallbacks(Choreographer.

java:574)

W/System.err( 3195): at android.view.Choreographer.doFrame(Choreographer.java

:544)

W/System.err( 3195): at android.view.Choreographer$FrameDisplayEventReceiver.

run(Choreographer.java:747)

W/System.err( 3195): at android.os.Handler.handleCallback(Handler.java:733)

W/System.err( 3195): at android.os.Handler.dispatchMessage(Handler.java:95)

W/System.err( 3195): at android.os.Looper.loop(Looper.java:136)

W/System.err( 3195): at android.app.ActivityThread.main(ActivityThread.java:5

158)

W/System.err( 3195): at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 3195): at java.lang.reflect.Method.invoke(Method.java:515)

W/System.err( 3195): at com.android.internal.os.ZygoteInit$MethodAndArgsCalle

r.run(ZygoteInit.java:732)

W/System.err( 3195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja

va:566)

W/System.err( 3195): at dalvik.system.NativeStart.main(Native Method)

W/System.err( 3195): net.sourceforge.opencamera.CameraController.CameraControlle

rException

W/System.err( 3195): at net.sourceforge.opencamera.CameraController.CameraCon

troller1.<init>(CameraController1.java:40)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.openCamera

(Preview.java:992)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.mySurfaceC

reated(Preview.java:563)

W/System.err( 3195): at net.sourceforge.opencamera.Preview.Preview.surfaceCre

ated(Preview.java:589)

W/System.err( 3195): at android.view.SurfaceView.updateWindow(SurfaceView.jav

a:572)

W/System.err( 3195): at android.view.SurfaceView.access$000(SurfaceView.java:

86)

W/System.err( 3195): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java

:175)

W/System.err( 3195): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewT

reeObserver.java:847)

W/System.err( 3195): at android.view.ViewRootImpl.performTraversals(ViewRootI

mpl.java:1870)

W/System.err( 3195): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.ja

va:996)

W/System.err( 3195): at android.view.ViewRootImpl$TraversalRunnable.run(ViewR

ootImpl.java:5603)

W/System.err( 3195): at android.view.Choreographer$CallbackRecord.run(Choreog

rapher.java:761)

W/System.err( 3195): at android.view.Choreographer.doCallbacks(Choreographer.

java:574)

W/System.err( 3195): at android.view.Choreographer.doFrame(Choreographer.java

:544)

W/System.err( 3195): at android.view.Choreographer$FrameDisplayEventReceiver.

run(Choreographer.java:747)

W/System.err( 3195): at android.os.Handler.handleCallback(Handler.java:733)

W/System.err( 3195): at android.os.Handler.dispatchMessage(Handler.java:95)

W/System.err( 3195): at android.os.Looper.loop(Looper.java:136)

W/System.err( 3195): at android.app.ActivityThread.main(ActivityThread.java:5

158)

W/System.err( 3195): at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 3195): at java.lang.reflect.Method.invoke(Method.java:515)

W/System.err( 3195): at com.android.internal.os.ZygoteInit$MethodAndArgsCalle

r.run(ZygoteInit.java:732)

W/System.err( 3195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja

va:566)

W/System.err( 3195): at dalvik.system.NativeStart.main(Native Method)

W/IInputConnectionWrapper(24491): showStatusIcon on inactive InputConnection

I/ActivityManager( 2208): Displayed net.sourceforge.opencamera/.MainActivity: +1

s609ms

I/Timeline( 2208): Timeline: Activity_windows_visible id: ActivityRecord{42987ff

0 u0 net.sourceforge.opencamera/.MainActivity t42} time:24268804

I/libblt_hw( 1763): Library closed (handle = 13, fd = 71)

I/WindowManager( 2208): Screen frozen for +1s639ms due to Window{427260b0 u0 Sta

rting net.sourceforge.opencamera}

I/libblt_hw( 1763): Library opened (handle = 13, fd = 71)

I/libblt_hw( 1763): Library opened (handle = 15, fd = 72)

I/libblt_hw( 1763): Library opened (handle = 16, fd = 73)

I/libblt_hw( 1763): Library opened (handle = 17, fd = 75)

I/Timeline( 3195): Timeline: Activity_idle id: android.os.BinderProxy@41ec06e0 t

ime:24268897

I/libblt_hw( 1763): Library closed (handle = 6, fd = 70)

I/libblt_hw( 1763): Library closed (handle = 13, fd = 71)

I/libblt_hw( 1763): Library closed (handle = 15, fd = 72)

I/libblt_hw( 1763): Library closed (handle = 16, fd = 73)

I/libblt_hw( 1763): Library closed (handle = 17, fd = 75)

I/libgps ( 2208): OnGpsExtensionMessage: MSG_REQUEST_LOCATION_ID

D/ ( 2208): save calibration file.

E/ ( 2208): Couldn't save.

D/ ( 2208): save calibration file.

E/ ( 2208): Couldn't save.