当前位置: 首页>>代码示例>>Java>>正文


Java FeedbackAgent.startFeedbackActivity方法代码示例

本文整理汇总了Java中com.umeng.fb.FeedbackAgent.startFeedbackActivity方法的典型用法代码示例。如果您正苦于以下问题:Java FeedbackAgent.startFeedbackActivity方法的具体用法?Java FeedbackAgent.startFeedbackActivity怎么用?Java FeedbackAgent.startFeedbackActivity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.umeng.fb.FeedbackAgent的用法示例。


在下文中一共展示了FeedbackAgent.startFeedbackActivity方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onPreferenceClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public boolean onPreferenceClick(Preference preference) {
	String clickedKey = preference.getKey();
	MobclickAgent.onEvent(this, clickedKey);
	AppLog.i(LOGTAG, "onPreferenceClick clickedKey=" + clickedKey);
	if (getString(R.string.pref_key_feedback).equals(clickedKey)) {
		FeedbackAgent agent = new FeedbackAgent(this);
		agent.startFeedbackActivity();
	} else if (getString(R.string.pref_key_recommend).equals(clickedKey)) {
		YoumiAdProxy.getInstance().showVideoAd(this);
	} else if (getString(R.string.pref_key_about).equals(clickedKey)) {
		showDialog(0);
	} else if (getString(R.string.pref_key_donate).equals(clickedKey)) {
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.setData(Uri.parse("http://droidyue.com/donate/"));
		startActivity(intent);
	}
	return false;
}
 
开发者ID:androidyue,项目名称:Akoi-Translator,代码行数:20,代码来源:MainActivity.java

示例2: onPreferenceTreeClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
    String key = preference.getKey();
    String clearCache = getResources().getString(R.string.setting_key_clear_cache);
    String postback = getResources().getString(R.string.setting_key_post_back);
    String checkUpdate = getResources().getString(R.string.setting_key_check_update);

    if (key == clearCache){
        //clear cache
        biz.clearCache();
        Toast.makeText(getActivity(),getResources().getText(R.string.delete_success),Toast.LENGTH_LONG).show();
        return true;
    }else if (key == postback){
        FeedbackAgent agent = new FeedbackAgent(getActivity());
        agent.setWelcomeInfo(getActivity().getResources().getString(R.string.welcome_string));
        agent.startFeedbackActivity();
        return true;
    }else if (key == checkUpdate){
        UmengUpdateAgent.forceUpdate(getActivity());
        return true;
    }
    return super.onPreferenceTreeClick(preferenceScreen, preference);

}
 
开发者ID:nickalc,项目名称:csdn-master,代码行数:25,代码来源:SettingFragment.java

示例3: buttonClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
public void buttonClick(View view) {
    switch (view.getId()) {
        case R.id.gradeButton:
            Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + "com.deng.flashingmath"));
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent);
            break;
        case R.id.contactButton:
            FeedbackAgent agent = new FeedbackAgent(this);
            agent.startFeedbackActivity();
            break;
        case R.id.goMarketButton:
            // goToMarket();
            break;
    }
}
 
开发者ID:denghuichao,项目名称:flashing_math,代码行数:17,代码来源:SettingActivity.java

示例4: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {

    switch (v.getId()){
        case R.id.settings_about_tv:
            startActivity(new Intent(SettingsActivity.this, AboutActivity.class));
            break;
        case R.id.settings_score_tv:
            SysUtils sysUtils = SysUtils.getInstance(SettingsActivity.this.getApplicationContext());
            sysUtils.goMarket();
            break;
        case R.id.settings_introduce_tv:
            startActivity(new Intent(SettingsActivity.this, IntroduceActivity.class));
            break;
        case R.id.settings_feedback_tv:
            agent = new FeedbackAgent(SettingsActivity.this);
            agent.startFeedbackActivity();
            break;
        default:
            break;
    }
}
 
开发者ID:Null-Ouwenjie,项目名称:Jide-Note,代码行数:23,代码来源:SettingsActivity.java

