android - How can we get count of parameters passed in doInBackground(String... args) -


i searched many posts got meaning of (string... args) problem how can count of these parameters inside function. appreciated...

you can use length method. array can treat array.

  public void doinbackground(string… args) {      int count = args.length;  } 

for getting value index - use

string value = args[index]; 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -