我在使用ExpansionDownloader for Android / Xamarin时遇到了问题。我想在sd \ Android \ obb \ SampleApp.SampleApp \目录文件中复制文件:
并用
阅读var expansionFile = ApkExpansionSupport.GetApkExpansionZipFile(this, 1, 0);
Log.WriteLine(LogPriority.Debug, "Expansion files", "Files found: " + expansionFile.GetAllEntries().Count());
这是我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="SampleApp.SampleApp" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
<uses-sdk />
<application android:label="SampleApp" android:icon="@drawable/Icon"></application>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.DELETE_CACHE_FILES" />
<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
<uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</manifest>
问题是在LogCat中我得到了有关0个文件的信息。也许我做错了什么或错过了重要的事情?
答案 0 :(得分:1)
好的我弄清楚发生了什么: