iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Crosslight Support,
do have any sample code for using ISharedPreferences and/or PreferenceActivity with Crosslight Android?
Thanks,
Thomas
Please find the attached AndroidPreferenceSample.zip file and download the simple project which implements PreferenceActivity.
In the MainLayout.axml file, a button called SettingsButton is added. The click event handler is defined in the SimpleActivity.cs file using following snippet code.
protected override void OnCreate(global::Android.OS.Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Button settingsButton = this.FindViewById<Button>(Resource.Id.SettingsButton); if (settingsButton != null) { settingsButton.Click += OnSettingsButtonClick; } } private void OnSettingsButtonClick(object sender, System.EventArgs e) { Intent intent = new Intent(this, typeof(SettingsActivity)); this.StartActivity(intent); }
Clicking the SettingsButton will starts the SettingsActivity. In SettingsActivity, the preferences are added by invoking the AddPreferencesFromResource() method. For more detail, please check the SettingsActivity.cs file in the project.
Hope this helps.
Thanks, for the great sample project.
Glad to hear that the sample helps.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname