Android drag action drag_ended, errors - android

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);
}
});
}

Related

Unity. Stop app on android

Create empty project in unity. Compile it to APK. When try to start : "Unfortunately (app) has stopped"
Device Filter : "FAT (ARMv7 + x86)"
Here is a logcat:
--------- beginning of /dev/log/system
E/VoldConnector( 652): NDC Command {468 asec create smdl2tmp1 45 ext4 [scrubbed] 10005 1} took too long (8857ms)
E/VoldConnector( 652): NDC Command {470 asec finalize smdl2tmp1} took too long (669ms)
--------- beginning of /dev/log/main
E/rsC++ (23278): RS Message thread exiting.
E/Finsky (29234): [1] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
E/ (23278): appName=com.android.launcher3, acAppName=/system/bin/surfaceflinger
E/ (23278): 0
E/ ( 652): Could not open '/data/data/hotplug/cmd'
E/ ( 652): error : 2, No such file or directory
E/AuthorizationBluetoothService( 908): Proximity feature is not enabled.
E/AuthorizationBluetoothService( 908): Proximity feature is not enabled.
E/dalvikvm(30687): Could not find class 'android.telecom.TelecomManager', referenced from method com.google.android.gms.wearable.service.y.a
E/AuthorizationBluetoothService( 908): Proximity feature is not enabled.
E/dalvikvm(30621): Could not find class 'android.app.usage.UsageStatsManager', referenced from method com.google.android.gms.lockbox.LockboxService.a
E/MDM ( 809): [52] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
E/MDM ( 809): [66] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
E/MDM ( 809): [66] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
E/CellLocation( 809): create GsmCellLocation
E/CellLocation( 809): create GsmCellLocation
E/CellLocation( 809): create GsmCellLocation
E/cutils-trace(30720): Error opening trace file: No such file or directory (2)
E/memtrack(30720): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(30720): failed to load memtrack module: -2
E/VoldConnector( 652): NDC Command {482 asec create smdl2tmp1 45 ext4 [scrubbed] 10005 1} took too long (8436ms)
E/VoldConnector( 652): NDC Command {484 asec finalize smdl2tmp1} took too long (2238ms)
E/ ( 652): Could not open '/data/data/hotplug/cmd'
E/ ( 652): error : 2, No such file or directory
E/installd( 154): prepare_ext cache dir /mnt/sdcard/dalvik-cache/ fail: File exists
E/installd( 154): cannot chmod '/mnt/sdcard/dalvik-cache/mnt#asec#com.a.b-1#pkg.apk#classes.dex' : Operation not permitted
E/jdwp (30720): jdwp::setsockopt(SO_SNDTIMEO)
E/jdwp (30720): jdwp::setsockopt(SO_RCVTIMEO)
E/Finsky (29234): [1] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
E/AuthorizationBluetoothService( 908): Proximity feature is not enabled.
E/AuthorizationBluetoothService( 908): Proximity feature is not enabled.
E/dalvikvm(30869): Could not find class 'android.telecom.TelecomManager', referenced from method com.google.android.gms.wearable.service.y.a
E/MDM ( 809): [52] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
E/MDM ( 809): [52] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}

How to debug in Android Studio Logcat

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)

Android ZBar scanner library weird behaviour

