Poor menu layout

by Edward Falk » Thu, 05 Mar 2009 05:25:10 GMT


Sponsored Links
 Hi all; I took a bare-bones "hello world" application and added these
four menu items in onCreateOptionsMenu():

+--------------------------------------------+
|                    Start                   |
+--------------------------------------------+
|                    Find                    |
+----------------------+---------------------+
|Enable Location Provid|        About        |
+----------------------+---------------------+

[you'll need a fixed-width font to view this properly]

As you can see, the menu was very poorly laid out.  Making my 3rd
label shorter fixed the problem, but this definitely looks like broken
behavior to me.  Is there anything I'm doing wrong here?  The relevant
code is:

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    menu.add(Menu.NONE, Menu.NONE, Menu.NONE,
R.string.menu_start_label);
    menu.add(Menu.NONE, Menu.NONE, Menu.NONE,
R.string.menu_find_label);
    menu.add(Menu.NONE, Menu.NONE, Menu.NONE,
R.string.enable_location);
    menu.add(Menu.NONE, Menu.NONE, Menu.NONE,
R.string.menu_about_label);
    return true;
  }


full source available at  http://www.efalk.org/tester3.tar.gz 

ADVthanksANCE,

  -ed falk
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. how to add wifi to my android platform

hello,
I have ported the rt73 driver to my S3C6410 platform. and test it ok under
the linux.
but when I start WIFI under the android, it failed.

the logcat as follow:

  I/ActivityManager(  805): Displayed activity
com.android.settings/.WirelessSettings: 1248 ms (total 1248 ms)
  E/WifiService(  805): Failed to load Wi-Fi driver.
  D/SettingsWifiEnabler(  972): Received wifi state changed from Disabled to
Enabling
  D/SettingsWifiEnabler(  972): Received wifi state changed from Enabling to
Unknown

do I have to write an  wifi hal for the android?


-- 
good life

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Camera not working on Nexus One

Hi,

I did a simple source Android build from the head/trunk.

When installed on my Nexus One everything seems fine except for the
camera app.
The app launches but there is no preview at all and when switched to
Video it crashes.

Any ideas?


This is the output from logcat on the photo mode:


