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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -