ITKeyword,专注技术干货聚合推荐

注册 | 登录

解决android sdcard - Arduino SD card and Excel file

itPublisher 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

推荐:android download file and save to sdCard

方法一:    public void DownloadFromUrl(String DownloadUrl, String fileName) {            try {                    File root = android.os.Environment.

I have an Arduino SD card, it saves the data from IMU sensor into a text file. Is that possible to let the SD card saves this data into an excel file directly?

arduino android-sdcard
asked Apr 1 '16 at 19:12 Hend 8 5

 | 

1 Answers
1

解决方法

You'd need to know the binary format of an excel file for this. You can however, create the file as a *.csv, or a simple *.txt file.

For each column, separate data with a comma. And Separate each row with a new line.

In Excel you can import the text file and specify how it is delimited. However if you use a csv file, you can simply 'open with' excel (or associate the extension with excel) and it will open the data automatically.

推荐:android listen app package change, contact change, sdcard file change

Android监听应用程序安装和卸载 http://hi.baidu.com/crazy01wind/blog/item/c499c9dbe431f4cdb7fd480b.html android监听文件和目录的创建删除移动等事件 http:/

If you run python on your PC (or can), there is a nice script here witch can bulk convert the csv files to excel workbooks: https://superuser.com/a/301451/461279


edited Mar 20 at 10:18 Community ♦ 1 1 answered Apr 2 '16 at 0:06 Chris A 1,142 2 7 16 1   Voting up, @Chris! It makes no sense to write an excel binary file on Arduino, current xlsx also needs zip. CSV is the way to go. –  Gee Bee Apr 2 '16 at 0:24

 | 

推荐:android sdcard Parent directory of file is not wirtable

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>已经配置好了,用adb shell进入系统也可以对sdcard新建文件 可是用程序file.mkdi


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。