I'm trying to implement in Android Studio an app which uses Zbar scanner library (https://github.com/dm77/barcodescanner).
I've imported it into my IDE and after a long series of bleeding attempts to reorganize the compatibility of the various versions of the libraries, I've chosen to modify the existing example which uses the Zbar library.
Here comes the strange behaviour: When it comes to get to a new Activity (not one already existing in the original example), the app crashes with no errors or exceptions.
I sat "No filters" for the logs of my IDE, and the logs that I can see when this app crashes are:
04-03 16:22:42.381 2513-2513/? E/Thermal-daemon: [ap] temp_new :33 temp_old :34
04-03 16:22:42.382 2513-2513/? E/Thermal-daemon: Report temperature: [ap] temp :33 report_threshold:1
04-03 16:22:43.644 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense
04-03 16:22:43.702 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense
04-03 16:22:43.728 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense
04-03 16:22:43.730 3085-3085/? E/QosMonitor: query:IPQos is not initial!!
04-03 16:22:43.757 3085-3103/? E/ReportTools: This is not beta user build
04-03 16:22:43.790 2484-2484/? E/lowmemorykiller: Error writing /proc/1360/oom_score_adj; errno=22
04-03 16:22:43.820 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense
04-03 16:22:43.828 3713-4443/? E/HwSystemManager: LeisureTrafficSetting:result is empty
04-03 16:22:43.865 3085-3519/? E/InputDispatcher: channel '8304ce5 me.dm7.barcodescanner.zbar.sample/me.dm7.barcodescanner.zbar.sample.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-03 16:22:43.867 3085-3095/? E/HsmCoreServiceImpl: onTransact in code is: 102
04-03 16:22:43.896 583-595/? E/TotemWeather: WidgetUtils getWidgetShowCityInfo return myLocation
04-03 16:22:43.899 4135-4207/? E/HwLauncher: SettingsEx , no such field.
04-03 16:22:43.963 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
04-03 16:22:44.012 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
04-03 16:22:44.146 2486-2486/? E/hwcomposer: setGpuBoost:228: Can't open /sys/class/devfreq/gpufreq/max_freq: Permission denied
04-03 16:22:44.494 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
You have to go in AndroidManifest.xml and set your SplashActivity.class as the launching activity like this:
<activity android:name=".SplashActivity"
android:theme="#style/FullScreenTheme"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

removing content_main.xml and "Hello world" does not appear. How do I fix?

This is a new project and I want to remove content_main layout as I am not too familiar with it, I want to work the old way with activity_main and fragment_main. To do this, I removed the below line from activity_main.xml.
<include layout="#layout/content_main" />
This causes "Hello world" not to appear when I run code on phone. I am not sure what causes this, and what I need to do for "Hello world" to appear?
Removing this line did not help
tools:showIn="#layout/activity_main"
activity_main.xml code
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="#style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="#+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="#style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="#layout/content_main" />
</android.support.design.widget.CoordinatorLayout>
fragment_main.xml code
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
tools:context=".MainActivityFragment"
tools:showIn="#layout/activity_main">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>
MainActivity
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
MainActivityFragment fragment = new MainActivityFragment();
getSupportFragmentManager().beginTransaction().add(fragment,"MAIN_FRAG").commit();
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
MainActivityFragment
public class MainActivityFragment extends Fragment {
ListView mListView;
NewsFeedAdapter mAdapter;
public MainActivityFragment() {
}
#Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container, false);
//something something happens here
return rootView;
}
}
The following log level errors are reported
10-19 22:40:15.910 611-651/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
10-19 22:40:17.100 688-688/? E/ViewRootImpl: sendUserActionEvent() mView == null
10-19 22:40:18.280 611-651/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
10-19 22:40:18.280 611-651/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
10-19 22:40:21.270 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:40:21.490 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:40:23.030 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:40:23.030 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:40:23.070 1250-1913/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 22:40:23.150 6694-6694/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:40:23.150 6694-6694/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:40:23.170 611-802/? E/Watchdog: !#Sync 69
10-19 22:40:23.380 1250-6718/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 22:40:23.440 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 22:40:23.850 6731-6731/bw.co.fusionmedia.paper E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 22:40:24.090 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:40:24.090 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:40:24.110 938-938/? E/NetworkScheduler.ATC: Trying to release unacquired lock: com.google.android.gms/.clearcut.service.VacuumService
10-19 22:40:53.170 611-802/? E/Watchdog: !#Sync 70
10-19 22:41:19.960 611-645/? E/lights: write_int failed to open -1
10-19 22:41:23.170 611-802/? E/Watchdog: !#Sync 71
10-19 22:41:49.870 688-688/? E/KeyguardHostView: KeyguardHostView()
10-19 22:41:49.920 688-688/? E/KeyguardHostView: ensureTransportPresentOrRemoved = 0
10-19 22:41:53.170 611-802/? E/Watchdog: !#Sync 72
10-19 22:42:23.170 611-802/? E/Watchdog: !#Sync 73
10-19 22:42:31.080 611-652/? E/SamsungWindowManager: mCoreNumLockHelper.acquire
10-19 22:42:31.080 611-696/? E/lights: write_int failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:31.110 611-645/? E/lights: write_led_info failed to open -1
10-19 22:42:32.580 611-696/? E/lights: write_int failed to open -1
10-19 22:42:34.540 611-611/? E/MotionRecognitionService: mReceiver.onReceive : ACTION_USER_PRESENT :: UNLOCK SCREEN
10-19 22:42:34.690 938-938/? E/ChimeraRcvrProxy: Can't find Chimera receiver impl class com.google.android.gms.auth.setup.devicesignals.LockScreenChimeraReceiver, dropping broadcast
10-19 22:42:53.170 611-802/? E/Watchdog: !#Sync 74
10-19 22:42:55.230 173-446/? D/: RIL_onMultiClientUnsolicitedResponse:
10-19 22:42:55.230 173-446/? E/: unsupported multiclient unsolicited response code 1009
10-19 22:42:57.810 8819-8819/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:42:57.810 8819-8819/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:43:00.920 611-651/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
10-19 22:43:04.050 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:43:04.070 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:43:05.550 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:43:05.550 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:43:05.780 1250-1913/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 22:43:05.830 8909-8909/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:43:05.830 8909-8909/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:43:06.300 1250-8910/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 22:43:06.390 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 22:43:06.530 8927-8927/bw.co.fusionmedia.paper E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 22:43:06.740 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:43:06.740 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:43:23.180 611-802/? E/Watchdog: !#Sync 75
10-19 22:43:27.690 9285-9285/? E/dalvikvm: Could not find class 'android.app.job.JobScheduler', referenced from method com.android.email.service.s.a
10-19 22:43:27.690 9285-9285/? E/dalvikvm: Could not find class 'android.app.job.JobScheduler', referenced from method com.android.email.service.s.b
10-19 22:43:28.200 9285-9318/? E/Gmail: Error finding the version of the Email provider.....
10-19 22:43:28.200 9285-9318/? E/Gmail: android.content.pm.PackageManager$NameNotFoundException: com.google.android.email
10-19 22:43:28.200 9285-9318/? E/Gmail: at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:108)
10-19 22:43:28.200 9285-9318/? E/Gmail: at com.google.android.gm.EmailMigrationService.a(SourceFile:1279)
10-19 22:43:28.200 9285-9318/? E/Gmail: at com.google.android.gm.EmailMigrationService.onHandleIntent(SourceFile:219)
10-19 22:43:28.200 9285-9318/? E/Gmail: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
10-19 22:43:28.200 9285-9318/? E/Gmail: at android.os.Handler.dispatchMessage(Handler.java:102)
10-19 22:43:28.200 9285-9318/? E/Gmail: at android.os.Looper.loop(Looper.java:146)
10-19 22:43:28.200 9285-9318/? E/Gmail: at android.os.HandlerThread.run(HandlerThread.java:61)
10-19 22:43:28.670 9285-9330/? E/File: fail readDirectory() errno=2
10-19 22:43:29.250 9285-9330/? E/File: fail readDirectory() errno=2
10-19 22:43:29.390 9285-9327/? E/dalvikvm: Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
10-19 22:43:29.400 9285-9327/? E/dalvikvm: Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
10-19 22:43:29.410 9285-9327/? E/dalvikvm: Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
10-19 22:43:29.580 9285-9330/? E/File: fail readDirectory() errno=2
10-19 22:43:29.600 9285-9327/? E/dalvikvm: Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
10-19 22:43:34.770 611-645/? E/lights: write_int failed to open -1
10-19 22:43:53.190 611-802/? E/Watchdog: !#Sync 76
10-19 22:44:04.800 688-688/? E/KeyguardHostView: KeyguardHostView()
10-19 22:44:04.850 688-688/? E/KeyguardHostView: ensureTransportPresentOrRemoved = 0
10-19 22:44:23.180 611-802/? E/Watchdog: !#Sync 77
10-19 22:44:53.180 611-802/? E/Watchdog: !#Sync 78
10-19 22:45:23.180 611-802/? E/Watchdog: !#Sync 79
10-19 22:45:53.180 611-802/? E/Watchdog: !#Sync 80
10-19 22:46:23.190 611-802/? E/Watchdog: !#Sync 81
10-19 22:46:53.190 611-802/? E/Watchdog: !#Sync 82
10-19 22:47:23.190 611-802/? E/Watchdog: !#Sync 83
10-19 22:47:53.190 611-802/? E/Watchdog: !#Sync 84
10-19 22:48:23.190 611-802/? E/Watchdog: !#Sync 85
10-19 22:48:49.920 611-652/? E/SamsungWindowManager: mCoreNumLockHelper.acquire
10-19 22:48:49.920 611-696/? E/lights: write_int failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:49.950 611-645/? E/lights: write_led_info failed to open -1
10-19 22:48:51.420 611-696/? E/lights: write_int failed to open -1
10-19 22:48:53.200 611-802/? E/Watchdog: !#Sync 86
10-19 22:48:53.700 611-611/? E/MotionRecognitionService: mReceiver.onReceive : ACTION_USER_PRESENT :: UNLOCK SCREEN
10-19 22:48:53.920 844-844/? E/ChimeraSrvcProxy: Can't find Chimera service impl class com.google.android.gms.clearcut.service.VacuumChimeraService
10-19 22:48:53.920 844-844/? E/ChimeraSrvcProxy: Proxy without impl dropping onStart()
10-19 22:48:53.980 938-938/? E/ChimeraRcvrProxy: Can't find Chimera receiver impl class com.google.android.gms.auth.setup.devicesignals.LockScreenChimeraReceiver, dropping broadcast
10-19 22:49:05.880 14024-14024/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:49:05.880 14024-14024/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:49:13.020 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:49:13.080 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:49:14.250 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:49:14.250 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:49:14.470 1250-1915/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 22:49:14.750 14114-14114/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:49:14.750 14114-14114/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:49:14.850 1250-14115/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 22:49:14.920 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 22:49:15.470 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:49:15.470 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:49:15.620 14137-14137/bw.co.fusionmedia.paper E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 22:49:23.190 611-802/? E/Watchdog: !#Sync 87
10-19 22:49:46.680 14562-14562/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:49:46.680 14562-14562/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:49:53.190 611-802/? E/Watchdog: !#Sync 88
10-19 22:49:54.370 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:49:54.390 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 22:49:55.350 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:49:55.350 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:49:55.450 1250-1915/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 22:49:55.870 1250-14647/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 22:49:55.900 14651-14651/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 22:49:55.900 14651-14651/? E/android.os.Debug: failed to load memtrack module: -2
10-19 22:49:55.920 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 22:49:56.160 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 22:49:56.160 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 22:49:56.710 14673-14673/bw.co.fusionmedia.paper E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 22:50:23.190 611-802/? E/Watchdog: !#Sync 89
10-19 22:50:23.230 173-446/? D/: RIL_onMultiClientUnsolicitedResponse:
10-19 22:50:23.230 173-446/? E/: unsupported multiclient unsolicited response code 1009
10-19 22:50:53.200 611-802/? E/Watchdog: !#Sync 90
10-19 22:50:54.090 611-645/? E/lights: write_int failed to open -1
10-19 22:51:23.190 611-802/? E/Watchdog: !#Sync 91
10-19 22:51:24.030 688-688/? E/KeyguardHostView: KeyguardHostView()
10-19 22:51:24.070 688-688/? E/KeyguardHostView: ensureTransportPresentOrRemoved = 0
10-19 22:51:53.190 611-802/? E/Watchdog: !#Sync 92
10-19 22:52:23.190 611-802/? E/Watchdog: !#Sync 93
10-19 22:52:53.200 611-802/? E/Watchdog: !#Sync 94
10-19 22:53:23.200 611-802/? E/Watchdog: !#Sync 95
10-19 22:53:53.210 611-802/? E/Watchdog: !#Sync 96
10-19 22:54:23.210 611-802/? E/Watchdog: !#Sync 97
10-19 22:54:53.210 611-802/? E/Watchdog: !#Sync 98
10-19 22:55:23.200 611-802/? E/Watchdog: !#Sync 99
10-19 22:55:53.200 611-802/? E/Watchdog: !#Sync 100
10-19 22:56:23.200 611-802/? E/Watchdog: !#Sync 101
10-19 22:56:53.210 611-802/? E/Watchdog: !#Sync 102
10-19 22:57:23.210 611-802/? E/Watchdog: !#Sync 103
10-19 22:57:47.260 688-688/? E/StatusBar.NetworkController_dual: updateTelephonySignalStrength: slot2 iconLevel = 4
10-19 22:57:47.260 688-688/? E/StatusBar.NetworkController_dual: updateTelephonySignalStrength: slot2 iconLevel = 4
10-19 22:57:53.200 611-802/? E/Watchdog: !#Sync 104
10-19 22:58:23.210 611-802/? E/Watchdog: !#Sync 105
10-19 22:58:53.210 611-802/? E/Watchdog: !#Sync 106
10-19 22:59:23.210 611-802/? E/Watchdog: !#Sync 107
10-19 22:59:53.210 611-802/? E/Watchdog: !#Sync 108
10-19 23:00:23.220 611-802/? E/Watchdog: !#Sync 109
10-19 23:00:53.220 611-802/? E/Watchdog: !#Sync 110
10-19 23:01:23.210 611-802/? E/Watchdog: !#Sync 111
10-19 23:01:53.210 611-802/? E/Watchdog: !#Sync 112
10-19 23:02:23.210 611-802/? E/Watchdog: !#Sync 113
10-19 23:02:53.210 611-802/? E/Watchdog: !#Sync 114
10-19 23:03:23.210 611-802/? E/Watchdog: !#Sync 115
10-19 23:03:53.210 611-802/? E/Watchdog: !#Sync 116
10-19 23:04:23.220 611-802/? E/Watchdog: !#Sync 117
10-19 23:04:53.220 611-802/? E/Watchdog: !#Sync 118
10-19 23:05:23.220 611-802/? E/Watchdog: !#Sync 119
10-19 23:05:28.940 611-652/? E/SamsungWindowManager: mCoreNumLockHelper.acquire
10-19 23:05:28.940 611-696/? E/lights: write_int failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:28.970 611-645/? E/lights: write_led_info failed to open -1
10-19 23:05:30.440 611-696/? E/lights: write_int failed to open -1
10-19 23:05:32.740 611-611/? E/MotionRecognitionService: mReceiver.onReceive : ACTION_USER_PRESENT :: UNLOCK SCREEN
10-19 23:05:32.870 938-938/? E/ChimeraRcvrProxy: Can't find Chimera receiver impl class com.google.android.gms.auth.setup.devicesignals.LockScreenChimeraReceiver, dropping broadcast
10-19 23:05:32.870 938-938/? E/NetworkScheduler.ATC: Trying to release unacquired lock: com.google.android.gms/.clearcut.service.VacuumService
10-19 23:05:43.490 27020-27020/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 23:05:43.490 27020-27020/? E/android.os.Debug: failed to load memtrack module: -2
10-19 23:05:49.950 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 23:05:50.100 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 23:05:51.720 27107-27107/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 23:05:51.720 27107-27107/? E/android.os.Debug: failed to load memtrack module: -2
10-19 23:05:52.470 27117-27123/? E/jdwp: Failed sending reply to debugger: Broken pipe
10-19 23:05:52.740 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 23:05:52.740 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 23:05:52.800 1250-1446/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 23:05:52.960 27117-27117/? E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 23:05:53.090 1250-27130/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 23:05:53.100 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 23:05:53.220 611-802/? E/Watchdog: !#Sync 120
10-19 23:05:53.370 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 23:05:53.370 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 23:05:53.410 1450-1450/? D/: getInstance
10-19 23:05:53.410 1450-1450/? D/: actionWC : com.sec.android.intent.action.HOME_PAUSE rebootFlag = 0
10-19 23:05:53.410 1450-1450/? I/: cp query pt : 0
10-19 23:06:23.220 611-802/? E/Watchdog: !#Sync 121
10-19 23:06:33.070 611-645/? E/lights: write_int failed to open -1
10-19 23:06:46.420 27863-27863/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 23:06:46.420 27863-27863/? E/android.os.Debug: failed to load memtrack module: -2
10-19 23:06:49.320 611-651/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
10-19 23:06:51.920 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 23:06:51.990 1569-1569/? E/SamsungIME: mOCRHelper is null
10-19 23:06:53.090 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 23:06:53.090 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 23:06:53.180 1250-1446/? E/Drive.UninstallOperation: Package still installed bw.co.fusionmedia.paper
10-19 23:06:53.220 611-802/? E/Watchdog: !#Sync 122
10-19 23:06:53.450 1250-27942/? E/IntentOperationSvc: Failed to instantiate Chimera operation impl, dropping operation
10-19 23:06:53.480 3521-3521/? E/Finsky: [1] com.google.android.finsky.wear.bo.a(836): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
10-19 23:06:53.870 938-938/? E/NetworkScheduler.SR: Invalid parameter app
10-19 23:06:53.870 938-938/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
10-19 23:06:54.170 27958-27958/? E/memtrack: Couldn't load memtrack module (No such file or directory)
10-19 23:06:54.170 27958-27958/? E/android.os.Debug: failed to load memtrack module: -2
10-19 23:06:54.670 27971-27971/? E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-19 23:06:56.100 611-652/? E/SamsungWindowManager: mCoreNumLockHelper.acquire
10-19 23:06:56.110 611-696/? E/lights: write_int failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.140 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.150 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.150 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:56.150 611-645/? E/lights: write_led_info failed to open -1
10-19 23:06:57.600 611-696/? E/lights: write_int failed to open -1
10-19 23:07:23.220 611-802/? E/Watchdog: !#Sync 123
10-19 23:07:53.230 611-802/? E/Watchdog: !#Sync 124
10-19 23:07:56.580 611-645/? E/lights: write_int failed to open -1
I had to assign id for the activity_main as below
android:id="#+id/container"
and add the below code in oncreate() of MainActivity
MainActivityFragment fragment = new MainActivityFragment();
getSupportFragmentManager().beginTransaction().replace(R.id.container,fragment).commit();

