Android Open Source - YahooWeather W X Entry Activity






From Project

Back to project page YahooWeather.

License

The source code is released under:

GNU General Public License

If you think the Android project YahooWeather listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * ????:http://www.ShareSDK.cn//  ww w.  j  a  va  2  s  .c  o m
 * ?????QQ: 4006852216
 * ????:ShareSDK   ??????????????????????????????????????????????????????????????????????????????24??????????
 *
 * Copyright (c) 2013? ShareSDK.cn. All rights reserved.
 */

package cn.sharesdk.demo.wxapi;

import android.content.Intent;
import android.widget.Toast;
import cn.sharesdk.wechat.utils.WXAppExtendObject;
import cn.sharesdk.wechat.utils.WXMediaMessage;
import cn.sharesdk.wechat.utils.WechatHandlerActivity;

/** ???????activity?? */
public class WXEntryActivity extends WechatHandlerActivity {

  /**
   * ?????????????????????app message
   * <p>
   * ????????????????????????????????????????
   * ??????????????????????Demo??????????????????
   * ????????????????????????
   */
  public void onGetMessageFromWXReq(WXMediaMessage msg) {
    Intent iLaunchMyself = getPackageManager().getLaunchIntentForPackage(getPackageName());
    startActivity(iLaunchMyself);
  }

  /**
   * ???????????????????????
   * <p>
   * ??????????????????????????????demo?wechatpage??????
   * ????????????????????????????????????????
   * ????????????????????????????????demo????
   * ???
   * <p>
   * ?Demo????????????????????????????????????????Toast
   */
  public void onShowMessageFromWXReq(WXMediaMessage msg) {
    if (msg != null && msg.mediaObject != null
        && (msg.mediaObject instanceof WXAppExtendObject)) {
      WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
      Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
    }
  }

}




Java Source Code List

cn.sharesdk.demo.wxapi.WXEntryActivity.java
cn.sharesdk.onekeyshare.CustomerLogo.java
cn.sharesdk.onekeyshare.EditPage.java
cn.sharesdk.onekeyshare.FollowList.java
cn.sharesdk.onekeyshare.OnekeyShare.java
cn.sharesdk.onekeyshare.PicViewer.java
cn.sharesdk.onekeyshare.PlatformGridView.java
cn.sharesdk.onekeyshare.Shake2Share.java
cn.sharesdk.onekeyshare.ShareContentCustomizeCallback.java
cn.sharesdk.onekeyshare.ShareCore.java
com.imlongluo.weather.MainActivity.java
com.imlongluo.weather.WeatherApplication.java
com.imlongluo.weather.apis.AsciiUtils.java
com.imlongluo.weather.apis.ImageUtils.java
com.imlongluo.weather.apis.NetworkUtils.java
com.imlongluo.weather.apis.UserLocationUtils.java
com.imlongluo.weather.apis.WOEIDInfo.java
com.imlongluo.weather.apis.WOEIDUtils.java
com.imlongluo.weather.apis.WeatherInfo.java
com.imlongluo.weather.apis.YahooWeatherConsts.java
com.imlongluo.weather.apis.YahooWeatherExceptionListener.java
com.imlongluo.weather.apis.YahooWeatherInfoListener.java
com.imlongluo.weather.apis.YahooWeatherLog.java
com.imlongluo.weather.apis.YahooWeather.java
com.imlongluo.weather.lbs.LocationGetter.java
com.imlongluo.weather.lbs.LocationManagerActivity.java
com.imlongluo.weather.settings.SettingsActivity.java
com.imlongluo.weather.share.ShareActivity.java
com.imlongluo.weather.utils.Constants.java
com.imlongluo.weather.utils.Utils.java