alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

Send multiple values between two activities in android ?

Send multiple values between two activities in android ?

1.Change this to arraylist

  String[] mackor_names = {
            "Tonfisk Macka 30:-",
            "Skagen Macka 35:-",
            "Kyckling Macka 35:-",
            "Curryröra Macka 30:-",
            "Ost o Kalkon Macka 25:-",
            "Köttbulle Macka 25:-",
            "Falafel Macka 20:-"
        };






  ArrayList<String> list = new ArrayList<>();
    list.add("Tonfisk Macka 30:-");
    list.add("Skagen Macka 35:-"); ...... 

2.and then use

 intent.putStringArrayListExtra("test",list); 

3.and to get values

 Intent intent=getIntent();
ArrayList<String> test = intent.getStringArrayListExtra("test");

67 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online