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
Post a Comment