Java Code Examples for org.appcelerator.kroll.annotations.Kroll#onAppCreate()
The following examples show how to use
org.appcelerator.kroll.annotations.Kroll#onAppCreate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionbarextrasModule.java From actionbarextras with MIT License | 6 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { // hack taken from: // http://stackoverflow.com/questions/9286822/how-to-force-use-of-overflow-menu-on-devices-with-menu-button try { ViewConfiguration config = ViewConfiguration.get(app); java.lang.reflect.Field menuKeyField = ViewConfiguration.class .getDeclaredField("sHasPermanentMenuKey"); if (menuKeyField != null) { menuKeyField.setAccessible(true); menuKeyField.setBoolean(config, false); } } catch (Exception ex) { // Ignore } }
Example 2
Source File: TicroutonModule.java From TiCrouton with MIT License | 5 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(TAG, "inside onAppCreate"); // put module init code that needs to run when the application is created }
Example 3
Source File: NovarumbluetoothModule.java From NovarumBluetooth with MIT License | 5 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(TAG, "inside onAppCreate"); // put module init code that needs to run when the application is created bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); }
Example 4
Source File: CaffeinaGCMModule.java From gcm with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(LCAT, "onAppCreate " + app + " (" + (instance != null) + ")"); }
Example 5
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(LCAT, "onAppCreate " + app + " (" + (instance != null) + ")"); }
Example 6
Source File: RealswitchModule.java From RealSwitch with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(TAG, "inside onAppCreate"); // put module init code that needs to run when the application is created }
Example 7
Source File: CustomAndroidCameraModule.java From Ti-Android-CameraView with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(TAG, "inside onAppCreate"); // put module init code that needs to run when the application is created }
Example 8
Source File: AndroidcollectionviewModule.java From TiCollectionView with MIT License | 4 votes |
@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 }
Example 9
Source File: TiBubbleAndroidModule.java From TiBubbleViewForAndroid with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { // put module init code that needs to run when the application is // created }
Example 10
Source File: TiTouchImageViewModule.java From TiTouchImageView with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { }
Example 11
Source File: AutofocusModule.java From TiAndroidAutofocus with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { Log.d(TAG, "inside onAppCreate"); // put module init code that needs to run when the application is created }
Example 12
Source File: TidialogsModule.java From TiDialogs with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { }
Example 13
Source File: DrawerlayoutModule.java From Ti.DrawerLayout with MIT License | 4 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { // put module init code that needs to run when the application is created }
Example 14
Source File: ImagepickerModule.java From titanium-imagepicker with Apache License 2.0 | 2 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { }
Example 15
Source File: ImagepickerModule.java From titanium-imagepicker with Apache License 2.0 | 2 votes |
@Kroll.onAppCreate public static void onAppCreate(TiApplication app) { }