10-21 22:46:18.519: INFO/ActivityManager(85): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.android.camera/.Camera }
10-21 22:46:18.569: INFO/WindowManager(85): Setting rotation to 1,
animFlags=1
10-21 22:46:18.609: INFO/ActivityManager(85): Config changed:
{ scale=1.0 imsi=234/10 loc=en_GB touch=3 keys=1/1/2 nav=3/1 orien=2
layout=34 uiMode=17 seq=8}
10-21 22:46:18.739: DEBUG/QualcommCameraHardware(59): createInstance:
E
10-21 22:46:18.739: DEBUG/QualcommCameraHardware(59):  Storing the
current target type as 1
10-21 22:46:18.739: DEBUG/QualcommCameraHardware(59): constructor EX
10-21 22:46:18.739: DEBUG/QualcommCameraHardware(59): startCamera E
10-21 22:46:18.739: DEBUG/QualcommCameraHardware(59): loading
liboemcamera at 0xb0016100
10-21 22:46:18.739: INFO/QualcommCameraHardware(59): Set main cam and
main cam only
10-21 22:46:18.739: INFO/mm-camera-mmap(59): set sensor selection :0
10-21 22:46:18.899: VERBOSE/RenderScript_jni(166): surfaceDestroyed
10-21 22:46:18.959: INFO/QualcommCameraHardware(59): Open Device
node : /dev/msm_camera/control0
10-21 22:46:18.959: INFO/mm-camera-config(59): cam_conf fd
cfgctrl.camfd:0
10-21 22:46:18.959: INFO/mm-camera-config(59): Open config device
node : /dev/msm_camera/config0
10-21 22:46:18.959: INFO/(59): [AWB Calibration]:ctrlfd:21
10-21 22:46:18.959: INFO/(59): [AWB Calibration] read fuse ID fail
10-21 22:46:18.959: INFO/(59): [AWB Calibration] cfg.fuse_id_word1:0x0
10-21 22:46:18.959: INFO/(59): [AWB Calibration] cfg.fuse_id_word2:0x0
10-21 22:46:18.959: INFO/(59): [AWB Calibration] cfg.fuse_id_word3:0x0
10-21 22:46:18.959: INFO/(59): [AWB Calibration] cfg.fuse_id_word4:0x0
10-21 22:46:18.959: DEBUG/mm-camera-s5k3e2fx_u(59): lcd type = 0
10-21 22:46:18.959: INFO/(59): [AWB Calibration] rg_ratio_GS_table[0]:
0.733340
10-21 22:46:18.969: INFO/(59): [AWB Calibration] rg_ratio_GS_table[1]:
0.733340
10-21 22:46:18.969: INFO/(59): [AWB Calibration] rg_ratio_GS_table[2]:
0.716810
10-21 22:46:18.969: INFO/(59): [AWB Calibration] bg_ratio_GS_table[0]:
0.601600
10-21 22:46:18.969: INFO/(59): [AWB Calibration] bg_ratio_GS_table[1]:
0.601600
10-21 22:46:18.969: INFO/(59): [AWB Calibration] bg_ratio_GS_table[2]:
0.590178
10-21 22:46:18.969: INFO/(59): [AWB Calibration]
sfuse.fuse_id_word1:0x0
10-21 22:46:18.969: INFO/(59): [AWB Calibration]
sfuse.fuse_id_word2:0x0
10-21 22:46:18.969: INFO/(59): [AWB Calibration]
sfuse.fuse_id_word3:0x0
10-21 22:46:18.969: INFO/(59): [AWB Calibration]
sfuse.fuse_id_word4:0x0
10-21 22:46:18.969: INFO/(59): [AWB Calibration] fuse_id : 0x0, 0x0,
0x0, 0x0
10-21 22:46:18.969: INFO/(59): [AWB Calibration] fail to read /data/
awb_cal
10-21 22:46:18.969: INFO/(59): [AWB Calibration] fail to read from
file:/sys/android_camera_awb_cal/awb_cal
10-21 22:46:18.979: INFO/mm-camera-aec(59): Touch AEC  == numRegions:
256
10-21 22:46:18.979: INFO/mm-camera-aec(59): Touch AEC aecCtrl-
10-21 22:46:18.979: INFO/QualcommCameraHardware(59): startCamera:
camsensor name s5k3e2fx, flash 1
10-21 22:46:18.979: DEBUG/QualcommCameraHardware(59): startCamera X
10-21 22:46:18.979: DEBUG/QualcommCameraHardware(59):
initDefaultParameters E
10-21 22:46:18.979: DEBUG/QualcommCameraHardware(59): product 5
10-21 22:46:18.979: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 1, length 32
10-21 22:46:18.989: ERROR/QualcommCameraHardware(59):
native_access_parm: error (No such file or directory): fd 20, type 1,
length 32, status 0
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 64, length 4
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 65, length 4
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 66, length 4
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59): requested
preview size 768 x 432
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59): requested
picture size 1024 x 768
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59): value:21407,
country value:214, country code:214
10-21 22:46:18.989: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 21, length 4
10-21 22:46:18.999: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 14, length 4
10-21 22:46:18.999: DEBUG/QualcommCameraHardware(59): setFlash 0
10-21 22:46:18.999: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 49, length 4
10-21 22:46:18.999: DEBUG/mm-camera-ctrlcmd(59): In
config_proc_CAMERA_SET_PARM_LED_MODE: 0
10-21 22:46:18.999: INFO/QualcommCameraHardware(59): Set zoom=0 20
10-21 22:46:18.999: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 2, length 4
10-21 22:46:18.999: INFO/QualcommCameraHardware(59): Setting Contrast
is 5
10-21 22:46:18.999: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 6, length 4
10-21 22:46:18.999: INFO/QualcommCameraHardware(59): Setting
Brightness is 3
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 7, length 4
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 12, length 4
10-21 22:46:19.009: INFO/mm-camera-ctrlcmd(59): md.d.aec_mode.aec_mode:
1
10-21 22:46:19.009: INFO/mm-camera-aec(59): Touch AEC  == numRegions:
256
10-21 22:46:19.009: INFO/mm-camera-aec(59): Touch AEC aecCtrl-
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59): not defined
touch-focus yet, or AP without touch-focus function
10-21 22:46:19.009: INFO/QualcommCameraHardware(59): Before Setting
coordinate x:384 y:216
10-21 22:46:19.009: INFO/QualcommCameraHardware(59): Setting
coordinate x:2 y:2
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 60, length 28
10-21 22:46:19.009: INFO/mm-camera 8x vfe(59): vfe_set_coordinate x:2
y:2
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 26, length 4
10-21 22:46:19.009: DEBUG/mm-camera-ctrlcmd(59): md.d.aec_iso_mode = 0
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 62, length 4
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 8, length 4
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59): virtual
android::status_t android::QualcommCameraHardware::setParameters(const
android::CameraParameters&), final_rc=0
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59):
initDefaultParameters X
10-21 22:46:19.009: DEBUG/QualcommCameraHardware(59): createInstance:
X created hardware=0x44b78
10-21 22:46:19.019: DEBUG/Camera(435): app passed NULL surface
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): requested
preview size 640 x 480
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): requested
picture size 2048 x 1536
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): value:21407,
country value:214, country code:214
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 21, length 4
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 14, length 4
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): setFlash 1
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 49, length 4
10-21 22:46:19.029: DEBUG/mm-camera-ctrlcmd(59): In
config_proc_CAMERA_SET_PARM_LED_MODE: 1
10-21 22:46:19.029: INFO/QualcommCameraHardware(59): Set zoom=0 20
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 2, length 4
10-21 22:46:19.029: INFO/QualcommCameraHardware(59): Setting Contrast
is 5
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 6, length 4
10-21 22:46:19.029: INFO/QualcommCameraHardware(59): Setting
Brightness is 3
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 7, length 4
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 12, length 4
10-21 22:46:19.029: INFO/mm-camera-ctrlcmd(59): md.d.aec_mode.aec_mode:
1
10-21 22:46:19.029: INFO/mm-camera-aec(59): Touch AEC  == numRegions:
256
10-21 22:46:19.029: INFO/mm-camera-aec(59): Touch AEC aecCtrl-
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): not defined
touch-focus yet, or AP without touch-focus function
10-21 22:46:19.029: INFO/QualcommCameraHardware(59): Before Setting
coordinate x:320 y:240
10-21 22:46:19.029: INFO/QualcommCameraHardware(59): Setting
coordinate x:2 y:2
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 60, length 28
10-21 22:46:19.029: INFO/mm-camera 8x vfe(59): vfe_set_coordinate x:2
y:2
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 26, length 4
10-21 22:46:19.029: DEBUG/mm-camera-ctrlcmd(59): md.d.aec_iso_mode = 0
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 62, length 4
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 8, length 4
10-21 22:46:19.029: DEBUG/QualcommCameraHardware(59): virtual
android::status_t android::QualcommCameraHardware::setParameters(const
android::CameraParameters&), final_rc=0
10-21 22:46:19.039: VERBOSE/camera(435): startPreview
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): startPreview E
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initPreview E:
preview size=640x480
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initPreview E:
preview size=640x480 videosize = 640 x 480
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initPreview :
preview size=640x480 videosize = 640 x 480
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): pmem pool /dev/
pmem_adsp ioctl(fd = 32, PMEM_GET_SIZE) is 2097152
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59):
mBufferSize=460800, mAlignedBufferSize=524288
10-21 22:46:19.039: ERROR/QualcommCameraHardware(59): num_buffers = 4
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 30, reg = 0 buffer = 0x40e19000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 30, reg = 0 buffer = 0x40e99000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 30, reg = 0 buffer = 0x40f19000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 30, reg = 0 buffer = 0x40f99000
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initREcord E
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): pmem pool /dev/
pmem_adsp ioctl(fd = 35, PMEM_GET_SIZE) is 4194304
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59):
mBufferSize=460800, mAlignedBufferSize=524288
10-21 22:46:19.039: ERROR/QualcommCameraHardware(59): num_buffers = 8
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41019000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41099000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41119000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41199000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41219000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41299000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41319000
10-21 22:46:19.039: INFO/QualcommCameraHardware(59): register_buf:
camfd = 33, reg = 0 buffer = 0x41399000
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1090621440 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1091145728 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1091670016 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1092194304 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1092718592 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1093242880 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1093767168 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initRecord :
record heap , video buffers  buffer=1094291456 fd=35 y_off=0
cbcr_off=307200
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59): initREcord X
10-21 22:46:19.039: DEBUG/QualcommCameraHardware(59):
native_access_parm: fd 20, type 1, length 32
10-21 22:46:19.059: DEBUG/QualcommCameraHardware(59): initpreview
before cam_frame thread carete , video frame  buffer=1092194304 fd=35
y_off=0 cbcr_off=307200
10-21 22:46:19.059: DEBUG/QualcommCameraHardware(59): initPreview X: 1
10-21 22:46:19.059: DEBUG/mm-camera 8x vfe(59): vfe_enable_vfe: ctrl-
10-21 22:46:19.059: DEBUG/mm-camera 8x vfe(59): vfe_enable_vfe: set
ctrl->state = CAMERA_STATE_VFE_ENABLED
10-21 22:46:19.069: DEBUG/QualcommCameraHardware(59): frame_thread E
10-21 22:46:19.069: INFO/mm-camera(59): Open Device node : /dev/
msm_camera/frame0
10-21 22:46:19.109: ERROR/mm-camera 8x vfe(59):
vfe_util_updaterollofftbl: sensor doesn't support rolloff correction
by VFE
10-21 22:46:19.186: DEBUG/QualcommCameraHardware(59): startPreview X
10-21 22:46:19.219: INFO/ActivityManager(85): Displayed activity
com.android.camera/.Camera: 646 ms (total 646 ms)
10-21 22:46:19.219: ERROR/mm-camera-config(59): cam_conf:
MSM_CAM_IOCTL_GET_STATS failed!!
10-21 22:46:19.219: ERROR/mm-camera-config(59): cam_conf: get
MSM_CAM_IOCTL_GET_STATS failed but cam_conf_exit=0
10-21 22:46:19.269: WARN/IInputConnectionWrapper(166): showStatusIcon
on inactive InputConnection
10-21 22:46:19.449: VERBOSE/GLRootView(435): onSurfaceChanged:
645x480, gl10: com.google.android.gles_jni.gli...@450ac948
10-21 22:46:19.449: VERBOSE/GLRootView(435): layout content pane
645x480
10-21 22:46:20.310: INFO/wpa_supplicant(304): CTRL-EVENT-DISCONNECTED
- Disconnect event - remove keys
10-21 22:46:20.310: INFO/wpa_supplicant(304): CTRL-EVENT-STATE-CHANGE
id=0 state=0 BSSID=00:00:00:00:00:00
10-21 22:46:20.310: VERBOSE/WifiMonitor(85): Event [CTRL-EVENT-
DISCONNECTED - Disconnect event - remove keys]
10-21 22:46:20.310: VERBOSE/WifiMonitor(85): Event [CTRL-EVENT-STATE-
CHANGE id=0 state=0 BSSID=00:00:00:00:00:00]


