How to retain last setting value in windows phone application - windows-phone-8

I have a windows phone application in which two listpicker and one listbox in a form.
When i press a window start button or close the application and again start the application it does not retain the previous filter value can anybody give a solution .
Thanks

Try using the Application Settings of Isolated Storage where you could store and retrieve the values.
Check out this sample:
Store and Retrieve Application Settings Using Isolated Storage
Or else you could preserve the state of the page:
How to preserve and restore page state for Windows Phone 8

In your App.xaml.cs file are two methods: Application_Activate and Application_Deactivate. In the deactivate function you have to store the current filter in the isolated storage, in your activate you have to load them.
In your page.xaml.cs you have to use the loaded informations in the OnNavigatedTo function.

Related

How to change app name in windows phone 8.1?

I am published one app in store in windows phone.now I want to change my published app name.how to change app name,please help me.how to change app name.
my app name is xyz.in
Actually My package name is xyz.in.xyz.in
my package display name is xyz.in
now i am changed package display name is abc.in.
but what happend is whenever I am creating package,after successfully created package the abc.in is changed again xyz.in.what should I do.
In your Package.appxmanifest file under the Packaging tab, change the field Package display name.
You can also have a localized app name by specifying ms-resource:AppDisplayName as the package display name, but then your .resw files need to have a string with the key AppDisplayName and of course you need to reserve the localized app names in your development dashboard on dev.windows.com.
You need to reserve a new name for your app in windows store. Check this link Changing your published app display name. It shows step by step.
Step One:
Reserve your app name in the Windows Store (like #Rohit said). Instructions here.
Step Two:
In Visual Studio (2015) go to Solution Explorer, select your solution, expand Properties, open WMAppManifest.xml, select the Application UI tab, enter the new name in the Display Name field.
Instructions here.

Control/information on call windows phone 8

I'm new to windows phone 8, and I was wondering if there is a way to have control over the calling function. For example, I'd like to be able to stop a call when it is a certain number, and be able to save a list of "spam" numbers in a list. Code isn't necessary, I was just wondering what namespaces to start from.
You cannot do that in the windows phone.

How to get the current version number of a Trigger.io app

Is there a way to get the app config settings from inside my Trigger.io app without having to repeat the values in the parameters module? Specifically, I'm looking to grab the version number.
I've had success (today) with using forge.config.version
Example:
alert(forge.config.version)
This returned the value I had entered into the app's configuration.
It used to be available under forge.config in Javascript, but isn't anymore. For a while it wasn't available under this key (around v. 1.2). It has since reappeared.

Suggestions for developing WebInterface (using Tomcat)?

I am working with TS-7500 (ARM 9) board running Debian Linux (Linux ts7500 2.6.24.4). It is connected to a couple of sensors and is running driver code to talk to these sensors.
Every time the C program starts, it reads a couple of config-parameters from a config-file and starts sensors with those values.
So the task at hand is : presenting a web interface to show/edit these config-parameters to user. The task of the web interface can be summarized in four steps :
Read config-parameters from the config-file and show the current configuration
Allow user to change the configuration
Capture and save the changes to same config-file
These config-parameters could be presented as drop-down menu items or radio-buttons. And I have a linux background script which restarts the C prg when config-file is modified.
I know TS-7500 runs Tomcat. Now please suggest a good way to handle this problem. I have heard about using Servlet and JSPs (am not very familiar with those actually). Which one of them is suitable to generate HTML pages dynamically ? (as I see everytime I need to generate a new HTML page by selecting the current configuration while displaying the page).
Sorry for being very elaborate !
EDIT : Beeps ! No reply ? Come on guyz, is the question not clear ? Or no one has ever faced a similar problem (design problem) ??
The solution would be to use a PHP in addition with Apache web server ! PHP script could be used to
Read the config file and capturing the parameters
Generate a HTML form (by pre-selecting the dropdown menus and radio buttons from the already read parameters)
And capturing the new edits and saving them to config file.
PHP script must be placed in /var/www/ directory of the embedded board. Then from any system, it could be accessed just by keying the IP address of the board and the script name using a simple web browser.

Flex - display welcome screen on first launch with checkbox for never show again

I need to display a "What's new in version x.x" Dialog with a checkbox to allow users to not show the dialog on future launches. Can anyone help me by telling me what I need to look up in the api, or possibly an example?
You can create a file in File.applicationStorageDirectory where you store whether the user checked the checkbox or not.
Every time you run the app, you check if the file exists. If it does not exist, then create it.
Read the value in the file and according to it display the message or not
When the dialog is dismissed, check the value of the checkbox and update the file.
You can even use that file to store other preferences of your application like in this example.