I have an app in which i have String[] from which i have to find out each element from String[] first char and set it into another array and then set into listview. How do i do that
code:-
 public static final String[] titles = new String[]{"Strawberry",
        "Banana", "Orange", "Mixed"};
From above i find out char at poisition 0
   for (int i=0;i<titles.length;i++){
        String test = titles[i];
        Log.e(TAG,"Items****"+test);
        char firstChar = test.charAt(0);
        Log.e(TAG,"Char"+firstChar);
    }
Now i have to set these char in TextDrawable
static TextDrawable drawable = TextDrawable.builder() .buildRound("+1", Color.GREEN);
and Now i have to set these drawable into another array
TextDrawable[] image = //here i want to set
 
     
    