1 获取 AssetManager
AssetManager assetManager = context.getApplicationContext().getAssets();
2 获取流
String confFile = "abc.properties";
Properties conf = new Properties();
InputStream stream = assetManager.open(confFile);
conf.load(new InputStreamReader(stream, "utf-8"));
3 属性值键值对获取
String key1Value = conf.getProperty("key1");
音频文件 一般放在 res/raw下
1 获取音频管理者
AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
2 MediaPlayer
MediaPlayer player = MediaPlayer.create(context,R.raw.sound1);
player.setLooping(false);//不循环播放
player.start();//开始播放
player.release();//在合适的地方调用 释放资源