Hey guys i’m having this problem with my android app. Any help is much appreciated. Following is a description of the problem:-
I have a login form.
The user enters their username and password.
Then i send these as parameters to the server.
Serverside i have a php script that validates the user’s credentials.
If the user exists in the database the server sends a response true otherwise it sends a response false.
On the client side (android app) i check if the response is true or false.
If its true i log in the user by calling startActivity() and passing in the activity that logged in users should be able to see as an argument.
Trouble is once i test the app on the emulator it does not crash but it does the following.
Once i give it the correct username and password it just goes back to the login form instead of launching the activity that a logged in user should see.
On checking the stack trace i get that error that i’ve just posted a few minutes ago.
See stacktrace below:-
05-19 10:47:14.989 18723-18723/? D/dalvikvm: Late-enabling CheckJNI
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve interface method 17046: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve interface method 17048: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve interface method 17052: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 481: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 503: Landroid/content/res/TypedArray;.getType (I)I
05-19 10:47:15.069 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.widget.FrameLayout.startActionModeForChild, referenced from method android.support.v7.widget.ActionBarContainer.startActionModeForChild
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 17487: Landroid/widget/FrameLayout;.startActionModeForChild (Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 287: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 444: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve virtual method 446: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-19 10:47:15.079 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-19 10:47:15.149 18723-18723/edu.cuea.project.research.kura E/dalvikvm: Could not find class ‘android.graphics.drawable.RippleDrawable’, referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
05-19 10:47:15.149 18723-18723/edu.cuea.project.research.kura W/dalvikvm: VFY: unable to resolve instanceof 147 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
05-19 10:47:15.149 18723-18723/edu.cuea.project.research.kura D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
05-19 10:47:15.369 18723-18723/edu.cuea.project.research.kura I/PGA: Attempting to create new SOCKET connectionn pid = 18723, tid = 18723
05-19 10:47:15.379 18723-18723/edu.cuea.project.research.kura I/PGA: New SOCKET connection: edu.cuea.project.research.kura (pid 18723, tid 18723)
05-19 10:48:04.039 18723-18723/edu.cuea.project.research.kura D/dalvikvm: GC_FOR_ALLOC freed 342K, 19% free 3048K/3720K, paused 0ms, total 0ms