//The 'filesDir' of this APP
File filesDir = this.cordova.getActivity().getFilesDir();
//The AssetManager
AssetManager asm = this.cordova.getActivity().getApplicationContext().getAssets();
//Read the user.properties from assets/www/conf folder.
InputStream userInstream = null;
try {
userInstream = asm.open("www/conf/users.properties");
Files.copy(userInstream, Paths.get(filesDir.getAbsolutePath()+File.separator + "users.properties"));
}catch (Exception e){
Log.e(LOGTAG,"Read users.properties from assets/www/conf failed.");
}
//Check the config file is exist.
File confFile = new File(filesDir.getAbsolutePath()+File.separator + "users.properties");
if(!confFile.exists()){
Log.e(LOGTAG,"users.properties does not exsit.");
}