本文整理汇总了Java中org.appcelerator.kroll.annotations.Kroll.onAppCreate方法的典型用法代码示例。如果您正苦于以下问题:Java Kroll.onAppCreate方法的具体用法?Java Kroll.onAppCreate怎么用?Java Kroll.onAppCreate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.appcelerator.kroll.annotations.Kroll
的用法示例。
在下文中一共展示了Kroll.onAppCreate方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
Log.d(LCAT, "inside onAppCreate");
// put module init code that needs to run when the application is created
// Store a reference to the parse singleton now that the app is ready
parseSingleton = ParseSingleton.Instance();
// Obtain the application and client keys from the tiapp.xml file.
// It must be stored there because of the way Android applications work,
// we can't initialize the module during runtime because the application is
// started when a push notification is received
String propertyAppId = app.getAppProperties().getString(ParseSingleton.PROPERTY_APP_ID, "");
String propertyClientKey = app.getAppProperties().getString(ParseSingleton.PROPERTY_CLIENT_KEY, "");
String propertyServerUrl = app.getAppProperties().getString(ParseSingleton.PROPERTY_SERVER_URL, "");
// Invoke the Parse SDK Initialize method
//parseSingleton.InitializeParse(propertyAppId, propertyClientKey, app);
parseSingleton.InitializeParseWithConfig(propertyAppId, propertyClientKey, propertyServerUrl, app);
}
示例2: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
String appId = TiApplication.getInstance().getAppProperties().getString(ParseModule.PROPERTY_APP_ID, "");
String clientKey = TiApplication.getInstance().getAppProperties().getString(ParseModule.PROPERTY_CLIENT_KEY, "");
String serverUrl = TiApplication.getInstance().getAppProperties().getString(ParseModule.PROPERTY_SERVER_URL, "");
Log.d(TAG, "Initializing with: " + appId + ", " + clientKey + ", " + serverUrl);
Parse.initialize(new Parse.Configuration.Builder(TiApplication.getInstance())
.applicationId(appId)
.clientKey(clientKey)
.server(serverUrl + "/") // The trailing slash is important.
.build()
);
}
示例3: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
Log.d(TAG, "inside onAppCreate");
if(!app.getAppProperties().hasProperty(PROPERTY_NOTIFICATION_COUNTER)) {
app.getAppProperties().setInt(PROPERTY_NOTIFICATION_COUNTER, 0);
}
}
示例4: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
if(!app.getAppProperties().hasProperty(PROPERTY_NOTIFICATION_COUNTER)) {
app.getAppProperties().setInt(PROPERTY_NOTIFICATION_COUNTER, 0);
}
}
示例5: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
Log.d(LCAT, "Create beaconmanager, setup in foregroundmode");
beaconManager = BeaconManager.getInstanceForApplication(app);
beaconManager.setBackgroundMode(false);
beaconManager.setDebug(false);
}
示例6: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
Log.d(LCAT, "inside onAppCreate");
// put module init code that needs to run when the application is created
}
示例7: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
Log.d(LCAT, "inside onAppCreate");
}
示例8: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
Log.d(LCAT, "onAppCreate " + app + " (" + (instance != null) + ")");
}
示例9: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
// put module init code that needs to run when the application is created
}
示例10: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
}
示例11: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
Log.d(LCAT, "TiIntercom : onAppCreate");
theApp = app;
}
示例12: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
Log.d(LCAT, "inside onAppCreate");
// put module init code that needs to run when the application is
// created
}
示例13: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
}
示例14: onAppCreate
import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
}