title: How can i Solve this error in Android? (Finished with a non-zero Value)
body: <p>I cant seem to find what is wrong with my program with this error please </p>
  
  <p>My code is long for me to post all my R. got red highlighted after i included this</p>
  
  <pre><code>LayoutInflater inflater = getLayoutInflater();
              View layout = inflater.inflate(R.layout.toast_layout,
                      (ViewGroup) findViewById(R.id.toast_layout_root));
  
              TextView text = (TextView) layout.findViewById(R.id.text);
              text.setText("Please select a Level!");
              text.setTextColor(Color.BLUE);
              text.setTextSize(15);
  
              Toast toast = new Toast(getApplicationContext());
              toast.setGravity(Gravity.CENTER, 0, 0);
              toast.setDuration(Toast.LENGTH_SHORT);
              // toast.getView().setBackgroundColor(Color.BLUE);
              toast.setView(layout);
              toast.show();
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/toast_layout_root"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="8dp"
      android:background="#DAAA"
      &gt;
      &lt;ImageView android:src="@drawable/droid"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginRight="8dp"
          /&gt;
  
      &lt;TextView android:id="@+id/text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textColor="#FFF"
          /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>help</p>