Note that there are some explanatory texts on larger screens.

plurals
  1. POSettings option on click of Menu button - Launcher
    primarykey
    data
    text
    <p>I am successfully making a launcher, but i need to add another settings option. When i click on the menu button it will show. When you click on it, it goes to an activity.</p> <p>For example. In the default launcher, when you hit menu on a home screen you can add, or set a wallpaper, ect. When you click on wallpaper it takes you to change the wallpaper.</p> <p>What i need to do is create a button like that under the menu, and when it is clicked take me to an activity.</p> <hr> <h2>Here is part of my Launcher.Java...</h2> <pre><code> private static final int MENU_GROUP_ADD = 1; private static final int MENU_ADD = Menu.FIRST + 1; private static final int MENU_WALLPAPER_SETTINGS = MENU_ADD + 1; private static final int MENU_MYHOME_SETTINGS = MENU_WALLPAPER_SETTINGS + 1; private static final int MENU_SEARCH = MENU_MYHOME_SETTINGS + 1; private static final int MENU_STYLES = MENU_SEARCH + 1; private static final int MENU_SETTINGS = MENU_STYLES + 1; </code></pre> <hr> <h2>And here is the other part</h2> <pre><code>super.onCreateOptionsMenu(menu); menu.add(MENU_GROUP_ADD, MENU_ADD, 0, R.string.menu_add).setIcon( android.R.drawable.ic_menu_add).setAlphabeticShortcut('A'); menu.add(0, MENU_WALLPAPER_SETTINGS, 0, R.string.menu_wallpaper).setIcon( android.R.drawable.ic_menu_gallery).setAlphabeticShortcut('W'); menu.add(0, MENU_MYHOME_SETTINGS, 0, R.string.myhome_settings).setIcon( R.drawable.ic_menu_customize); menu.add(0, MENU_SEARCH, 0, R.string.menu_search).setIcon( android.R.drawable.ic_search_category_default).setAlphabeticShortcut( SearchManager.MENU_KEY); menu.add(0, MENU_STYLES, 0, R.string.menu_customize).setIcon( R.drawable.ic_menu_customize); </code></pre> <hr> <p>Any suggestions??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload