8

Passing an instance of a class. . (trying to make a side menu global)

view full story
linux-howto

http://stackoverflow.com – Still don't know what is going on. Trying to make my code show the menu globally, but it is not. I tried passing the instance of context from MainActivity by public void onCreate(Bundle savedInstanceState) { super.sendContext(this); This calls the code below to set up the menu public void sendContext(Context context){ mContext = context; } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); icon = (ImageView) findViewById(android.R.id. (HowTos)