当前位置: 首页>>代码示例>>Java>>正文


Java AppRater.app_launched方法代码示例

本文整理汇总了Java中org.codechimp.apprater.AppRater.app_launched方法的典型用法代码示例。如果您正苦于以下问题:Java AppRater.app_launched方法的具体用法?Java AppRater.app_launched怎么用?Java AppRater.app_launched使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.codechimp.apprater.AppRater的用法示例。


在下文中一共展示了AppRater.app_launched方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import org.codechimp.apprater.AppRater; //导入方法依赖的package包/类
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //Making Live map as default.
        currentMapType = AppConstants.MapType.LIVE;

        if (savedInstanceState != null) {
            // Restore values from saved state
            currentPage = savedInstanceState.getInt(BUNDLE_MAP_ID, 0);
            currentMapType = AppConstants.MapType.values()[savedInstanceState.getInt(BUNDLE_MAP_TYPE, 0)];
        }

        activeDownloadsList = new ConcurrentHashMap<String, Integer>();
//        WeatherApplication.analyticsHandler.trackScreen(getString(R.string.home_page));
        AppRater.app_launched(this);

        changeLogLib = new ChangeLog(this);
        if (changeLogLib.isFirstRun()) {
//            changeLogLib.getLogDialog().show();
            changeLogLib.getFullLogDialog().show();
        }
    }
 
开发者ID:Shahul3D,项目名称:IndiaSatelliteWeather,代码行数:24,代码来源:MainMapActivity.java

示例2: rateApp

import org.codechimp.apprater.AppRater; //导入方法依赖的package包/类
private void rateApp() {
        AppRater.app_launched(getAttachedActivity());
        AppRater.setLightTheme();
//        AppRater.setVersionCodeCheckEnabled(true);
        AppRater.setNumLaunchesForRemindLater(1);
//        AppRater.showRateDialog(getAttachedActivity());
    }
 
开发者ID:nantaphop,项目名称:AomYim-Pantip,代码行数:8,代码来源:ForumHolderFragment.java

示例3: onCreate

import org.codechimp.apprater.AppRater; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (BuildConfig.ENABLE_RATING) {
        AppRater.app_launched(getActivity());
    }
}
 
开发者ID:matthew-compton,项目名称:Petfinder,代码行数:8,代码来源:MainFragment.java

示例4: onCreate

import org.codechimp.apprater.AppRater; //导入方法依赖的package包/类
/**
 * Called when the activity is first created.
 */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Log.d(TAG, "Creating main activity...");

    if (SealnoteApplication.getDatabase().getPassword() == null) {
        // onResume will follow up which will start PasswordActivity and setup database password
        Log.d(TAG, "Password can't be found while creating activity. Start PasswordActivity");
        return;
    }

    /* Handle saved state */
    if (savedInstanceState != null) {
        String folder = savedInstanceState.getString("SN_FOLDER", Note.Folder.FOLDER_LIVE.name());
        mCurrentFolder = Note.Folder.valueOf(folder);
        mTagId = savedInstanceState.getInt("SN_TAGID", -1);
        // This only makes sense when mTagId != -1
        mTagName = savedInstanceState.getString("SN_TAGNAME", null);
    } else {
        mCurrentFolder = Note.Folder.FOLDER_LIVE;
        mTagId = -1;
    }

    /* Load and initialize views */
    setContentView(R.layout.main);
    Misc.secureWindow(this);

    loadNotesView();
    initNavigationDrawer();

    /* Shared Preferences */
    SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
    sharedPrefs.registerOnSharedPreferenceChangeListener(this);

    /* Setup ActionBar */
    ActionBar actionBar = getActionBar();
    if (actionBar == null)
        return;
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setHomeButtonEnabled(true);

    if (mCurrentFolder != Note.Folder.FOLDER_TAG) {
        //FIXME: Cleanup
        actionBar.setTitle(getResources().getStringArray(
                R.array.navigation_drawer
        )[mCurrentFolder.ordinal() - 1]);
    } else {
        actionBar.setTitle(mTagName);
    }

    AppRater.app_launched(this);
}
 
开发者ID:vishesh,项目名称:sealnote,代码行数:56,代码来源:SealnoteActivity.java

示例5: onCreate

import org.codechimp.apprater.AppRater; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
  // we set the activity to NoActionBar in the manifest to avoid the title flickering in the actionbar
  setTheme(R.style.DrawerActivityTheme);
  super.onCreate(savedInstanceState);

  setContentView(R.layout.activity_drawer);

  mContent = Content.instance(this);

  if (mContent.needsChannelSwitcher()) {
    mActionBarSpinnerAdapter = new ActionBarSpinnerAdapter(this, mContent);
    ActionBar.OnNavigationListener listener = new ActionBar.OnNavigationListener() {
      @Override
      public boolean onNavigationItemSelected(int position, long itemId) {

        // be aware that this call back gets called when the spinner contents are built
        // we need to ignore that one, so not going to do anything if channel not changing
        if (!mSpinnerSucksBalls) {
          mSpinnerSucksBalls = true;

          // ## taking advantage of this feature/bug to set the real value of the actionbar spinner
          // if we don't do this, the spinner defaults to value 0, so selecting the first item
          // in the list will not work since it doesn't respond when selecting the same index as the current value
          getActionBar().setSelectedNavigationItem(mContent.currentChannelIndex());
        } else {
          if (mContent.changeChannel(position))
            updateSectionForChannel();
        }
        return true;
      }
    };

    getActionBar().setDisplayShowTitleEnabled(false);
    getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
    getActionBar().setListNavigationCallbacks(mActionBarSpinnerAdapter, listener);
  }

  setupDrawer();

  // enable ActionBar app icon to behave as action to toggle nav drawer
  getActionBar().setDisplayHomeAsUpEnabled(true);

  selectSection(mContent.savedSectionIndex(), false);

  if (Constants.showAppRater) {
    AppRater.app_launched(this);
  }

  // general app tweaks
  //    Debug.activateStrictMode();
  Utils.ignoreObsoleteCapacitiveMenuButton(this);

  // show player if activity was destroyed and recreated
  if (savedInstanceState != null) {
    VideoPlayer.PlayerParams params = savedInstanceState.getParcelable("player_params");

    if (params != null)
      playVideo(params);
  }

  WhatsNewDialog.showWhatsNew(this, false);

  // only show intro for multi channels
  if (mContent.needsChannelSwitcher())
    IntroActivity.showIntroDelayed(this, false);
}
 
开发者ID:sgehrman,项目名称:UTubeTV,代码行数:68,代码来源:DrawerActivity.java


注:本文中的org.codechimp.apprater.AppRater.app_launched方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。