List of usage examples for android.util Log wtf
public static int wtf(String tag, String msg, Throwable tr)
From source file:Main.java
public static int wtf(String tag, String msg) { return Log.wtf(tag, msg, null); }
From source file:Main.java
public static int wtf(String tag, Throwable tr) { return Log.wtf(tag, tr.getMessage(), tr); }
From source file:Main.java
public static int wtf(String tag, String msg, Throwable tr) { return Log.wtf(tag, msg, tr); }
From source file:Main.java
/** * What a Terrible Failure: Report a condition that should never happen. * The error will always be logged at level ASSERT with the call stack. * Depending on system configuration, a report may be added to the * {@link android.os.DropBoxManager} and/or the process may be terminated * immediately with an error dialog.//w w w . j a va2 s . c om * @param tag Used to identify the source of a log message. It usually identifies * the class or activity where the log call occurs. * @param format the format string (see {@link java.util.Formatter#format}) * @param args * the list of arguments passed to the formatter. If there are * more arguments than required by {@code format}, * additional arguments are ignored. */ public static int wtf(String tag, String format, Object... args) { return Log.wtf(tag, String.format(format, args), new Error()); }
From source file:com.android.volley.VolleyLog.java
public static void wtf(Throwable tr, String format, Object... args) { Log.wtf(TAG, buildMessage(format, args), tr); }
From source file:Main.java
/** * What a Terrible Failure: Report a condition that should never happen. * The error will always be logged at level ASSERT with the call stack. * Depending on system configuration, a report may be added to the * {@link android.os.DropBoxManager} and/or the process may be terminated * immediately with an error dialog./*from w w w .j a v a 2 s.co m*/ * @param tag Used to identify the source of a log message. It usually identifies * the class or activity where the log call occurs. * @param tr An exception to log * @param format the format string (see {@link java.util.Formatter#format}) * @param args * the list of arguments passed to the formatter. If there are * more arguments than required by {@code format}, * additional arguments are ignored. */ public static int wtf(String tag, Throwable tr, String format, Object... args) { return Log.wtf(tag, String.format(format, args), tr); }
From source file:org.openyolo.demoprovider.barbican.storage.CredentialStorageService.java
@Override public void onCreate() { super.onCreate(); Log.d(LOG_TAG, "enter onCreate"); try {/*from w ww .j a va2 s.c o m*/ mStorage = new CredentialStorage(this); } catch (IOException ex) { Log.wtf(LOG_TAG, "Failed to open credential storage", ex); return; } Log.d(LOG_TAG, "after create storage"); }
From source file:de.jadehs.jadehsnavigator.util.Preferences.java
/** * Initializes the preferences. Sets URL for InfoSys, VPlan and the location *//*from ww w .j a v a2 s . co m*/ public void initPreferences() { try { this.fb = Integer.parseInt(this.sharedPrefs.getString("FBPreference_list", "1")); // sharedPrefs.getInt funktioniert nicht.. } catch (Exception ex) { //ex.printStackTrace(); Log.wtf("PREFERENCE_ERROR", "Got an Error!", ex); } switch (this.fb) { case 1: // MIT this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_MIT); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_MIT) + "&identifier="; this.location = context.getResources().getString(R.string.bez_WHV); break; case 2: // I this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_I); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_I) + "&identifier="; this.location = context.getResources().getString(R.string.bez_WHV); break; case 3: // W this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_W); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_W) + "&identifier="; this.location = context.getResources().getString(R.string.bez_WHV); break; case 4: // A this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_A); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_A) + "&identifier="; this.location = context.getResources().getString(R.string.bez_OLB); break; case 5: // BUG this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_BUA); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_BUA) + "&identifier="; this.location = context.getResources().getString(R.string.bez_OLB); break; case 6: // S this.infoSysURL = this.context.getString(R.string.infosys_base_url) + this.context.getString(R.string.infosys_url_S); this.vplanURL = context.getString(R.string.strVPlanBaseURL) + context.getString(R.string.infosys_url_S) + "&identifier="; this.location = context.getResources().getString(R.string.bez_ELS); break; default: Toast.makeText(this.context, "Fachbereich wurde nicht gefunden", Toast.LENGTH_LONG).show(); break; } }
From source file:org.level28.android.moca.ui.home.HomeFragment.java
@Override public Loader<List<HomeSection>> onCreateLoader(int id, final Bundle args) { return new AsyncLoader<List<HomeSection>>(getActivity()) { @Override/*from w ww . j a va 2 s . com*/ public List<HomeSection> loadInBackground() { if (BuildConfig.DEBUG) { Log.v(LOG_TAG, "loadInBackground+"); } HomeDeserializer jsonLoader = new HomeDeserializer(); List<HomeSection> contents = Collections.emptyList(); InputStream in = null; try { in = getContext().getResources().openRawResource(R.raw.home); contents = jsonLoader.fromInputStream(in); } catch (NotFoundException e) { // Are you kidding me? Log.wtf(LOG_TAG, "Raw JSON resource for Home not found", e); } catch (JsonDeserializerException e) { Log.e(LOG_TAG, "Internal Jackson error", e); } finally { if (in != null) { try { in.close(); } catch (IOException e) { // Swallow the I/O exception } } } if (BuildConfig.DEBUG) { Log.v(LOG_TAG, "loadInBackground-"); } return contents; } }; }
From source file:com.klinker.android.dream.DreamSceneService.java
/** * Start a thread that fetches a JSONArray of all wallpapers, then set the first one *///from w w w .j a v a 2 s .c o m private void initBackgrounds() { new Thread(new Runnable() { @Override public void run() { try { String elements = NetworkUtils.getJsonString(JSON_URL); backgrounds = new JSONArray(elements); Log.v(TAG, "found JSONArray: " + elements); handler.post(new Runnable() { @Override public void run() { switchBackground(); } }); } catch (JSONException e) { Log.wtf(TAG, "something wrong with backgrounds json :(", e); } } }).start(); }