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); | |
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
// Add code to print out the key hash | |
try { | |
PackageInfo info = context.getPackageManager().getPackageInfo( | |
BuildConfig.APPLICATION_ID, | |
PackageManager.GET_SIGNATURES); | |
for (Signature signature : info.signatures) { | |
MessageDigest md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); | |
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); | |
} |
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
.addCallAdapterFactory(new CallAdapter.Factory() { | |
//relevant SO: https://github.com/square/retrofit/pull/1117 | |
RxJavaCallAdapterFactory delegate = RxJavaCallAdapterFactory.create(); | |
@Override | |
public CallAdapter<?> get(Type returnType, Annotation[] annotations, Retrofit retrofit) { | |
//noinspection unchecked | |
CallAdapter<Observable<?>> delegate2 = (CallAdapter<Observable<?>>) delegate.get(returnType, annotations, retrofit); | |
return new CallAdapter<Object>() { | |
@Override |
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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
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
org.gradle.daemon=true | |
# When configured, Gradle will run in incubating parallel mode. | |
# This option should only be used with decoupled projects. More details, visit | |
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | |
org.gradle.parallel=true | |
org.gradle.configureondemand=true | |
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/ |
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
{ | |
"APIVersion": "5747657", | |
"Id": 14077, | |
"Name": "Toma", | |
"Latitude": 50.069373, | |
"Longitude": 15.898114, | |
"Sections": [{ | |
"Id": 9313, | |
"Name": "Parter", | |
"Scale": 100.00000, |
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
0x0034032F5A120002439bC4346a8d418Af902169F |
OlderNewer