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