Android Testing - App works on one phone, but crashes on others - android

I created an app and it worked just fine on my phone, so I put it up on the market. My friend tried downloading it first, and it does not work on her phone. After the Splash Screen, it force closes.
I don't understand why this is happening. I was under the impression that the market only allowed users with the correct devices to download the app, so figured this wouldn't be an issue.
Has anyone had this happen? Also is there any way for me to test my app on all different phones to ensure that it will not crash again before re-posting it on the market?
**UPDATE - i had her run aLogCat and here is the result. It was too many characters, so I copied from the first E/
E/CameraService( 166): Invalid Burst Count setting burst count to 1
V/CameraHal( 166): camera_set_parameters
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:311 setParameters - White balance set auto
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:321 setParameters - Antibanding set auto
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:337 setParameters - Exposure compensation set 0
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:343 setParameters - Scene mode set auto
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:363 setParameters - Flash mode set on
D/CameraHalM( 166): Current battery Level, 3425000 uv
D/CameraHalM( 166): flashIntensity = 50
E/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:374 setParameters - Setting KEY_MOT_LEDFLASH--50
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:384 setParameters - Effect set none
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:402 setParameters - Jpeg quality set 90
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:409 setParameters - Thumbnail width set 160
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:416 setParameters - Thumbnail width set 120
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:423 setParameters - Thumbnail quality set 60
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:470 setParameters - Zoom set 0
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:483 setParameters - Auto Exposure Lock set false
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:492 setParameters - Auto WhiteBalance Lock set false
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:507 setParameters - Focus mode set auto
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHalM.cpp:124 setMotParameters - Checking Image Stabilization param, off
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHalM.cpp:144 setMotParameters - Disabling Image Stabilization capturing
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHalM.cpp:189 setMotParameters - Led Torch : 0
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHalM.cpp:289 setMotTcmdParametersIfNeeded - Checking Mot Test Mode param, off
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHalM.cpp:300 setMotTcmdParametersIfNeeded - Disabling Test Mode
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:566 setParameters - PreviewFormat set yuv420sp
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:578 setParameters - VNF true
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:596 setParameters - VSTAB false
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:617 setParameters - IPP mode set ldc-nsf
D/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:652 setParameters - Sensor Orientation is set to 0
E/CameraHal( 166): (12785a0) hardware/ti/omap4xxx/camera/CameraHal.cpp:662 setParameters - Invalid preview resolution 960 x 540
V/MotDrmPlugIn( 165): MotDrmPlugIn::onInitialize : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onSetOnInfoListener : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onOpenDecryptSession by fd : 11
D/ ( 165): filename = /system/media/audio/ui/camera_click.ogg
V/MotDrmPlugIn( 165): MotDrmPlugIn::onTerminate : 6579
V/MotDrmPlugIn( 165): MotDrmPlugIn::onInitialize : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onSetOnInfoListener : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onOpenDecryptSession by fd : 11
D/ ( 165): filename = /system/media/audio/ui/multishot_click.ogg
D/AndroidRuntime( 4594): Shutting down VM
W/dalvikvm( 4594): threadid=1: thread exiting with uncaught exception (group=0x40ac7210)
V/MotDrmPlugIn( 165): MotDrmPlugIn::onTerminate : 6579
V/MotDrmPlugIn( 165): MotDrmPlugIn::onInitialize : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onSetOnInfoListener : 6579
D/MotDrmPlugIn( 165): MotDrmPlugIn::onOpenDecryptSession by fd : 11
D/ ( 165): filename = /system/media/audio/ui/VideoRecord.ogg
I/OMXCodec( 166): isAudio=1, mMIME=audio/vorbis
V/MotDrmPlugIn( 165): MotDrmPlugIn::onTerminate : 6579
E/AndroidRuntime( 4594): FATAL EXCEPTION: main
E/AndroidRuntime( 4594): java.lang.RuntimeException: setParameters failed
E/AndroidRuntime( 4594): at android.hardware.Camera.native_setParameters(Native Method)
E/AndroidRuntime( 4594): at android.hardware.Camera.setParameters(Camera.java:1414)
E/AndroidRuntime( 4594): at sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity.surfaceChanged(ShakeItLikeAPolaroidActivity.java:425)
E/AndroidRuntime( 4594): at android.view.SurfaceView.updateWindow(SurfaceView.java:544)
E/AndroidRuntime( 4594): at android.view.SurfaceView.access$000(SurfaceView.java:81)
E/AndroidRuntime( 4594): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
E/AndroidRuntime( 4594): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
E/AndroidRuntime( 4594): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1662)
E/AndroidRuntime( 4594): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2558)
E/AndroidRuntime( 4594): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4594): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 4594): at android.app.ActivityThread.main(ActivityThread.java:4697)
E/AndroidRuntime( 4594): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4594): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 4594): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime( 4594): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
E/AndroidRuntime( 4594): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 375): Force finishing activity sillyfidget.com.shakeitpolaroid/.ShakeItLikeAPolaroidActivity
I/OMXCodec( 166): isAudio=1, mMIME=audio/vorbis
I/OMXCodec( 166): isAudio=1, mMIME=audio/vorbis
I/AudioPlayer( 166): read from audio source returned: -1011
I/AudioPlayer( 166): read from audio source returned: -1011
I/AudioPlayer( 166): read from audio source returned: -1011
W/ApplicationContext( 375): Unable to create files directory files
D/ExtDispService( 667): onRotationChanged - rotation = 0
D/ExtDispService( 667): onRotationChanged! - PORTRAIT!!!
D/IExtDispIpcCB( 163): BnExtDispIpcCB NOTIFYCB: type:101; ext1:1; ext2:0;
D/HWC_HDMI_MOT( 163): IpcCB notifyCallback: type:101; ext1:1; ext2:0;
D/HWC_HDMI_MOT( 163): IpcCB notifyCallback: UI Orientation state change - rotation = 0
D/ti_hwc ( 163): hdmi_callback: UI Rotation = 0
I/InputReader( 375): Reconfiguring input devices. changes=0x00000004
I/InputReader( 375): Device reconfigured: id=2, name='atmxt-i2c', surface size is now 540x960, mode is 1
I/ActivityManager( 375): Config changed: {1.0 311mcc480mnc en_US layoutdir=0 sw360dp w360dp h614dp nrml long port finger -keyb/v/h -nav/h s.6}
D/Swype ( 703): checkEditorShowsCompletions(): shows: false
I/PortalService( 817): onConfigurationChanged
D/OpenGLRenderer( 498): Flushing caches (mode 0)
V/RecentsPanelView( 498): onVisibilityChanged(com.android.systemui.recent.RecentsPanelView#41c57358, 8)
I/SystemUIService( 498): onConfigurationChanged reached.
I/SystemUIService( 498): isLayoutXLarge = false
D/EvbridgeService( 817): handleIntent() android.intent.action.CONFIGURATION_CHANGED handled by com.android.portal.EvbridgeService#413f4738
D/RecentsPanelView( 498): panelHeight=0
D/StatusBar.NetworkController( 498): Intent.ACTION_CONFIGURATION_CHANGED Received
D/ConnectivityService( 375): getMobileDataEnabled returning true
D/ConnectivityService( 375): getMobileDataEnabled returning true
D/OpenGLRenderer( 874): Flushing caches (mode 0)
D/OpenGLRenderer( 874): Flushing caches (mode 1)
D/Launcher.Model( 874): onReceive intent=Intent { act=android.intent.action.CONFIGURATION_CHANGED flg=0x60000010 }
W/ActivityManager( 375): Activity pause timeout for ActivityRecord{414bfdd8 sillyfidget.com.shakeitpolaroid/.ShakeItLikeAPolaroidActivity}
D/Launcher.Model( 874): onReceive intent=Intent { act=android.intent.action.CONFIGURATION_CHANGED flg=0x60000010 }
W/InputManagerService( 375): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41af34d0
W/Launcher( 874): localizable app group not found: Verizon Wireless
W/Launcher( 874): localizable app group not found: Verizon Wireless
W/Launcher( 874): localizable app group not found: Verizon Wireless
W/Launcher( 874): localizable app group not found: Verizon Wireless
I/ActivityManager( 375): No longer want com.google.android.talk (pid 4266): hidden #21
I/AlarmManager( 375): sending alarm Alarm{41ae30a0 type 2 com.android.phone}, PendingIntent{41b402e8: PendingIntentRecord{41d51cb8 com.android.phone broadcastIntent}}
V/AlarmManager( 375): sending alarm OnFinished PendingIntent{41b402e8: PendingIntentRecord{41d51cb8 com.android.phone broadcastIntent}}
D/AudioHardwareMot( 166): AudioStreamOutMot::standby called for 0x129c140
D/AudioHardwareMot( 166): Changed Min CPU Frequency to 300000 KHz
D/AudioHardwareMot( 166): Output 0x129c140 standby complete
D/dalvikvm( 375): GC_EXPLICIT freed 445K, 33% free 17236K/25635K, paused 9ms+7ms
I/Process ( 4594): Sending signal. PID: 4594 SIG: 9
W/InputManagerService( 375): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#420a4e80
W/InputDispatcher( 375): channel '420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 375): channel '420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher( 375): Attempted to unregister already unregistered input channel '420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity (server)'
W/AudioFlinger( 166): session id 16 not found for pid 166
I/ActivityManager( 375): Process sillyfidget.com.shakeitpolaroid (pid 4594) has died.
I/WindowManager( 375): WIN DEATH: Window{419c0168 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.SplashScreen paused=false}
I/WindowManager( 375): WIN DEATH: Window{420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity paused=false}
W/WindowManager( 375): Force-removing child win Window{417dc440 SurfaceView paused=false} from container Window{420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity paused=false}
V/CameraHal( 166): camera_disable_msg_type
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/CameraHal.cpp:225 disableMsgType - Disabling Preview Callback
V/CameraHal( 166): camera_stop_preview
V/CameraHal( 166): camera_cancel_picture
E/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/BaseCameraAdapter.cpp:1791 setState - Adapter state switch INTIALIZED_STATE Invalid Op! event = 0x5
V/CameraHal( 166): camera_release
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/SensorListener.cpp:223 disableSensor - orientation = 0x12e1518 (LIS3DH 3-axis Accelerometer)
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/SensorListener.cpp:108 ~SensorListener - Kill looper thread
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/SensorListener.cpp:120 ~SensorListener - Kill looper
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/SensorListener.cpp:126 ~SensorListener - SensorListener destroyed
I/CameraService( 166): Destroying camera 0
V/CameraHal( 166): camera_device_close
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:1797 stop - --> AppCallbackNotifier NOTIFIER_STOPPED
D/CameraHal( 166): (12e35b8) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:287 notificationThread - Notification Thread received message from Camera HAL
D/CameraHal( 166): (12e35b8) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:1236 processMessage - +Msg get...
D/CameraHal( 166): (12e35b8) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:1238 processMessage - -Msg get...
I/CameraHal( 166): Received NOTIFIER_EXIT command from Camera HAL
D/CameraHal( 166): (12e35b8) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:290 notificationThread - Notification Thread exiting.
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:1301 ~AppCallbackNotifier - Stopping Event Provider
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/AppCallbackNotifier.cpp:1309 ~AppCallbackNotifier - Stopping Frame Provider
D/CameraHal( 166): (12ca020) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:1389 switchToLoaded - Already in OMX_Loaded state or OMX_StateInvalid state
W/WindowManager( 375): Failed looking up window
W/WindowManager( 375): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#41af7900 does not exist
W/WindowManager( 375): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7606)
W/WindowManager( 375): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7597)
W/WindowManager( 375): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1579)
W/WindowManager( 375): at android.os.BinderProxy.sendDeathNotice(Binder.java:433)
W/WindowManager( 375): at dalvik.system.NativeStart.run(Native Method)
I/WindowManager( 375): WIN DEATH: null
I/WindowManager( 375): WINDOW DIED Window{420f92e8 sillyfidget.com.shakeitpolaroid/sillyfidget.com.shakeitpolaroid.ShakeItLikeAPolaroidActivity paused=false}
D/CameraHal( 166): (12d76d0) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:3571 Handler - msg.command = -1
D/CameraHal( 166): (12d76d0) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:3585 Handler - Exiting command handler
D/CameraHal( 166): (12d2c40) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:3628 Handler - Exiting OMX callback handler
I/AlarmManager( 375): sending alarm Alarm{41b2e7d8 type 3 android}, PendingIntent{42116fc0: PendingIntentRecord{421063c0 android broadcastIntent}}
V/AlarmManager( 375): sending alarm OnFinished PendingIntent{42116fc0: PendingIntentRecord{421063c0 android broadcastIntent}}
D/PortalService( 817): Portal onReceive:
I/PortalService( 817): onHandleIntent() action android.intent.action.CLOSE_SYSTEM_DIALOGS
I/ActivityManager( 375): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.motorola.blur.home/.Launcher} from pid 375
I/ActivityManager( 375): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.jtb.alogcat cmp=org.jtb.alogcat/.LogActivity bnds=[8,65][137,245]} from pid 874
D/OpenGLRenderer( 874): Flushing caches (mode 1)
D/Swype ( 703): checkEditorShowsCompletions(): shows: false
I/ActivityManager( 375): Resumed Activity: org.jtb.alogcat/.LogActivity totalTime: 91 ms
W/IInputConnectionWrapper( 874): showStatusIcon on inactive InputConnection
D/OpenGLRenderer( 874): Flushing caches (mode 0)
D/dalvikvm( 4564): GC_CONCURRENT freed 666K, 5% free 11986K/12579K, paused 1ms+17ms
D/Swype ( 703): checkEditorShowsCompletions(): shows: false
W/ActivityManager( 375): Activity destroy timeout for ActivityRecord{414930d8 sillyfidget.com.shakeitpolaroid/.SplashScreen}
W/ActivityManager( 375): Activity destroy timeout for ActivityRecord{414bfdd8 sillyfidget.com.shakeitpolaroid/.ShakeItLikeAPolaroidActivity}

The problem is that you're passing invalid parameters in Camera.setParameters, not all cameras support the same features so you should be querying the camera for it's capabilities before calling that method. However if I were you I'd maybe start a bit smaller because it appears that you are a little over your head here. At the very least you should know how to recognize relevant log info and debug basic problems like this.
FYI: http://developer.android.com/reference/android/hardware/Camera.Parameters.html

May be your friend mobile android level is different with your mobile android level.
Some times the app does not work in all Android phones. If you want to check it you must follow these steps
1) Change your app target in manifest as minsdkversion 8 and target sdk version 15.
2) test your app in all emulators.
3) test each module (working of each activity) in all emulators.
You will definitely find some errors if you do like this. Good luck

Related

What does hal_process_report_ind: Bad item quality: 11 mean? [duplicate]

I get this error in LogCat while doing dev work. Sounds like a hardware malfunction. Is it? What's it in relation to? I tried searching but found only people talking about cameras. It's on a Motorola Razr M. My device acts quirky a lot (feedback delays often when unlocking and freezing temporarily while playing games) and I wonder if this has something to do with it. Thanks!
PID TID Application Tag Text
698 710 qcom_sensors_hal hal_process_report_ind: Bad item quality: 11
(with some context)
06-30 09:32:52.693: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=AlarmManager
06-30 09:32:52.703: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpWakeLock
06-30 09:32:52.703: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=AlarmManager
06-30 09:32:52.713: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.723: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.723: D/SensorManager(19005): caller of registerListener:19005,sensor type:1
06-30 09:32:52.723: I/Sensors(507): sns_pwr.c(383):sns_pwr_set_cpu_latency: hz 50
06-30 09:32:52.723: I/Sensors(507): sns_pwr.c(245):acquiring wakelock
06-30 09:32:52.723: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=NlpWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.743: E/qcom_sensors_hal(698): hal_process_report_ind: Bad item quality: 11
06-30 09:32:52.763: E/qcom_sensors_hal(698): hal_process_report_ind: Bad item quality: 11
06-30 09:32:54.595: D/ModemStatsService(1120): onSignalStrengthsChanged
06-30 09:32:54.595: D/ModemStatsService(1120): CDMA, mRssi=-93, mEcio=-140
06-30 09:32:54.595: D/StatusBar.NetworkController(919): onSignalStrengthsChanged signalStrength=SignalStrength: 99 0 -93 -140 -120 -1 -1 16 -117 -19 -70 2147483647 cdma 0 0 0 false 0 0 2 0 1 1 99 0 5 5 5 5 5 5 5 0 level=1
06-30 09:32:54.595: D/ConnectivityService(698): getMobileDataEnabled returning true
I seem to be getting no network location where I am currently at, and this message popped up in my log so suspecting this is part of my problem:
12-16 09:07:19.739 1117 1500 V GmsNetworkLocationProvi: onSetRequest: ProviderRequestUnbundled, reportLocation is true and interval is 0
12-16 09:07:19.739 1117 1117 V GmsNetworkLocationProvi: SET-REQUEST
12-16 09:07:19.739 1117 1117 V GmsNetworkLocationProvi: in Handler: ProviderRequestUnbundled, reportLocation is true and interval is 0
12-16 09:07:19.849 594 607 E qcom_sensors_hal: hal_process_report_ind: Bad item quality: 11
This sequence pops ups twice while opening Maps, so I am pretty sure the quality message pertains to the location somehow, likely throwing the network location away.
It seems that is a bug related with the location:
http://www.reddit.com/r/Nexus5/comments/20g0vj/150_linessec_qcom_sensors_hal_logcat_spam_causing/
and it seems that this is only triggered if you have have chosen not to enable location reporting.
And once it happens it only stops after rebooting the device.
You're right, it is to do with sensors. Unfortunately, I can't pinpoint the exact problem, but it is most likely a data accuracy issue with your accelerometer.
Android is a very complex operating system, and it is highly unlikely that every piece of native code functions exactly as intended. I wouldn't worry about this error.
Moreover, it is almost definitely not related to your phone freezing and having feedback delays. That sounds more like an issue of running low on RAM and processing power, while having too many background apps open. Try uninstalling the apps you don't use.
Try to clear data for Google Play Service.
Go to Settings > Apps > Google Play service > Manage space > Clear all data.
On my device that stopped these messages for a while (and so far, even when they reappeared they're much less frequent).

Is my "hal_process_report_ind: Bad item quality: 11" something to worry about?

I get this error in LogCat while doing dev work. Sounds like a hardware malfunction. Is it? What's it in relation to? I tried searching but found only people talking about cameras. It's on a Motorola Razr M. My device acts quirky a lot (feedback delays often when unlocking and freezing temporarily while playing games) and I wonder if this has something to do with it. Thanks!
PID TID Application Tag Text
698 710 qcom_sensors_hal hal_process_report_ind: Bad item quality: 11
(with some context)
06-30 09:32:52.693: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=AlarmManager
06-30 09:32:52.703: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpWakeLock
06-30 09:32:52.703: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=AlarmManager
06-30 09:32:52.713: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.723: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.723: D/SensorManager(19005): caller of registerListener:19005,sensor type:1
06-30 09:32:52.723: I/Sensors(507): sns_pwr.c(383):sns_pwr_set_cpu_latency: hz 50
06-30 09:32:52.723: I/Sensors(507): sns_pwr.c(245):acquiring wakelock
06-30 09:32:52.723: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): acquireWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=NlpWakeLock
06-30 09:32:52.733: D/PowerManagerService(698): releaseWakeLock flags=0x1 tag=NlpCollectorWakeLock
06-30 09:32:52.743: E/qcom_sensors_hal(698): hal_process_report_ind: Bad item quality: 11
06-30 09:32:52.763: E/qcom_sensors_hal(698): hal_process_report_ind: Bad item quality: 11
06-30 09:32:54.595: D/ModemStatsService(1120): onSignalStrengthsChanged
06-30 09:32:54.595: D/ModemStatsService(1120): CDMA, mRssi=-93, mEcio=-140
06-30 09:32:54.595: D/StatusBar.NetworkController(919): onSignalStrengthsChanged signalStrength=SignalStrength: 99 0 -93 -140 -120 -1 -1 16 -117 -19 -70 2147483647 cdma 0 0 0 false 0 0 2 0 1 1 99 0 5 5 5 5 5 5 5 0 level=1
06-30 09:32:54.595: D/ConnectivityService(698): getMobileDataEnabled returning true
I seem to be getting no network location where I am currently at, and this message popped up in my log so suspecting this is part of my problem:
12-16 09:07:19.739 1117 1500 V GmsNetworkLocationProvi: onSetRequest: ProviderRequestUnbundled, reportLocation is true and interval is 0
12-16 09:07:19.739 1117 1117 V GmsNetworkLocationProvi: SET-REQUEST
12-16 09:07:19.739 1117 1117 V GmsNetworkLocationProvi: in Handler: ProviderRequestUnbundled, reportLocation is true and interval is 0
12-16 09:07:19.849 594 607 E qcom_sensors_hal: hal_process_report_ind: Bad item quality: 11
This sequence pops ups twice while opening Maps, so I am pretty sure the quality message pertains to the location somehow, likely throwing the network location away.
It seems that is a bug related with the location:
http://www.reddit.com/r/Nexus5/comments/20g0vj/150_linessec_qcom_sensors_hal_logcat_spam_causing/
and it seems that this is only triggered if you have have chosen not to enable location reporting.
And once it happens it only stops after rebooting the device.
You're right, it is to do with sensors. Unfortunately, I can't pinpoint the exact problem, but it is most likely a data accuracy issue with your accelerometer.
Android is a very complex operating system, and it is highly unlikely that every piece of native code functions exactly as intended. I wouldn't worry about this error.
Moreover, it is almost definitely not related to your phone freezing and having feedback delays. That sounds more like an issue of running low on RAM and processing power, while having too many background apps open. Try uninstalling the apps you don't use.
Try to clear data for Google Play Service.
Go to Settings > Apps > Google Play service > Manage space > Clear all data.
On my device that stopped these messages for a while (and so far, even when they reappeared they're much less frequent).

Jelly Bean starts googlequicksearchbox when pressing back button

I am developing an application and on Motorola XOOM with Android 4.1 it starts Google Search activity when I am pressing back button on video player activity in my application. No intents for Google search have been sent from this application. Also it works properly on previous android versions even ICS devices. Here is the logs
09-05 14:19:53.260: I/InputReader(271): Reconfiguring input devices.changes=0x00000004
09-05 14:19:53.260: I/InputReader(271): Device reconfigured: id=2, name='qtouch-touchscreen', surface size is now 1280x800, mode is 1
09-05 14:19:53.360: I/ActivityManager(271): Config changed: {1.0 0mcc0mnc en_US sw800dp w800dp h1232dp xlrg port finger -keyb/v/h -nav/h s.37}
09-05 14:19:53.410: D/myTag(11672): com.orvis.container.OKnot#41b7f650
09-05 14:19:53.440: D/dalvikvm(1231): GC_CONCURRENT freed 248K, 5% free 7967K/8327K, paused 9ms+6ms, total 70ms
09-05 14:19:53.460: W/AudioFlinger(93): session id 764 not found for pid 11672
09-05 14:19:53.510: I/ActivityManager(271): START {act=android.intent.action.ASSIST flg=0x10000000 cmp=com.google.android.googlequicksearchbox/.SearchActivity u=0} from pid 344
Please assist.
Thank you.

Cannot solve android.view.ViewRoot$CalledFromWrongThreadException. Help needed?

after searching i've found that some phones (like the Galaxy s) are affected by a strange bug or whatever that cause this error:
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
at java.lang.Thread.run(Thread.java:1019)
Caused by: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRoot.checkThread(ViewRoot.java:2934)
at android.view.ViewRoot.invalidateChild(ViewRoot.java:643)
at android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:669)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:2511)
at android.view.View.invalidate(View.java:5279)
at android.webkit.WebView.selectionDone(WebView.java:4470)
at android.webkit.WebView.clearHelpers(WebView.java:1295)
at android.webkit.WebView.loadDataWithBaseURL(WebView.java:1714)
at c.a(Unknown Source)
at c.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
... 4 more
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRoot.checkThread(ViewRoot.java:2934)
at android.view.ViewRoot.invalidateChild(ViewRoot.java:643)
at android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:669)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:2511)
at android.view.View.invalidate(View.java:5279)
at android.webkit.WebView.selectionDone(WebView.java:4470)
at android.webkit.WebView.clearHelpers(WebView.java:1295)
at android.webkit.WebView.loadDataWithBaseURL(WebView.java:1714)
at c.a(Unknown Source)
at c.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
at java.lang.Thread.run(Thread.java:1019)
And this is the logcat if needed and from here it seems that is problem of the swipe function:
10-27 19:19:20.329 I/InputReader( 166): dispatchTouch::touch event's action is 1
10-27 19:19:20.329 I/InputDispatcher( 166): Delivering touch to current input target: action: 1, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:20.749 I/InputReader( 166): dispatchTouch::touch event's action is 0
10-27 19:19:20.749 I/InputDispatcher( 166): Delivering touch to current input target: action: 0, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:21.689 I/InputReader( 166): dispatchTouch::touch event's action is 1
10-27 19:19:21.689 I/InputDispatcher( 166): Delivering touch to current input target: action: 1, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:21.689 W/webview ( 1125): Miss a drag as we are waiting for WebCore's response for touch down.
10-27 19:19:21.989 I/InputReader( 166): dispatchTouch::touch event's action is 0
10-27 19:19:21.989 I/InputDispatcher( 166): Delivering touch to current input target: action: 0, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:22.159 I/Ads ( 1125): Refreshing ad.
10-27 19:19:22.169 I/webclipboard( 1125): clipservice: android.sec.clipboard.ClipboardExManager#4051cb08
10-27 19:19:22.259 I/Ads ( 1125): adRequestUrlHtml: <html><head><script src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":15,"u_sd":1.0,"u_w":320,"slotname":"a14e098781b871d","msid":"***PACKEGE_NAME***","js":"afma-sdk-a-v4.0.4","isu":"F1B8EEEA64C5716BA996D22689C17557","format":"320x50_mb","net":"wi","app_name":"4.0.4.android.***PACKEGE_NAME***","hl":"pt","u_h":480,"u_so":"p","u_audio":1,"prl":792});</script></head><body></body></html>
10-27 19:19:22.449 I/InputReader( 166): dispatchTouch::touch event's action is 1
10-27 19:19:22.449 I/InputDispatcher( 166): Delivering touch to current input target: action: 1, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:22.449 W/webview ( 1125): Miss a drag as we are waiting for WebCore's response for touch down.
10-27 19:19:22.599 I/Ads ( 1125): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=15&u_sd=1&u_w=320&slotname=a14e098781b871d&msid=***PACKEGE_NAME***&js=afma-sdk-a-v4.0.4&isu=F1B8EEEA64C5716BA996D22689C17557&format=320x50_mb&net=wi&app_name=4.0.4.android.***PACKEGE_NAME***&hl=pt&u_h=480&u_so=p&u_audio=1&prl=792&output=html&region=mobile_app&u_tz=240&ex=1&client_sdk=1&askip=0", "afmaNotifyDt": "null">
10-27 19:19:22.609 I/InputReader( 166): dispatchTouch::touch event's action is 0
10-27 19:19:22.609 I/InputDispatcher( 166): Delivering touch to current input target: action: 0, channel '4096f5c8 ***PACKEGE_NAME***/***PACKEGE_NAME***.Game (server)'
10-27 19:19:23.339 W/dalvikvm( 1125): threadid=11: thread exiting with uncaught exception (group=0x40018578)
10-27 19:19:23.339 E/ACRA ( 1125): ACRA caught a RuntimeException exception for ***PACKEGE_NAME***. Building report.
10-27 19:19:23.339 D/ACRA ( 1125): Retrieve application default SharedPreferences.
10-27 19:19:23.349 V/webview ( 1125): ZoomScale 3 mPreserveZoom: false
10-27 19:19:23.489 I/ACRA ( 1125): READ_LOGS granted! ACRA can include LogCat and DropBox data.
10-27 19:19:23.519 D/ACRA ( 1125): Retrieving logcat output...
The only thing that can cause this error is a Timer that i use in my application in the game Intent, i tried to set up a handler but i saw a lot of crash in my ACRA log.
This is the content of my intent, i hope that someone should help me :)
startB.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
startB.setEnabled(false);
partiColTempo(tempox);
}
});
}
private void displayText(final String text){
this.runOnUiThread(new Runnable(){
//#Override
public void run() {
tempo.setText(text);
if (text.equals("Finished")){
eseguiSuono();
assegnaPunti();
startB.setEnabled(true);
//elapsed=0;
tempo.setText("Waiting");
}
}});
}
private void partiColTempo(int tempox) {
TIMEOUT=tempox*1000;
Log.w("tempo timer", ""+tempox);
elapsed=INTERVAL;
TimerTask task=new TimerTask(){
#Override
public void run() {
elapsed+=INTERVAL;
if(elapsed>TIMEOUT){
this.cancel();
displayText("Finished");
return;
}
//if(some other conditions)
// this.cancel();
displayText(getString(R.string.tempo_rim)+" " + (TIMEOUT-elapsed) / 1000);
}
};
Timer timer = new Timer();
timer.scheduleAtFixedRate(task, INTERVAL, INTERVAL);
Is the problem there? Because i can't find other place when i call asynctask.
You are clearly doing something with UI (i.e. View-derived objects) from AsyncTask.doInBackground(). That's not allowed, only the UI thread can touch UI objects.
If you need to update UI from your background/AsyncTask as it's running, you must call publishProgress() which will cause onProgressUpdate to run on the UI thread. You can also implement onPostExecute() which will also run on the UI thread once the background thread has finished.
This scenario generally occurs when AsyncTask thread is working in the
background but in the meanwhile, the UI activity class is destroy. So
after completion of the AsyncTask when we try to perform some UI task,
the above Exception will thrown.

Strange Behavior of Android VideoView - "Can't Play Video"

In my application,showing video from sdcard folder or new taken video from Video intent in a VideoView in different Activity by passing file path of the video selected.
Now the problem is,
I have tested this app in my 2 devices LG Optimus Black and LG Optimus Me and it works like charm not problem no force close.
Now when i test this app in Samsung Fascinate 2.1 the video view shows the message "Can't Play Video" no matter i select existing video or take new one.
Remember the app is working fine with the above 2 devices.
In the ShowVideo activity i have button to upload the video, when i got the message "Can't Play Video" i been able to take video from the same path and upload it and can check that video at server side but video view didn't played that video.
So, the Video Path of the SDCard is not the problem thats for sure.
also the Video are of .3gp or .mp4 format only so the format is also supported by android
.
My Questions Are :
1)When the message "Can't Play Video" occurs?
2)What are the Solution for that?
and 3) What could be possible mistakes in my application?
here is the logcat output while i got that message but don't see any error/exception in that.
I/ActivityManager( 2227): Starting activity: Intent { cmp=com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo (has extras) }
V/SettingsProvider( 2227): system <- value=1.0 name=font_scale
V/SettingsProvider( 2227): property: sys.settings_system_version=26
V/SettingsProvider( 2227): notifying: content://settings/system/font_scale
D/HardwareService( 2227): Brightness NATIVE setBacklightBrightness running. light: 2bightness ==> 30 mode: 1
D/NetworkLocationProvider( 2227): onDataConnectionStateChanged 6
D/MobileDataStateTracker( 2227): default Received state= CONNECTING, old= CONNECTING, reason= (unspecified), apnTypeList= *
D/AGPSManagerService( 2227): state: CONNECTING apnName: Verizon reason: null
D/dalvikvm( 3326): GC freed 2472 objects / 140504 bytes in 73ms
I/File ( 3326): /sdcard/DCIM/Camera/video-2011-10-17-10-40-54.mp4
V/MediaStore( 3326): We probably run out of space, so create the thumbnail in memory.
I/MediaPlayerService( 2182): Use PV_PLAYER for url:/sdcard/DCIM/Camera/video-2011-10-17-10-40-54.mp4
E/MetadataDriver( 2182): MetadataDriver::setDataSource url file type is isAudiofile(0)
D/ ( 2182): SISO TEST registering PVMFRecognizerPluginFactory
D/ ( 2182): SISO TEST registering PVMFRecognizerPluginFactory success
E/MetadataDriver( 2182): isCommandSuccessful: Command id(0 and expected 0) and status (-17 and expected 1), data corruption (false) at state (4).
E/MetadataDriver( 2182): isCommandSuccessful: Command id(1 and expected 1) and status (-14 and expected 1), data corruption (false) at state (5).
E/MetadataDriver( 2182): captureFrame : time = 0
E/MetadataDriver( 2182): captureFrame : inputWidth = 0, inputHeight =0, bAspectratio=0, bResize=0
D/MediaUploader( 2492): UploadsQueue.getAllPending: elapsed msec=449
I/MediaUploader( 2492): UploadManager.uploadPendingItems: Found 1 items in queue.
I/Selected( 3326): =============Second
D/MediaUploader( 2492): isGphotosSynced: FALSE -- starting gphotos update refresh for -5709461173740324808
W/IInputConnectionWrapper( 3505): showStatusIcon on inactive InputConnection
I/copybit ( 2227): [createPP] fimc version : 50
I/MediaPlayerService( 2182): Use PV_PLAYER for url:/DCIM/Camera/video-2011-10-17-10-40-54.mp4
D/ ( 2182): SISO TEST registering PVMFRecognizerPluginFactory
D/ ( 2182): SISO TEST registering PVMFRecognizerPluginFactory success
D/ ( 2182): SISO TEST PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
D/ ( 2182): SISO TEST PVOMA1FFRecognizerFactory::CreateRecognizerPlugin() plugin found
D/ ( 2182): SISO TEST PVOMA1FFRecognizerFactory::DestroyRecognizerPlugin()
E/OsclDirectFileIO( 2182): [LargeFileSupport] OsclDirectFileIO::OpenFileOrSharedFd Error = -1
W/MediaPlayer( 3326): info/warning (1, 26)
E/PlayerDriver( 2182): Command PLAYER_SET_DATA_SOURCE completed with an error or info -4
E/MediaPlayer( 3326): SISO TEST MEDIA_ERROR
E/MediaPlayer( 3326): error (-4, -4)
W/PlayerDriver( 2182): PVMFInfoErrorHandlingComplete
V/MediaProvider( 2349): stopThumbWorkerSuspendTimer
V/MediaProvider( 2349): Resuming ThumbWorker
W/MediaProvider( 2349): Have message but no request?
I/System.out( 2647): interface name: null
I/MediaPlayer( 3326): Info (1,26)
E/MediaPlayer( 3326): Error (-4,-4)
D/VideoView( 3326): Error: -4,-4
D/MediaUploader( 2492): UploadManager.uploadPendingItems: Waiting for GPhotos sync
D/MediaUploader( 2492): UploadsQueue.getAllPending: elapsed msec=5
I/MediaUploader( 2492): UploadManager.uploadPendingItems: Found 1 items in queue.
I/POWER_OFF_TEST( 2227): mBatteryLevel = 38 mBatteryDecimalPoint = 1
D/MediaUploader( 2492): UploadsAsyncQueryHandler.notifiyDatabaseChangeListeners
D/MediaUploader( 2492): isGphotosSynced: FALSE -- update is in progress for -5709461173740324808
D/MediaUploader( 2492): UploadManager.uploadPendingItems: Waiting for GPhotos sync
D/MediaUploader( 2492): updateQueueState: RUNNING
I/GooglePlusOne( 2492): Starting new CAMERA_SYNC_CREATED request 1
I/ActivityManager( 2227): Displayed activity com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo: 1251 ms (total 1251 ms)
V/InputDevice( 2227): ID[0]=0 Dn (0=>1)
V/WindowManager( 2227): Dsptch >Window{47a67278 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
D/dalvikvm( 2227): GC freed 4009 objects / 210024 bytes in 155ms
V/InputDevice( 2227): ID[0]=0 Up (1=>0)
V/WindowManager( 2227): Dsptch >Window{47a67278 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
W/InputManagerService( 2227): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#47d89250
D/dalvikvm( 2492): GC freed 11952 objects / 682568 bytes in 171ms
D/dalvikvm( 2647): GC freed 7435 objects / 656456 bytes in 26ms
D/dalvikvm( 2647): GC freed 3079 objects / 498304 bytes in 60ms
I/System.out( 2647): interface name: null
I/GooglePlusOne( 2492): CAMERA_SYNC_CREATED request 1 completed with code=200
D/MediaUploader( 2492): onGphotosChange: sawError=false; errs=0; retry=Wed Dec 31 17:00:00 America/Boise 1969; expiry=Mon Oct 17 10:56:20 America/Boise 2011
D/MediaUploader( 2492): UploadsQueue.getAllPending: elapsed msec=17
I/MediaUploader( 2492): UploadManager.uploadPendingItems: Found 1 items in queue.
D/MediaUploader( 2492): isGphotosSynced: TRUE for -5709461173740324808
D/MediaUploader( 2492): existsInGphotos: false info=name=video-2011-10-17-10-40-54.mp4 fileUri=content://media/external/video/media/37 fileSize=2477915;
D/MediaUploader( 2492): UploadManager.uploadPendingItems: starting upload...
D/MediaUploader( 2492): UploadManager.upload: info=name=video-2011-10-17-10-40-54.mp4 fileUri=content://media/external/video/media/37 fileSize=2477915
I/NetworkStat( 2678): Network type: MOBILE
I/NetworkStat( 2678): -------- mobile data network is NOT available as of now
D/NotificationService( 2227): enqueueNotification :: notification.defaults = 0, Notification.DEFAULT_SOUND = 1, notification.sound = null
D/dalvikvm( 2492): GC freed 4032 objects / 238248 bytes in 49ms
I/dalvikvm-heap( 2492): Grow heap (frag case) to 6.708MB for 524304-byte allocation
D/dalvikvm( 2492): GC freed 291 objects / 13392 bytes in 58ms
D/MediaUploader( 2492): UploadsAsyncQueryHandler.notifiyDatabaseChangeListeners
D/MediaUploader( 2492): GlsAuthorizer.getAuthToken: authTokenType=lh2; account=dprichards#gmail.com;
D/MediaUploader( 2492): executeWithAuthRetry: starting httpClient.execute #1
D/dalvikvm( 2870): GC freed 555 objects / 24144 bytes in 269ms
I/System.out( 2492): interface name: null
V/InputDevice( 2227): ID[0]=0 Dn (0=>1)
V/WindowManager( 2227): Dsptch >Window{47cf6308 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
V/InputDevice( 2227): ID[0]=0 Up (1=>0)
V/WindowManager( 2227): Dsptch >Window{47cf6308 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
D/dalvikvm( 2647): GC freed 7301 objects / 659064 bytes in 78ms
I/System.out( 2647): interface name: null
I/System.out( 2647): interface name: null
I/System.out( 2647): interface name: null
D/dalvikvm( 2647): GC freed 2654 objects / 324016 bytes in 149ms
I/System.out( 2647): interface name: null
D/MediaUploader( 2492): getStatusCode: status=HTTP/1.1 200 OK
D/MediaUploader( 2492): getStatusCode: status=HTTP/1.1 200 OK
D/MediaUploader( 2492): UPLOAD_START: uploadUrl=https://picasaweb.google.com/data/upload/resumable/media/create-session/feed/api/user/default/albumid/camera-sync?xmlerrors=1&upload_id=AEnB2Uqe2bdvyx5p31Ta-sS4ytggj07_6-uiKG_hCOc6sT1u8eqhvr-8oZdUT1uPHxuAxXphUiJXyq-i_8YaJlT2YLholp__Sw
D/MediaUploader( 2492): UploadManager.onProgress
V/MediaUploader( 2492): UploadManager.progressUpdate: guid=1351689615505998240; bytes=0
D/dalvikvm( 2647): GC freed 920 objects / 202544 bytes in 53ms
D/dalvikvm( 2492): GC freed 7362 objects / 498448 bytes in 73ms
D/MediaUploader( 2492): UploadsAsyncQueryHandler.notifiyDatabaseChangeListeners
D/dalvikvm( 2492): GC freed 658 objects / 129232 bytes in 42ms
I/dalvikvm-heap( 2492): Grow heap (frag case) to 7.250MB for 262160-byte allocation
D/dalvikvm( 2492): GC freed 0 objects / 0 bytes in 41ms
D/dalvikvm( 2492): GC freed 92 objects / 135128 bytes in 30ms
I/dalvikvm-heap( 2492): Grow heap (frag case) to 7.621MB for 524304-byte allocation
D/dalvikvm( 2492): GC freed 0 objects / 0 bytes in 44ms
D/MediaUploader( 2492): executeWithAuthRetry: starting httpClient.execute #1
D/dalvikvm( 2647): GC freed 576 objects / 53240 bytes in 182ms
V/InputDevice( 2227): ID[0]=0 Dn (0=>1)
V/WindowManager( 2227): Dsptch >Window{47cf6308 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
V/InputDevice( 2227): ID[0]=0 Up (1=>0)
V/WindowManager( 2227): Dsptch >Window{47cf6308 com.zoodigapp.zoodig/com.zoodigapp.media.ShowVideo paused=false}
I/ActivityManager( 2227): Starting activity: Intent { cmp=com.zoodigapp.zoodig/.WriteMessage (has extras) }
If you find anything not described well please comment below.
Additional details (moved from comments):
They are merely of 1 minutes and the last one I tested and failed on Samsung that was of only 20 seconds. and sizes are mostly in MB not more than 20 MB right now.
The video is taken from the same device and immediately after taking that video I try to show in my activity same way other already stored video are also fine...actually after uploading that video I can see that video and can download also
1)When the message "Can't Play Video" occurs?
Android usually gives out this message, when it is not able to play the media content. The reasons for this to happen can be anything like
Unsupported file format
Unsupported codecs
Erroneous content
to mention a few.
2)What are the Solution for that?
Unless you have your own Media Framework in your app, there is no solution from the application level
3) What could be possible mistakes in my application?
Very unlikely the mistake is in your application. If you read the logs, you will see that the error seems to originate from the DataSource of opencore (Which version of android are you running anyway? It is still using Opencore instead of StageFright). It is recognizing it as a large file (> 2GB) and hence giving out the error "E/OsclDirectFileIO( 2182): [LargeFileSupport] OsclDirectFileIO::OpenFileOrSharedFd Error = -1"
The other thing to note is certain phones have better multimedia capability than the other phones, since OEM's can themselves improve the multimedia capability. So there is no written guarantee that all files can be played on all devices, even though it conforms to the supported formats, codecs mentioned by Android.
Its all about format problem, Some phone record the video in mp4 format and some in 3gp format, but in almost all phones the default mediaplayer support 3gp format. So the solution is you need to convert it into 3gp at the time of playing. This thing is difficult to handle in android, So at server end you can do it easily and hence whatever the format of the video is being uploaded you can download it in one format .3gp and it will work fine.
Make sure that your video is in MP4 format , but if still does not play or shows same error then fault is not with the code. Fault is in the video resolution. just check height and width of you video and match it with you video view component. There are lot of free video compressors Online available. So just compress your video and test it.
It will work.
Cheers!!!
I kept getting the same "Can't Play Video" message while trying to play video from the phone itself. First I didn't input good path to a file but there was anther interesting issue.
I've type path from the root, example /videoFileName.mp4 and I should have type it with sdcard in between like /sdcard/videoFileName.mp4
My Sony Ercisson Xperia Arc was connected as a usb mass device storage at the same time I was running my app through adb, so internal sd card was unmounted and file could not be found. I've discovered this when I tryed same code on Samsung Galaxy S which behaves differently when connected.
If you have mp4 file having H.264 baseline encoding and still you are unable to play video in your android device then it might be problem in .htAccess file on server side. It might be zipping .mp4 file. few devices are able to play video by unzipping it and stream it but not in all device cases. You need to change .htAccess file on server side. Change in output filter and include file format .mp4 to exclude it from being zip at streaming time.
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|mp4)$ \ no-gzip dont-vary
Google recently open-sourced Exoplayer after Google IO 2014.
My experience with video playing with it was good so far.
https://github.com/google/ExoPlayer
I could stream videos from Dropbox/AWS
Stream videos from youtube.
Things still depend upon codecs supported by the device.
I had this same issue while using VideoView, while i tried to check all things regarding the video the issue was in the AndroidManifest.xml File, It was regarding the permission to use EXTERNAL STORAGE give it a shot it might solve the issue.
I came across the same problem and what worked for is adding the Internet permission to the manifest file since I am getting video from url.
<uses-permission android:name="android.permission.INTERNET"/>
This is how I am populating listview of videos.
//assign video
mVideosListView = (ListView) findViewById(R.id.videoListView);
//create videos
Video riverVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862009639.mp4");
Video carsVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862013714.mp4");
Video townVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862014159.mp4");
Video whiteCarVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862014159.mp4");
Video parkVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862014834.mp4");
Video busyCityVideo = new Video("https://s3.amazonaws.com/androidvideostutorial/862017385.mp4");
mVideosList.add(riverVideo);
mVideosList.add(carsVideo);
mVideosList.add(townVideo);
mVideosList.add(whiteCarVideo);
mVideosList.add(parkVideo);
mVideosList.add(busyCityVideo);
/***populate video list to adapter**/
mVideoAdapter = new VideoAdapter(this, mVideosList);
mVideosListView.setAdapter(mVideoAdapter);
I faced the same issue once. In My case only issue was fie format. i Just changed the video format to .mp4 and it works like charm on all the devices and emulator i used.
my suggestion is to check your video format first and then try other solutions.
For me was a problem with the codec used by video.
I installed the Any Video Converter and converted the video using the settings for Google Android (x264).
Now I can play on every device.
My problem was I had saved it in .avi format instead of .m4v format, and it worked liked a charm on my Samsung...thanks for everyone's help!

Categories

Resources