title: Button wont start another activitie
body: <p>my button with the id radio, to start second activity, isnt working and my app keeps crashing. The second button however starts another activity wich is empty for the moment. can somebody please tell me what did i miss, so my app stops crashing when i press the button.</p>
  
  <p>my first activity xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout     
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.example.mitja.radiohead.PrvaStran"&gt;
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;android.support.constraint.ConstraintLayou                   xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.mitja.radiohead.PrvaStran"&gt;
  
  &lt;LinearLayout
      android:layout_width="368dp"
      android:layout_height="0dp"
      android:orientation="vertical"
      android:paddingLeft="16dp"
      android:paddingRight="16dp"
      tools:layout_editor_absoluteX="0dp"
      tools:layout_editor_absoluteY="49dp"
      android:weightSum="1"&gt;
  
  
      &lt;ImageView
          android:id="@+id/slika"
          android:layout_width="match_parent"
          android:layout_height="218dp"
          android:layout_weight="0.16"
          android:src="@drawable/radio"
          android:layout_marginLeft="1dp"
          android:layout_marginRight="2dp"
          tools:layout_editor_absoluteX="8dp"
          tools:layout_editor_absoluteY="16dp" /&gt;
  
  
      &lt;Button
          android:id="@+id/radio"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginRight="10dp"
          android:layout_weight="0.50"
          android:text="radio"
          tools:layout_editor_absoluteX="8dp"
          tools:layout_editor_absoluteY="323dp" /&gt;
  
      &lt;Button
          android:id="@+id/predvajalnik"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginRight="10dp"
          android:text="predvajalnik"
          tools:layout_editor_absoluteX="8dp"
          tools:layout_editor_absoluteY="371dp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>java code of the first activity</p>
  
  <pre><code>public class PrvaStran extends AppCompatActivity {
  
  private static Button btn1;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_prva_stran);
  
      onClickButton();
      onClickButton2();
  }
  
  public void onClickButton()
  {
      btn1 = (Button) findViewById(R.id.radio);
      btn1.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent openMainAct = new Intent(PrvaStran.this, Radio.class);
              startActivity(openMainAct);
          }
      });
  }
  
  public void onClickButton2()
  {
      btn1 = (Button) findViewById(R.id.predvajalnik);
      btn1.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent intent = new Intent("com.example.mitja.radiohead.Predvajalnik");
              startActivity(intent);
          }
      });
  }
  }
  </code></pre>
  
  <p>and the android manifestxml code.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.mitja.radiohead"&gt;
  
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".PrvaStran"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name=".Radio"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.mitja.radiohead.Radio" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
  
      &lt;/activity&gt;
      &lt;activity android:name=".Predvajalnik"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.mitja.radiohead.Predvajalnik" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>what am i missing here? the second activity is made from a tutorial i saw on youtube to create a listview with images and texts. I got the code from this site now im trying to use it in this app for practice. i havent had any experiance with android studio before so im asking for a little guide.</p>