Fetching Data From Database Issue In Android
I have three layout: Main Layout(with a button 'Profile') Profile layout(With textview to show data from database and two button named as 'Edit' and 'Back to Main') Edit layout(Wi
Solution 1:
You have a lot of work to do really but consider this. Instead of:
public void editm(View w){
setContentView(R.layout.profilec);
try{
pshow();
}
catch(Exception e){
Toast.makeText(getBaseContext(), "pshow method", 5).show();
}
}
You want:
Intent edit_profile_intent = newIntent();
edit_profile_intent.setClass(getApplicationContext(), EditProfileActivity.class);
startActivity(edit_profile_intent);
So you would need to do several things: Create this new activity class, declare it in your manifest, Edit your layout to include the appropriate views, etc.
Lets fix your activity stack and then worry about your data problems...
Post a Comment for "Fetching Data From Database Issue In Android"