• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






、Happiness↘.

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2014年5月2日

设置铃声
摘要: 1、权限2、代码public void setPhoneMusic() { //设置当前文件存放音乐为手机铃声 Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); //打开系统... 阅读全文
posted @ 2014-05-02 20:07 、Happiness↘. 阅读(151) 评论(0) 推荐(0)
 
读取网络数据流
摘要: public static void readAsFile(InputStream inStream, File file) throws Exception {//读取网络InputStream FileOutputStream outStream = new FileOutput... 阅读全文
posted @ 2014-05-02 20:05 、Happiness↘. 阅读(272) 评论(0) 推荐(0)
 
获取网址链接 得到数据流
摘要: public InputStream getConnect(String uri) { //获取网址链接,得到数据流 InputStream is=null; try { URL myUrl=new URL(uri); //获取UR... 阅读全文
posted @ 2014-05-02 20:04 、Happiness↘. 阅读(198) 评论(0) 推荐(0)