app.server = http://10.0.2.2:9081/
How do I get to the app.server value ?
seeking code
------ Solution - -------------------------------------------
used in the activity The following code gets the
InputStream input = getResources().openRawResource(R.raw.application);
BufferedReader read = new BufferedReader(new InputStreamReader(input));
String line = "";
while ((line = read.readLine()) != null) {
if (line.contains("app.server")) {
String url = line.split("=")[1];
System.out.println(url);
}
}
------ For reference only ----------------------------------- ----
Thank you !
没有评论:
发表评论