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);
Related
This question already has answers here:
Can not find a View with findViewById()
(4 answers)
What is a NullPointerException, and how do I fix it?
(12 answers)
What is a stack trace, and how can I use it to debug my application errors?
(7 answers)
Closed 5 years ago.
03-30 23:49:56.536 15105-15105/? D/dalvikvm: Late-enabling CheckJNI
03-30 23:49:56.560 15105-15111/? E/jdwp: Failed writing handshake
bytes: Broken pipe (-1 of 14) 03-30 23:49:56.560 15105-15111/?
D/dalvikvm: Debugger has detached; object registry had 0 entries 03-30
23:49:56.600 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onProvideKeyboardShortcuts, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
03-30 23:49:56.600 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21845:
Landroid/view/Window$Callback;.onProvideKeyboardShortcuts
(Ljava/util/List;Landroid/view/Menu;I)V 03-30 23:49:56.600
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to find class
referenced in signature (Landroid/view/SearchEvent;) 03-30
23:49:56.604 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onSearchRequested, referenced from method
android.support.v7.view.WindowCallbackWrapper.onSearchRequested 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21847:
Landroid/view/Window$Callback;.onSearchRequested
(Landroid/view/SearchEvent;)Z 03-30 23:49:56.604 15105-15105/?
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30 23:49:56.604
15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onWindowStartingActionMode, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21851:
Landroid/view/Window$Callback;.onWindowStartingActionMode
(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode; 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getChangingConfigurations,
referenced from method
android.support.v7.widget.TintTypedArray.getChangingConfigurations
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 502:
Landroid/content/res/TypedArray;.getChangingConfigurations ()I 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getType, referenced from method
android.support.v7.widget.TintTypedArray.getType 03-30 23:49:56.604
15105-15105/? W/dalvikvm: VFY: unable to resolve virtual method 524:
Landroid/content/res/TypedArray;.getType (I)I 03-30 23:49:56.604
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008 03-30
23:49:56.636 15105-15105/? I/dalvikvm: Could not find method
android.widget.FrameLayout.startActionModeForChild, referenced from
method
android.support.v7.widget.ActionBarContainer.startActionModeForChild
03-30 23:49:56.636 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 22329:
Landroid/widget/FrameLayout;.startActionModeForChild
(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-30 23:49:56.640 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6f at 0x0002 03-30 23:49:56.640 15105-15105/? I/dalvikvm: Could not
find method android.content.Context.getColorStateList, referenced from
method
android.support.v7.content.res.AppCompatResources.getColorStateList
03-30 23:49:56.640 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 315: Landroid/content/Context;.getColorStateList
(I)Landroid/content/res/ColorStateList; 03-30 23:49:56.640
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006 03-30
23:49:56.652 15105-15105/? I/dalvikvm: Could not find method
android.content.res.Resources.getDrawable, referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawable 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 465: Landroid/content/res/Resources;.getDrawable
(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.652 15105-15105/? I/dalvikvm: Could not
find method android.content.res.Resources.getDrawableForDensity,
referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawableForDensity 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 467: Landroid/content/res/Resources;.getDrawableForDensity
(IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.660 15105-15105/? E/dalvikvm: Could not
find class 'android.graphics.drawable.RippleDrawable', referenced from
method
android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
03-30 23:49:56.660 15105-15105/? W/dalvikvm: VFY: unable to resolve
instanceof 150 (Landroid/graphics/drawable/RippleDrawable;) in
Landroid/support/v7/widget/AppCompatImageHelper; 03-30 23:49:56.660
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c 03-30
23:49:56.680 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 234K, 22%
free 2639K/3364K, paused 1ms+2ms, total 9ms 03-30 23:49:56.692
15105-15105/? D/dalvikvm: GC_FOR_ALLOC freed 31K, 21% free
2676K/3364K, paused 3ms, total 3ms 03-30 23:49:56.692 15105-15105/?
I/dalvikvm-heap: Grow heap (frag case) to 3.506MB for 435468-byte
allocation 03-30 23:49:56.692 15105-15114/? D/dalvikvm: GC_FOR_ALLOC
freed 1K, 19% free 3100K/3792K, paused 3ms, total 3ms 03-30
23:49:56.700 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 3K, 19%
free 3097K/3792K, paused 0ms+0ms, total 6ms 03-30 23:49:56.700
15105-15105/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 5ms 03-30
23:49:56.700 15105-15105/? I/dalvikvm-heap: Grow heap (frag case) to
3.821MB for 333408-byte allocation 03-30 23:49:56.704 15105-15114/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 17% free 3422K/4120K, paused 4ms,
total 4ms 03-30 23:49:56.748 15105-15105/? D/libEGL: loaded
/system/lib/egl/libEGL_genymotion.so
[ 03-30 23:49:56.748 15105:15105 D/ ]
HostConnection::get() New Host Connection established 0xb85b25b0, tid 15105
[ 03-30 23:49:56.752 62: 62 D/ ]
Socket deconnection 03-30 23:49:56.756 15105-15105/? D/libEGL: loaded
/system/lib/egl/libGLESv1_CM_genymotion.so 03-30 23:49:56.756
15105-15105/? D/libEGL: loaded /system/lib/egl/libGLESv2_genymotion.so
03-30 23:49:56.804 15105-15105/? W/EGL_genymotion: eglSurfaceAttrib
not implemented 03-30 23:49:56.804 15105-15105/? E/OpenGLRenderer:
Getting MAX_TEXTURE_SIZE from GradienCache 03-30 23:49:56.812
15105-15105/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from
Caches::initConstraints() 03-30 23:49:56.812 15105-15105/?
D/OpenGLRenderer: Enabling debug mode 0 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/InputEventSender:
Exception dispatching finished signal. 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/MessageQueue-JNI:
Exception in MessageQueue callback: handleReceiveCallback 03-30
23:50:19.468 15105-15105/com.example.samsungvy277.myapp D/dalvikvm:
GC_FOR_ALLOC freed 806K, 30% free 3127K/4428K, paused 5ms, total 5ms
03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
E/MessageQueue-JNI: java.lang.IllegalStateException: Could not execute
method for android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at an 03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
D/AndroidRuntime: Shutting down VM 03-30 23:50:19.472
15105-15105/com.example.samsungvy277.myapp W/dalvikvm: threadid=1:
thread exiting with uncaught exception (group=0xa4c2e648) 03-30
23:50:19.480 15105-15105/com.example.samsungvy277.myapp
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method for
android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Met 03-30 23:50:22.504
15105-15105/? I/Process: Sending signal. PID: 15105 SIG: 9
Use findViewById after setting your setContentView(R.layout.activity_main)
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.
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
I am using Google Places Autocomplete API in my android application. But the app doesn't work . The logcat is filled with these warnings. There is this warning regarding TypedArray which I think is creating the problem.Can anyone explain what may be the issue.The logcat content is given below.
02-02 20:47:42.638 19323-19323/com.devastrix.user.sharearide I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
02-02 20:47:42.638 19323-19323/com.devastrix.user.sharearide W/dalvikvm﹕ VFY: unable to resolve virtual method 369: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
02-02 20:47:42.639 19323-19323/com.devastrix.user.sharearide D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
02-02 20:47:42.640 19323-19323/com.devastrix.user.sharearide I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
02-02 20:47:42.640 19323-19323/com.devastrix.user.sharearide W/dalvikvm﹕ VFY: unable to resolve virtual method 391: Landroid/content/res/TypedArray;.getType (I)I
02-02 20:47:42.641 19323-19323/com.devastrix.user.sharearide D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
02-02 20:47:42.852 19323-19323/com.devastrix.user.sharearide D/dalvikvm﹕ GC_FOR_ALLOC freed 248K, 5% free 10618K/11120K, paused 12ms, total 13ms
02-02 20:47:42.873 19323-19323/com.devastrix.user.sharearide I/dalvikvm-heap﹕ Grow heap (frag case) to 21.279MB for 9216016-byte allocation
02-02 20:47:43.066 19323-19323/com.devastrix.user.sharearide I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.018_msm8610_LNX.LA.3.5.1_RB1__release_AU ()
OpenGL ES Shader Compiler Version: E031.24.00.08
Build Date: 03/07/14 Fri
Local Branch:
Remote Branch: quic/LNX.LA.3.5.1_RB1.1
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.018 + f2fd134 + NOTHING
02-02 20:47:43.119 19323-19323/com.devastrix.user.sharearide D/OpenGLRenderer﹕ Enabling debug mode 0
02-02 20:47:58.486 19323-19323/com.devastrix.user.sharearide W/IInputConnectionWrapper﹕ showStatusIcon on inactive InputConnection
I want to add customized action bar in my Filter Activity which is a PreferenceActivity.
Can I use addPreferencesFromResource() method with ActionBarActivity ???
Every thing is working fine as my java file and xml file is correct. But there is no action bar, and when i attempt to call getActionBar().setBackgroundDrawable(R.drawable.xyz); there is a crash.
Please help me out.
here is my java code of the preference screen
import android.graphics.drawable.Drawable;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class Filter extends PreferenceActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.filter_screen);
Drawable d=getResources().getDrawable(R.drawable.abfilter);
getActionBar().setBackgroundDrawable(d);
}
}
here is the logcat
11-22 16:18:13.377 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ Late-enabling CheckJNI
11-22 16:18:13.481 7460-7460/com.example.avinash.swipetab W/ActivityThread﹕ Application com.example.avinash.swipetab is waiting for the debugger on port 8100...
11-22 16:18:13.487 7460-7460/com.example.avinash.swipetab I/System.out﹕ Sending WAIT chunk
11-22 16:18:13.494 7460-7468/com.example.avinash.swipetab I/dalvikvm﹕ Debugger is active
11-22 16:18:13.687 7460-7460/com.example.avinash.swipetab I/System.out﹕ Debugger has connected
11-22 16:18:13.688 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:13.888 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:14.088 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:14.289 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:14.489 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:14.689 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:14.889 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:15.090 7460-7460/com.example.avinash.swipetab I/System.out﹕ waiting for debugger to settle...
11-22 16:18:15.290 7460-7460/com.example.avinash.swipetab I/System.out﹕ debugger has settled (1413)
11-22 16:18:15.713 7460-7460/com.example.avinash.swipetab I/dalvikvm﹕ Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
11-22 16:18:15.713 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ VFY: unable to resolve virtual method 11365: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
11-22 16:18:15.713 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
11-22 16:18:15.714 7460-7460/com.example.avinash.swipetab I/dalvikvm﹕ Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
11-22 16:18:15.714 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ VFY: unable to resolve virtual method 11371: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
11-22 16:18:15.714 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
11-22 16:18:15.716 7460-7460/com.example.avinash.swipetab I/dalvikvm﹕ Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
11-22 16:18:15.716 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ VFY: unable to resolve virtual method 9059: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
11-22 16:18:15.716 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e
11-22 16:18:15.734 7460-7460/com.example.avinash.swipetab I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
11-22 16:18:15.734 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ VFY: unable to resolve virtual method 367: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
11-22 16:18:15.734 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
11-22 16:18:15.736 7460-7460/com.example.avinash.swipetab I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
11-22 16:18:15.736 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ VFY: unable to resolve virtual method 389: Landroid/content/res/TypedArray;.getType (I)I
11-22 16:18:15.736 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
11-22 16:18:15.886 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 177K, 10% free 3028K/3328K, paused 10ms, total 10ms
11-22 16:18:15.887 7460-7460/com.example.avinash.swipetab I/dalvikvm-heap﹕ Grow heap (frag case) to 3.681MB for 635812-byte allocation
11-22 16:18:15.900 7460-7473/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 8K, 8% free 3640K/3952K, paused 8ms, total 8ms
11-22 16:18:16.124 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 49K, 6% free 4040K/4272K, paused 10ms, total 10ms
11-22 16:18:16.155 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 323K, 13% free 3897K/4448K, paused 8ms, total 8ms
11-22 16:18:16.220 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 1K, 6% free 4220K/4448K, paused 9ms, total 9ms
11-22 16:18:16.256 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 318K, 12% free 4227K/4768K, paused 9ms, total 9ms
11-22 16:18:16.297 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 5% free 4550K/4768K, paused 9ms, total 9ms
11-22 16:18:16.375 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 1K, 4% free 4887K/5088K, paused 9ms, total 9ms
11-22 16:18:16.436 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 4% free 5217K/5408K, paused 9ms, total 9ms
11-22 16:18:16.584 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 1K, 3% free 5889K/6048K, paused 9ms, total 9ms
11-22 16:18:16.641 7460-7460/com.example.avinash.swipetab E/﹕ appName=com.example.avinash.swipetab, acAppName=/system/bin/surfaceflinger
11-22 16:18:16.641 7460-7460/com.example.avinash.swipetab E/﹕ 0
11-22 16:18:16.645 7460-7460/com.example.avinash.swipetab I/MaliEGL﹕ [Mali]window_type=1, is_framebuffer=0, errnum = 0
11-22 16:18:16.645 7460-7460/com.example.avinash.swipetab I/MaliEGL﹕ [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
11-22 16:18:16.645 7460-7460/com.example.avinash.swipetab I/MaliEGL﹕ [Mali]max_allowed_dequeued_buffers=3
11-22 16:18:16.649 7460-7460/com.example.avinash.swipetab D/OpenGLRenderer﹕ Enabling debug mode 0
11-22 16:18:17.386 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 173K, 5% free 6246K/6544K, paused 10ms, total 10ms
11-22 16:18:17.471 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 32K, 5% free 6989K/7312K, paused 9ms, total 9ms
11-22 16:18:17.572 7460-7460/com.example.avinash.swipetab I/Choreographer﹕ Skipped 94 frames! The application may be doing too much work on its main thread.
11-22 16:18:21.307 7460-7460/com.example.avinash.swipetab D/dalvikvm﹕ GC_FOR_ALLOC freed 94K, 3% free 8280K/8500K, paused 12ms, total 12ms
11-22 16:18:21.451 7460-7460/com.example.avinash.swipetab D/AndroidRuntime﹕ Shutting down VM
11-22 16:18:21.451 7460-7460/com.example.avinash.swipetab W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41541ba8)
11-22 16:18:21.467 7460-7460/com.example.avinash.swipetab E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.avinash.swipetab, PID: 7460
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.avinash.swipetab/com.example.avinash.swipetab.Filter}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.example.avinash.swipetab.Filter.onCreate(Filter.java:17)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Thanks in advance.