title: Automation stopped working
body: <p>When i try to run this simple program on emulator  is says automation(project name) stopped working.I am just Testing a simple ui and plan to send the data recieved through bluetooth to arduino,but unexpectedly this happened. </p>
  
  <pre><code>package company.ciso.com.automation;
  
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.widget.SeekBar;
  import android.widget.Switch;
  import android.widget.TextView;
  
  public class Automoate extends AppCompatActivity {
  static TextView text1 ;
  static TextView text2 ;
  static TextView text3 ;
  static SeekBar seek1;
  static SeekBar seek2;
  static  SeekBar seek3;
  static Switch switch1;
  static Switch switch2;
  static Switch switch3;
  // static int seekpos1;
  // static int seekpos2;
  // static int seekpos3;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_automoate);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
      autofunction();
  
  
  }
  protected void autofunction(){
       text1 = (TextView)findViewById(R.id.textView)  ;
       text2 = (TextView)findViewById(R.id.textView2)  ;
      text3 = (TextView)findViewById(R.id.textView3)  ;
       seek1 = (SeekBar) findViewById(R.id.seekBar);
      seek2 = (SeekBar) findViewById(R.id.seekBar2);
       seek3 = (SeekBar) findViewById(R.id.seekBar3);
      switch1 = (Switch) findViewById(R.id.switch1);
      switch2 = (Switch) findViewById(R.id.switch2);
       switch3 = (Switch) findViewById(R.id.switch3);
       text1.setText(seek1.getProgress());
       text2.setText(seek2.getProgress());
       text3.setText(seek3.getProgress());
  
  
  
  
  
  }
  }
  </code></pre>
  
  <p>Here's the Error LOg.also i would appreciate how do you look up the problem in error code.</p>
  
  <pre><code>  02-25 11:35:24.126 3818-3818/? I/art: Not late-enabling -Xcheck:jni    (already    on)
   02-25 11:35:24.193 3818-3818/? W/System: ClassLoader referenced unknown     path: /data/app/company.ciso.com.automation-2/lib/x86
     02-25 11:35:24.199 3818-3824/? E/art: Failed sending reply to debugger: Broken pipe
   02-25 11:35:24.199 3818-3824/? I/art: Debugger is no longer active
     02-25 11:35:24.254 3818-3818/? W/ResourceType: No package identifier when           getting value for resource number 0x00000000
        02-25 11:35:24.257 3818-3818/? D/AndroidRuntime: Shutting down VM
         02-25 11:35:24.257 3818-3818/? E/AndroidRuntime: FATAL EXCEPTION: main
                                               Process: company.ciso.com.automation, PID: 3818
                                               java.lang.RuntimeException: Unable to start activity ComponentInfo{company.ciso.com.automation/company.ciso.com.automation.Automoate}: android.content.res.Resources$NotFoundException: String resource ID #0x0
                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                   at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                   at android.os.Handler.dispatchMessage(Handler.java:102)
                                                   at android.os.Looper.loop(Looper.java:148)
                                                   at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
                                                   at android.content.res.Resources.getText(Resources.java:312)
                                                   at android.widget.TextView.setText(TextView.java:4417)
                                                   at company.ciso.com.automation.Automoate.autofunction(Automoate.java:46)
                                                   at company.ciso.com.automation.Automoate.onCreate(Automoate.java:32)
                                                   at android.app.Activity.performCreate(Activity.java:6237)
                                                   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
                                                   at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
                                                   at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                   at android.os.Looper.loop(Looper.java:148) 
                                                   at android.app.ActivityThread.main(ActivityThread.java:5417) 
                                                   at java.lang.reflect.Method.invoke(Native Method) 
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
  </code></pre>
  
  <p>Here's my Automoate.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;include layout="@layout/content_automoate" /&gt;
  </code></pre>
  
  <p></p>