i have 2 activities.
1-Messaging
2-fileBrowser
from MESSAGING onButtonClick i call the FILEBROWSER activity. in the FILEBROWSER activity i take the path of the selected file and put it to a interface and then call the MESSAGING activity again like this :
Intent i = new Intent(FileBrowser.this, Messaging.class);
i.putExtra(FriendInfo.P, path);
System.out.println("path at fb" + path);
startActivity(i);
this.finish();
now when i m returned back to the MESSAGING activity everything over here is null. all the variables and everything and if i call some other methods, the arguments i pass are also null. what do i do ?
when first time you move Messaging to FileBrowser
method and at Activity FileBrowser just set result and put data in bundle then you can use this result in Messaging Activity’s
Then your Messaging Activity’s all variable remain same. No NULL value.
EDIT: In MessagingActivity
and also make this method