I\'ve created one model class to store my product name,price and quantity,and then I attach it to another Fragment and try to display it in my TextView
First create an application class like this,
public class Applicationc extends Application{
public String str;
@Override
public void onCreate() {
super.onCreate();
str=null;
}
}
create its entry like this in manifest
then in onPost of Async Task set the value in following way,
Applicationc app=(Applicationc)getApplicatoncotext(); app.str="data";
And where you want to retrieve value in following way,
Applicationc app=(Applicationc)getApplicatoncotext(); String dd=app.str;