当前位置: 首页>>代码示例>>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;未经允许,请勿转载。