當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。