Problems with running Android studio emulator on Mac OS X

I successfully installed Android Studio on my Macbook Pro 8 Go memory under OS X El Capitan.I created a simple Hello World app and
then I tried to run the app, I was asked to create an AVD and chose Nexus 5 x config with x86. The device was created after downloading the image file and I ran the App. The Gradle process ran well and the app launched the emulator
I got the following message in the app window :
Error while waiting for device: Timed out after 300seconds waiting for emulator to come online.
The emulator showed only the word "Android".
The emulator has been running for a long time (more than 30 mn)
Below you'll find a very small extract of the emulator error window.
08-07 16:15:31.053 1203-1203/? E/perfprofd: unable to open
configuration file
/data/data/com.google.android.gms/files/perfprofd.conf 08-07
16:15:31.581 1198-1198/? E/cutils: Failed to read
/data/.layout_version: No such file or directory 08-07 16:15:34.368
1187-1187/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:15:34.967 1187-1187/? E/SurfaceFlinger: hwcomposer module not found
08-07 16:15:35.401 1187-1187/? E/cutils-trace: Error opening trace
file: Permission denied (13)
--------- beginning of system
08-07 16:15:44.198 1197-1197/? E/cutils-trace: Error opening trace
file: Permission denied (13) 08-07 16:15:44.198 1197-1197/?
E/CameraService: setUpVendorTags: Vendor tag operations not fully
defined. Ignoring definitions. 08-07 16:15:46.354 1187-1219/?
E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build
property 08-07 16:15:46.428 1228-1304/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:15:46.673 1228-1304/? E/cutils-trace: Error opening trace file:
Permission denied (13)
[ 08-07 16:15:46.684 1187: 1221 D/ ]
HostConnection::get() New Host Connection established 0xb70d02c0, tid 1221
08-07 16:15:50.397 1197-1324/? E/AudioFlinger: no wake lock to update!
08-07 16:15:50.400 1197-1197/? E/audio_hw_generic: Error opening input
stream format 1, channel_mask 0010, sample_rate 16000 08-07
16:15:50.514 1197-1197/? E/AudioFlinger: int
android::load_audio_interface(const char*, audio_hw_device_t**)
couldn't load audio hw module audio.r_submix (No such file or
directory) 08-07 16:15:50.566 1197-1197/? E/SoundTriggerHwService:
couldn't load sound trigger module sound_trigger.primary (No such file
or directory) 08-07 16:15:50.607 1197-1197/? E/RadioService: couldn't
load radio module radio.primary (No such file or directory) 08-07
16:16:34.734 1193-1193/? E/Netd: exec() res=0, status=768 for
/system/bin/iptables -w -t nat -N oem_nat_pre 08-07 16:16:35.220
1193-1193/? E/Netd: exec() res=0, status=768 for /system/bin/iptables
-w -t nat -A PREROUTING -j oem_nat_pre 08-07 16:16:35.459 1200-1200/? E/memtrack: Couldn't load memtrack module (No such file or directory)
08-07 16:16:35.491 1200-1200/? E/android.os.Debug: failed to load
memtrack module: -2 08-07 16:16:37.310 1193-1193/? E/Netd: exec()
res=0, status=768 for /system/bin/iptables -w -t nat -N
natctrl_nat_POSTROUTING 08-07 16:16:37.701 1193-1193/? E/Netd: exec()
res=0, status=768 for /system/bin/iptables -w -t nat -A POSTROUTING -j
natctrl_nat_POSTROUTING 08-07 16:16:48.729 1200-1200/? E/Minikin:
addFont failed to create font /system/fonts/NanumGothic.ttf 08-07
16:16:48.730 1200-1200/? E/Minikin: addFont failed to create font
/system/fonts/DroidSansFallback.ttf 08-07 16:16:48.730 1200-1200/?
E/Minikin: addFont failed to create font /system/fonts/MTLmr3m.ttf
08-07 16:17:06.251 1193-1193/? E/Netd: cannot find interface dummy0
08-07 16:17:08.653 1200-1200/? E/EmojiFactory_jni: Failed to load
libemoji.so: dlopen failed: library "libemoji.so" not found 08-07
16:18:44.164 1200-1200/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:18:44.919 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-en-us.pat.txt
java.io.FileNotFoundException:
/system/usr/hyphen-data/hyph-en-us.pat.txt: open failed: ENOENT (No
such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or
directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 08-07
16:18:44.969 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-eu.pat.txt
java.io.FileNotFoundException:
/system/usr/hyphen-data/hyph-eu.pat.txt: open failed: ENOENT (No such
file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or
directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 08-07
16:18:45.058 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-hu.pat.txt
As cricket_007 suggested in the comment, it is generally suggested to use Genymotion or something similar since they're so much better.
Apart from that, if you're keen on running the emulator that comes with AS, you might also want to get Intel HAXM (Hardware Accelerated Execution Manager) driver from Android Package Manager. It provides hardware acceleration, but the benefits vary device to device.

Categories

Resources