Call the function only once when opening
<p>Need your help!<br>
How do I in my application to call the function only once when opening?<br>
<strong>I do:</strong> </p>

<pre><code>private boolean is_first = true;

@Override
public void onCreate(Bundle savedInstanceState) {

    if ( is_first ) {

        MyFirstFunction();   

    }    

}

public void onResume(Bundle savedInstanceState) {
    super.onResume();
    is_first = false;
}
</code></pre>

<p>Also in the manifest file added to the activity <code>android:configChanges="orientation"</code> but still function when you turn the device restarts<br></p>

<p>I hope for your help!</p>
