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


Java ResearchStack类代码示例

本文整理汇总了Java中org.researchstack.skin.ResearchStack的典型用法代码示例。如果您正苦于以下问题:Java ResearchStack类的具体用法?Java ResearchStack怎么用?Java ResearchStack使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: onCreate

import org.researchstack.skin.ResearchStack; //导入依赖的package包/类
@Override
public void onCreate()
{
    super.onCreate();
    MultiDex.install(this);
    // TODO remove Fabric/Crashlytics after QA process
    Fabric.with(this, new Crashlytics());

    ResearchStack.init(this, new MoleMapperResearchStack());
}
 
开发者ID:ResearchStack,项目名称:MoleMapperAndroid,代码行数:11,代码来源:MoleMapperApplication.java

示例2: onCreate

import org.researchstack.skin.ResearchStack; //导入依赖的package包/类
@Override
public void onCreate()
{
    super.onCreate();

    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    // Init RS Singleton
    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    ResearchStack.init(this, new SampleResearchStack());

    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    // Init permission objects
    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    // If Build is M or >, add needed permissions
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
    {
        PermissionRequestManager.PermissionRequest location = new PermissionRequestManager.PermissionRequest(Manifest.permission.ACCESS_FINE_LOCATION,
                R.drawable.rss_ic_location_24dp,
                R.string.rss_permission_location_title,
                R.string.rss_permission_location_desc);
        location.setIsBlockingPermission(true);
        location.setIsSystemPermission(true);

        PermissionRequestManager.getInstance().addPermission(location);
    }

    // We have some unique permissions that tie into Settings. You will need
    // to handle the UI for this permission along w/ storing the result.
    PermissionRequestManager.PermissionRequest notifications =
            new PermissionRequestManager.PermissionRequest(
                    PERMISSION_NOTIFICATIONS,
                    R.drawable.rss_ic_notification_24dp,
                    R.string.rss_permission_notification_title,
                    R.string.rss_permission_notification_desc
            );

    PermissionRequestManager.getInstance().addPermission(notifications);
}
 
开发者ID:ResearchStack,项目名称:SampleApp,代码行数:41,代码来源:SampleApplication.java

示例3: onCreate

import org.researchstack.skin.ResearchStack; //导入依赖的package包/类
@Override
public void onCreate()
{
    Log.d(TAG, "Checked Bluetooth");
    super.onCreate();

    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    // Init RS Singleton
    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    ResearchStack.init(this, new SampleResearchStack());

    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    // Init permission objects
    //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    // If Build is M or >, add needed permissions
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
    {
        PermissionRequestManager.PermissionRequest location = new PermissionRequestManager.PermissionRequest(Manifest.permission.ACCESS_FINE_LOCATION,
                R.drawable.rss_ic_location_24dp,
                R.string.rss_permission_location_title,
                R.string.rss_permission_location_desc);
        location.setIsBlockingPermission(true);
        location.setIsSystemPermission(true);

        PermissionRequestManager.getInstance().addPermission(location);
    }

    // We have some unique permissions that tie into Settings. You will need
    // to handle the UI for this permission along w/ storing the result.
    PermissionRequestManager.PermissionRequest notifications =
            new PermissionRequestManager.PermissionRequest(
                    PERMISSION_NOTIFICATIONS,
                    R.drawable.rss_ic_notification_24dp,
                    R.string.rss_permission_notification_title,
                    R.string.rss_permission_mandatory_notification_desc //Modified to state that notifications are important for core functionality
            );

    Log.d(TAG, "Launch Beacon Monitoring Service");
    Intent intent = new Intent(this, MonitoringService.class);
    startService(intent);
}
 
开发者ID:daviszhou,项目名称:BeaconTrackerAndroid,代码行数:44,代码来源:SampleApplication.java


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