Preferences
no.ntnu.item.arctis.library.android

Import via SVN
Drop this link into the Arctis View

Description

Provides resources and access to preferences.

The application must provide an Andropid preference file in the folder /res/xml with the name preferences.xml. Within this file, preference values can be declared. These preferences have a key and a default value. To get the current value of the preferences, use the following code: SharedPreferences preferences = getPreferences(); // works in AndroidBlock String s = preferences.getString("key", "default");

Origin

Author:Frank Alexander Kraemer
Provider:NTNU - Department of Telematics
Repository:http://svn.item.ntnu.no/arctis-lib (user= guest, login= guest)

Dependencies

Imported Building Blocks:none
Imported Libraries:none
Required Repositories:none



Parameter Nodes
open

Shows the Android activity so that users can adjust the settings.


External Behavior