This is one of the class where i assign data to the item and it return one parameter back to the other class. How should i write it to return two parameter instead? For this case it return final price, how should i write it to return final price and subtotal as well?
public static String Final_Price = " ";
public static String subtotal = " ";
protected String doInBackground(String... arg0) {
Final_Price = co.price;
subtotal = co.subtotal;
return Final_Price;
}
@Override
protected void onPostExecute(String result){
String search = Final_Price;
((ReceiptActivity)activity).get_data(search);
}
This is the receipt activity where there is a function to get the data i pass.
public void get_data (String c)
{
shippingfeeTextView.setText("Shipping fee: " + c);
}