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

Android edittext style to show vertical divider
Displaying a notification from a wearable app
GCM IntentService how to display a pop up on notification receive
2 Spinner with different style in same project
My App not loading Google map
How to launch an app using a deeplink in android
Black webview onResume
Can't insert data into db sqLite
Little bit complexed condition SELECT in SQLite 3.7.12 [closed]
How does a remote shutter for camera work on Android/iOS?
Playing a video after a video in Android's TextureView has issues
Unexplainable Null Pointer Exception in Android
android - onStart and onStop called in weird places
Connect obdsim to Torque(android app) Ubuntu
md5 hash from picture differs in iOS / Android
Chromecast for Android MediaRouter getInstance() causing crash

Categories

HOME
service-worker
uml
fabricjs
google-cloud-platform
delphi-7
phpmyadmin
sitecore
shiro
grafana
entity-framework-core
nsbundle
rom
python-multithreading
azure-container-service
angularfire2
nstableheaderview
elasticsearch-5
appcelerator-studio
why3
naivebayes
do-while
microsoft-dynamics-nav
red5
imagemap
pimcore
monit
beta
nstimer
sqlpackage
nsurl
testbed
vue-chartjs
installscript
wurfl
loading
hackintosh
preloader
logback-groovy
android-checkbox
show-hide
apache-directory
pom.xml
wcftestclient
hammer.js
facebook-pixel
appdomain
rsa-archer-grc
android-instrumentation
slackware
docpad
omxplayer
lrs
macaulay2
installshield-2010
observablecollection
angular-ui-typeahead
ikiwiki
uiactionsheet
sapi
django-urls
rubaxa-sortable
procedural-programming
ssis-data-flow
ignite-ui
vsx
file-not-found
bin
ie8-compatibility-mode
beaker-testing
merb
font-awesome-4.0.0
mysql-error-2013
apache-abdera
preload
wimax
extreme-programming
qtconcurrent
subproject
google-maps-mobile
agility.js
pylucene
drawtobitmap
load-time
globals
hbm2java
pos-for-.net
dsl-tools
visualj#
escrow

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