tags:

views:

75

answers:

1

The Home sample in the android sdk doesn't implement the Add item, which bring up the "Add to home screen" popup window, and Notifivcations item in onCreateOptionsMenu and onOptionsItemSelected.

How to do that like the default home?

Thanks!

+1  A: 

Whenever I find myself asking "how do they do that?" then I go over to http://android.git.kernel.org and look and see. Or (more frequently) I google search my question with "site:android.git.kernel.org" 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).

Segfault