i have created a app which have video as a splash screen , my app work fine on android 6.0 and above but when I run my app on android 5.0 it show can't play this video after showing this my app goes to mainactivity and it works fine .
can you help me showing the video in android 5.0 . my min sdk version is android 4.4 api 19 but my app dont work on android 4.4 it stops , can you help me to make my app work fine on android 4.4 and 5.0
debug log if you need
for android 4.4
**
Log messages will follow once session has started...
I/dalvikvm( 3346): Could not find method android.view.Window$Callback.onPointerCaptureChanged, referenced from method android.support.v7.view.WindowCallbackWrapper.onPointerCaptureChanged
W/dalvikvm( 3346): VFY: unable to resolve interface method 21560: Landroid/view/Window$Callback;.onPointerCaptureChanged (Z)V
D/dalvikvm( 3346): VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm( 3346): Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
W/dalvikvm( 3346): VFY: unable to resolve interface method 21562: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
D/dalvikvm( 3346): VFY: replacing opcode 0x72 at 0x0002
W/dalvikvm( 3346): VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
I/dalvikvm( 3346): Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
W/dalvikvm( 3346): VFY: unable to resolve interface method 21564: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
D/dalvikvm( 3346): VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm( 3346): Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
W/dalvikvm( 3346): VFY: unable to resolve interface method 21568: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm( 3346): VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm( 3346): Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
W/dalvikvm( 3346): VFY: unable to resolve virtual method 1020: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm( 3346): Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
W/dalvikvm( 3346): VFY: unable to resolve virtual method 1042: Landroid/content/res/TypedArray;.getType (I)I
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0008
D/ ( 3346): HostConnection::get() New Host Connection established 0xb8ee3aa0, tid 3346
D/EGL_emulation( 3346): eglCreateContext: 0xb8ee5f20: maj 2 min 0 rcv 2
D/EGL_emulation( 3346): eglMakeCurrent: 0xb8ee5f20: ver 2 0
E/EGL_emulation( 3346): tid 3346: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer( 3346): Backbuffer cannot be preserved
D/OpenGLRenderer( 3346): Enabling debug mode 0
D/MediaPlayer( 3346): getMetadata
E/MediaPlayer( 3346): error (1, -2147483648)
E/MediaPlayer( 3346): Error (1,-2147483648)
D/VideoView( 3346): Error: 1,-2147483648
I/dalvikvm( 3346): Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
W/dalvikvm( 3346): VFY: unable to resolve virtual method 983: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm( 3346): Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
W/dalvikvm( 3346): VFY: unable to resolve virtual method 985: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0002
E/dalvikvm( 3346): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
W/dalvikvm( 3346): VFY: unable to resolve instanceof 263 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
D/dalvikvm( 3346): VFY: replacing opcode 0x20 at 0x000c
D/dalvikvm( 3346): GC_FOR_ALLOC freed 169K, 7% free 3253K/3484K, paused 3ms, total 3ms
D/dalvikvm( 3346): GC_FOR_ALLOC freed 1K, 7% free 3473K/3708K, paused 2ms, total 2ms
I/dalvikvm-heap( 3346): Grow heap (frag case) to 5.868MB for 2536932-byte allocation
D/dalvikvm( 3346): GC_CONCURRENT freed <1K, 4% free 5950K/6188K, paused 1ms+1ms, total 3ms
D/dalvikvm( 3346): WAIT_FOR_CONCURRENT_GC blocked 2ms
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeMaxTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMaxTextSize
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22589: Landroid/widget/TextView;.getAutoSizeMaxTextSize ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeMinTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMinTextSize
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22590: Landroid/widget/TextView;.getAutoSizeMinTextSize ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeStepGranularity
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22591: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeTextAvailableSizes, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextAvailableSizes
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22592: Landroid/widget/TextView;.getAutoSizeTextAvailableSizes ()[I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeTextType, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextType
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22593: Landroid/widget/TextView;.getAutoSizeTextType ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0005
I/dalvikvm( 3346): Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithConfiguration, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithConfiguration
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22648: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithPresetSizes, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithPresetSizes
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22649: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.setAutoSizeTextTypeWithDefaults, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeWithDefaults
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22650: Landroid/widget/TextView;.setAutoSizeTextTypeWithDefaults (I)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextHelper.loadFromAttributes
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22591: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0161
I/dalvikvm( 3346): Could not find method android.text.StaticLayout$Builder.obtain, referenced from method android.support.v7.widget.AppCompatTextViewAutoSizeHelper.createStaticLayoutForMeasuring
W/dalvikvm( 3346): VFY: unable to resolve static method 20680: Landroid/text/StaticLayout$Builder;.obtain (Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;
D/dalvikvm( 3346): VFY: replacing opcode 0x71 at 0x0014
I/dalvikvm( 3346): Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
W/dalvikvm( 3346): VFY: unable to resolve virtual method 756: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
W/dalvikvm( 3346): VFY: unable to resolve virtual method 747: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
W/dalvikvm( 3346): VFY: unable to resolve virtual method 754: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
W/dalvikvm( 3346): VFY: unable to resolve virtual method 755: Landroid/content/Context;.getColor (I)I
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
W/dalvikvm( 3346): VFY: unable to resolve virtual method 756: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
W/dalvikvm( 3346): VFY: unable to resolve virtual method 758: Landroid/content/Context;.getDataDir ()Ljava/io/File;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
W/dalvikvm( 3346): VFY: unable to resolve virtual method 761: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
W/dalvikvm( 3346): VFY: unable to resolve virtual method 769: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
W/dalvikvm( 3346): VFY: unable to resolve virtual method 782: Landroid/content/Context;.isDeviceProtectedStorage ()Z
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
W/dalvikvm( 3346): VFY: unable to resolve virtual method 798: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
D/dalvikvm( 3346): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3346): Could not find method android.widget.Button.getAutoSizeMaxTextSize, referenced from method android.support.v7.widget.AppCompatButton.getAutoSizeMaxTextSize
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22028: Landroid/widget/Button;.getAutoSizeMaxTextSize ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.getAutoSizeMinTextSize, referenced from method android.support.v7.widget.AppCompatButton.getAutoSizeMinTextSize
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22029: Landroid/widget/Button;.getAutoSizeMinTextSize ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatButton.getAutoSizeStepGranularity
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22030: Landroid/widget/Button;.getAutoSizeStepGranularity ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.getAutoSizeTextAvailableSizes, referenced from method android.support.v7.widget.AppCompatButton.getAutoSizeTextAvailableSizes
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22031: Landroid/widget/Button;.getAutoSizeTextAvailableSizes ()[I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.getAutoSizeTextType, referenced from method android.support.v7.widget.AppCompatButton.getAutoSizeTextType
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22032: Landroid/widget/Button;.getAutoSizeTextType ()I
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0005
I/dalvikvm( 3346): Could not find method android.widget.Button.setAutoSizeTextTypeUniformWithConfiguration, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeUniformWithConfiguration
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22041: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.setAutoSizeTextTypeUniformWithPresetSizes, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeUniformWithPresetSizes
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22042: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm( 3346): Could not find method android.widget.Button.setAutoSizeTextTypeWithDefaults, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeWithDefaults
W/dalvikvm( 3346): VFY: unable to resolve virtual method 22043: Landroid/widget/Button;.setAutoSizeTextTypeWithDefaults (I)V
D/dalvikvm( 3346): VFY: replacing opcode 0x6f at 0x0004
D/EGL_emulation( 3346): eglMakeCurrent: 0xb8ee5f20: ver 2 0
E/EGL_emulation( 3346): tid 3346: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer( 3346): Backbuffer cannot be preserved
D/AndroidRuntime( 3346): Shutting down VM
W/dalvikvm( 3346): threadid=1: thread exiting with uncaught exception (group=0x94ceeb20)
E/AndroidRuntime( 3346): FATAL EXCEPTION: main
E/AndroidRuntime( 3346): Process: com.hoogle.quoteslibrary, PID: 3346
E/AndroidRuntime( 3346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hoogle.quoteslibrary/com.hoogle.quoteslibrary.MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
E/AndroidRuntime( 3346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime( 3346): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 3346): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 3346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 3346): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3346): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 3346): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 3346): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3346): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3346): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 3346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 3346): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3346): Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
E/AndroidRuntime( 3346): at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:469)
E/AndroidRuntime( 3346): at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:323)
E/AndroidRuntime( 3346): at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
E/AndroidRuntime( 3346): at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
E/AndroidRuntime( 3346): at com.hoogle.quoteslibrary.MainActivity.onCreate(MainActivity.java:32)
E/AndroidRuntime( 3346): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 3346): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 3346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime( 3346): ... 11 more**
for android 5.0 ,5.1
Log messages will follow once session has started...
I/art ( 3102): Background sticky concurrent mark sweep GC freed 2513(202KB) AllocSpace objects, 0(0B) LOS objects, 23% free, 849KB/1117KB, paused 709us total 126.615ms
D/OpenGLRenderer( 3102): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D/ ( 3102): HostConnection::get() New Host Connection established 0xb3ec7a10, tid 3102
D/Atlas ( 3102): Validating map...
D/ ( 3102): HostConnection::get() New Host Connection established 0xae0822e0, tid 3119
I/OpenGLRenderer( 3102): Initialized EGL, version 1.4
W/OpenGLRenderer( 3102): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/EGL_emulation( 3102): eglCreateContext: 0xae034a60: maj 2 min 0 rcv 2
D/EGL_emulation( 3102): eglMakeCurrent: 0xae034a60: ver 2 0
D/OpenGLRenderer( 3102): Enabling debug mode 0
D/EGL_emulation( 3102): eglMakeCurrent: 0xae034a60: ver 2 0
D/MediaPlayer( 3102): getMetadata
W/art ( 3102): Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/art ( 3102): Background partial concurrent mark sweep GC freed 461(38KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 1918KB/3MB, paused 5.934ms total 20.788ms
W/ResourcesManager( 3102): Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 3102): Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
I/WebViewFactory( 3102): Loading com.android.webview version 39 (4212452-x86) (code 300007)
I/LibraryLoader( 3102): Time to load native libraries: 1 ms (timestamps 7244-7245)
I/LibraryLoader( 3102): Expected native library version number "",actual native library version number ""
V/WebViewChromiumFactoryProvider( 3102): Binding Chromium to main looper Looper (main, tid 1) {65917f2}
I/LibraryLoader( 3102): Expected native library version number "",actual native library version number ""
I/chromium( 3102): [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController( 3102): Initializing chromium process, singleProcess=true
W/art ( 3102): Attempt to remove local handle scope entry from IRT, ignoring
W/AudioManagerAndroid( 3102): Requires BLUETOOTH permission
W/chromium( 3102): [WARNING:resource_bundle.cc(304)] locale_file_path.empty()
I/chromium( 3102): [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=41 off=46184 len=3037
I/chromium( 3102): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:42 off:229484 len:1089587
D/EGL_emulation( 3102): eglCreateContext: 0xa2014f40: maj 2 min 0 rcv 2
D/EGL_emulation( 3102): eglMakeCurrent: 0xa2014f40: ver 2 0
W/chromium( 3102): [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup
W/art ( 3102): Attempt to remove local handle scope entry from IRT, ignoring
W/AwContents( 3102): onDetachedFromWindow called when already detached. Ignoring
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/Ads ( 3102): Google Play Service is out of date, the Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires updated Google Play Service.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/Ads ( 3102): Google Play Service is out of date, the Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires updated Google Play Service.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
D/zzcz ( 3102): File /data/data/com.hoogle.quoteslibrary/cache/1521499837408.dex not found. No need for deletion
I/Ads ( 3102): Starting ad request.
I/Ads ( 3102): This request is sent from a test device.
E/bf ( 3102): fd
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
W/GooglePlayServicesUtil( 3102): Google Play services out of date. Requires 12451000 but found 11302270
D/EGL_emulation( 3102): eglMakeCurrent: 0xae034a60: ver 2 0
W/chromium( 3102): [WARNING:simple_index_file.cc(337)] Could not map Simple Index file.
W/art ( 3102): Long monitor contention event with owner method=java.util.List java.util.Collections.emptyList() from Collections.java:2401 waiters=3 for 145ms
W/art ( 3102): Attempt to remove local handle scope entry from IRT, ignoring
W/AwContents( 3102): onDetachedFromWindow called when already detached. Ignoring
W/art ( 3102): Attempt to remove local handle scope entry from IRT, ignoring
W/art ( 3102): Attempt to remove local handle scope entry from IRT, ignoring
W/art ( 3102): Long monitor contention event with owner method=java.util.List java.util.Collections.emptyList() from Collections.java:2401 waiters=4 for 170ms
E/MediaPlayer( 3102): error (1, -38)
D/EGL_emulation( 3102): eglMakeCurrent: 0xae034a60: ver 2 0
E/bf ( 3102): fd
I/chromium( 3102): [INFO:CONSOLE(8)] "The key "viewport-fit" is not recognized and ignored.", source: https://www.brainyquote.com/topics/love (8)
You should look at line where is says :
E/AndroidRuntime( 3346): FATAL EXCEPTION: main
E/AndroidRuntime( 3346): Process: com.hoogle.quoteslibrary, PID: 3346
E/AndroidRuntime( 3346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hoogle.quoteslibrary/com.hoogle.quoteslibrary.MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
The third line ends with:
java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
It seems a problem of Theme to fix in styles.xml
For example look at AppCompat does not support the current theme features - nothing works
E/AndroidRuntime( 3346): Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
The easiest way to solve the above issue is to put:-
Theme.AppCompat.NoActionBar as your parent theme.
otherwise put this in style
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="#style/Theme.AppCompat.Light">
<item name="windowActionBar">true</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
Check this edited style
I'm using RecyclerView in my app and my app just hangs (doesn't quit, just animations stop and app becomes completely unresponsive) with the following logs in console:
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: Trying to load lib /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: Added shared lib /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90, skipping init
05-01 09:23:39.345 21296-21296/com.ulouder.ulouder I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#41dab7c8 time:89397538
05-01 09:23:39.350 2281-2319/system_process I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{430106a0 u0 com.ulouder.ulouder/com.ulouder.activities.MainActivity t19} time:89397539
05-01 09:23:42.540 21296-21741/com.ulouder.ulouder D/uLouder: [01 23 2016 09:23:42] Fired event with data: feed loaded nearby
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isUpdated, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17616: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0031
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.flagRemovedAndOffsetPosition, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17600: Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0053
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isRemoved, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17613: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0058
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload ()V from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.clearPayload, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17595: Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload ()V
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x007c
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isAdapterPositionUnknown, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17609: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0086
...
It just goes on for many methods of RecyclerView, crashing the whole app (or thread) with this at the end of the log:
05-01 09:23:42.730 21296-21296/com.ulouder.ulouder W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41873ce0)
Why am I getting this? This happens on real device (Samsung Galaxy S3) with Android 4.4.4 (API 19) while there's no problem with my emulator with Marshmallow.
Once again, Android was misleading. There was nothing to do with those error messages. There was an actual null pointer exception on view binding which crashed the whole thread, but somehow it wasn't reported correctly to logcat.
when i click on button open another activity that is tab host activity but in my case when i click on button nothing to display and i didn't get any error.just blank screen display. below is log cat
04-12 15:16:30.799 25332-25332/? D/dalvikvm: Not late-enabling CheckJNI (already on)
04-12 15:16:35.129 25332-25332/com.novityrecharge E/Trace: error opening trace file: No such file or directory (2)
04-12 15:16:36.969 25332-25332/com.novityrecharge D/ImageLoader: Initialize ImageLoader with configuration
04-12 15:16:37.488 25332-25335/com.novityrecharge D/dalvikvm: GC_CONCURRENT freed 211K, 8% free 5458K/5895K, paused 152ms+4ms, total 416ms
04-12 15:16:37.521 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
04-12 15:16:37.521 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
04-12 15:16:37.528 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve interface method 18180: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
04-12 15:16:37.528 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
04-12 15:16:37.528 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
04-12 15:16:37.528 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve interface method 18184: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
04-12 15:16:37.528 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
04-12 15:16:37.839 25332-25332/com.novityrecharge D/dalvikvm: GC_FOR_ALLOC freed 43K, 7% free 5497K/5895K, paused 32ms, total 33ms
04-12 15:16:37.866 25332-25332/com.novityrecharge I/dalvikvm-heap: Grow heap (frag case) to 6.242MB for 685600-byte allocation
04-12 15:16:37.908 25332-25335/com.novityrecharge D/dalvikvm: GC_CONCURRENT freed <1K, 7% free 6166K/6599K, paused 13ms+3ms, total 41ms
04-12 15:16:38.079 25332-25332/com.novityrecharge D/dalvikvm: GC_FOR_ALLOC freed 0K, 7% free 6166K/6599K, paused 116ms, total 116ms
04-12 15:16:38.152 25332-25332/com.novityrecharge I/dalvikvm-heap: Grow heap (frag case) to 6.611MB for 386900-byte allocation
04-12 15:16:38.339 25332-25338/com.novityrecharge D/dalvikvm: GC_FOR_ALLOC freed 0K, 7% free 6544K/6983K, paused 171ms, total 171ms
04-12 15:16:38.349 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
04-12 15:16:38.349 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve virtual method 460: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
04-12 15:16:38.349 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
04-12 15:16:38.378 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
04-12 15:16:38.378 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve virtual method 482: Landroid/content/res/TypedArray;.getType (I)I
04-12 15:16:38.378 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
04-12 15:16:39.068 25332-25332/com.novityrecharge D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
04-12 15:16:39.089 25332-25332/com.novityrecharge D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
04-12 15:16:39.154 25332-25332/com.novityrecharge D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
04-12 15:16:39.418 25332-25332/com.novityrecharge D/: HostConnection::get() New Host Connection established 0x2a12c998, tid 25332
04-12 15:16:41.112 25332-25332/com.novityrecharge W/EGL_emulation: eglSurfaceAttrib not implemented
04-12 15:16:41.300 25332-25332/com.novityrecharge D/OpenGLRenderer: Enabling debug mode 0
04-12 15:16:41.333 25332-25332/com.novityrecharge I/Choreographer: Skipped 159 frames! The application may be doing too much work on its main thread.
04-12 15:16:42.806 25332-25332/com.novityrecharge I/Choreographer: Skipped 80 frames! The application may be doing too much work on its main thread.
04-12 15:16:44.440 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
04-12 15:16:44.440 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve virtual method 423: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
04-12 15:16:44.449 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
04-12 15:16:44.449 25332-25332/com.novityrecharge I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
04-12 15:16:44.459 25332-25332/com.novityrecharge W/dalvikvm: VFY: unable to resolve virtual method 425: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
04-12 15:16:44.459 25332-25332/com.novityrecharge D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
04-12 15:16:44.878 25332-25332/com.novityrecharge D/text: 1234
04-12 15:16:44.888 25332-25332/com.novityrecharge I/Choreographer: Skipped 76 frames! The application may be doing too much work on its main thread.
04-12 15:16:45.818 25332-25332/com.novityrecharge W/EGL_emulation: eglSurfaceAttrib not implemented
04-12 15:16:46.054 25332-25332/com.novityrecharge I/Choreographer: Skipped 68 frames! The application may be doing too much work on its main thread.
04-12 15:16:47.792 25332-25332/com.novityrecharge I/Choreographer: Skipped 103 frames! The application may be doing too much work on its main thread.
04-12 15:16:52.486 25332-25332/com.novityrecharge D/AndroidRuntime: Shutting down VM
04-12 15:16:52.486 25332-25332/com.novityrecharge W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40a122a0)
04-12 15:16:53.159 25332-25335/com.novityrecharge D/dalvikvm: GC_CONCURRENT freed 852K, 16% free 6114K/7239K, paused 84ms+16ms, total 171ms
04-12 15:20:41.062 25332-25337/com.novityrecharge I/dalvikvm: threadid=3: reacting to signal 3
04-12 15:20:41.589 25332-25337/com.novityrecharge I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
SMSActivityTab.java
public class SMSActivityTab extends AppCompatActivity {
TabHost myTabHost;
// LocalActivityManager mlam;
TabWidget tw;
#Override
protected void onCreate(#Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.smsactivitytab);
if(!(Thread.getDefaultUncaughtExceptionHandler() instanceof ExceptionHandler))
{
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this,"LoginActivity"));
}
//mlam = new LocalActivityManager(this, false);
// mlam.dispatchCreate(savedInstanceState);
myTabHost =(TabHost) findViewById(android.R.id.tabhost);
myTabHost.setup();
TabHost.TabSpec prepaid = myTabHost.newTabSpec("tab1");
TabHost.TabSpec dth = myTabHost.newTabSpec("tab2");
TabHost.TabSpec postpaid = myTabHost.newTabSpec("tab3");
//Below name is display on screen
prepaid.setIndicator(getResources().getString(R.string.lbl_prepaidrecharge));
prepaid.setContent(new Intent(SMSActivityTab.this, SMSPrepaid.class));
dth.setIndicator(getResources().getString(R.string.lbl_dthrecharge));
dth.setContent(new Intent(SMSActivityTab.this, SMSDTH.class));
postpaid.setIndicator(getResources().getString(R.string.lbl_prepaidrecharge));
postpaid.setContent(new Intent(SMSActivityTab.this, SMSPostpaid.class));
myTabHost.addTab(prepaid);
myTabHost.addTab(dth);
myTabHost.addTab(postpaid);
myTabHost.setCurrentTab(0);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
// action with ID action_refresh was selected
case R.id.action_signout:
BaseActivity.logout(SMSActivityTab.this);
default:
return super.onOptionsItemSelected(item);
}
}
#Override
public void onBackPressed() {
Intent intent = new Intent(SMSActivityTab.this, LoginActivity.class);
startActivity(intent);
finish();
}
#Override
protected void onResume(){
super.onResume();
//mlam.dispatchResume();
}
#Override
protected void onPause(){
super.onPause();
//mlam.dispatchPause(isFinishing());
}
}
smsactivitytab.xml
<?xml version="1.0" encoding="utf-8"?>
<TabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dp">
<TabWidget
android:id="#android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="#android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>
i think you problem is on this line
myTabHost =(TabHost) findViewById(android.R.id.tabhost);
you need to change this line to
myTabHost =(TabHost) findViewById(android.R.id.tabs);
I have implemented a GridView by following this guide.
It works perfectly.
The problems comes when I call the GridView Fragment from the NavigationDrawer.
When I push the button of the NavDrawer, the app freezes and I get these messages from the Android Monitor:
11-03 14:08:53.349 15968-15968/com.daswaretech.apps.dasware D/AndroidRuntime: Shutting down VM
11-03 14:08:53.349 15968-15968/com.daswaretech.apps.dasware W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4208a898)
The app will stay frozen until I kill it.
Any idea?
More info:
I call the Fragment whis way:
Fragment frag = new Grid_Fragment();
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, frag).commit();
Full log:
11-03 14:24:46.389 26230-26230/? D/dalvikvm: Late-enabling CheckJNI
11-03 14:24:46.669 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
11-03 14:24:46.669 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onSearchRequested
11-03 14:24:46.679 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve interface method 17126: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
11-03 14:24:46.679 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
11-03 14:24:46.679 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onWindowStartingActionMode
11-03 14:24:46.679 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve interface method 17130: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
11-03 14:24:46.679 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
11-03 14:24:46.889 26230-26230/com.daswaretech.apps.dasware I/AMain: onResume
11-03 14:24:47.009 26230-26230/com.daswaretech.apps.dasware D/libEGL: loaded /vendor/lib/egl/libEGL_adreno.so
11-03 14:24:47.009 26230-26230/com.daswaretech.apps.dasware D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
11-03 14:24:47.009 26230-26230/com.daswaretech.apps.dasware D/libEGL: loaded /vendor/lib/egl/libGLESv2_adreno.so
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098_msm8226_JB_3.2_RB2__release_AU ()
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: OpenGL ES Shader Compiler Version: 20.00.08
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: Build Date: 03/04/14 Tue
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: Local Branch:
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: Remote Branch: quic/jb_3.2_rb2.32
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: Local Patches: NONE
11-03 14:24:47.129 26230-26230/com.daswaretech.apps.dasware I/Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098 + NOTHING
11-03 14:24:47.249 26230-26230/com.daswaretech.apps.dasware D/OpenGLRenderer: Enabling debug mode 0
11-03 14:24:47.389 26230-26230/com.daswaretech.apps.dasware I/AMain: onResume
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve virtual method 668: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve virtual method 690: Landroid/content/res/TypedArray;.getType (I)I
11-03 14:24:48.909 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve virtual method 252: Landroid/app/Notification$Builder;.setLocalOnly (Z)Landroid/app/Notification$Builder;
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x6e at 0x00c2
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.app.AppOpsManager.checkPackage, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve virtual method 130: Landroid/app/AppOpsManager;.checkPackage (ILjava/lang/String;)V
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x6e at 0x0010
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: VFY: unable to resolve virtual method 593: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware D/dalvikvm: VFY: replacing opcode 0x6e at 0x000b
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/GAv4: Google Analytics 7.8.95 is starting up. To enable debug logging on a device run:
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/GAv4: adb shell setprop log.tag.GAv4 DEBUG
11-03 14:24:49.019 26230-26230/com.daswaretech.apps.dasware I/GAv4: adb logcat -s GAv4
11-03 14:24:49.039 26230-26230/com.daswaretech.apps.dasware W/GAv4: AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions.
11-03 14:24:49.049 26230-26341/com.daswaretech.apps.dasware W/GAv4: AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
11-03 14:24:49.049 26230-26230/com.daswaretech.apps.dasware I/AMain: connectBleService
11-03 14:24:52.819 26230-26230/com.daswaretech.apps.dasware D/AndroidRuntime: Shutting down VM
11-03 14:24:52.819 26230-26230/com.daswaretech.apps.dasware W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4208a898)
We should be able to see the Error level exception log causing the issue.
Check if you accidentaly enabled a catch-all-exception handler:
"AndroidRuntime: Shutting down VM" with nothing else
Without a proper exception log it's too much guessing (maybe the R.id.content_frame is not defined in the XML layout?)
I'm new to android and I noticed that everytime I run my app and look at the debug logcat, it says some methods could not be found but the app still runs fine. I'm wondering what these logs mean. for exmaple "Could not find method android.widget.PopupWindow.showAsDropDown, referenced from method android.support.v7.internal.widget.AppCompatPopupWindow.showAsDropDown"
05-19 15:56:27.032 14856-14856/? D/dalvikvm﹕ Late-enabling CheckJNI
05-19 15:56:27.524 14856-14856/app.com.example.anddroid.sunshine I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
05-19 15:56:27.524 14856-14856/app.com.example.anddroid.sunshine W/dalvikvm﹕ VFY: unable to resolve virtual method 407: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-19 15:56:27.528 14856-14856/app.com.example.anddroid.sunshine D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-19 15:56:27.556 14856-14856/app.com.example.anddroid.sunshine I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
05-19 15:56:27.556 14856-14856/app.com.example.anddroid.sunshine W/dalvikvm﹕ VFY: unable to resolve virtual method 429: Landroid/content/res/TypedArray;.getType (I)I
05-19 15:56:27.560 14856-14856/app.com.example.anddroid.sunshine D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-19 15:56:27.696 14856-14856/app.com.example.anddroid.sunshine D/libEGL﹕ loaded /system/lib/egl/libEGL_genymotion.so
05-19 15:56:27.708 14856-14856/app.com.example.anddroid.sunshine D/﹕ HostConnection::get() New Host Connection established 0xb9365478, tid 14856
05-19 15:56:27.748 14856-14856/app.com.example.anddroid.sunshine D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_genymotion.so
05-19 15:56:27.748 14856-14856/app.com.example.anddroid.sunshine D/libEGL﹕ loaded /system/lib/egl/libGLESv2_genymotion.so
05-19 15:56:27.888 14856-14856/app.com.example.anddroid.sunshine W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
05-19 15:56:27.888 14856-14856/app.com.example.anddroid.sunshine E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from GradienCache
05-19 15:56:27.912 14856-14856/app.com.example.anddroid.sunshine E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
05-19 15:56:27.912 14856-14856/app.com.example.anddroid.sunshine D/OpenGLRenderer﹕ Enabling debug mode 0
05-19 15:56:27.948 14856-14856/app.com.example.anddroid.sunshine D/dalvikvm﹕ GC_FOR_ALLOC freed 295K, 4% free 9011K/9336K, paused 11ms, total 12ms
05-19 15:56:30.160 14856-14856/app.com.example.anddroid.sunshine I/dalvikvm﹕ Could not find method android.widget.PopupWindow.showAsDropDown, referenced from method android.support.v7.internal.widget.AppCompatPopupWindow.showAsDropDown
05-19 15:56:30.160 14856-14856/app.com.example.anddroid.sunshine W/dalvikvm﹕ VFY: unable to resolve virtual method 13731: Landroid/widget/PopupWindow;.showAsDropDown (Landroid/view/View;III)V
05-19 15:56:30.164 14856-14856/app.com.example.anddroid.sunshine D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x000f
05-19 15:56:30.188 14856-14856/app.com.example.anddroid.sunshine W/dalvikvm﹕ method Landroid/support/v7/internal/widget/ListViewCompat;.lookForSelectablePosition incorrectly overrides package-private method with same name in Landroid/widget/ListView;
05-19 15:56:30.292 14856-14856/app.com.example.anddroid.sunshine W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
05-19 15:56:31.400 14856-14856/app.com.example.anddroid.sunshine D/HELLO﹕ could not call 3118
05-19 15:56:43.176 14856-14856/app.com.example.anddroid.sunshine W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
05-19 15:56:48.744 14856-14856/app.com.example.anddroid.sunshine W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
05-19 16:01:38.676 14856-14862/app.com.example.anddroid.sunshine D/dalvikvm﹕ GC_FOR_ALLOC freed 276K, 4% free 9248K/9552K, paused 30ms, total 34ms