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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.comappended 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).