I’ve stored ArrayList<Double> on my bean class,
I’ve the bean class on my main activity,
How to pass the ArrayList<Double> ,from my main activity to another activity.?
My array list is double. how to pass double arraylist ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This one helps you…
For more info look at putParcelableArrayListExtra
EDIT:
If you have a
double[]then you can usevoid putDoubleArray(String key, double[] value)of Bundle class..Inserts a double array value into the mapping of this Bundle, replacing any existing value for the given key.
And pass this bundle to Intent to Other Activity.
Update:2
FirstActivity:
OtherActivity: (Retrieve Double ArrayList)