Android: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
m Created page with 'The ellipsis thing (three vertical dots) is called "Preferences". To create items in the menu, make a folder called xml under res and put preferences.xml in it. [[preferences.xml…'
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
The ellipsis thing (three vertical dots) is called "Preferences".
== Settings ==
To create items in the menu, make a folder called xml under res and put
 
The ellipsis thing (three vertical dots) is called "Settings".
To create items in the settings menu, make a folder called xml under res and put a file in it, eg
preferences.xml in it. [[preferences.xml sample]]
preferences.xml in it. [[preferences.xml sample]]


Add another activity, for example "AppSettings.java".
Do this by adding it to src/ and eclipse will add it to the manifest for you.
It's getting stuck at addPreferenceFromResource(R.xml.preferences);





Revision as of 22:32, 20 September 2012

Settings

The ellipsis thing (three vertical dots) is called "Settings". To create items in the settings menu, make a folder called xml under res and put a file in it, eg preferences.xml in it. preferences.xml sample

Add another activity, for example "AppSettings.java". Do this by adding it to src/ and eclipse will add it to the manifest for you.

It's getting stuck at addPreferenceFromResource(R.xml.preferences);


Samples

AccelerometerPlay

ActionBarCompat

AndroidBeamDemo

ApiDemos

AppNavigation

BackupRestore

BasicGLSurfaceView

BluetoothChat

BluetoothHDP

ContactManager

content_hash.properties

CrossCompatibility

CubeLiveWallpaper

GestureBuilder

HelloEffects

Home

HoneycombGallery

JetBoy

KeyChainDemo

LunarLander

MultiResolution

NotePad

RandomMusicPlayer

RenderScript

SampleSyncAdapter

SearchableDictionary

SipDemo - VOIP phone app, almost works with our PBX. Phone apparently registers but I can't get calls to go. Does show how to use the ellipsis thing though (...).

SkeletonApp

Snake

SoftKeyboard

SpellChecker

Spinner

SpinnerTest

TicTacToeLib

TicTacToeMain

ToyVpn

TtsEngine

USB

VoicemailProviderDemo

VoiceRecognitionService

WeatherListWidget

WidgetPreview

WiFiDirectDemo

Wiktionary

WiktionarySimple

XmlAdapters