I'm trying to capture an image from the back camera using the Android Camera API.
I'm using this code, 4. Tutorial: Using the camera API. It works when it uses the front camera. When I change CAMERA_FACING_FRONT to CAMERA_FACING_BACK, I get the Error 100 on
camera.takePicture(null, null, new PhotoHandler(getApplicationContext()));
I'm using Samsung Galaxy S3. Anyone knows how to solve this? It has been asked a multiple times, but I haven't found a real solution anywhere.
Edit: Full log until Error 100
No exceptions in the program itself, error log:
03-19 01:57:43.069 2348-7984/? E/DatabaseUtils﹕ Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13140)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
03-19 01:57:57.874 2348-2689/? E/Watchdog﹕ !#Sync 13376
03-19 01:57:59.734 18504-18557/? A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 18557 (pictureThread)
03-19 01:58:01.984 22720-22720/? E/ctxmgr﹕ [PowerConnectionProducer]Could not write powerInfo=Plug state: 2 BatteryLevel: 0.98, status=Status{statusCode=unknown status code: 7503, resolution=null}
03-19 01:58:07.239 18489-18489/com.example.luka.udpklijentandroid E/Camera﹕ Error 100
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 23.29: This output device support only one mic
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 24.32: This output device support only one mic
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 25.31: This output device support only one mic
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 26.40: This output device support only one mic
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 27.28: This output device support only one mic
03-19 01:58:07.679 18607-18607/? E/TinyUCM﹕ 28.35: This output device support only one mic
03-19 01:58:08.734 2348-2565/? E/AudioService﹕ Media server died.
03-19 01:58:08.734 2348-2565/? E/AudioService﹕ Media server started.
03-19 01:58:27.879 2348-2689/? E/Watchdog﹕ !#Sync 13377
Related
I am implementing pjsua2 sample app for voice call on Android devices. It works well on android version 8, 9, 10, 11 without issue. But when I tested on Android 5.1, I can receive call from sip soft phone without any issue. But outgoing call only rings on the other side without any voice.
From the log its mentioned that both AUDIO_OUTPUT_FLAG_FAST as well as AUDIO_INPUT_FLAG_FAST denied by client. can any one suggest me how to rectify this issue.
as per below log : audio details
minFrameCount: 1857, afFrameCount=1024, minBufCount=5, sampleRate=16000, afSampleRate=44100, afLatency=115
4-12 16:17:42.320 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.320 pjsua_call.c !Making call with acc #0 to sip:syz#sip.xcd.com
04-12 16:17:42.321 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.320 pjsua_aud.c .Set sound device: capture=-1, playback=-2
04-12 16:17:42.321 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.321 pjsua_aud.c ..Opening sound device (speaker + mic) PCM#16000/1/20ms
04-12 16:17:42.321 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.321 opensl_dev.c ...Creating OpenSL stream
04-12 16:17:42.322 4922-4922/org.pjsip.pjsua2 W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client
04-12 16:17:42.322 4922-4922/org.pjsip.pjsua2 I/AudioTrack: minFrameCount: 1857, afFrameCount=1024, minBufCount=5, sampleRate=16000, afSampleRate=44100, afLatency=115
04-12 16:17:42.323 4922-4922/org.pjsip.pjsua2 W/AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client
04-12 16:17:42.336 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.335 ec0xb8b41d98 ...Speex AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=0 ms
04-12 16:17:42.336 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.336 opensl_dev.c ...Starting OpenSL stream..
04-12 16:17:42.347 4922-4922/org.pjsip.pjsua2 I/System.out: 16:17:42.347 opensl_dev.c ...OpenSL stream started
I can't open the camera since my phone went flat once. (even installed camera2 on magisk)
logcat shows it trying to connect and does this cycle every couple of sections
03-05 16:57:26.449 25035 25139 W ServiceManager: Service media.camera didn't start. Returning NULL
03-05 16:57:26.912 5778 5858 I CameraManagerGlobal: Connecting to camera service
03-05 16:57:27.912 5778 5858 I CameraManagerGlobal: Connecting to camera service
03-05 16:57:28.912 5778 5858 I CameraManagerGlobal: Connecting to camera service
03-05 16:57:29.725 2563 2595 W ServiceManager: Service media.camera didn't start. Returning NULL
03-05 16:57:29.913 5778 5858 I CameraManagerGlobal: Connecting to camera service
03-05 16:57:30.129 2742 2742 F linker : CANNOT LINK EXECUTABLE "/system/bin/cameraserver": library "libc++_shared.so" not found
found this when i launched the camera app
03-05 17:04:41.387 4793 11362 D ShortcutManager: th = 1 is camera package
and dumpsys returns
Can't find service: media.camera
My app was working fine. I had to format my computer and phone. Now the keep app crashing. I'm using a web view to display youtube everything works fine until I try to switch to full screen then I get the errors. I don't know how to solve with this problem.
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ MountEmulatedStorage()
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ v2
08-10 21:41:27.045 31363-31363/? E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
08-10 21:41:36.865 31363-31959/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = audio/mp4a-latm
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = video/x-vnd.on2.vp9
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ [OMX.google.vp9.decoder] storeMetaDataInBuffers failed w/ err -2147483648
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/chromium﹕ [FATAL:jni_android.cc(271)] Check failed: false.
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 31363 (view_video_test)
I'm new on eclipse and android and I want for my first app do a wifi connection between the smartphone and an ip camera, unfortunately my app crash if when I want to see the stream of the camera.
My logcat said that:
03-06 18:11:26.879: E/(680): Could not open '/data/data/hotplug/cmd'<br/>
03-06 18:11:26.879: E/(680): error : 2, No such file or directory
[Edit k3b 2017-08-09]
I have the same issue on my andriod-4.4 my logcat contain this
08-09 20:38:40.436 1883-2035/? I/libPerfService: 1: set: 1
[ 08-09 20:38:40.436 1883:0x7f3 E/ ]
Could not open '/data/data/hotplug/cmd'
[ 08-09 20:38:40.436 1883:0x7f3 E/ ]
error : 2, No such file or directory
googleing "libPerfService" for found androidStudio log doesn't work
11-02 02:29:48.792 1014-1231/? I/libPerfService: 1: set freq: 1950000
11-02 02:29:48.792 1014-1231/? I/libPerfService: 1: set: 4
found https://census.tsyrklevich.net/file_permissions//system/lib/libperfservice.so with no description
Does anybody know where libPerfService comes from? is this a maleware waiting for command? I have not found any defintion for it.
My andrdoid app has suddenly stopped detecting the Chromecast. All other apps are picking it up.
The logs show:
12-12 23:16:24.536: D/CastMediaRouteProvider(957): in onDiscoveryRequestChanged: request=DiscoveryRequest{ selector=MediaRouteSelector{ controlCategories=[com.google.cast.CATEGORY_CAST, com.google.cast.CATEGORY_CAST_APP_NAME:b1f0fdaf-05be-4941-8918-d140393ab734_1] }, activeScan=true, isValid=true }
12-12 23:16:24.536: D/CastMediaRouteProvider(957): stopping the scan
And:
12-16 14:59:43.411: D/NetworkRequest(3276): performGet: http://10.0.0.18:8008/apps/b1f0fdaf-05be-xxxxx_1
12-16 14:59:43.411: D/SimpleHttpRequestImpl(3276): executing http request: GET http://10.0.0.18:8008/apps/b1f0fdaf-05be-xxxxx_1
12-16 14:59:43.418: D/NetworkTask(3276): onPostExecute result: -4
12-16 14:59:43.418: D/ApplicationSupportFilterListener(3276): Device does not support app b1f0fdaf-05be-xxxxx_1
12-16 14:59:43.434: D/SimpleHttpRequestImpl(3276): final URI: http://10.0.0.18:8008/apps/b1f0fdaf-05be-xxxxx_1
12-16 14:59:43.434: D/SimpleHttpRequestImpl(3276): status line: HTTP/1.1 404 Not Found
They key line is "Device does not support app [my application id]".