w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android Studio Share Icon doesn't appear in my other activity

Make sure you override these methods: onCreateOptionsMenu(Menu menu) and onOptionsItemSelected(MenuItem item).

Also, if you are implementing this in a fragment, make sure you have setHasOptionsMenu(true) somewhere in your code. I normally have it under onActivityCreated to make sure it is enabled after the activity is created.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.