Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static String getProperty(Context context, String key) { try { Properties props = new Properties(); InputStream input = context.getAssets().open("config.properties"); if (input != null) { props.load(input); return props.getProperty(key); } } catch (IOException e) { e.printStackTrace(); } return ""; } }