Thanks for the response.. I do not want any hard code. As per my requirement, the App should already read the server details( IP Adress/Port No) at the first time run also. Later the user can edit activity_preferences.xml to change the IP address/Port if required..
Thanks, DK On Apr 30, 12:19 pm, Michael Banzon <[email protected]> wrote: > Why can't you create the preferencefileas the very first thing when > running the app the first time? > > Or maybe hard code the values? > > > > > > > > > > On Mon, Apr 30, 2012 at 6:16 PM, dillipk <[email protected]> wrote: > > Hi, > > My App should read the properties like (IP address/Port No..etc) > > fromCONFIGorPropertyfilethat already exists in the device and > > connect to the server based on the info. This way, anybody can edit > > the IP Address/Port no info available in thepropertyfile. > > > - Is it possible to package the pre-configuredpropertyfileas part > > of APKfileso that it can create in the device during it's > > installation? > > > I read through SharePreferences android provides.. but as I > > understood, the sharedpereferences can ONLY be created/accessed when > > the App is running. > > > - Is there anyway, the App can create the activity_preferences.xml > > during it's installation, so that, the Properties would already be > > available when you run the App.? > > > OR, what is the best approach for this requirement? > > > Thanks in advance.. > > > Regards, > > DK > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Michael Banzonhttp://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

