摘要:
(一)private MediaPlayer mediaplayer =null;mediaplayer = MediaPlayer.create(Player.this,Uri.parse("file://"+path)); //Player是现在这个activity,path是路径mediaplayer.start(); //开始播放mediaplayer.pause(); //暂定mediaplayer.stop(); //停止mediaplayer.release(); //释放资源path的获取: String SDCardRoot = Environment.. 阅读全文
摘要:
List: 存储各种数据类型的库,可以是List<HashMap<String,object>> list = new ArrayList<HashMap<String,objet>>; 也可以是List<String> list = new ArrayList<String>; 添加数据:list.add(xxx);HashMap: 存储键值对数据,我觉得是一个键值对数组存储器, HashMap<String,object> map = new HashMap<String,object>; ma 阅读全文