title: Android: Trying to add setText to an EditText
body: <p>I'm just now dipping my toes into reverse engineering Android apps and I'm sure this is a very newbie question. I'm simply trying to automatically insert some text into an edittext field but I get an error during re-compiling in Virtuous Ten Studio.</p>
  
  <p>Here's the original xml:</p>
  
  <p><code>&lt;EditText android:textSize="16.0dip" android:textColor="@color/black" android:layout_gravity="center" android:id="@id/username_textfield" android:background="@color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cursorVisible="true" android:singleLine="true" android:selectAllOnFocus="true" android:maxLength="99" android:layout_weight="1.0" android:inputType="textEmailAddress" android:textCursorDrawable="@null"&gt;</code></p>
  
  <p>All I do is I add: <code>android:setText="@string/login_username_filled"</code> to it so that it looks like this;</p>
  
  <p><code>&lt;EditText android:textSize="16.0dip" android:textColor="@color/black" android:layout_gravity="center" android:id="@id/username_textfield" android:background="@color/transparent" android:setText="@string/login_username_filled" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cursorVisible="true" android:singleLine="true" android:selectAllOnFocus="true" android:maxLength="99" android:layout_weight="1.0" android:inputType="textEmailAddress" android:textCursorDrawable="@null"&gt;</code></p>
  
  <p>And in the Strings.xml file I added:</p>
  
  <p><code>&lt;string name="login_username_filled"&gt;foobar@gmail.com&lt;/string&gt;
  &lt;string name="login_password_filled"&gt;foobar&lt;/string&gt;</code></p>
  
  <p>And I get the error "no resource identifier found for attribute 'setText' in package 'android'. I've tried adding:</p>
  
  <p><code>
  &lt;item type="id" name="login_username_filled"&gt;false&lt;/item&gt;
  &lt;item type="id" name="login_password_filled"&gt;false&lt;/item&gt;</code></p>
  
  <p>to ids.xml</p>
  
  <p>and also adding:</p>
  
  <p><code>&lt;public type="id" name="login_username_filled" id="0x7f050128" /&gt;
  &lt;public type="id" name="login_password_filled" id="0x7f050129" /&gt;</code></p>
  
  <p>to public.xml (I made up some hex numbers that incremented the last number in the type for those, so that the numbers didn't already exist), but I get public.xml errors there.</p>
  
  <p>I know I'm missing something simple here, but I barely know java coding at all and very very little smali reversing.</p>