本文整理匯總了Java中com.flurry.android.FlurryAgent.logEvent方法的典型用法代碼示例。如果您正苦於以下問題:Java FlurryAgent.logEvent方法的具體用法?Java FlurryAgent.logEvent怎麽用?Java FlurryAgent.logEvent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.flurry.android.FlurryAgent
的用法示例。
在下文中一共展示了FlurryAgent.logEvent方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onRequestSuccess
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
public void onRequestSuccess(List<Object> result, Class<?> clazz) {
if (isResumed()) {
if (clazz == Event.class) {
FlurryAgent.logEvent("Refresh events");
List<Event> events = new ArrayList<Event>();
for (Object aResult : result) {
final Event event = (Event) aResult;
events.add(event);
}
if (mIsDataObsolete) {
mIsDataObsolete = false;
}
dismissDialog();
setAdapterData(events);
//mAdapter.setEventList(events);
}
completeListRefresh();
}
}
示例2: sendStaticsIfNeeded
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
private static void sendStaticsIfNeeded() {
long millis = preferences.getLong(KEY_MILLIS, 0);
if (!DateUtils.isToday(millis)) {
preferences.edit().putLong(KEY_MILLIS, System.currentTimeMillis()).apply();
FlurryAgent.logEvent("ScriptStatics", storage.getMax(10));
}
}
示例3: reportCameraNativeSetup
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
private static void reportCameraNativeSetup() {
for (Method method : Camera.class.getDeclaredMethods()) {
if ("native_setup".equals(method.getName())) {
FlurryEventRecordStatus status =
FlurryAgent.logEvent("camera::native_setup", createLogContent("method_details", Reflect.getMethodDetails(method)));
Log.d(TAG, "report CNS: " + status);
break;
}
}
}
示例4: onCreateView
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fr_about, container,
false);
if (savedInstanceState != null) {
mSelectedTab = savedInstanceState.getInt(SELECTED_TAB_NUM_KEY, 0);
}
initView();
FlurryAgent.logEvent("About page");
return view;
}
示例5: onCreateView
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
rootView = inflater.inflate(R.layout.fr_overview, container,
false);
setHasOptionsMenu(true);
initView(savedInstanceState);
checkGooglePlayServices();
FlurryAgent.logEvent("Show OverView");
return rootView;
}
示例6: onCreate
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ac_trigger_history);
FlurryAgent.logEvent("Show Trigger Events");
final ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(R.string.trigger_history);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeButtonEnabled(true);
requestTriggerHistory();
showDialog();
mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_layout);
mSwipeRefreshLayout.setColorSchemeResources(R.color.grey);
mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
requestTriggerHistory();
mIsOnRefresh = true;
}
});
listView = (ListView) findViewById(R.id.pull_refresh_list);
}
示例7: onRequestSuccess
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
public void onRequestSuccess(List<Object> result,
Class<?> clazz) {
FlurryAgent.logEvent("Refresh Trigger Events");
int threatDegree = 0;
final List<Event> events = new ArrayList<Event>();
for (Object aResult : result) {
final Event event = (Event) aResult;
events.add(event);
final int eventPriority = Integer
.valueOf((event.triggers != null && !event.triggers.isEmpty()) ? event.triggers.get(0).priority : "0");
if (eventPriority > threatDegree) {
threatDegree = eventPriority;
}
}
final TextView threatView = (TextView) findViewById(R.id.threat_view);
final TextView titleView = (TextView) findViewById(R.id.title_view);
final TextView urlView = (TextView) findViewById(R.id.link_addr);
final TextView commentView = (TextView) findViewById(R.id.comment);
threatView.setText(getString(GeneralAbility.getState(threatDegree)));
titleView.setText(mTriggerName);
urlView.setText(mTriggerUrl);
commentView.setText(mTriggerComments);
listView.setAdapter(new TriggerHistoryAdapter(events));
dismissDialog();
mDateTimeUpdate = DateFormat.getDateTimeInstance().format(new Date());
SharedPreferencesEditor.getInstance().putString(
Constants.PREFS_UPDATE_DATE_TRIGGERS, mDateTimeUpdate);
if (mIsOnRefresh) {
mSwipeRefreshLayout.setRefreshing(false);
mIsOnRefresh = false;
}
}
示例8: onRequestSuccess
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
public void onRequestSuccess(String redirectedUrl, List<Object> result, Class<?> clazz) {
if (dismissDialog()) {
String url = null;
if (redirectedUrl == null) {
url = mUrlView.getText().toString();
} else {
url = redirectedUrl;
}
url = url.trim();
SharedPreferencesEditor.getInstance().putString(
Constants.PREFS_URL_SHORTCUT, url);
SharedPreferencesEditor.getInstance().putString(
Constants.PREFS_URL_FULL, collectUrl(url));
SharedPreferencesEditor.getInstance().putString(Constants.PREFS_AUTH,
(String) result.get(0));
SharedPreferencesEditor.getInstance().putString(Constants.PREFS_USER,
mNameView.getText().toString().trim());
SharedPreferencesEditor.getInstance().putBoolean(
Constants.PREFS_IS_AUTHORIZED, true);
SharedPreferencesEditor.getInstance().putString(
Constants.PREFS_PASSWORD, mPasswordView.getText().toString());
FlurryAgent.logEvent("User was sign in successfully");
final Intent intent = new Intent(getApplicationContext(),
SlideMenuActivity.class);
startActivity(intent);
finish();
}
}
示例9: enterCheckIn
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
/**
* Клик на кнопку Отметиться здесь
*
* @param eventId - идентифиатор мероприятия/события
* @param isSuccess - результат чекина
* @param isLocationError - сс вернул ли ошибку по местоположению
*/
public static void enterCheckIn(long eventId, boolean isSuccess, boolean isLocationError) {
Map<String, String> params = new HashMap<String, String>();
params.put("event_id", String.valueOf(eventId));
if (isSuccess) {
params.put("success", String.valueOf(true));
} else {
params.put("error", isLocationError ? "locationError" : "distanceError");
}
FlurryAgent.logEvent("event_check_in", params);
GoogleStatistics.sendEvent(CATEGORY, "Otmetitsia_Na_Meropriyatiye", "Otmetitsia_Na_Meropriyatiye", params);
}
示例10: beforeSocialInnovationSharing
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
/**
* До шаринга городской новинки
*
* @param name - имя соц сети
* @param noveltyId - идентификатор опроса
*/
public static void beforeSocialInnovationSharing(String name, String noveltyId) {
Map<String, String> params = new HashMap<String, String>(2);
params.put("name", name);
params.put("novelty_id", noveltyId);
FlurryAgent.logEvent("social_sharing", params, true);
}
示例11: subscriptionsPolls
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
/**
* Подписки при прохождении опроса
*
* @param subscription - тип подписки
* @param channel - имя канала
* @param pollId - идентификатор опроса, покоторому устанавливаем подписку
*/
public static void subscriptionsPolls(Subscription subscription, Channel channel, long pollId) {
Map<String, String> params = new HashMap<String, String>(3);
params.put("type", subscription.getType());
params.put("channel", channel.getName());
params.put("poll_id", String.valueOf(pollId));
FlurryAgent.logEvent("subscriptions_polls", params);
}
示例12: onCreate
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ac_login);
boolean isUserAuthorized = SharedPreferencesEditor.getInstance()
.getBoolean(Constants.PREFS_IS_AUTHORIZED, false);
if (isUserAuthorized) {
finish();
Intent intent = new Intent(getApplicationContext(),
SlideMenuActivity.class);
startActivity(intent);
} else {
getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
getSupportActionBar().setCustomView(R.layout.view_logo);
mHostsView = (ImageView) findViewById(R.id.image_hosts);
mHostsView.setOnClickListener(this);
mUrlView = (EditText) findViewById(R.id.edit_address);
mUrlView.setText(SharedPreferencesEditor.getInstance().getString(
Constants.PREFS_URL_SHORTCUT));
mUrlView.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean b) {
if (!b) {
mUrlView.setText(StringUtils.checkURL(mUrlView.getText().toString()));
}
}
});
mNameView = (EditText) findViewById(R.id.edit_name);
mNameView.setText(SharedPreferencesEditor.getInstance().getString(
Constants.PREFS_USER));
mPasswordView = (EditText) findViewById(R.id.edit_pass);
final Button loginBtn = (Button) findViewById(R.id.btn_login);
loginBtn.setOnClickListener(this);
mPasswordView.setOnEditorActionListener(this);
FlurryAgent.logEvent("Application started");
fillFromBundle(getIntent());
}
}
示例13: bannerShow
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
public static void bannerShow(String bannerId) {
Map<String, String> map = new HashMap<String, String>();
map.put("banner_id", bannerId);
FlurryAgent.logEvent("banner show", map);
}
示例14: enterProfile
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
/**
* Экран профиль, факт перехода
*/
public static void enterProfile() {
FlurryAgent.logEvent("enter_profile");
}
示例15: taskFillProfileAddressWork
import com.flurry.android.FlurryAgent; //導入方法依賴的package包/類
/**
* Главный экран, факт заполнения "адрес работы и род деятельности"
*/
public static void taskFillProfileAddressWork() {
FlurryAgent.logEvent("task_fill_profile_address_work");
}