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

javascript - Replicate keyboard event with html button -

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

Ansible warning on jinja2 braces on when -