I am trying to develop an App in Titanium Appcelerator all I need in that app is that it should always run in the background and collect current GPS coordinates and send it to a server. All I want the App to permanently remember is IP and PORT Number of the server. If the mobile is switched off and then on again IP and Port should be there. I think For this two variables only I should not use a Database. Is their any Other way to store IP and Port Number permanently other than using a database ?
Thank you
You can Try :-
// Set one time. this is work just like Database
Titanium.App.Properties.setString("ip",<value>);
// Get any where
Titanium.App.Properties.getString("ip","value");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With