如何获取Android<共享存储>从Qt的路径? [英] How to get the android <shared-storage> path from Qt?

查看:620
本文介绍了如何获取Android<共享存储>从Qt的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经上传一个单独的扩展文件与我在谷歌的应用程序(Qt中开发)游戏控制台。这是一个简单的RCC文件。我有文件的名称上传(它显示了谷歌控制台页)之后。但我似乎无法找到Ø如何得到共享存储路径(如前所述)Android的文档页面上的任何信息(的 http://developer.android.com/google/play/expansion-files.html#StorageLocation )。

I've had to upload a separate expansion file with my app (developed in Qt) in Google Play console. It's a simple rcc file. I have the name of file after the upload (it shows on the google console page). But I can't seem to find any info o how to get the shared-storage path (as mentioned) on the Android docs page (http://developer.android.com/google/play/expansion-files.html#StorageLocation).

我也碰到过这个问题(如何添加Android的扩展文件使用Qt ),用户似乎已经解决了这个问题,但并没有就如何获得共享存储路径的任何细节。

I did come across this question (How to add android expansion files using Qt) where the user seems to have solved the issue but doesn't give any details on how to get the shared-storage path.

推荐答案

这code可以帮助你。

This code may be help you.

QStringList systemEnvironment = QProcess::systemEnvironment();

寻找


  1. EXTERNAL_STORAG​​E = /存储/模拟/遗留

  2. EXTERNAL_ADD_STORAG​​E = /存储/ external_SD

  3. SECONDARY_STORAG​​E = /存储/ external_SD

  4. ...

这篇关于如何获取Android<共享存储>从Qt的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