List of usage examples for org.apache.cordova.api LOG e
public static void e(String tag, String s)
From source file:com.MustacheMonitor.MustacheMonitor.StacheCam.java
License:Apache License
public void onMediaScannerConnected() { try {//from www.j a v a2 s . co m this.conn.scanFile(this.scanMe.toString(), "image/*"); } catch (java.lang.IllegalStateException e) { LOG.e(LOG_TAG, "Can't scan file in MediaScanner aftering taking picture"); } }
From source file:com.phonegap.plugins.wsiCameraLauncher.WsiCameraLauncher.java
License:Apache License
public void onMediaScannerConnected() { try {/*from w ww. j a v a 2 s . c om*/ this.conn.scanFile(this.scanMe.toString(), "image/*"); } catch (java.lang.IllegalStateException e) { LOG.e(LOG_TAG, "Can't scan file in MediaScanner after taking picture"); } }
From source file:de.dfki.iui.opentok.cordova.plugin.OpenTokPlugin.java
License:Open Source License
private PluginResult doUnsubscribe(String sid, boolean onlyCleanUp) { Subscriber subscriber = subscriberDictionary.get(sid); // subscriber.getStream().getConnection(). if (subscriber == null) { if (isError()) LOG.e(PLUGIN_NAME, String.format("unsubscribe(%s): coud not find subscriber for this stream.", sid)); //TODO should this return an error? return new PluginResult(PluginResult.Status.OK, "unsubscribe: no subscriber for stream " + sid); ////////////////////////////////////////////////////////////// EARLY EXIT //////////// }// w ww . j av a2 s . c om ImageView audioIcon = subscriberAudioIconDictionary.get(sid); viewAdministrator.removeView(this.cordova.getActivity(), audioIcon); subscriberAudioIconDictionary.remove(sid); viewAdministrator.removeView(this.cordova.getActivity(), subscriber.getView()); if (!onlyCleanUp) { _session.unsubscribe(subscriber); } subscriberDictionary.remove(sid); // Return to JS event handler return new PluginResult(PluginResult.Status.OK, "unsubscribe [stream " + sid + "]"); }
From source file:de.dfki.iui.opentok.cordova.plugin.OpenTokPlugin.java
License:Open Source License
private void doDebug(String str, String prefix) { String tag = "OpenTokPlugin.DEBUGINFO"; if (prefix == null || prefix.length() < 1) { prefix = ""; } else {/* w w w . j a v a 2 s .c o m*/ tag += "-" + prefix; prefix += " - "; } LOG.e(tag, prefix + str); }