示例5: onOptionsItemSelected

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
	// Handle action bar item clicks here. The action bar will
	// automatically handle clicks on the Home/Up button, so long
	// as you specify a parent activity in AndroidManifest.xml.
	int id = item.getItemId();
	// �û�������ť
	if (id == R.id.feedback) {
		FeedbackAgent agent = new FeedbackAgent(MainActivity.this);
		agent.startFeedbackActivity();
	}
	if (id == R.id.logout) {
		sharedPreferences.clear();
		PersistentCookieStore cookieStore = new PersistentCookieStore(
				MainActivity.this);
		cookieStore.clear();
		Intent intent = new Intent(this, MainActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(intent);
		return true;
	}
	return super.onOptionsItemSelected(item);
}
 
开发者ID:ifLab,项目名称:WeCenterMobile-Android,代码行数:24,代码来源:MainActivity.java

示例6: switchContent

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
public void switchContent(Fragment fragment, int position) {
	if (fragment != null) {
		mContent = fragment;	
		
		getSupportFragmentManager()
		.beginTransaction()
		.replace(R.id.content_frame, fragment)
		.commit();
	}
	getSlidingMenu().showContent();
	
	if (position == 3) {
	    UmengUpdateAgent.forceUpdate(this);
	}else if (position == 4) {
		FeedbackAgent agent = new FeedbackAgent(this);
		agent.sync();
		agent.startFeedbackActivity();
	}
}
 
开发者ID:quding0308,项目名称:beautyClock,代码行数:20,代码来源:MainActivity.java

示例7: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
    switch (view.getId()) {
        case R.id.activity_main_user_layout:
            Intent intent = new Intent(mContext, ProfileActivity.class);
            intent.putExtra("from", "me");
            startActivityForResult(intent, INFOR_REFREFLASH);
            OverridePendingUtil.in(MainActivity.this);
            break;
        case R.id.activity_main_feedback_layout:
            FeedbackAgent agent = new FeedbackAgent(MainActivity.this);
            agent.startFeedbackActivity();
            OverridePendingUtil.in(MainActivity.this);
            break;
        case R.id.activity_main_about_layout:
            startAnimActivity(AboutActivity.class);
            break;
        case R.id.activity_main_setting_layout:
            startAnimActivity(SettingActivity.class);
            break;
    }
}
 
开发者ID:klob,项目名称:Diandi1.20,代码行数:23,代码来源:MainActivity.java

示例8: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
    switch(v.getId()) {
        case R.id.button_feedback:
            FeedbackAgent agent = new FeedbackAgent(this);
            agent.startFeedbackActivity();
            break;
            
        case R.id.button_about:
            Intent it = new Intent(this, ActivityAbout.class);
            startActivity(it);
            break;
            
        case R.id.button_logout:
            DialogUtils.showOKCancelButtonDialog(this, getString(R.string.hint_logout_confirm), new AlertDialog.OnClickListener() {
                @Override
                public void onClick(DialogInterface dialog, int which) {
                    logout();
                }
            });
            break;
        
        default:
            break;
    }
}
 
开发者ID:alexcaisenchuan,项目名称:FunWeibo,代码行数:27,代码来源:ActivityPopularPOIs.java

示例9: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
    switch (v.getId()){
        case R.id.log_out_button:
            executeRequest(new LogoutRequest(Request.Method.POST, TuChongApi.LOGOUT_URL,
                    new Response.Listener<LogoutResult>() {

                        @Override
                        public void onResponse(LogoutResult response) {
                            AppManager.getInstance().finishAllActivities();
                            startActivity(new Intent(SettingsActivity.this,
                                    RegLoginActivity.class));
                            if (response != null && "SUCCESS".equalsIgnoreCase(response.getResult())) {
                                //// leave blank

                            } else {
                                Toast.makeText(SettingsActivity.this, R.string.logout_failed, Toast.LENGTH_SHORT).show();
                            }
                        }
                    }, null));
            break;

        case R.id.setting_item_clean_cache:
            //todo clean cache.
            break;
        case R.id.setting_item_feedback:
            //USER FEEDBACK
            FeedbackAgent agent = new FeedbackAgent(this);
            agent.startFeedbackActivity();
            break;
    }
}
 
