Example usage for android.util Log v

List of usage examples for android.util Log v

Introduction

In this page you can find the example usage for android.util Log v.

Prototype

public static int v(String tag, String msg) 

Source Link

Document

Send a #VERBOSE log message.

Usage

From source file:br.com.cams7.siscom.member.MemberEdit.java

public void addListenerOnSave() {

    bSave = (Button) findViewById(R.id.bSave);

    bSave.setOnClickListener(new OnClickListener() {

        @Override//  www . j av a 2 s  .c  om
        public void onClick(View view) {
            // Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri
            // .parse("http://www.mkyong.com"));
            // startActivity(browserIntent);
            Log.v(TAG, "Save button clicked");

            if (validate()) {
                new HttpAsyncTask().execute(URL);

                Toast.makeText(getBaseContext(), getString(R.string.msg_enter_some_data), Toast.LENGTH_LONG)
                        .show();

                finish();
            }
        }
    });

}

From source file:com.snicesoft.basekit.LogKit.java

public static void v(String content) {
    if (!allowV)//  ww w  .  j ava  2s  .  c o m
        return;
    StackTraceElement caller = getCallerStackTraceElement();
    String tag = generateTag(caller);
    Log.v(tag, content);
}

From source file:pt.up.mobile.authenticator.Authenticator.java

@Override
public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType,
        String[] requiredFeatures, Bundle options) {
    Log.v(TAG, "addAccount()");
    final Intent intent = new Intent(mContext, AuthenticatorActivity.class);
    intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
    final Bundle bundle = new Bundle();
    bundle.putParcelable(AccountManager.KEY_INTENT, intent);
    return bundle;
}

From source file:com.github.hobbe.android.openkarotz.fragment.RadioFragment.java

@Override
public void onCreate(Bundle savedInstanceState) {
    Log.v(LOG_TAG, "onCreate");
    radioGroups = loadRadios();//from  w  w  w  . ja v  a 2  s.com

    super.onCreate(savedInstanceState);
}

From source file:jp.seikeidenron.androidtv.common.Utils.java

public static JSONObject parseUrl(String urlString) {
    Log.v(TAG, "Parse URL: " + urlString);
    BufferedReader reader = null;

    try {/*  ww w .jav  a 2 s .  c o  m*/
        java.net.URL url = new java.net.URL(urlString);
        URLConnection urlConnection = url.openConnection();
        reader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
        //urlConnection.getInputStream(), "iso-8859-1"));
        return convertBufferedReaderToJSONObject(reader);
    } catch (Exception e) {
        Log.w(TAG, "Failed to parse the json for media list", e);
        return null;
    } finally {
        if (null != reader) {
            try {
                reader.close();
            } catch (IOException e) {
                Log.w(TAG, "JSON feed closed", e);
            }
        }
    }
}

From source file:org.openschedule.api.impl.EventTemplate.java

public void addEventComment(String shortName, Comment comment) {
    Log.v(TAG, "addEventComment : enter");

    HttpHeaders requestHeaders = new HttpHeaders();
    requestHeaders.setContentType(new MediaType("application", "json"));

    HttpEntity<Comment> requestEntity = new HttpEntity<Comment>(comment, requestHeaders);

    restTemplate.exchange("public/" + shortName + "/comments", HttpMethod.POST, requestEntity, String.class,
            shortName).getBody();/*from   w ww.  jav  a  2s.  c  om*/

    Log.v(TAG, "addEventComment : exit");
}

From source file:Main.java

/**
 * Validates an OpenGL program. Should only be called when developing the
 * application./*from w w w.  j av a2s. c o m*/
 */
public static boolean validateProgram(int programObjectId) {
    glValidateProgram(programObjectId);
    final int[] validateStatus = new int[1];
    glGetProgramiv(programObjectId, GL_VALIDATE_STATUS, validateStatus, 0);
    Log.v(TAG, "Results of validating program: " + validateStatus[0] + "\nLog:"
            + glGetProgramInfoLog(programObjectId));

    return validateStatus[0] != 0;
}

From source file:fr.seeks.SuggestionProvider.java

@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {

    String query = uri.getLastPathSegment();

    if (query == null || query.equals("") || query.equals("search_suggest_query"))
        return null;

    Log.v(TAG, "Request '" + query + "' for '" + uri + "'");

    MatrixCursor matrix = new MatrixCursor(
            new String[] { BaseColumns._ID, KEY_TITLE, KEY_DESCRIPTION, KEY_QUERY, KEY_ACTION, KEY_URL });

    Boolean instant_suggest = mPrefs.getBoolean("instant_suggest", false);
    if (instant_suggest) {
        setCursorOfQuery(uri, query, matrix);
    } else {//from  www.j av a2s  .co  m
        perhapsSetCursorOfQuery(uri, query, matrix);
    }
    matrix.setNotificationUri(getContext().getContentResolver(), uri);

    return matrix;
}

From source file:com.example.run_tracker.LoginFragment.java

public void onDestroy() {
    super.onDestroy();
    Log.v(TAG, "onDestroy");
    AppController.getInstance().cancelPendingRequests(TAG);
}

From source file:com.example.fastgive.CaptureActivity.java

@Override
protected void onDestroy() {
    super.onDestroy();
    Log.v(TAG, "onDestroy()");
}