本文整理汇总了Java中com.splunk.mint.Mint.initAndStartSession方法的典型用法代码示例。如果您正苦于以下问题:Java Mint.initAndStartSession方法的具体用法?Java Mint.initAndStartSession怎么用?Java Mint.initAndStartSession使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.splunk.mint.Mint
的用法示例。
在下文中一共展示了Mint.initAndStartSession方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profil);
Mint.initAndStartSession(ProfilActivity.this, GYConfiguration.SPLUNK_ID);
Toolbar toolbar = (Toolbar) findViewById(R.id.tool_bar_back);
setSupportActionBar(toolbar);
titles = new CharSequence[]{getString(R.string.profil_baslik_hakkinda),
getString(R.string.profil_baslik_basari_belgeleri)};
adapter = new ViewPagerAdapterProfil(getSupportFragmentManager(), titles, tabSayisi);
pager = (ViewPager) findViewById(R.id.pagerProfil);
pager.setAdapter(adapter);
tabs = (SlidingTabLayout) findViewById(R.id.tabsBlog);
tabs.setDistributeEvenly(true); // tablar?n d?zenlenebilir olmas?n? sa?lar
tabs.setSelectedIndicatorColors(getResources().getColor(R.color.beyaz_renk));
tabs.setViewPager(pager);
}
示例2: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Mint.disableNetworkMonitoring();
Mint.initAndStartSession(this, MobileLearning.MINT_API_KEY);
setContentView(R.layout.start_up);
if (MobileLearning.DEVICEADMIN_ENABLED){
boolean isGooglePlayAvailable = GooglePlayUtils.checkPlayServices(this,
new GooglePlayUtils.DialogListener() {
@Override
public void onErrorDialogClosed() {
//If Google play is not available, we need to close the app
StartUpActivity.this.finish();
}
});
if (!isGooglePlayAvailable) return;
}
tvProgress = (TextView) this.findViewById(R.id.start_up_progress);
prefs = PreferenceManager.getDefaultSharedPreferences(this);
String username = SessionManager.getUsername(this);
Mint.setUserIdentifier( username.equals("") ? "anon" : username);
}
示例3: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// released:
Mint.initAndStartSession(DogWord.this, "39338683");
// testing:
// Mint.initAndStartSession(this, "7de6e2e0");
Mint.logEvent("Start");
setContentView(R.layout.activity_bog_word);
gridLayout = (CellGridLayout) findViewById(R.id.grid);
displayArea = (TextView) findViewById(R.id.display);
progressArea = (TextView) findViewById(R.id.progress);
gridLayout.setCanvasView((CanvasView) findViewById(R.id.canvas));
try {
// load the dictionary
// Our dictionary is WORDS trimmed down to words that occurred at least 500 times
// in the Google Books corpus in 2008, plus more obscure words, proper names,
// abbreviations removed by other means.
if (dictionary == null) {
dictionary = LetterTree.read(new DataInputStream(getResources().openRawResource(R.raw.words)));
}
} catch (IOException e) {
throw new RuntimeException("failed to read dictionary");
}
wordFinder = new GridWordFinder(dictionary);
if (savedInstanceState != null) {
onRestoreGame(savedInstanceState);
} else {
onNewGame();
}
}
示例4: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
propertyReader = new PropertyReader(this);
if(Constants.isAppTrackingEnabled)
{
if(propertyReader.isPropertyExist(PropertyReader
.KEY_SPLUNK_MINT))
{
String bugSenseCode = propertyReader.getPropertyStr(PropertyReader
.KEY_SPLUNK_MINT);
Mint.initAndStartSession(this, bugSenseCode);
}
}
if(this.getActionBar() != null)
{
this.getActionBar().setDisplayHomeAsUpEnabled(true);
}
screenWidth = CamerasActivity.readScreenWidth(this);
getFragmentManager().beginTransaction().replace(android.R.id.content,
new MyPreferenceFragment()).commit();
this.setDefaultKeyMode(DEFAULT_KEYS_DISABLE);
}
示例5: initBugSense
import com.splunk.mint.Mint; //导入方法依赖的package包/类
private void initBugSense()
{
if(Constants.isAppTrackingEnabled)
{
if(propertyReader.isPropertyExist(PropertyReader.KEY_SPLUNK_MINT))
{
String bugSenseCode = propertyReader.getPropertyStr(PropertyReader
.KEY_SPLUNK_MINT);
Mint.initAndStartSession(this,bugSenseCode);
}
}
}
示例6: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public void onCreate(){
super.onCreate();
if (Constants.LogPublisher.LOG_PUBLISHER_IN_USE.equals(Constants.LogPublisher.SPLUNK_PUBLISHER)) {
if (Constants.SplunkConfigs.TYPE_MINT.equals(Constants.SplunkConfigs.DATA_COLLECTOR_TYPE)) {
Mint.initAndStartSession(getApplicationContext(), Constants.SplunkConfigs.API_KEY);
} else if (Constants.SplunkConfigs.TYPE_HTTP.equals(Constants.SplunkConfigs.DATA_COLLECTOR_TYPE)) {
Mint.initAndStartSessionHEC(getApplicationContext(), Constants.SplunkConfigs.HEC_MINT_ENDPOINT_URL, Constants.SplunkConfigs.HEC_TOKEN);
}
Mint.enableLogging(true);
Mint.setLogging("*:D");
}
}
示例7: onStart
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onStart() {
super.onStart();
if (!BuildConfig.DEBUG) {
Mint.initAndStartSession(this, "0096c713");
}
}
示例8: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// Only report bugs to Mint in release mode
if ( !BuildConfig.DEBUG ) Mint.initAndStartSession(this, "10465a6c");
}
示例9: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
((MapzenApplication) getApplication()).inject(this);
Mint.initAndStartSession(this, "ebfa8fd7");
Mint.addExtraData("OEM", Build.MANUFACTURER);
setContentView(R.layout.base);
initMapFragment();
gpsPromptDialogFragment = new MapzenGPSPromptDialogFragment();
initMapController();
initAlarm();
initSavedSearches();
bus.register(this);
}
示例10: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (prefs.getBoolean("analytics", true)) {
Mint.initAndStartSession(player.this, "63148966");
Tracker t = ((AnalyticsSampleApp) this.getApplication()).getTracker(AnalyticsSampleApp.TrackerName.APP_TRACKER);
t.setScreenName("main");
t.send(new HitBuilders.AppViewBuilder().build());
}
super.onCreate(savedInstanceState);
setContentView(R.layout.player);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(R.string.app_name_shot);
actionBar.setSubtitle(R.string.player);
Bundle extras = getIntent().getExtras();
id_magazine = Long.valueOf(extras.getLong("id_magazine"));
funct = new class_functions(this);
class_sqlite dbOpenHelper = new class_sqlite(this);
database = dbOpenHelper.openDataBase();
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
initViews();
LocalBroadcastManager broadcastManager = LocalBroadcastManager.getInstance(this);
IntentFilter intentFilter = new IntentFilter("update");
broadcastManager.registerReceiver(receiver, intentFilter);
mAdapter = new player_adapter(this,
new String[]{"title"}, new int[]{android.R.id.text1});
listView.setAdapter(mAdapter);
getSupportLoaderManager().initLoader(0, null, this);
}
示例11: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(final Bundle savedInstanceState) {
prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (prefs.getBoolean("analytics", true)) {
Mint.initAndStartSession(preferences.this, "63148966");
Tracker t = ((AnalyticsSampleApp) this.getApplication()).getTracker(AnalyticsSampleApp.TrackerName.APP_TRACKER);
t.setScreenName("main");
t.send(new HitBuilders.AppViewBuilder().build());
}
super.onCreate(savedInstanceState);
class_sqlite dbOpenHelper = new class_sqlite(this);
database = dbOpenHelper.openDataBase();
getFragmentManager().beginTransaction().replace(android.R.id.content, new MyPreferenceFragment()).commit();
}
示例12: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Mint.initAndStartSession(getApplicationContext(), GYConfiguration.SPLUNK_ID);
mInstance = this;
}
示例13: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_yorum);
Mint.initAndStartSession(YorumActivity.this, GYConfiguration.SPLUNK_ID);
url = GYConfiguration.getDomain() + "yorumlar/retrieve?nodeID=";
ekran = new YuklenmeEkran(this);
tarihCevir = new TarihCevir();
listemiz = (ListView) findViewById(R.id.liste);
yorumYok = (TextView) findViewById(R.id.yorumyok);
Bundle bundle = getIntent().getExtras();
nodeID = bundle.getString(Yorum.YORUM_ID);
Goruntule(nodeID);
}
示例14: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Mint.initAndStartSession(this,MobileLearning.MINT_API_KEY);
}
示例15: logExceptions
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public static void logExceptions(Context context) {
// Initialize bug tracking
Mint.initAndStartSession(context, Logging.MINT_API_KEY);
}