本文整理匯總了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);
}
示例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();
}
示例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);
}
示例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();
}
}
示例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);
}
示例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();
}
}
示例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");
}
示例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();
}
示例9: onResume
import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume() {
super.onResume();
AppEventsLogger.activateApp(this);
}
示例10: onResume
import com.facebook.AppEventsLogger; //導入方法依賴的package包/類
@Override
protected void onResume(){
super.onResume();
handler.postDelayed(r, 500);
AppEventsLogger.activateApp(this);
}