我有三个文件:
file1
one
uno
un
1
文件2
two
dos
2
文件3 3
这是我的剧本:
#!/system/bin/bash
list=($(cat /sdcard/lst1 ))
list2=($(cat /sdcard/lst2 ))
list3=($(cat /sdcard/lst3 ))
for i in ${!list[*]} ; do
echo -e "${list[$i]} ${list2[$i]}
${list3[$i]} ; done
这是我得到的输出:
one two three
uno dos tres
un 2 trois
如果是在/sdcard上,有没有办法在开机后自动启动安卓应用程序
好吧,可能是BroadcastReceiver写的。但是哪种行为才是正确的呢?
ACTION_BOOT_COMPLETED - does not work if it is on the /sdcard (documented)
ACTION_MEDIA_MOUNTED - does not work if it is on the /sdcard (which is undocumented)
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE - does not work, I do not kn
在我的安卓应用程序中,我正在使用Quickblox API下载视频文件,成功下载后,我将获得InputStream对象形式的文件内容,使用该InputStream对象,我想创建支持安卓的视频文件并将其存储到SDCard上,但我不知道如何使用InputStream对象创建视频文件。请看下面的代码,我在这里得到了InputStream对象。
QBContent.downloadFileTask(fileId, new QBEntityCallbackImpl<InputStream>()
{
@Override
public