i dont get it, how do you set the maximum length of a string?
ive been searching and going over the android docs (String.Format or Formatter) for what seems like hours and i cant get anything to work. if only those docs would give an actual example in code…
for example if i had
String value = "aaaaaaaa"
and i wanted to display
"aa"
this is what i think should work but it just crashes
String bob = String.format("%.2", value);
what do i need to do?
thank you
you can simply use :
refer this