how to set variable in string senstance in android code example Example: java variable in string String string = String.format("A string %s", aVariable);