error in android:text
  • Hello, i am writing a piece of code where it creates a button and put a text on it. here is the piece of code

  • Hi Nitish,

    It's considered bad practice to have the literal text 'Start Client' within the layout. The best thing to do is to define the text in strings.xml and refer to it from the layout. In this way, should you want to update the text later, that's easy because strings.xml has a very simple syntax.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!