2014-01-21 2 views
0

Android를 사용하여 Dropbox API의 예제 응용 프로그램 DBRoulette에 액세스하려고 시도하면 시뮬레이터에서 다음 두 메시지가 표시됩니다. DropBox에 연결 그 다음) - 불행히도 브라우저가 중지되었습니다. 내가 보관에서 APP_KEY, SECRET_KEY있어 , 내 매니페스트 파일은 다음과 같습니다 Dropbox가있는 Android DropBox API 링크가 실패 함 (DBRoulette)

<uses-sdk android:minSdkVersion="19" /> 

<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 

<application android:icon="@drawable/icon" android:label="@string/app_name"> 
    <activity 
    android:name=".DBRoulette" 
    android:label="@string/app_name" 
    android:configChanges="orientation|keyboard"> 
    <intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 
    </activity> 

<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-XXXXXXX" /> 
    <action android:name="android.intent.action.VIEW" /> 
    <category android:name="android.intent.category.BROWSABLE"/> 
    <category android:name="android.intent.category.DEFAULT" /> 
    </intent-filter> 
</activity> 

내 주요 파일이 DBRoulette이며, 예제 응용 프로그램과 동일 :

com.dropbox.android.sample; 
public class DBRoulette extends Activity { 
private static final String TAG = "DBRoulette"; 

/////////////////////////////////////////////////////////////////////////// 
//      Your app-specific settings.      // 
/////////////////////////////////////////////////////////////////////////// 

// Replace this with your app key and secret assigned by Dropbox. 
// Note that this is a really insecure way to do this, and you shouldn't 
// ship code which contains your key & secret in such an obvious way. 
// Obfuscation is good. 
final static private String APP_KEY = "xxxxxx"; 
final static private String APP_SECRET = "xxxx"; 
.... 

내가 사용하고 모든 항아리 제안 : dropbox-api, http-mime, json-simple 및 android 4.4 버전. Dropbox에 액세스 할 수없는 이유는 무엇입니까? 그것은 시뮬레이터 때문입니까?

답변

0

전화가 아닌 시뮬레이터에서 실행 되었기 때문에 작동하지 않았습니다. 전화로 사용해도 문제가 없습니다.