title: Activity class not starting with activity
body: <p>I have first activity from which I start another one.</p>
  
  <p>I created second one with:</p>
  
  <ul>
  <li>Right click on <code>app</code> inside project explorer</li>
  <li>New > Activity > Empty Activity</li>
  </ul>
  
  <p>and with this I got <code>class</code> file inside <code>Java</code> folder and <code>activity_newActivity.xml</code></p>
  
  <p>I have created some stuffs inside  that activity and struggling why functions are not working when I try to run them from my <code>class</code> but then I tried to add <code>Log.d("Testing", "TEST")</code> inside <code>onCreate</code> function and what I have found out is that it doesn't even run it. Why is this happening?</p>
  
  <p>Whole class:</p>
  
  <pre><code>package rs.termodom.www.termodom;
  
  import android.graphics.Point;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.Display;
  import android.widget.ImageView;
  import android.widget.TextView;
  
  public class pocetna extends AppCompatActivity {
      Display display;
      Point screenSize;
      TextView tp_txt;
      ImageView test;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_pocetna);
  
          Log.d("PROBLEM", "PROBLEM");
  
          //==========================================================================================
          //==========================================================================================
          //==========================================================================================
          display = getWindowManager().getDefaultDisplay();
          display.getSize(screenSize);
  
          tp_txt = (TextView) findViewById(R.id.tp_txt);
          tp_txt.setText("StA");
  
          test = (ImageView)findViewById(R.id.akcija1_img);
          test.getLayoutParams().height = 150;
          test.getLayoutParams().width = screenSize.x;
          //==========================================================================================
          //==========================================================================================
          //==========================================================================================
  
      }
  }
  </code></pre>
  
  <p>Here is manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="rs.termodom.www.termodom"&gt;
  
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:hardwareAccelerated="false"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:largeHeap="true"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity
              android:name=".MainActivity"
              android:theme="@style/AppTheme.NoActionBar"&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=".pocetna"
              android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>and 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="rs.termodom.www.termodom.pocetna"&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:id="@+id/header"
          android:layout_width="0dp"
          android:layout_height="50dp"
          android:background="@android:color/holo_blue_light"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;TextView
              android:id="@+id/userName_txt"
              android:layout_width="151dp"
              android:layout_height="32dp"
              android:layout_marginLeft="8dp"
              android:layout_marginStart="8dp"
              android:layout_marginTop="8dp"
              android:text="KORISNIK 123"
              android:textSize="24sp"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent" /&gt;
  
          &lt;TextView
              android:id="@+id/tp_txt"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginEnd="8dp"
              android:layout_marginRight="8dp"
              android:layout_marginTop="8dp"
              android:text="1600 TP"
              android:textColor="@android:color/holo_red_dark"
              android:textSize="24sp"
              android:textStyle="bold"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:id="@+id/content"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_marginTop="50dp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;android.support.constraint.ConstraintLayout
              android:id="@+id/akcijaSlider"
              android:layout_width="411dp"
              android:layout_height="150dp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent"&gt;
  
              &lt;ImageButton
                  android:id="@+id/akcija1_img"
                  android:layout_width="268dp"
                  android:layout_height="112dp"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintEnd_toEndOf="parent"
                  app:layout_constraintHorizontal_bias="1.0"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent"
                  app:layout_constraintVertical_bias="0.0"
                  app:srcCompat="@mipmap/ic_launcher" /&gt;
  
          &lt;/android.support.constraint.ConstraintLayout&gt;
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>