title: Android: OnCreate() method is not calling while click on back button
body: <p>I am facing a very strange problem. In my activity when i press Back button its not calling a onCreate() method of parent activity.</p>
  
  <p>Here is my code:
                    public class AddNewGrocery extends Activity{</p>
  
  <pre><code> private DBHelper mydb ;
   Button btnSave;
   EditText editName;
   EditText editQty;
   EditText editPrice;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      getActionBar().setDisplayHomeAsUpEnabled(true);
      getActionBar().setTitle("Add List Item Details");
  
  
  
      /** Setting a custom layout for the list activity */
      setContentView(R.layout.add_grocery);
       btnSave = (Button) findViewById(R.id.btnSave);
      editName = (EditText) findViewById(R.id.txtName);
      editQty=(EditText) findViewById(R.id.txtqty);
      editPrice=(EditText) findViewById(R.id.txtPrice);
      mydb = new DBHelper(this);
  </code></pre>
  
  <p>}}</p>
  
  <p>Here is a code of my mainfeast file:</p>
  
  <pre><code>   &lt;activity
          android:name="com.example.grocerylist.MainActivity"
          android:label="@string/app_name" &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="com.example.grocerylist.AddNewList"
          android:label="@string/app_name"
         android:parentActivityName="com.example.grocerylist.MainActivity"&gt;
       &lt;/activity&gt;
       &lt;activity
          android:name="com.example.grocerylist.AddNewGrocery"
          android:label="@string/app_name" 
          android:parentActivityName="com.example.grocerylist.AddNewList"&gt;
       &lt;/activity&gt;
  </code></pre>