I am new to Android Studio and Android programming and am attempting to follow a how to lesson. I am having a lot of trouble following Android Studio Logcat because it is not as straightforward to me as any IDEs have used. Could someone please decode what things mean in my errors? I need to learn how to use Logcat since the explanations I see online are too simplified and do not cover much.
What exactly is:"2359-13990/"?
How do I find the place in the code that caused the errors?
What exactly does my error output from Logcat mean?
Due to the space limit, I have changed my post and now have only errors instead of verbose. Here are my errors in Logcat:
06-21 21:11:46.347 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3105, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:46.349 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:47.142 29992-29992/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.185 29992-29992/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.185 29992-29992/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.398 30006-30006/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.440 30006-30006/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.440 30006-30006/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.770 30029-30029/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.811 30029-30029/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.812 30029-30029/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.172 30041-30041/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.227 30046-30046/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.229 30041-30041/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.229 30041-30041/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.279 30046-30046/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.279 30046-30046/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.331 30063-30070/? E/art: Failed sending reply to debugger: Broken pipe
06-21 21:11:52.997 30063-30063/com.example.android.sunshine E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.sunshine, PID: 30063
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:620)
at android.os.AsyncTask.execute(AsyncTask.java:567)
at com.example.android.sunshine.MainActivity.loadWeatherData(MainActivity.java:74)
at com.example.android.sunshine.MainActivity.onCreate(MainActivity.java:63)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
06-21 21:11:53.668 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3113, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3121, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:58.690 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:03.709 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3129, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:03.711 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3137, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3145, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3153, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:18.791 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3161, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
You look for your package name (if you have not selected your project in the dropdown for logging). In you case I suppose its "com.example.android.sunshine".
Just after your package name you will find the exception and more details.
ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void'
Below that you can find stacktrace. In that stacktrace again find your package name and you will find exact line where error occurred.
com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)
Related
My Android app written in Kotlin is ok to run, but Android Studio keeps showing a lot of errors. Can anyone help me solve it?
06-12 20:30:40.244 1500-11361/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:40.244 1500-11361/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:40.244 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:40.246 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:40.246 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:45.283 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:45.284 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:45.284 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:45.285 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:45.285 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:50.312 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:50.312 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:50.312 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:50.314 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:50.314 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:55.347 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:55.347 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:55.348 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:55.349 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:55.349 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:31:00.009 1664-1684/system_process E/memtrack: Couldn't load memtrack module
I am creating an app that access google map api to give location based services. I have nothing to do with the microphone still I am getting the following error in the logcat. As suggested by some websites I have already disabled my microphone and google app.I am a new user to android please,help.
ServiceManager: Permission failure: android.permission.RECORD_AUDIO from uid=10030 pid=-1
[ 03-23 05:42:02.309 1574: 6149 E/ ]
Request requires android.permission.RECORD_AUDIO
03-23 05:42:02.309 1574-6149/? E/AudioFlinger: openRecord() permission denied: recording not allowed
03-23 05:42:02.309 6661-7408/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -1
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c#844b56e
03-23 05:42:02.316 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
03-23 05:42:02.320 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c#844b56e
03-23 05:42:02.322 6661-6733/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Detection finished
03-23 05:42:02.322 6661-6733/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
03-23 05:42:02.323 6661-6732/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Stopping hotword detection.
03-23 05:42:02.323 6661-6733/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream
at com.google.android.apps.gsa.staticplugins.recognizer.j.a.a(SourceFile:28)
at com.google.android.apps.gsa.staticplugins.recognizer.j.b.run(SourceFile:15)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6)
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.f(SourceFile:103)
at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2)
at java.io.InputStream.read(InputStream.java:101)
at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:18)
at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6)
03-23 05:42:02.324 6661-6733/com.google.android.googlequicksearchbox:search I/AudioController: internalShutdown
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetector: Keeping mic open: false
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
03-23 05:42:02.337 6661-6735/com.google.android.googlequicksearchbox:search I/DeviceStateChecker: DeviceStateChecker cancelled
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
03-23 05:42:07.345 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]]
03-23 05:42:07.345 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
03-23 05:42:07.346 6661-6661/com.google.android.googlequicksearchbox:search I/AudioController: Using mInputStreamFactoryBuilder
03-23 05:42:07.349 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
03-23 05:42:07.353 6661-6733/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Starting detection.
03-23 05:42:07.355 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c#be90ea0
03-23 05:42:07.358 1574-7906/? I/AudioFlinger: AudioFlinger's thread 0xb0797180 tid=7906 ready to run
It's so annoying when logcat shows errors which are not related to my app at all. I turned off my app in the emulator and still this error will print after every 15-20 seconds
06-08 18:22:50.685 2350-14664/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream
at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)
at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)
at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)
at java.io.InputStream.read(InputStream.java:101)
at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)
at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
It makes debugging a bit tedious and I really want to do something about it.
EDIT-Even after using the filter I get random googlequicksearchbox errors
06-08 18:20:34.728 2350-14241/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -1
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-08 18:20:39.760 1306-3296/? E/audio_hw_generic: Error opening input stream format 1, channel_mask 0010, sample_rate 16000
06-08 18:20:39.762 1306-1691/? E/AudioFlinger: openRecord() permission denied: recording not allowed
PS: I am not using any voice related stuff in my app.
You Go To File menu on Android studio they have a option invalidate cache and restart and press this option .
when You invalidate cache and restart then . Approx Your Problem solved
You could use pidcat (https://github.com/JakeWharton/pidcat) - Pidcat is a colored logcat script which only shows log entries for a specific application package.
04-03 02:12:01.880 16450-16450/? E/SettingsReceiverActivity: PREF_DONT_ASK_AGAIN : true
04-03 02:12:13.832 17268-17268/? E/memtrack: Couldn't load memtrack module (No such file or directory)
04-03 02:12:13.832 17268-17268/? E/android.os.Debug: failed to load memtrack module: -2
04-03 02:12:14.232 591-708/? E/PackageManager: parse pkg : /data/app/vmdl388123438.tmp
04-03 02:12:14.232 591-17303/? E/PackageManager: dexopt start
04-03 02:12:15.864 591-17303/? E/PackageManager: dexopt end
04-03 02:12:19.097 4478-4478/? E/SamsungIME: mOCRHelper is null
04-03 02:12:19.107 4478-4478/? E/SamsungIME: mOCRHelper is null
04-03 02:12:20.819 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:20.949 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:21.049 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:21.339 591-601/? A/ActivityManager: Service ServiceRecord{431b3d48 u0 com.google.android.apps.maps/com.google.android.apps.gmm.prefetch.PrefetcherService} in process ProcessRecord{43123078 16783:com.google.android.apps.maps/u0a60} not same as in map: null
04-03 02:12:21.659 17369-17369/? E/memtrack: Couldn't load memtrack module (No such file or directory)
04-03 02:12:21.659 17369-17369/? E/android.os.Debug: failed to load memtrack module: -2
04-03 02:12:22.620 4478-4478/? E/SamsungIME: isHWKeyboardConnected() = false --> false
04-03 02:12:22.811 591-591/? E/Tethering: No numeric data
04-03 02:12:23.341 17435-17435/? E/dalvikvm: Could not find class 'android.app.Notification$Action$Builder', referenced from method b.a
04-03 02:12:23.411 17435-17435/? E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method b.a
04-03 02:12:23.521 17435-17435/? E/dalvikvm: Could not find class 'android.app.Notification$Action$Builder', referenced from method b.a
04-03 02:12:23.571 17435-17435/? E/dalvikvm: Could not find class 'bg', referenced from method b.a
04-03 02:12:23.571 17435-17435/? E/dalvikvm: Could not find class 'bi', referenced from method b.a
04-03 02:12:23.601 17435-17435/? E/dalvikvm: Could not find class 'android.app.RemoteInput[]', referenced from method b.a
04-03 02:12:25.283 976-976/? E/NetworkScheduler.SchedulerReceiver: Invalid parameter app
04-03 02:12:25.283 976-976/? E/NetworkScheduler.SchedulerReceiver: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
04-03 02:12:28.806 17563-17621/? E/fb4a(:dash):AppStateReporter: Error acquiring lock: /data/data/com.facebook.katana/app_state_logs/55aad98f-9bd2-46e5-90eb-55f53313613f.txt
java.io.IOException: fcntl failed: EAGAIN (Try again)
at java.nio.FileChannelImpl.basicLock(FileChannelImpl.java:123)
at java.nio.FileChannelImpl.tryLock(FileChannelImpl.java:177)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:587)
at com.facebook.analytics.reporters.AppStateReporter.a(AppStateReporter.java:141)
at com.facebook.analytics.reporters.AppStateReporter.c(AppStateReporter.java:94)
at com.facebook.analytics.reporters.AppStateReporter.a(AppStateReporter.java:55)
at com.facebook.common.noncriticalinit.NonCriticalInitializer.a(NonCriticalInitializer.java:103)
at com.facebook.common.noncriticalinit.NonCriticalInitializer$2.run(NonCriticalInitializer.java:116)
at com.facebook.common.appchoreographer.DefaultAppChoreographer$5.run(DefaultAppChoreographer.java:384)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at com.facebook.common.executors.WrappingExecutorService$1.run(WrappingExecutorService.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.facebook.common.executors.DefaultConstrainedListeningExecutorService$Worker.run(DefaultConstrainedListeningExecutorService.java:327)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.facebook.common.executors.NamedThreadFactory$1.run(NamedThreadFactory.java:42)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: fcntl failed: EAGAIN (Try again)
at libcore.io.Posix.fcntlFlock(Native Method)
at libcore.io.ForwardingOs.fcntlFlock(ForwardingOs.java:54)
at java.nio.FileChannelImpl.basicLock(FileChannelImpl.java:121)
at java.nio.FileChannelImpl.tryLock(FileChannelImpl.java:177)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:587)
at com.facebook.analytics.reporters.AppStateReporter.a(AppStateReporter.java:141)
at com.facebook.analytics.reporters.AppStateReporter.c(AppStateReporter.java:94)
at com.facebook.analytics.reporters.AppStateReporter.a(AppStateReporter.java:55)
at com.facebook.common.noncriticalinit.NonCriticalInitializer.a(NonCriticalInitializer.java:103)
at com.facebook.common.noncriticalinit.NonCriticalInitializer$2.run(NonCriticalInitializer.java:116)
at com.facebook.common.appchoreographer.DefaultAppChoreographer$5.run(DefaultAppChoreographer.java:384)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at com.facebook.common.executors.WrappingExecutorService$1.run(WrappingExecutorService.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.facebook.common.executors.DefaultConstrainedListeningExecutorService$Worker.run(DefaultConstrainedListeningExecutorService.java:327)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.facebook.common.executors.NamedThreadFactory$1.run(NamedThreadFactory.java:42)
at java.lang.Thread.run(Thread.java:841)
04-03 02:12:29.057 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:29.067 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:31.329 591-856/? E/Watchdog: !#Sync 3567
04-03 02:12:34.502 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:34.522 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:34.532 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:34.532 157-397/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
04-03 02:12:35.383 976-976/? E/NetworkScheduler.SchedulerReceiver: Invalid parameter app
04-03 02:12:35.383 976-976/? E/NetworkScheduler.SchedulerReceiver: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
04-03 02:12:46.694 17421-17421/com.example.caneraydin.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.caneraydin.myapplication, PID: 17421
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
at java.util.HashMap$KeyIterator.next(HashMap.java:833)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1191)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1193)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1193)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1193)
at android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:5250)
at android.view.ViewRootImpl.access$900(ViewRootImpl.java:115)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3462)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
04-03 02:12:47.164 591-17912/? E/android.os.Debug: !#Dumpstate > sdumpstate -k -t -z -d -m 17421 -o /data/log/dumpstate_app_error
04-03 02:12:47.365 4478-4478/? E/SamsungIME: isHWKeyboardConnected() = false --> false
04-03 02:12:48.225 591-591/? E/Tethering: No numeric data
04-03 02:12:54.391 591-731/? E/ConnectivityService: net.tcp.usercfg.default not found in system default properties
04-03 02:12:54.391 591-731/? E/ConnectivityService: Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_use_userconfig: open failed: ENOENT (No such file or directory)
04-03 02:12:54.391 591-731/? E/ConnectivityService: net.tcp.delack.default not found in system default properties
04-03 02:12:54.391 591-731/? E/ConnectivityService: Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_delack_seg: open failed: ENOENT (No such file or directory)
04-03 02:12:54.472 591-731/? E/ConnectivityService: Exception trying to remove a route: java.lang.IllegalStateException: command '2337 interface route remove wlan0 default 192.168.0.0 24 0.0.0.0' failed with '400 2337 Failed to remove route from default table (No such process)'
04-03 02:12:54.492 591-731/? E/ConnectivityService: Exception trying to remove a route: java.lang.IllegalStateException: command '2338 interface route remove wlan0 default 192.168.0.1 32 0.0.0.0' failed with '400 2338 Failed to remove route from default table (No such process)'
04-03 02:12:54.502 591-731/? E/ConnectivityService: Exception trying to remove a route: java.lang.IllegalStateException: command '2339 interface route remove wlan0 default 0.0.0.0 0 192.168.0.1' failed with '400 2339 Failed to remove route from default table (No such process)'
04-03 02:12:55.152 591-700/? E/ActivityThread: Failed to find provider info for telephony
04-03 02:12:55.262 976-17261/? E/GCM: Wifi connection closed with errorCode 20
04-03 02:12:58.636 18032-18032/? E/dalvikvm: Could not find class 'android.speech.tts.Voice', referenced from method com.google.android.tts.service.GoogleTTSService.onGetVoices
04-03 02:13:01.328 591-856/? E/Watchdog: !#Sync 3568
04-03 02:13:22.219 591-699/? E/ViewRootImpl: sendUserActionEvent() mView == null
04-03 02:13:22.259 591-717/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
04-03 02:13:31.327 591-856/? E/Watchdog: !#Sync 3569
04-03 02:14:01.337 591-856/? E/Watchdog: !#Sync 3570
04-03 02:14:31.336 591-856/? E/Watchdog: !#Sync 3571
Those are errors
these are my codes
https://stackoverflow.com/questions/36373171/android-drag-drop-imaview-onto-other-imageview
I dropped image on to empty place but it gave errors. when i drop on to another image,again errors.
What is wrong? I cant solve for days.
Refering to this, you may try that:
case DragEvent.ACTION_DROP:
final View droppedView = (View) event.getLocalState();
ViewGroup owner = (ViewGroup) droppedView.getParent();
owner.post(new Runnable(){
#Override
public void run() {
owner.removeView(droppedView);
}
});
}
It was working a while ago, but then an error occurred. I only added the minSDK and TargetSDK in the Android manifest.
Here's the logcat:
01-19 23:01:17.054: ERROR/System(51): Failure starting core service
java.lang.SecurityException
at android.os.BinderProxy.transact(Native Method)
at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
at android.os.ServiceManager.addService(ServiceManager.java:72)
at com.android.server.ServerThread.run(SystemServer.java:162)
01-19 23:01:17.094: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service
01-19 23:01:19.553: ERROR/LockPatternKeyguardView(51): Failed to bind to GLS while checking for account
01-19 23:01:24.994: ERROR/ActivityThread(107): Failed to find provider info for com.google.settings
01-19 23:01:25.034: ERROR/ActivityThread(107): Failed to find provider info for com.google.settings
01-19 23:01:30.764: ERROR/ApplicationContext(51): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
01-19 23:01:32.614: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
01-19 23:01:37.034: ERROR/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound
01-19 23:01:37.054: ERROR/MediaPlayer(51): Unable to to create media player
01-19 23:01:28.556: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
01-19 23:01:30.506: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
01-19 23:01:30.627: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin