i use this code to store the name and password in login activity!
public void main_login(View v)
{
Name = name.getText().toString();
Password = password.getText().toString();
BackGround b = new BackGround();
b.execute(Name, Password);
context = getApplicationContext();
sp = getSharedPreferences("identifier", context.MODE_PRIVATE);
SharedPreferences.Editor Ed= sp.edit();
Ed.putString("Name",name.getText().toString()).commit();
Ed.putString("Password", password.getText().toString()).commit();
// startActivity(new Intent(Login.this,Reg_Token_Id.class));
startActivity(new Intent(this, Reg_Token_Id.class));
}
i got the name ,password,token ushing sharedprefences,and sending them to php file to insert the id in the table.i am able to make a toast and able to see the name ,token ,password, but not able to send them to php file
can anyone help me to fix this issue?