android - How to display a substring in a Button -
i have string value called string names;
which received ble device. need display substring textview named line2. shows nothing, how can achieve this.
my code is.
string names; string i=(names.substring(1, 2)); string.valueof(i); line2.settext(i);
first try use methods assigned value names variable- string names = "0102151200". if works, there problem in program not assigning value in names variable.
Comments
Post a Comment