本文整理汇总了Java中com.umeng.socialize.PlatformConfig类的典型用法代码示例。如果您正苦于以下问题:Java PlatformConfig类的具体用法?Java PlatformConfig怎么用?Java PlatformConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlatformConfig类属于com.umeng.socialize包,在下文中一共展示了PlatformConfig类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initUmengShare
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
private void initUmengShare() {
PlatformConfig.setWeixin(ConstantValues.WECHAT_ID, ConstantValues.WECHAT_SECRET);
PlatformConfig.setSinaWeibo(ConstantValues.SINA_KEY, ConstantValues.SINA_SECRET);
PlatformConfig.setQQZone(ConstantValues.TENCENT_ID, ConstantValues.TENCENT_SECRET);
Config.REDIRECT_URL = ConstantValues.SINA_REDIRECT_URL;
Config.DEBUG = BuildConfig.DEBUG;
Config.isJumptoAppStore = true;
UMShareAPI.get(appContext);
}
示例2: onCreate
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
instance = this;
Log.i("LinkedME", "onCreate: LinkedMEDemoApp............");
// 初始化SDK
LinkedME.getInstance(this);
if (BuildConfig.DEBUG) {
//设置debug模式下打印LinkedME日志
LinkedME.getInstance().setDebug();
}
// 设置是否开启自动跳转指定页面,默认为true
// 若在此处设置为false,请务必在配置Uri scheme的Activity页面的onResume()方法中,
// 重新设置为true,否则将禁止开启自动跳转指定页面功能
LinkedME.getInstance().setImmediate(false);
//设置处理跳转逻辑的中转页
LinkedME.getInstance().setHandleActivity(MiddleActivity.class.getName());
//友盟社会化分享
{
//微信
PlatformConfig.setWeixin("wx6fc47eae6872f04c", "d4624c36b6795d1d99dcf0547af5443d");
//新浪微博
PlatformConfig.setSinaWeibo("2929366075", "b84a93ea3d2b89f04559eddb5663c809");
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
CustomActivityLifeCycleObserver activityLifeCycleObserver = new CustomActivityLifeCycleObserver();
unregisterActivityLifecycleCallbacks(activityLifeCycleObserver);
registerActivityLifecycleCallbacks(activityLifeCycleObserver);
}
}
示例3: onCreate
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// TODO: 2016/11/7 修改下面的两个参数 第一个appid 第二个appsecret
PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3");
UMShareAPI.get(this);
}
示例4: init
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
private void init(JSONArray args, CallbackContext callbackContext) {
PlatformConfig.setWeixin("wxb14a21c9f95a5078", "af5039d872b7a3b555c74963d7c04b0c");
//微信 appid appsecret
PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad");
//新浪微博 appkey appsecret
PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");
callbackContext.success();
}
示例5: initUmengShare
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
public static void initUmengShare() {
//微信 appid appsecret
// PlatformConfig.setWeixin("wx43881f3372d0a832", "f0a59af4fa6b7381af44ffb45bbe62f3");
PlatformConfig.setTwitter("W7dkMSuiGFzCrfETuri3giEov", "Wp93a4FFrCFlzhMiwXBy7QKX9KjhgCbhgrHEz8QCsqGe4pg5Sv");
// PlatformConfig.setTwitter("739753776953712640", "koX7vp9UBAbekl2xPBEhHy5aYdaERxdgHtPQgdHfLA8tk");
//Twitter appid appkey
}
示例6: onCreate
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
@Override
public void onCreate() {
Fresco.initialize(this);
super.onCreate();
sApp = this;
sp = this.getSharedPreferences("IOT", Context.MODE_PRIVATE);
loginState = sp.getBoolean("loginState", false);
firstUseState = sp.getBoolean("firstUseState", true);
// MobclickAgent.setDebugMode(true);
FacebookSdk.sdkInitialize(getApplicationContext());
PlatformConfig.setTwitter("hDpph8vR0zZgnXCH7XStcmu8Z", "E8qVkQUVjOmhrS0OPvKllX6HFaEqnMJeu9CpRpVQY12VpzAaE9");
init();
ShareSDK.initSDK(this);
getIpAddress();
}
示例7: setKeySecretWeixin
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
public static void setKeySecretWeixin(String key,String secret){
PlatformConfig.setWeixin(key,secret);
}
示例8: setKeySecretQQ
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
public static void setKeySecretQQ(String key,String secret){
PlatformConfig.setQQZone(key,secret);
}
示例9: setKeySecretSina
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
public static void setKeySecretSina(String key,String secret){
PlatformConfig.setSinaWeibo(key,secret);
}
示例10: initUM
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
public void initUM() {
PlatformConfig.setWeixin("wxfa08f4fbfeb2c122", "b6eb8cbf8cda7bbf6b7bf1f7efebf3c7");
PlatformConfig.setSinaWeibo("2393738350", "980d3e98181ecc9f5845fb757fa0136f", "http://www.mob.com");
PlatformConfig.setQQZone("1106321144", "1sG8QGp1Vo2dZ0Mw");
// PlatformConfig.setAlipay("2015111700822536");
}
示例11: onCreate
import com.umeng.socialize.PlatformConfig; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// 在主进程设置信鸽相关的内容
if (isMainProcess()) {
Log.i(tag,"在主进程设置信鸽相关的内容");
// 为保证弹出通知前一定调用本方法,需要在application的onCreate注册
// 收到通知时,会调用本回调函数。
// 相当于这个回调会拦截在信鸽的弹出通知之前被截取
// 一般上针对需要获取通知内容、标题,设置通知点击的跳转逻辑等等
XGPushManager.setNotifactionCallback(
new XGPushNotifactionCallback() {
@Override
public void handleNotify(XGNotifaction xGNotifaction) {
Log.i(tag, "处理信鸽通知:" + xGNotifaction);
// 获取标签、内容、自定义内容
String title = xGNotifaction.getTitle();
String content = xGNotifaction.getContent();
String customContent = xGNotifaction.getCustomContent();
// 其它的处理
// 如果还要弹出通知,可直接调用以下代码或自己创建Notifaction,否则,本通知将不会弹出在通知栏中。
xGNotifaction.doNotify();
}
}
);
}
//通过反射机制替换系统Monospace字体
AbFontsOverride.setDefaultFont(this, "MONOSPACE", "yahei.ttf");
AbAppConfig.UI_WIDTH = 750;
AbAppConfig.UI_HEIGHT = 1334;
sScale = getResources().getDisplayMetrics().density;
//微信 appid appsecret
PlatformConfig.setWeixin("wx747d053fa471eb15", "95072c38637c0dc19256cc968165ff6a");
//新浪微博 appkey appsecret
PlatformConfig.setSinaWeibo("", "");
// QQ和Qzone appid appkey
PlatformConfig.setQQZone("1105134763", "rexsau2NHZYARCJw");
}