How Can I Add A String With Multiple Data To String Array
i want to add the string from actorImages in MainActivity.java to String[] getActorsUrls() in another class MainActivity.java DatabaseReference reference = FirebaseDatabase.getIns
Solution 1:
You'll need to create a method called addActorUrls(String url)
within ImageUrlUtils
and then call it within your loop:
// looping aboveString actorImages = ds.child("image").getValue(String.class);
ImageUrlUtils.addActorUrls(actorImages); // This should set our private String[] url property
Post a Comment for "How Can I Add A String With Multiple Data To String Array"