Log cat from Video mode:

10-21 22:48:05.079: INFO/ActivityManager(85): Displayed activity
com.android.camera/.VideoCamera: 424 ms (total 424 ms)
10-21 22:48:05.089: VERBOSE/videocamera(435): initializeRecorder
10-21 22:48:05.150: ERROR/audio_input(59): unsupported parameter: x-
pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
10-21 22:48:05.150: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=37:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.150: ERROR/CameraInput(59): Unsupported parameter(x-
pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
10-21 22:48:05.150: ERROR/CameraInput(59): VerifiyAndSetParameter
failed on parameter #0
10-21 22:48:05.150: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=39:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.150: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=44:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.150: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=44:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.159: DEBUG/AuthorDriver(59):
setParamVideoEncodingBitrate() 3000000
10-21 22:48:05.159: WARN/AuthorDriver(59): Use default video fps range
[5 20]
10-21 22:48:05.159: WARN/AuthorDriver(59): Intended video encoding
frame rate (24 fps) is too large and will be set to (20 fps)
10-21 22:48:05.159: WARN/AuthorDriver(59): Use default video width
range [176 352]
10-21 22:48:05.159: WARN/AuthorDriver(59): Intended video encoding
frame width (720) is too large and will be set to (352)
10-21 22:48:05.159: WARN/AuthorDriver(59): Use default video height
range [144 288]
10-21 22:48:05.159: WARN/AuthorDriver(59): Intended video encoding
frame height (480) is too large and will be set to (288)
10-21 22:48:05.169: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=62:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.169: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=62:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.179: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=69:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.179: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=69:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.179: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=73:PVAuthorEngineNodeUtility::NodeCommandCompleted
10-21 22:48:05.179: ERROR/PV(59):
PVLOG:TID(0x2a160):Time=73:PVAuthorEngineNodeUtility::NodeCommandCompleted:
Command failed - context=0x72fa8, status=0xfffffffb
10-21 22:48:05.179: WARN/AuthorDriver(59): Use default video bps range
[192000 420000]
10-21 22:48:05.179: WARN/AuthorDriver(59): Intended video encoding bit
rate (3000000 bps) is too large and will be set to (420000 bps)
10-21 22:48:05.179: ERROR/AuthorDriver(59): Command 6 completed with
error -5
10-21 22:48:05.179: DEBUG/AndroidRuntime(435): Shutting down VM
10-21 22:48:05.179: WARN/dalvikvm(435): threadid=1: thread exiting
with uncaught exception (group=0x4001d7f0)
10-21 22:48:05.199: ERROR/AndroidRuntime(435): FATAL EXCEPTION: main
10-21 22:48:05.199: ERROR/AndroidRuntime(435):
java.lang.RuntimeException: setVideoEncoder failed.
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
android.media.MediaRecorder.setVideoEncoder(Native Method)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
android.media.MediaRecorder.setProfile(MediaRecorder.java:277)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
com.android.camera.VideoCamera.initializeRecorder(VideoCamera.java:
900)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
com.android.camera.VideoCamera.access$300(VideoCamera.java:85)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
com.android.camera.VideoCamera
$MainHandler.handleMessage(VideoCamera.java:201)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
android.os.Handler.dispatchMessage(Handler.java:99)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
android.os.Looper.loop(Looper.java:123)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
java.lang.reflect.Method.invokeNative(Native Method)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
java.lang.reflect.Method.invoke(Method.java:521)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-21 22:48:05.199: ERROR/AndroidRuntime(435):     at
dalvik.system.NativeStart.main(Native Method)
10-21 22:48:05.219: WARN/ActivityManager(85):   Force finishing
activity com.android.camera/.VideoCamera
10-21 22:48:05.259: INFO/WindowManager(85): Setting rotation to 0,
animFlags=1
10-21 22:48:05.279: INFO/ActivityManager(85): Config changed:
{ scale=1.0 imsi=234/10 loc=en_GB touch=3 keys=1/1/2 nav=3/1 orien=1
layout=34 uiMode=17 seq=9}
10-21 22:48:05.729: WARN/ActivityManager(85): Activity pause timeout
for HistoryRecord{451bd940 com.android.camera/.VideoCamera}
10-21 22:48:05.779: VERBOSE/RenderScript_jni(166): surfaceCreated
10-21 22:48:05.779: VERBOSE/RenderScript_jni(166): surfaceChanged




My phone:

Nexus One
Baseband: 32.36.00.28H_4.06.00.12_7
Kernel: 2.6.32.9-27227-g3c98b0d

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. invoking c files in android/NDk

4. add child views to main view

5. Google TV Remote Control App

6. Invisible AlertDialog?

7. problems with cancelling of BackgroundAsyncTask in Activity