I\'m trying to create a navigation drawer activity so I can extend that activity and use the menu in all activities by following the answer given in this question Link but m
As suggested by oli, you need to call setContentView(R.layout.activity_view) in your main activity.
BaseActivity's onCreate must be called once content view in Main Activity has been set as shown below :
public class BaseActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// REST Navigation drawer initialization
}
}
public class MainActivity extends BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_view);
super.onCreate(savedInstanceState);
// REST APPLICATION CODE
}
}