Code example for PlusClient

Methods: getAccountNamegetCurrentPerson

0
    } 
 
    @Override 
    public void onConnected(Bundle bundle) {
        mConnectionProgressDialog.dismiss();
        String accountName = mPlusClient.getAccountName();
        Toast.makeText(this, accountName + " is connected.", Toast.LENGTH_LONG).show();
 
        userImage.setImageBitmap(downloadfile(mPlusClient.getCurrentPerson().getImage().getUrl().toString()));
        userName.setText(mPlusClient.getCurrentPerson().getDisplayName());
    } 
 
    @Override 
    public void onDisconnected() { 
        Log.d(TAG, "disconnected");
    } 
 
    ///     ***     ///         PLUS INTEGRATION        ///     ***     /// 
 
    public static Bitmap downloadfile(String fileurl/*, ImageView img*/) {
Stop searching for code, let great code find you!  Add Codota to your java IDE