@@ -0,0 +1,2610 @@
+package com.example.my.project;%0A%0Aimport android.content.Intent;%0Aimport android.database.Cursor;%0Aimport android.database.sqlite.SQLiteDatabase;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.EditText;%0Aimport android.widget.Toast;%0A%0Apublic class MainActivity extends AppCompatActivity %7B%0A    Button login,signup;%0A    EditText username,password;%0A    String s1,s2,s3;%0A%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_main);%0A        login=(Button)findViewById(R.id.login);%0A        signup=(Button)findViewById(R.id.signup);%0A        username=(EditText)findViewById(R.id.username);%0A        password=(EditText)findViewById(R.id.password);%0A        login.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                s1=username.getText().toString();%0A                s2=password.getText().toString();%0A                if(s1.isEmpty()==true %7C%7C s2.isEmpty()==true)%0A                %7B%0A                    Toast.makeText(MainActivity.this,%22Fill all Fields%22,Toast.LENGTH_SHORT).show();%0A                %7D%0A%0A                else %7B%0A                    SQLiteDatabase data = openOrCreateDatabase(%22magic%22, MODE_PRIVATE, null);%0A                    data.execSQL(%22create table if not exists user (name varchar, password varchar, email varchar)%22);%0A%0A%0A                    String x = %22select * from user where name='%22 + s1 + %22' and password='%22 + s2 + %22'%22;%0A                    Cursor cursor = data.rawQuery(x,null);%0A%0A%0A                    if(cursor.getCount()%3E0)%0A                    %7B%0A                        cursor.close();%0A                        Toast.makeText(MainActivity.this, %22Logging in...%22, Toast.LENGTH_SHORT).show();%0A                        Intent i = new Intent(MainActivity.this, Third.class);%0A                        Intent j = i.putExtra(%22data%22,s1 );%0A                        startActivity(j);%0A                    %7D%0A%0A                    else%0A                    %7B%0A                        cursor.close();%0A                        Toast.makeText(MainActivity.this, %22Wrong Username or Password%22, Toast.LENGTH_SHORT).show();%0A                    %7D%0A%0A                %7D%0A            %7D%0A        %7D);%0A        signup.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Intent k=new Intent(MainActivity.this,Third.class);%0A                startActivity(k);%0A            %7D%0A        %7D);%0A    %7D%0A%7D%0A

Create MainActivity.java