[First written by Steve Guo, please keep the mark if forwarding.]

As current music and media player only play files on /sdcard, if you don't have a real SD card, you can use the following hacked method to enable playing without SD card.

First, of course, you need to make sure /sdcard does existed on the rootfs.

Pay attention: If you are using NFS, you must do the following command in the beginning:

$cd /sdcard $ls -l

Then you can enable it through:

$setprop EXTERNAL_STORAGE_STATE mounted $am broadcast -a android.intent.action.MEDIA_MOUNTED --ez read-only false -d file:///sdcard

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Jetpack-Navigation 初见
  2. android 常用 属性
  3. Android View的工作原理
  4. android 电容屏
  5. Android(安卓)缓存管理和LRU 算法
  6. Android Handler机制5之Message简介与消
  7. android 通过sheme打开activity
  8. Android 的Margin和Padding属性以及支持
  9. Android中RemoteViews的实现
  10. Android Switch属性全记录