开发者ID:lofei117,项目名称:TuChongAndroid,代码行数:33,代码来源:SettingsActivity.java

示例10: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
    final int id = v.getId();
    if (id == R.id.ly_pic_path) {
        AppContext.showToastShort(mCachePicPath);
    } else if (id == R.id.ly_about) {
        UIHelper.showAbout(getActivity());
    } else if (id == R.id.ly_cache_size) {
        UIHelper.clearAppCache(getActivity());
        mTvCacheSize.setText("0KB");
    } else if (id == R.id.ly_version_name) {
        if (mIsCheckingUpdate) {
            AppContext.showToastShort(R.string.tip_checking_update);
        } else {
            if (mUpdateInfo != null) {
                UmengUpdateAgent.showUpdateDialog(getActivity()
                        .getApplicationContext(), mUpdateInfo);
            } else {
                AppContext.showToastShort(R.string.tip_has_not_update);
            }
        }
    } else if (id == R.id.ly_open_market) {
        TDevice.openAppInMarket(getActivity());
    } else if (id == R.id.ly_feedback) {
        FeedbackAgent agent = new FeedbackAgent(getActivity());
        agent.startFeedbackActivity();
    } else if (id == R.id.btn_logout) {
        handleLogout();
    } else if (id == R.id.ly_notification_settings) {
        UIHelper.showNotificaitonSettings(getActivity());
    } else if (id == R.id.ly_font_size) {
        handleFontSize();
    }
}
 
开发者ID:blueelwang,项目名称:oschina-app,代码行数:35,代码来源:SettingsFragment.java

示例11: onOptionsItemSelected

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    if (item.getItemId() == R.id.action_settings) {
        startActivity(new Intent(this, SettingActivity.class));
        return true;
    } else if (item.getItemId() == R.id.action_feedback) {
        FeedbackAgent agent = new FeedbackAgent(this);
        agent.startFeedbackActivity();
        return true;
    } else if (item.getItemId() == R.id.action_update) {
        UmengUpdateAgent.setUpdateListener(mUmengUpdateListener);
        UmengUpdateAgent.forceUpdate(this);
    }
    return super.onOptionsItemSelected(item);
}
 
开发者ID:zhangdi0917,项目名称:SexyBelle,代码行数:16,代码来源:MainActivity.java

示例12: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
	final int id = v.getId();
	if (id == R.id.ly_pic_path) {
		AppContext.showToastShort(mCachePicPath);
	} else if (id == R.id.ly_about) {
		UIHelper.showAbout(getActivity());
	} else if (id == R.id.ly_cache_size) {
		UIHelper.clearAppCache(getActivity());
		mTvCacheSize.setText("0KB");
	} else if (id == R.id.ly_version_name) {
		if (mIsCheckingUpdate) {
			AppContext.showToastShort(R.string.tip_checking_update);
		} else {
			if (mUpdateInfo != null) {
				UmengUpdateAgent.showUpdateDialog(getActivity()
						.getApplicationContext(), mUpdateInfo);
			} else {
				AppContext.showToastShort(R.string.tip_has_not_update);
			}
		}
	} else if (id == R.id.ly_open_market) {
		TDevice.openAppInMarket(getActivity());
	} else if (id == R.id.ly_feedback) {
		FeedbackAgent agent = new FeedbackAgent(getActivity());
		agent.startFeedbackActivity();
	} else if (id == R.id.btn_logout) {
		handleLogout();
	} else if(id == R.id.ly_notification_settings){
		UIHelper.showNotificaitonSettings(getActivity());
	}
}
 
开发者ID:447491480,项目名称:ima_intellj,代码行数:33,代码来源:SettingsFragment.java

示例13: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
    switch (view.getId()) {
        case R.id.activity_about_share_layout:
            shareToFriend();
            break;
        case R.id.activity_about_feedback_layout:
            FeedbackAgent agent = new FeedbackAgent(AboutActivity.this);
            agent.startFeedbackActivity();
            break;
        case R.id.activity_about_link_layout:
            startActivity(new Intent(AboutActivity.this, LinkAcitivity.class));
            break;
    }
}
 
