The Home sample in the android sdk doesn't implement the Add item, which bring up the "Add to home screen" popup window, and Notifications item in onCreateOptionsMenu
and onOptionsItemSelected
.
How to do that like the default home app?
The Home sample in the android sdk doesn't implement the Add item, which bring up the "Add to home screen" popup window, and Notifications item in onCreateOptionsMenu
and onOptionsItemSelected
.
How to do that like the default home app?
Whenever I find myself asking "how do they do that?" then I go over to https://android.googlesource.com and look and see. Or (more frequently) I google search my question with site:https://android.googlesource.com
appended to the query.
Anyway, here is how the android launcher does it, or close enough for you to trace to the implementation you're looking for (I didn't catch exactly what you're trying to do).