Take the 2-minute tour ×  if i am using ksoap2 to call a web
service, how can i store the needed preference on android?  i
have the following attributes required by ksoap2:  String
methodname ; String url ; String namespace; String action;  i
would like to have the values of these attributes stored in a
sort of preference on android, so whenever the user runs the
application they get loaded.  I am very new to this kind of
stuff, and would appreciate your help  thank you  share|improve
this question  4 Answers 4  up vote 0 down vote accepted  I'm
assuming you want the properties defined in a file in your
project, and load that on startup. If so.. then:  1) Create an
asset/ folder in your project root.  2) Define a properties
file, for example ws.properties, and save it in the asset
folder. The format must be like the following:   3) Read in the
properties file somewhere in your code, something like this:
Resources resources = this.getResources(); AssetManager
assetManager = resources.getAssets();  try {     I