android


Sys_Prop_Setting_version parameter in Android.Provider.Settings.System Class


I want a parameter from Sys_Prop_Setting_version in android which gives information about the secure system setting, containing system preferences that applications can read but are not allowed to write. I searched this parameter in Android.Provider.Settings.System class, I didn't find it, but what I found is that this parameter is present in xamarin -API but not present in android-api I want this parameter how should I get it? what's the difference in these API's? for my application, I am using android-API marshmallow.
I searched this parameter in Android.Provider.Settings.System class, I didn't find it, but what I found is that this parameter is present in xamarin -API but not present in android-api I want this parameter how should I get it?
This string Sys_Prop_Setting_version is removed from API level 23 to 24, you can checked the following documentations:
Android API Differences Report.
Class android.provider.Settings.Global.
Class android.provider.Settings.Secure.
Class android.provider.Settings.System.
what's the difference in these API's? for my application, I am using android-API marshmallow.
This Sys_Prop_Setting_version was presented in three different tables and the SysPropSettingVersion Field in Xamarin is the same one as the one in android.provider.Settings.Global table. Usually apis in Xamarin.Android are like the encapsulations of native android apis, they are the same, so this string field can also be found in Android.Provider.Settings.Secure and Android.Provider.Settings.System classes.
Since you're using android api marshmallow, it should be available. But I tested the code on android 6.0 device:
var sysprop = Android.Provider.Settings.Global.SysPropSettingVersion;
var settings = Android.Provider.Settings.Global.GetString(ApplicationContext.ContentResolver, sysprop);
It returns a null by my side, and I also tested:
Android.Provider.Settings.Secure.GetString(ApplicationContext.ContentResolver, Android.Provider.Settings.Secure.SysPropSettingVersion); and Android.Provider.Settings.System.GetString(ApplicationContext.ContentResolver, Android.Provider.Settings.System.SysPropSettingVersion);, all returns a null by my side. But if you want to find some other read only values in system secure settings, it works fine, for example:
Android.Provider.Settings.Secure.GetString(ApplicationContext.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
Then I tried to figure out what is this value used for, by checking this document, I found nothing.
It seems that this Sys_Prop_Setting_version was used for getting the android api level of the device(not for sure, I saw some code used this to get OS version), if you want to do this, you can simply code like this:
var version = Android.OS.Build.VERSION.Release;

Related Links

I cannot import BOSHConnection from smack library
Android: State of force killed applications
Service to put mobile on silent at a particular time
MediaPlayer.getCurrentPosition() returns multiples of 2048 instead of current position
Activity is not changing
Pan gesture event handler in Delphi
Why my ActionButton won't appear in my ActionBar
Questions about the LocalDataStore in Parse
How to make a Canvas look the same for all display sizes
Custom textwatcher, lag in swiftkey but not in stock keyboard
Make my button turn more blue on click
How to retrieve more accurate location in Android
Android Switch widget force close
Error -24 Google Play app android
How to convert List<Classname> to String array.
How to avoid TalkBack from reading dismissed fragment

Categories

HOME
rdbms
serialization
soa
pearson-correlation
retrofit2
boto3
qpython
arangodb
drop-down-menu
watson-conversation
pybossa
renjin
gource
eip
magnetic-cards
docx
null-pointer
aws-sdk
wolframalpha
gmm
solrcloud
ag
object-storage
dynamically-generated
has-and-belongs-to-many
8051
paperjs
subclass
openmdao
mql
custom-controls
userdefaults
xbox
python-2.6
dumpbin
wacom
android-gridview
modalviewcontroller
protege4
magento-1.9.2.4
sessionstorage
node-mssql
cin
chef-solo
spring-mvc-test
branching-and-merging
logback-groovy
signal-strength
stylecop
mesosphere
nanoc
textsum
openal
openrasta
wcftestclient
mongotemplate
bluez
posixct
excel-dna
flac
cpu-cache
choice
angular2-testing
hadoop-2.7.2
redbeard-ios
burrows-wheeler-transform
i386
vorpal.js
bizagi
lz77
avisynth
.bash-profile
slash
atoi
vacuum
sha512
mirror
diff3
at-job
cosine-similarity
reflector
menubar
high-resolution
ice-cube
observium
process-explorer
node-blade
css-reset
chart-director
android-sdk-2.3
monotouch.dialog
xcode3.2
extconf.rb
oracle-enterprise-linux
azman
hibernateexception
winmain
xcelsius
lr
tournament
drawtobitmap
msr
cloudfiles
non-clustered-index
addchild
application-verifier
google-wave

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App