This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log; | |
import com.crashlytics.android.Crashlytics; | |
import com.crashlytics.android.core.CrashlyticsCore; | |
import timber.log.Timber; | |
/** | |
* Taken from https://gist.github.com/adi1133/2e76e69f8541c2d83473 | |
*/ | |
public class CrashlyticsTree extends Timber.Tree { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent intent = new Intent(); | |
intent.setType("image/*"); | |
intent.setAction(Intent.ACTION_GET_CONTENT); | |
startActivityForResult(Intent.createChooser(intent, "Select Picture"), 0); | |
Intent pickContactIntent = new Intent(Intent.ACTION_PICK, Uri.parse("content://contacts")); | |
pickContactIntent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); // Show user only contacts w/ phone numbers | |
startActivityForResult(pickContactIntent, 0); | |
NewerOlder