开发者ID:klob,项目名称:Diandi1.20,代码行数:16,代码来源:AboutActivity.java

示例14: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
	int id = v.getId();
	switch(id){
	case R.id.help:
		Intent guideIntent = new Intent();
		guideIntent.setClass(getApplicationContext(), GuideActivity.class);
		guideIntent.putExtra(GuideActivity.START_AVS_ACTIVITY, false);
		startActivity(guideIntent);
		break;
	case R.id.feedback:
		FeedbackAgent agent = new FeedbackAgent(this);
		agent.startFeedbackActivity();
		break;
	case R.id.about:
		showAboutDialog();
		break;
	case R.id.disclaimer:
		showDisclaimerDlg();
		break;
	case R.id.business:
		try{
			Intent data=new Intent(Intent.ACTION_SENDTO); 
			data.setData(Uri.parse("mailto:[email protected]"));
			startActivity(data);
		}catch (Exception e) {
			Toast.makeText(getApplicationContext(), R.string.mail_to, Toast.LENGTH_LONG).show();
		}
		break;
	case R.id.logout:
		mUserInfo.setLoginInfo(false, "", "", "");
		Intent intent = new Intent();
		intent.setClass(getApplicationContext(), LoginActivity.class);
		startActivity(intent);
		isExitWithLogout = true;
		mMyViewerHelper.removeAllCameraInfos();
		mCameraInfoManager.deleteAll();
		finish();
		break;
	case R.id.back_linlayout:
		if(!mUserLayout.isDrawerOpen(Gravity.LEFT))
			mUserLayout.openDrawer(Gravity.LEFT);
		break;
	case R.id.opt_linlayout:
		openAddDialog();
		break;
	case R.id.add_cid:
		if(mShowAddLayoutDialog != null){
			mShowAddLayoutDialog.dismiss();
			titlebar_opt_image.setBackgroundResource(R.drawable.add_icon);
		}
		showAddCameraDlg();
		break;
	case R.id.add_cid_by_qr:
		if(mShowAddLayoutDialog != null){
			mShowAddLayoutDialog.dismiss();
			titlebar_opt_image.setBackgroundResource(R.drawable.add_icon);
		}
		Intent intent1 = new Intent();
		intent1.setClass(this, CaptureActivity.class);
		intent1.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivityForResult(intent1, SCANNIN_GREQUEST_CODE);
		break;
		default:
			break;
	}
}
 
开发者ID:OpenIchano,项目名称:Viewer,代码行数:68,代码来源:CameraListActivity.java

示例15: onClick

import com.umeng.fb.FeedbackAgent; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
	int id = v.getId();
	switch (id) {
	case R.id.cid:
	case R.id.pwd:
		showModifyInfoDialog();
		break;
	case R.id.menu:
		if(menu_layout.getVisibility() == View.VISIBLE){
			menu_layout.setVisibility(View.GONE);
		}else{
		menu_layout.setVisibility(View.VISIBLE);
		}
		break;
	case R.id.help:
		menu_layout.setVisibility(View.GONE);
		Intent intent = new Intent();
		intent.setClass(getApplicationContext(), GuideActivity.class);
		intent.putExtra(GuideActivity.START_AVS_ACTIVITY, false);
		startActivity(intent);
		break;
	case R.id.feedback:
		menu_layout.setVisibility(View.GONE);
		FeedbackAgent agent = new FeedbackAgent(this);
		agent.startFeedbackActivity();
		break;
	case R.id.about:
		menu_layout.setVisibility(View.GONE);
		showAboutDialog();
		break;
	case R.id.disclaimer:
		menu_layout.setVisibility(View.GONE);
		showDisclaimerDlg();
		break;
	case R.id.avs_title:
	case R.id.main_layout:
		if(menu_layout.getVisibility() == View.VISIBLE){
			menu_layout.setVisibility(View.GONE);
		}
		break;
	default:
		break;
	}
}
 
开发者ID:OpenIchano,项目名称:AVS,代码行数:46,代码来源:AvsActivity.java


注:本文中的com.umeng.fb.FeedbackAgent.startFeedbackActivity方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。