title: Change the color of a string in Smali language (Android)
body: <p>I need help from an expert in <code>Smali</code> language.</p>
  
  <p><strong>I need to change the color of a string</strong> with public Id of <code>0x7f0f0042</code> in the program below. The reason for this is that I'm building a theme for an android application.</p>
  
  <p>How can I achieve this?</p>
  
  <p>Here's the Smali code <a href="https://drive.google.com/file/d/0BzbyYHJHXED1MVpkdVNJQTJjOWc/view" rel="nofollow">google drive link</a>. And following is the partial transcription of it. The full code is too extensive for the body of an SO question. You'll notice the <code>...</code> separating the top, middle, and bottom of the code. In the middle part is the line where <code>0x7f0f0042</code> is defined.</p>
  
  <pre><code>.class public Lcom/samsung/dialer/impl/k;
  .super Ljava/lang/Object;
  .source "CallLogContextMenuHandlerImpl.java"
  
  # interfaces
  .implements Lcom/samsung/contacts/b/a;
  # static fields
  .field public static a:Ljava/lang/String;
  .field public static b:Ljava/lang/Integer;
  .field private static c:Ljava/lang/String;
  .field private static d:Ljava/lang/Integer;
  
  ...
  ...
  ...
  
  move-result v0
  
  if-eqz v0, :cond_e
  
  const/4 v0, 0x1
  
  const/16 v1, 0x9
  
  const/4 v2, 0x0
  
  const v3, 0x7f0f0042
  
  invoke-interface {p1, v0, v1, v2, v3}, Landroid/view/ContextMenu;-&gt;add(IIII)Landroid/view/MenuItem;
  
  :cond_c
  :goto_7
  const-string v0, "KOR"
  
  invoke-static {}, Lcom/samsung/contacts/util/l;-&gt;a()Lcom/samsung/contacts/util/l;
  
  move-result-object v1
  
  invoke-virtual {v1}, Lcom/samsung/contacts/util/l;-&gt;K()Ljava/lang/String;
  
  move-result-object v1
  
  ...
  ...
  ...
  
  .method public b(Landroid/view/View;)V
      .locals 1
  
      iget-object v0, p0, Lcom/samsung/dialer/impl/k;-&gt;A:Landroid/content/Context;
  
      check-cast v0, Landroid/app/Activity;
  
      invoke-virtual {v0, p1}, Landroid/app/Activity;-&gt;unregisterForContextMenu(Landroid/view/View;)V
  
      return-void
  .end method
  </code></pre>