Java Code Examples for com.umeng.update.UpdateStatus#NoneWifi

The following examples show how to use com.umeng.update.UpdateStatus#NoneWifi . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AboutFragment.java    From AppPlus with MIT License 6 votes vote down vote up
@Override
public void onUpdateReturned(int updateStatus, UpdateResponse updateInfo) {
    switch (updateStatus) {
        case UpdateStatus.Yes: // has update
            UmengUpdateAgent.showUpdateDialog(mContext, updateInfo);
            break;
        case UpdateStatus.No: // has no update
            DialogUtil.showSinglePointDialog(mContext,mContext.getString(R.string.update_point_no_update));
            break;
        case UpdateStatus.NoneWifi: // none wifi
            DialogUtil.showSinglePointDialog(mContext, mContext.getString(R.string.update_point_no_wifi));
            break;
        case UpdateStatus.Timeout: // time out
            DialogUtil.showSinglePointDialog(mContext, mContext.getString(R.string.update_point_time_out));
            break;
    }
}
 
Example 2
Source File: Configuration.java    From iSCAU-Android with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void onUpdateReturned(int updateStatus,UpdateResponse updateInfo) {
    switch (updateStatus) {
        case UpdateStatus.Yes: // has update
            UmengUpdateAgent.showUpdateDialog(getSherlockActivity(), updateInfo);
            break;
        case UpdateStatus.No: // has no update
            Toast.makeText(getSherlockActivity(), "没有更新", Toast.LENGTH_SHORT).show();
            break;
        case UpdateStatus.NoneWifi: // none wifi
            Toast.makeText(getSherlockActivity(), "没有wifi连接, 只在wifi下更新", Toast.LENGTH_SHORT).show();
            break;
        case UpdateStatus.Timeout: // time out
            Toast.makeText(getSherlockActivity(), "超时", Toast.LENGTH_SHORT).show();
            break;
    }
}