I am storing the string values in arraylist in Select.java page. Now I need to get those string values into other page i.e review.java page. How to do that? Please help me regarding this?
Thanks in Advance
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.
Either make this
arraylist as public staticor useIntent.putStringArrayListExtra();and pass it to your review.java (If both java class are activity).something like,
In Select.java
and In review.java
Here stock_list is a String ArrayList…
You can also use
Intent.putExtra("keyName", "somevalue");for passing ArrayList..