Android: Reading From a Properties File

Copy the file that you want to read from in the assets folder of your project

and use the following code to read

AssetManager am = c.getAssets();
inpStream = am.open(“x.properties”);
props.load(inpStream);

NOTE: I had a properties file and read it into the Java Properties object

Advertisements

One Response to Android: Reading From a Properties File

  1. I do accept as true with all of the concepts
    you’ve offered for your post. They’re very convincing and can certainly work.
    Still, the posts are too quick for starters. May you please lengthen them a bit from next time?
    Thank you for the post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: