小编amc*_*mcc的帖子

Android Dropbox SDK清单设置

我在getSession().startAuthentication()为Android Dropbox SDK 打电话时遇到此错误的任何想法?

: FATAL EXCEPTION: main
: java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.client2.android.AuthActivity with the scheme: db-CHANGE_ME
Run Code Online (Sandbox Code Playgroud)

然而,我的AndroidManifest.xml <Application></Application>在入门说明中按照指示进行了以下操作.

<activity
  android:name="com.dropbox.client2.android.AuthActivity"
  android:launchMode="singleTask"
  android:configChanges="orientation|keyboard">
  <intent-filter>
    <!-- Change this to be db- followed by your app key -->
    <data android:scheme="db-MYKEYISHERE" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE"/>
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)

android dropbox android-manifest

6
推荐指数
2
解决办法
2580
查看次数

plist XML字符串到NSMutableDictionary

我在plist文件(iOS)中存储了一些字典,这些字典随后被加密.在读取文件内容并解密后,我将以字符串形式返回文件的xml内容:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>password</key>
    <string>apassword</string>
    <key>username</key>
    <string>ausername</string>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)

我知道这些方法:dictionaryWithContentsOfFile:(NSString *)dictionaryWithContentsOfFile:(NSURL *)从这种类型的数据创建一个字典,但我很惊讶没有这样的dictionaryWithXML:(NSString *)

没有将这些数据写入文件然后阅读它,我试图避免的东西,因为它只是过度,有什么明显的解决方法,我缺少?

objective-c nsdictionary plist foundation

3
推荐指数
1
解决办法
2270
查看次数