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

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -