I have this list of arrays that I need for my service to run
private List<String[]> commandList = new ArrayList<>();
Sample Data:
{"jump", "100", "100"}
{"walk", "100", "100"}
{"jump", "100", "100"}
I tried passing it through putExtra
Intent serviceIntent = new Intent(macroService.class.getName());
serviceIntent.putExtra("CommandList", commandList);
context.startService(serviceIntent);
however the putExtra method only allows me to input strings and string arrays. Is there any way to pass a list of string arrays?