本文整理汇总了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();
}
}
示例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());
}
示例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());
}
}
示例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);
}
示例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);
}