當前位置: 首頁>>代碼示例>>Java>>正文


Java AppEventsLogger.activateApp方法代碼示例

本文整理匯總了Java中com.facebook.AppEventsLogger.activateApp方法的典型用法代碼示例。如果您正苦於以下問題:Java AppEventsLogger.activateApp方法的具體用法?Java AppEventsLogger.activateApp怎麽用?Java AppEventsLogger.activateApp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.facebook.AppEventsLogger的用法示例。


在下文中一共展示了AppEventsLogger.activateApp方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
    super.onResume();
    IntentFilter filter = new IntentFilter(FortunesApplication.FortunesInsertionFinish);
    registerReceiver(mReceiver, filter);
    uiHelper.onResume();
    // Logs 'install' and 'app activate' App Events.
    AppEventsLogger.activateApp(this);
}
 
開發者ID:BugsBunnyBR,項目名稱:Fortunes,代碼行數:10,代碼來源:MainActivity.java

示例2: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
public void onResume()
{
  QuizApplication.ʼ();
  ךּ.ˊ(this, true);
  super.onResume();
  this.uiHelper.onResume();
  AppEventsLogger.activateApp(this, getResources().getString(2131165367));
  trackScene();
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:10,代碼來源:QuizFragmentActivity.java

示例3: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
public void onResume() {
    super.onResume();
    uiHelper.onResume();
    isResumed = true;

    // Call the 'activateApp' method to log an app event for use in analytics and advertising reporting.  Do so in
    // the onResume methods of the primary Activities that an app may be launched into.
    AppEventsLogger.activateApp(this);
}
 
開發者ID:makinj,項目名稱:MeNextAndroid,代碼行數:11,代碼來源:MainActivity.java

示例4: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
	super.onResume();
	// Call the 'activateApp' method to log an app event for use in analytics and advertising reporting.  Do so in
	// the onResume methods of the primary Activities that an app may be launched into.
	AppEventsLogger.activateApp(this);
	for (ProviderConnector pConnector : ProviderRegister.getInstance().getConnectors()) {
		pConnector.resume();
	}
	

}
 
開發者ID:vegaen,項目名稱:UbiNomadLib,代碼行數:13,代碼來源:UbiNomadFragmentActivity.java

示例5: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
  protected void onResume(){
  	super.onResume();
  	// Check if there is a currently logged in user
// and it's linked to a Facebook account.
currentUser = ParseUser.getCurrentUser();
if ((currentUser != null) && ParseFacebookUtils.isLinked(currentUser)) {
	Log.d(TAG,"User already logged in to facebook");
	Toast.makeText(getApplicationContext(), "Logged In", Toast.LENGTH_LONG).show();
	gps.start();
}
      Log.d(TAG, "Called onResume");
      // Logs 'install' and 'app activate' App Events. Facebook
      AppEventsLogger.activateApp(this);
  }
 
開發者ID:dmeyer3691,項目名稱:PetTinder,代碼行數:16,代碼來源:MainActivity.java

示例6: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
    super.onResume();

    // Call the 'activateApp' method to log an app event for use in analytics and advertising
    // reporting.  Do so in
    // the onResume methods of the primary Activities that an app may be launched into.
    AppEventsLogger.activateApp(this);
    if (DeviceInfo.INSTANCE.isNetworkConnected()) {
        informReferralToServer();
    }
}
 
開發者ID:barterli,項目名稱:barterli_android,代碼行數:13,代碼來源:HomeActivity.java

示例7: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
  super.onResume();
  // Logs 'install' and 'app activate' App Events
  AppEventsLogger.activateApp(this);
  Log.d(TAG, "App resumed");
}
 
開發者ID:liyaguang,項目名稱:PalHunterClient,代碼行數:8,代碼來源:MainActivity.java

示例8: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@SuppressLint("NewApi")
  @Override
  public void onResume() {
      super.onResume();
      uiHelper.onResume();

      String provider=null;
      for(String s : locMgr.getProviders(true)){
          Log.d("PROVIDERS",s);
      }
      // Logs 'install' and 'app activate' App Events.
      AppEventsLogger.activateApp(this);

      if(locMgr != null)
      {
          boolean networkIsEnabled = locMgr.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
          boolean gpsIsEnabled = locMgr.isProviderEnabled(LocationManager.GPS_PROVIDER);
          boolean passiveIsEnabled = locMgr.isProviderEnabled(LocationManager.PASSIVE_PROVIDER);

          if(networkIsEnabled)
          {
              locMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60*1000L, 10.0F, this, null);
              provider=LocationManager.NETWORK_PROVIDER;
          }
          else if(gpsIsEnabled)
          {
              locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60*1000L, 10.0F, this, null);
              provider=LocationManager.GPS_PROVIDER;
          }
          else if(passiveIsEnabled)
          {
              locMgr.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 60*1000L, 10.0F, this, null);
              provider=LocationManager.PASSIVE_PROVIDER;
          }
          else
          {
              Toast.makeText(this,  getResources().getString(R.string.no_location_service), Toast.LENGTH_LONG).show();
          }
      }
      else
      {
          Toast.makeText(this, getResources().getString(R.string.no_location_service_in_device), Toast.LENGTH_LONG).show();
      }

/*
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
	locMgr.requestLocationUpdates(0L, 0.0f, crit, this, null);
}else{
	locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER,0L, 0.0f, this, null);
}
*/
      map.setLocationSource(this);
      if(provider!=null)
          currentLocation = locMgr.getLastKnownLocation(provider);


      if(currentLocation!=null)map.getUiSettings().setMyLocationButtonEnabled(true);
      //drawCircle();
      //Toast.makeText(this, "Lat: "+currentLocation.getLatitude()+" Long: "+currentLocation.getLongitude(), Toast.LENGTH_LONG).show();

      if(currentLocation!=null && isClear==false){
          new MarkerLoader().execute(currentLocation);
      }
      else Toast.makeText(this, getResources().getString(R.string.no_location_check_gps), Toast.LENGTH_LONG).show();
  }
 
開發者ID:dklisiaris,項目名稱:geopin,代碼行數:66,代碼來源:MainMapActivity.java

示例9: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
    super.onResume();
    AppEventsLogger.activateApp(this);
}
 
開發者ID:VysotskySviderskyGH,項目名稱:pronounceit,代碼行數:6,代碼來源:BaseVsghActivity.java

示例10: onResume

import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume(){
    super.onResume();
    handler.postDelayed(r, 500);
    AppEventsLogger.activateApp(this);
}
 
開發者ID:ButterFlyDevs,項目名稱:BrainStudio,代碼行數:7,代碼來源:ActividadPrincipal.java


注:本文中的com.facebook.AppEventsLogger.activateApp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。