Package android.net

Examples of android.net.Uri


    if (i == null)
    {
      return false;
    }
   
    Uri uri = i.getData();
   
    return isCallback(uri);
  }
View Full Code Here


        String columns[] = new String[]{Media._ID, Media.DATA, Media.DISPLAY_NAME, Media.MIME_TYPE, Media.SIZE, Media.MINI_THUMB_MAGIC};

        // loop until break
        while( true ) {
            // get latest image from table
            Uri image = ContentUris.withAppendedId( Media.EXTERNAL_CONTENT_URI, latestId );
            Cursor cursor = application.managedQuery( image, columns, null, null, null );

            // check if cursus has rows, if not break and exit loop
            if( cursor.moveToFirst() ) {
                // get thumbnail field
View Full Code Here

        MODE_PRIVATE);

    String requestTokenSecret = preferences.getString(REQUEST_TOKEN_SECRET,
        null);
    String requestToken = preferences.getString(REQUEST_TOKEN, null);
    Uri data = getIntent().getData();

    if (requestToken != null) {
      return new OAuth3LeggedScheme.Token(requestToken, requestTokenSecret);
    }

    if (data != null) {
      int tokenIndex = data.toString().indexOf("oauth_token");

      if (tokenIndex != -1) {
        String token = data.toString().substring(tokenIndex + 12);

        return new OAuth3LeggedScheme.Token(OAuth.decodePercent(token), "");
      }
    }
View Full Code Here

TOP

Related Classes of android.net.Uri

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.