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


Java Mint.initAndStartSession方法代码示例

本文整理汇总了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);
}
 
开发者ID:Turkcell,项目名称:GYAppAnd,代码行数:25,代码来源:ProfilActivity.java

示例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);
}
 
开发者ID:iSchool-Zambia,项目名称:ischool-oppia-mobile,代码行数:25,代码来源:StartUpActivity.java

示例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();
    }
}
 
开发者ID:msokolov,项目名称:DogWord,代码行数:33,代码来源:DogWord.java

示例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);
}
 
开发者ID:GNUDimarik,项目名称:evercam-play-android2,代码行数:29,代码来源:CameraPrefsActivity.java

示例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);
        }
    }
}
 
开发者ID:GNUDimarik,项目名称:evercam-play-android2,代码行数:13,代码来源:ParentActivity.java

示例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");
    }
}
 
开发者ID:wso2-attic,项目名称:product-emm,代码行数:14,代码来源:AgentApplication.java

示例7: onStart

import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onStart() {
	super.onStart();
	if (!BuildConfig.DEBUG) {
		Mint.initAndStartSession(this, "0096c713");
	}
}
 
开发者ID:kozaxinan,项目名称:OnePlus-One-Screen-Fix,代码行数:8,代码来源:MainActivity.java

示例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");
}
 
开发者ID:TripSit,项目名称:tripmobile,代码行数:8,代码来源:Application.java

示例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);
}
 
开发者ID:mapzen,项目名称:open,代码行数:15,代码来源:BaseActivity.java

示例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);

}
 
开发者ID:Dimoshka,项目名称:JWP,代码行数:35,代码来源:player.java

示例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();
}
 
开发者ID:Dimoshka,项目名称:JWP,代码行数:16,代码来源:preferences.java

示例12: onCreate

import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    Mint.initAndStartSession(getApplicationContext(), GYConfiguration.SPLUNK_ID);
    mInstance = this;
}
 
开发者ID:Turkcell,项目名称:GYAppAnd,代码行数:7,代码来源:AppController.java

示例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);


}
 
开发者ID:Turkcell,项目名称:GYAppAnd,代码行数:22,代码来源:YorumActivity.java

示例14: onCreate

import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void onCreate() {
	super.onCreate();
	Mint.initAndStartSession(this,MobileLearning.MINT_API_KEY);
}
 
开发者ID:iSchool-Zambia,项目名称:ischool-oppia-mobile,代码行数:6,代码来源:TrackerService.java

示例15: logExceptions

import com.splunk.mint.Mint; //导入方法依赖的package包/类
public static void logExceptions(Context context) {
    // Initialize bug tracking
    Mint.initAndStartSession(context, Logging.MINT_API_KEY);
}
 
开发者ID:eladnava,项目名称:redalert-android,代码行数:5,代码来源:SplunkMINT.java


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