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


Java Kroll.onAppCreate方法代码示例

本文整理汇总了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);
}
 
开发者ID:E2010,项目名称:android-parse-module-titanium-3-5,代码行数:22,代码来源:AndroidTitaniumParseModule.java

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

示例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);
       }
}
 
开发者ID:a-voityuk,项目名称:CTTimekoGCM,代码行数:10,代码来源:CttimekogcmModule.java

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

示例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);
}
 
开发者ID:dwk5123,项目名称:android-altbeacon-module,代码行数:8,代码来源:AndroidAltbeaconModuleModule.java

示例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
}
 
开发者ID:prashantsaini1,项目名称:ti-chrometabs,代码行数:7,代码来源:TichrometabsModule.java

示例7: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
	Log.d(LCAT, "inside onAppCreate");
}
 
开发者ID:prashantsaini1,项目名称:android-titanium-imagecropper,代码行数:5,代码来源:ImagecropModule.java

示例8: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
    Log.d(LCAT, "onAppCreate " + app + " (" + (instance != null) + ")");
}
 
开发者ID:morinel,项目名称:gcmpush,代码行数:5,代码来源:GCMModule.java

示例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
}
 
开发者ID:GregPerez83,项目名称:ti-gcm,代码行数:5,代码来源:TiGcmModule.java

示例10: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app)
{
}
 
开发者ID:eric-sofisoftwarellc,项目名称:TiLicensing,代码行数:5,代码来源:LicensingModule.java

示例11: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
  Log.d(LCAT, "TiIntercom : onAppCreate");
  theApp = app;
}
 
开发者ID:centogram,项目名称:TiIntercomAndroid,代码行数:6,代码来源:TiintercomandroidModule.java

示例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
}
 
开发者ID:falkolab,项目名称:Ti.NotificationFactory,代码行数:7,代码来源:NotificationfactoryModule.java

示例13: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {
	
}
 
开发者ID:prashantsaini1,项目名称:titanium-android-imagepicker,代码行数:5,代码来源:ImagepickerModule.java

示例14: onAppCreate

import org.appcelerator.kroll.annotations.Kroll; //导入方法依赖的package包/类
@Kroll.onAppCreate
public static void onAppCreate(TiApplication app) {

}
 
开发者ID:manumaticx,项目名称:TelephonyManager,代码行数:5,代码来源:TelephonyManagerModule.java


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