Java Code Examples for org.appcelerator.kroll.common.Log#d()
The following examples show how to use
org.appcelerator.kroll.common.Log#d() .
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: NovarumbluetoothModule.java From NovarumBluetooth with MIT License | 6 votes |
@Kroll.method public KrollDict getPairedDevices() { Log.d(TAG, "getPairedDevices called"); Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices(); KrollDict result = new KrollDict(); // If there are paired devices if (pairedDevices.size() > 0) { // Loop through paired devices for (BluetoothDevice device : pairedDevices) { //Halilk: for some devices, device name is the same so put some of mac digits String strDigitstoAdd = device.getAddress(); strDigitstoAdd = strDigitstoAdd.replace(":",""); result.put(device.getName()+"_"+strDigitstoAdd, device.getAddress()); } } return result; }
Example 2
Source File: TicroutonModule.java From TiCrouton with MIT License | 5 votes |
@Kroll.method public Crouton makeText(String text, int style) { Log.d(TAG, "makeText called"); return Crouton.makeText(TiApplication.getInstance().getCurrentActivity(), text, getStyle(style)); }
Example 3
Source File: NativeBubbleView.java From TiBubbleViewForAndroid with MIT License | 5 votes |
public NativeBubbleView(Context context) { super(context); this.radius = 20.0F; this.bubbleBeak = 1; this.bubbleBeakVertical = 0; setWillNotDraw(false); DisplayMetrics metrics = context.getResources().getDisplayMetrics(); padding = metrics.widthPixels / 100; Log.d(LCAT, "padding = " + padding); }
Example 4
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 5 votes |
@Kroll.method @Kroll.setProperty @SuppressWarnings("unchecked") public void setNotificationSettings(Map notificationSettings) { Log.d(LCAT, "Setting notification settings"); JSONObject json = new JSONObject(notificationSettings); TiApplication.getInstance().getAppProperties().setString(GCMModule.NOTIFICATION_SETTINGS, json.toString()); }
Example 5
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Override public void onResume(Activity activity) { Log.d(LCAT, "onResume " + activity + " (" + (instance != null) + ")"); super.onResume(activity); }
Example 6
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 7
Source File: RealswitchModule.java From RealSwitch with MIT License | 4 votes |
@Kroll.setProperty public void setExampleProp(String value) { Log.d(TAG, "set example property: " + value); }
Example 8
Source File: AutofocusModule.java From TiAndroidAutofocus with MIT License | 4 votes |
@Kroll.setProperty public void setExampleProp(String value) { Log.d(TAG, "set example property: " + value); }
Example 9
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 10
Source File: NovarumbluetoothModule.java From NovarumBluetooth with MIT License | 4 votes |
@Kroll.method public String example() { Log.d(TAG, "example called"); return "hello world"; }
Example 11
Source File: ExampleProxy.java From TiCollectionView with MIT License | 4 votes |
@Kroll.method public void printMessage(String message) { Log.d(LCAT, "printing message: " + message); }
Example 12
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Override public void onDestroy(Activity activity) { Log.d(LCAT, "onDestroy " + activity + " (" + (instance != null) + ")"); super.onDestroy(activity); }
Example 13
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Override public void onPause(Activity activity) { Log.d(LCAT, "onPause " + activity + " (" + (instance != null) + ")"); super.onPause(activity); }
Example 14
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 15
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Override protected void initActivity(Activity activity) { Log.d(LCAT, "initActivity " + activity + " (" + (instance != null) + ")"); super.initActivity(activity); }
Example 16
Source File: AutofocusModule.java From TiAndroidAutofocus with MIT License | 4 votes |
@Kroll.method public String example() { Log.d(TAG, "example called"); return "hello world"; }
Example 17
Source File: GCMModule.java From gcmpush with Apache License 2.0 | 4 votes |
@Kroll.method @Kroll.getProperty public String getRegistrationId() { Log.d(LCAT, "get registrationId property"); return GCMRegistrar.getRegistrationId(TiApplication.getInstance()); }
Example 18
Source File: AndroidcollectionviewModule.java From TiCollectionView with MIT License | 4 votes |
@Kroll.method public String example() { Log.d(LCAT, "example called"); return "hello world"; }
Example 19
Source File: GCMIntentService.java From gcmpush with Apache License 2.0 | 4 votes |
@Override public void onUnregistered(Context context, String registrationId) { Log.d(LCAT, "Unregistered"); GCMModule.getInstance().fireEvent(UNREGISTER_EVENT, new HashMap<String, Object>()); }
Example 20
Source File: GCMIntentService.java From gcmpush with Apache License 2.0 | 4 votes |
@Override public void onRegistered(Context context, String registrationId) { Log.d(LCAT, "Registered: " + registrationId); GCMModule.getInstance().sendSuccess(registrationId); }