Home Using Application Config file in android
Reply: 0

Using Application Config file in android

Ashish
1#
Ashish Published in 2017-09-14 03:57:10Z

I am porting a java project to android. It has a jar library that uses a config file (xml). For the java application, this xml has to be placed with the application jar or in the folder where the jar library is present.

When using it in Android Studio, I am unable to find where should I place the XML file. This xml is read by the jar library automatically, I don't have to write any code to specifically read any values from the jar.

I tried placing the jar with MainActivity.java file and also in the "libs" folder where the jar library is present. But it always shows the error:

Config file not found

I am using Android Studio 2.3.3

What am I doing wrong?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300173 second(s) , Gzip On .

© 2016 Powered by cudou.com design MATCHINFO