本文整理汇总了Java中com.facebook.android.DialogError类的典型用法代码示例。如果您正苦于以下问题:Java DialogError类的具体用法?Java DialogError怎么用?Java DialogError使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DialogError类属于com.facebook.android包,在下文中一共展示了DialogError类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError error) {
SessionEvents.onLoginError(error.getMessage(),SessionListenerType.FACEBOOK_SESSION_LISTENER);
}
开发者ID:Nikhil-Nandagopal,项目名称:Socialite,代码行数:4,代码来源:FacebookConnector.java
示例2: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError e) {
Log.d(TAG, "other error");
this.fba.cb.error("Dialog error: " + e.getMessage());
}
开发者ID:liufeiit,项目名称:itmarry,代码行数:5,代码来源:ConnectPlugin.java
示例3: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError error) {
showToast("Authentication with Facebook failed!");
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:4,代码来源:ShareFacebookActivity.java
示例4: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
@Override
public void onError(DialogError error) {
SessionEvents.onLoginError(error.getMessage());
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:5,代码来源:LoginActivity.java
示例5: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError e) {
//ALog.m();
showErrorAndFinish();
}
开发者ID:skylight1,项目名称:SevenWonders,代码行数:5,代码来源:FacebookApplicationPost.java
示例6: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError error) {
//ALog.m();
showErrorAndFinish();
}
开发者ID:skylight1,项目名称:SevenWonders,代码行数:6,代码来源:LoginAndGetPermissions.java
示例7: onCreate
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
String[] permissions = {"offline_access", "read_stream", "user_events", "friends_events", "friends_status", "user_status", "friends_photos", "user_photos", "friends_about_me", "friends_website", "email", "friends_birthday", "friends_location"};
FacebookUtil.facebook.authorize(AuthorizationActivity.this, permissions, Facebook.FORCE_DIALOG_AUTH, new DialogListener() {
@Override
public void onComplete(Bundle values) {
FacebookUtil.accessToken = FacebookUtil.facebook.getAccessToken();
Log.i("Expires", String.valueOf(FacebookUtil.facebook.getAccessExpires()));;
AccountManager am = AccountManager.get(AuthorizationActivity.this);
Account account = am.getAccountsByType(AuthorizationActivity.this.getString(R.string.ACCOUNT_TYPE))[0];
am.setPassword(account, FacebookUtil.facebook.getAccessToken());
SharedPreferences prefs = AuthorizationActivity.this.getSharedPreferences(AuthorizationActivity.this.getPackageName() + "_preferences", MODE_MULTI_PROCESS);
SharedPreferences.Editor editor = prefs.edit();
editor.putInt("permission_level", FacebookUtil.PERMISSION_LEVEL);
editor.putLong("access_expires", FacebookUtil.facebook.getAccessExpires());
editor.commit();
ContentResolver.requestSync(account, ContactsContract.AUTHORITY, new Bundle());
ContentResolver.requestSync(account, CalendarContract.AUTHORITY, new Bundle());
// Log.i(TAG, ContentResolver.);
//Log.i(TAG, "Calendar :" + ContentResolver.isSyncActive(account, CalendarContract.AUTHORITY));
// Log.i(TAG, "Contacts :" + ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY));
FacebookUtil.isExtendingToken = false;
AuthorizationActivity.this.finish();
}
@Override
public void onFacebookError(FacebookError error) {
Log.i(TAG, "fberror");
AuthorizationActivity.this.finish();
}
@Override
public void onError(DialogError e) {
Log.i(TAG, "error");
AuthorizationActivity.this.finish();
}
@Override
public void onCancel() {
Log.i(TAG, "cancel");
AuthorizationActivity.this.finish();
}
});
}
开发者ID:mots,项目名称:haxsync,代码行数:46,代码来源:AuthorizationActivity.java
示例8: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError e) {
e.printStackTrace();
}
开发者ID:GrioSF,项目名称:facebook-android-sdk,代码行数:4,代码来源:Tests.java
示例9: onError
import com.facebook.android.DialogError; //导入依赖的package包/类
public void onError(DialogError e) {
Log.d(TAG, "other error");
this.fba.error("Dialog error: " + e.getMessage(), this.fba.callbackId);
}
开发者ID:ldarren,项目名称:pico-phonegap-base,代码行数:5,代码来源:ConnectPlugin.java
注:本文中的com.facebook.android.DialogError类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论