Vote UpVote

Setting Android Settings

The PodCast at Delphi.org – On the Android platform everything that is accessible via the Settings app is also accessible to your app. You just need to add the uses permissionĀ WRITE_SETTINGSĀ to the manifest. Here is a simple Delphi XE5 example for changing the screen timeout. First you need the following in your uses clause: Androidapi.JNI.Provider, // JSettings_SystemClass FMX.Helpers.Android; // SharedActivityContext Here is the code to read and set the Screen Off Timeout: function GetScreenOffTimeout: Integer; begin Result := TJSettings_System.JavaClass.getInt( SharedActivityContext.getContentResolver, ...
Favorite? Off-Topic? Jim McKeeth @ 2014-03-03 23:53


Visits: 659
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Kyle A. Miller
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)