3
votes
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

Statistics

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

Visits by Source

User Actions

Users who voted for this posting

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

Community Links

Torry Firebird News

Sponsor

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