本文整理汇总了Java中com.umeng.analytics.MobclickAgent.onEvent方法的典型用法代码示例。如果您正苦于以下问题:Java MobclickAgent.onEvent方法的具体用法?Java MobclickAgent.onEvent怎么用?Java MobclickAgent.onEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.umeng.analytics.MobclickAgent
的用法示例。
在下文中一共展示了MobclickAgent.onEvent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@OnClick({2131428370, 2131428890})
public void onClick(View v) {
switch (v.getId()) {
case R.id.view_format_tips:
if (TextUtils.equals(goods_type.SpecGoods.name(), this.mGoods.type) && this
.mOnOpenGoodsFormatListener != null) {
this.mOnOpenGoodsFormatListener.onOpenGoodsFormat(this.tv_format);
return;
}
return;
case R.id.view_more:
MobclickAgent.onEvent(getActivity(), Event.SHOP_CLICKMORECOMMENTS);
if (this.onGoodsPageChangeListener != null) {
this.onGoodsPageChangeListener.onGoodsPageChange(GoodsTab.POST.getPosition());
return;
}
return;
default:
return;
}
}
示例2: generatePhotoInfo
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
private JSONArray generatePhotoInfo(List<QiniuModel> infos) {
MobclickAgent.onEvent(this.context, Event.tool_weight_addphoto);
QiniuModel model = (QiniuModel) infos.get(0);
JSONArray photosArray = new JSONArray();
try {
JSONObject obj = new JSONObject();
obj.put("origin_width", 120);
obj.put("origin_height", 120);
obj.put("qiniu_key", model.key);
obj.put("qiniu_hash", model.hash);
photosArray.put(obj);
return photosArray;
} catch (JSONException e) {
return null;
}
}
示例3: createActivity
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
private void createActivity() {
if (this.mRecordSport != null) {
RecordSport record = new SportRecordDao(getActivity()).add(this.mRecordSport);
dismissAllowingStateLoss();
if (record != null) {
EventBus.getDefault().post(new SportEvent().setRecordSport(record).setEditType(1));
}
if (this.mRecordSport != null) {
EventBus.getDefault().post(new AddFinishAnimEvent().setThumb_image_name(this
.mRecordSport.thumb_img_url));
}
MobclickAgent.onEvent(getActivity(), Event.tool_addSportRecordOK);
MobclickAgent.onEvent(getActivity(), Event.tool_recordOK);
if (this.changeListener != null) {
this.changeListener.onFinish();
}
}
}
示例4: onItemClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
switch (position) {
case 0:
new BuilderIntent(this.activity, UserProfileActivity.class).startActivity();
return;
case 1:
MobclickAgent.onEvent(this, Event.MINE_CLICKTHINPLAN);
if (AccountUtils.isVisitorAccount(this)) {
CheckAccountPopwindow.showVisitorPopWindow(this);
return;
}
new BuilderIntent(this, BrowserActivity.class).putExtra("url", BooheeClient.build
("status").getDefaultURL(String.format(ApiUrls.FREE_GATE, new
Object[]{UserPreference.getToken(this)}))).putExtra("title", getString(R
.string.m4)).startActivity();
return;
case 2:
MobclickAgent.onEvent(this, Event.MINE_CLICKMYTIMELINE);
new BuilderIntent(this.activity, MyTimelineActivity.class).startActivity();
return;
case 3:
MobclickAgent.onEvent(this, Event.MINE_CLICKFRIENDPAGE);
new BuilderIntent(this.activity, FriendShipActivity.class).putExtra
(FriendShipActivity.FRIENDSHIP_POSITION, 0).startActivity();
return;
case 4:
MobclickAgent.onEvent(this, Event.MINE_CLICKORDERPAGE);
new BuilderIntent(this.activity, OrderListActivity.class).startActivity();
return;
default:
return;
}
}
示例5: countBookDetail
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
/**
* 统计书籍详情打开
*/
public static void countBookDetail(Context context, Book book) {
HashMap<String, String> map = new HashMap<>();
map.put("bookId", book.getId());
map.put("bookName", book.getName());
map.put("bookAuthor", book.getAuthor());
map.put("bookTypeName", book.getBookTypeName());
map.put("bookIsFinished", String.valueOf(book.isFinished()));
map.put("bookWordNum", String.valueOf(book.getBookWordNum()));
MobclickAgent.onEvent(context, "book_detail", map);
}
示例6: onEvent
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public static void onEvent(Context context, int eventTag, String eventValue) {
try {
MobclickAgent.onEvent(context, context.getString(eventTag), eventValue);
} catch (Exception e) {
LogUtils.d("TalkingData:"+eventTag, e);
}
}
示例7: onCreate
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.db);
setTitle(R.string.a6p);
ButterKnife.inject((Activity) this);
addListener();
init();
MobclickAgent.onEvent(MyApplication.getContext(), Event.STATUS_SEND_PAGE);
}
示例8: getAlarmMsg
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
private void getAlarmMsg(Intent intent) {
MobclickAgent.onEvent(this.ctx, "other_receiveRemind");
this.noticeCode = intent.getStringExtra(Const.NOTICE_CODE);
this.noticeType = intent.getIntExtra(Const.NOTICE_TYPE, 2);
AlarmTipDao tipDao = new AlarmTipDao(this.ctx);
this.alarmTip = tipDao.getRandomTip();
tipDao.closeDB();
if (this.alarmTip != null) {
addNotice(this.alarmTip);
}
}
示例9: onEvent
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public static void onEvent(Context arg0, String arg1, int arg2)
{
if (!DEBUG)
{
MobclickAgent.onEvent(arg0, arg1, arg2);
}
}
示例10: onClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@OnClick({2131428790, 2131428791, 2131428792, 2131428793, 2131428794, 2131427604})
public void onClick(View v) {
switch (v.getId()) {
case R.id.btn_today_analysis:
MobclickAgent.onEvent(this.activity, Event.TOOL_DAILYANALYZE);
TodayAnalysisActivity.start(this.activity, this.record_on);
return;
case R.id.ll_nav_breakfast:
MobclickAgent.onEvent(this.ctx, Event.tool_foodandsport_breakfast);
AddFoodListActivity.start(this, 1, this.record_on, this.totalBreakfastCalory);
return;
case R.id.ll_nav_lunch:
MobclickAgent.onEvent(this.ctx, Event.tool_foodandsport_lunch);
AddFoodListActivity.start(this, 2, this.record_on, this.totalLunchCalory);
return;
case R.id.ll_nav_dinner:
MobclickAgent.onEvent(this.ctx, Event.tool_foodandsport_dinner);
AddFoodListActivity.start(this, 3, this.record_on, this.totalDinnerCalory);
return;
case R.id.ll_nav_snacks:
createPopwindow(this.ll_nav_snacks);
return;
case R.id.ll_nav_sport:
AddSportListActivity.start(this.ctx, this.record_on);
return;
default:
return;
}
}
示例11: logEvent
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public void logEvent(String event, Map<String, String> map) {
MobclickAgent.onEvent(context, event, map);
}
示例12: onClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@OnClick({2131427783, 2131427785, 2131427788, 2131427787, 2131427790, 2131427793, 2131427791})
public void onClick(View v) {
switch (v.getId()) {
case R.id.rl_collect_food:
MobclickAgent.onEvent(this.ctx, Event.tool_myfood_myfavorite);
if (this.collectCount > 0) {
CollectionActivity.comeOnBaby(this.activity);
return;
} else {
Helper.showToast((int) R.string.g8);
return;
}
case R.id.rl_custom_food:
MobclickAgent.onEvent(this.ctx, Event.tool_myfood_mycustom);
if (this.customCount > 0) {
CustomFoodListActivity.comeOnBaby(this.activity);
return;
} else {
Helper.showToast((int) R.string.hy);
return;
}
case R.id.rl_add_custom_food:
AddCustomFoodActivity.comeWithoutAddDiet(this.ctx);
return;
case R.id.ll_upload_food:
MobclickAgent.onEvent(this.ctx, Event.tool_myfood_myupload);
if (this.uploadCount > 0) {
ListUploadActivity.comeOnBaby(this.activity);
return;
} else {
Helper.showToast((int) R.string.abf);
return;
}
case R.id.rl_upload_food:
MobclickAgent.onEvent(this.ctx, Event.tool_myfood_upload);
UploadFoodActivity.comeOnBaby(this.activity);
return;
case R.id.ll_custom_cook:
if (this.customCookCount > 0) {
CustomCookListActivity.comeOnBaby(this.activity);
return;
} else {
Helper.showToast((int) R.string.abe);
return;
}
case R.id.rl_custom_cook:
AddCustomCookActivity.comeOnBaby(this.activity);
return;
default:
return;
}
}
示例13: onClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@OnClick({2131427590, 2131428350, 2131428351, 2131428353, 2131428355, 2131428164})
public void onClick(View view) {
switch (view.getId()) {
case R.id.ll_check_in:
MobclickAgent.onEvent(getActivity(), Event.status_viewCheckinPage);
DiamondSignActivity.comeOnBaby(getActivity());
return;
case R.id.ll_collect:
MobclickAgent.onEvent(getActivity(), Event.status_favoritePage);
MyFavoriteActivity.comeOnBaby(getActivity());
return;
case R.id.btn_check_in:
MobclickAgent.onEvent(getActivity(), Event.status_clickCheckin);
StatusApi.checkIn(getActivity(), new JsonCallback(getActivity()) {
public void ok(JSONObject object) {
super.ok(object);
CharSequence message = object.optString("message");
if (!TextUtils.isEmpty(message)) {
Helper.showToast(message);
}
StatusBlockFragment.this.mCheckInCount = StatusBlockFragment.this
.mCheckInCount + 1;
StatusBlockFragment.this.setCheckInUI(StatusBlockFragment.this
.mCheckInCount, true);
OnePreference.setPrefSignRecord();
}
});
return;
case R.id.ll_friends:
MobclickAgent.onEvent(getActivity(), Event.status_friendTimeline);
HomeTimelineActivity.comeOnBaby(getActivity());
this.friendsBadge.setText("");
return;
case R.id.ll_hot:
MobclickAgent.onEvent(getActivity(), Event.status_hotTimeline);
ChannelPostsActivity.comeOnBaby(getActivity(), "hot_posts");
this.hotBadge.setText("");
return;
default:
return;
}
}
示例14: onClick
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@OnClick({2131428892, 2131428893, 2131428896, 2131428894, 2131428900, 2131428904, 2131428905,
2131428907, 2131428909, 2131428898, 2131428906, 2131428903, 2131428908, 2131428901})
public void onClick(View v) {
if (!isDetached() && !WheelUtils.isFastDoubleClick()) {
switch (v.getId()) {
case R.id.view_profile:
UserProfileActivity.comeOn(getActivity());
return;
case R.id.view_post:
MobclickAgent.onEvent(getActivity(), Event.mine_clickStatus);
MyTimelineActivity.comeOnBaby(getActivity());
return;
case R.id.view_following:
MobclickAgent.onEvent(getActivity(), Event.mine_clickFriends);
startActivity(new Intent(getActivity(), FriendShipActivity.class).putExtra
(FriendShipActivity.FRIENDSHIP_POSITION, 0));
return;
case R.id.view_follower:
MobclickAgent.onEvent(getActivity(), Event.mine_clickFollowers);
startActivity(new Intent(getActivity(), FriendShipActivity.class).putExtra
(FriendShipActivity.FRIENDSHIP_POSITION, 1));
return;
case R.id.view_badge:
MobclickAgent.onEvent(getActivity(), Event.mine_clickBadge);
BrowserActivity.comeOnBaby(getActivity(), getString(R.string.tb),
BooheeClient.build("status").getDefaultURL(ApiUrls.BADGE_URL));
return;
case R.id.view_health_report:
if (this.mUser == null || !this.mUser.hasProfile()) {
startActivity(new Intent(getActivity(), NewUserInitActivity.class));
return;
}
MobclickAgent.onEvent(getActivity(), Event.MINE_CLICKHEALTHREPORT);
JumpBrowserActivity.comeOnBaby(getActivity(), getString(R.string.t_),
BooheeClient.build(BooheeClient.BINGO).getDefaultURL(ApiUrls
.REPORT_URL));
return;
case R.id.view_report:
MobclickAgent.onEvent(getActivity(), Event.mine_clickWeekReport);
RadarActivity.startActivity(getActivity(), this.mUser
.week_report_user_status, this.mUser.week_report_user_type);
this.mUser.week_report_user_status = User.WEEK_REPORT_STATUS_TOBE_UPDATE;
refreshView();
return;
case R.id.view_nice:
MobclickAgent.onEvent(getActivity(), Event.MINE_CLICKNICE);
NiceServiceActivity.startActivity(getActivity());
return;
case R.id.view_favorite:
MobclickAgent.onEvent(getActivity(), Event.MINE_FAVORITE);
MyFavoriteActivity.comeOnBaby(getActivity());
return;
case R.id.view_food:
MobclickAgent.onEvent(getActivity(), Event.mine_clickFood);
MyFoodActivity.comeOn(getActivity());
return;
case R.id.view_hardware:
HardwareActivity.startActivity(getActivity());
return;
case R.id.view_diamond:
MobclickAgent.onEvent(getActivity(), Event.MINE_REDEEM);
BrowserActivity.comeOnBaby(getActivity(), getString(R.string.t3),
BooheeClient.build("status").getDefaultURL(ApiUrls.DIAMOND_CHECHIN));
return;
case R.id.view_question:
ApnActivity.comeOnBaby(getActivity(), false);
return;
case R.id.view_setting:
MobclickAgent.onEvent(getActivity(), Event.mine_clickSetting);
UserSettingActivity.comeOnBaby(getActivity());
return;
default:
return;
}
}
}
示例15: onPatchReceived
import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public int onPatchReceived(String path, boolean isUpgrade) {
MobclickAgent.onEvent(MyApplication.getContext(), Event.tinker_onPatchReceived);
return super.onPatchReceived(path, isUpgrade);
}