mardi 1 décembre 2015

after compleion of running while entering data in to the edittext in SQLITE databse ,app crashing ,ERROR IS COULD NOT FIND METHOD

12-01 14:00:15.838 24688-24688/? D/dalvikvm: Late-enabling CheckJNI 12-01 14:00:16.025 24688-24688/comg.example.lenovopc.mydatabase I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations 12-01 14:00:16.025 24688-24688/comg.example.lenovopc.mydatabase W/dalvikvm: VFY: unable to resolve virtual method 423: Landroid/content/res/TypedArray;.getChangingConfigurations ()I 12-01 14:00:16.025 24688-24688/comg.example.lenovopc.mydatabase D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 12-01 14:00:16.026 24688-24688/comg.example.lenovopc.mydatabase I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType 12-01 14:00:16.027 24688-24688/comg.example.lenovopc.mydatabase W/dalvikvm: VFY: unable to resolve virtual method 445: Landroid/content/res/TypedArray;.getType (I)I 12-01 14:00:16.027 24688-24688/comg.example.lenovopc.mydatabase D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: : 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 () 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: OpenGL ES Shader Compiler Version: E031.24.00.08 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: Build Date: 03/07/14 Fri 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: Local Branch: 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: Remote Branch: quic/LNX.LA.3.5.1_RB1.1 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: Local Patches: NONE 12-01 14:00:16.255 24688-24688/comg.example.lenovopc.mydatabase I/Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.018 + f2fd134 + NOTHING 12-01 14:00:16.310 24688-24688/comg.example.lenovopc.mydatabase D/OpenGLRenderer: Enabling debug mode 0

package comg.example.lenovopc.mydatabase;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity{
EditText user_name,pass,pass_conf;
 public Context ctx;

Button reg;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    user_name=(EditText)findViewById(R.id.username);
    pass=(EditText)findViewById(R.id.userpass);
    pass_conf=(EditText)findViewById(R.id.passconf);
    reg=(Button)findViewById(R.id.reg);

    reg.setOnClickListener(new View.OnClickListener() {

        String uname=user_name.getText().toString();
        String upass=pass.getText().toString();
        String con_pass=pass_conf.getText().toString();

        @Override
        public void onClick(View v) {
            if(!(upass.equals(con_pass)))
            {
        Toast.makeText(getBaseContext(),"PASSWORD ARE NOT                                            MATCHING",Toast.LENGTH_LONG).show();

        user_name.setText("");
        pass.setText("");
        pass_conf.setText("");
            }
            else {
                DataBaseOperations DB=new DataBaseOperations(ctx);
                DB.putDataInDb(DB,uname,upass);
                Toast.makeText(getBaseContext(),"Registration Success",Toast.LENGTH_LONG).show();
                 finish();
            }

            }


    });

   }
  }

Aucun commentaire:

Enregistrer un commentaire