Skip to content

Instantly share code, notes, and snippets.

View 29jitender's full-sized avatar
💭
I may be slow to respond.

Jitender Chaudhary 29jitender

💭
I may be slow to respond.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am 29jitender on github.
* I am 29jitender (https://keybase.io/29jitender) on keybase.
* I have a public key whose fingerprint is 3AF3 C3D7 AC72 1B15 116F 974A 5183 7783 47AA B40E
To claim this, I am signing this object:
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPager;
import android.view.View;
/**
* Custom PageTransformer simulates Yahoo News Digest ViewPager animation.
*
*
* Created by zhelu on 2/27/14.
*/
@29jitender
29jitender / gist:813107319641e7c99ddb
Created October 7, 2014 09:35
get contact image from contact id
public Uri getContactPhotoUri(long contactId) {
Uri photoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI,
contactId);
photoUri = Uri.withAppendedPath(photoUri,
Contacts.Photo.CONTENT_DIRECTORY);
return photoUri;
}