title: android.content.res.Resources$NotFoundException: String resource id #0x64
body: <p>I make an app with background services and broadcast receiver, and my app consists of a <code>MainActivity.java</code> and <code>myServiceRunner.java</code>. When I start the background service, it gives me this error, <code>android.content.res.Resources$NotFoundException: String resource id #0x64</code>.</p>
  
  <p>I put these codes inside   protected void onCreate(Bundle savedInstanceState): </p>
  
  <pre><code>     IntentFilter mainFilter=new IntentFilter("liren.action.GOSERVICE3");
        receiver=new MyMainLocalReceiver();
        registerReceiver(receiver, mainFilter);
  </code></pre>
  
  <blockquote>
    <p>MyMainLocalReceiver.java</p>
  </blockquote>
  
  <pre><code>   public class MyMainLocalReceiver extends BroadcastReceiver{
  
      @Override
      public void onReceive(Context context, Intent intent) {
  
          try
          {
              int serviceData=intent.getIntExtra("serviceData",0);
              //Toast.makeText(getApplicationContext(), serviceData,Toast.LENGTH_SHORT).show();
  
              tvStepsCount.setText(serviceData);
          }
          catch (Exception e)
          {
              tvStepsCount.setText(e.toString());
          }
  
      }
  }
  </code></pre>
  
  <p>Inside myServiceRunner extends Service class, I have added these codes inside onStartCommand method.</p>
  
  <pre><code>  @Override
     public int onStartCommand(Intent intent, int flags, int startId) {
      Thread triggerService=new Thread(new Runnable() {
          @Override
          public void run() {
              for(;;)
              {
                  try
                  {
                      Intent myFilteredResponse = new Intent("liren.action.GOSERVICE3");
                      myFilteredResponse.putExtra("serviceData",100);
                      sendBroadcast(myFilteredResponse);
                      Thread.sleep(5000);
                  }
                  catch (Exception e)
                  {
                      e.printStackTrace();
                  }
              }
          }
      });
      triggerService.start();
      return super.onStartCommand(intent, flags, startId);
  }
  </code></pre>
  
  <blockquote>
    <p>manifest.xml</p>
  </blockquote>
  
  <p>I have added these:</p>
  
  <pre><code>    &lt;service android:name=".myServiceRunner"&gt;&lt;/service&gt;
      &lt;receiver android:name=".RecordSaved$MyMainLocalReceiver"&gt;&lt;/receiver&gt;
  </code></pre>
  
  <p>I could not figure out the error, can anyone help me please? Thanks :)</p>