Skip to content

Instantly share code, notes, and snippets.

View code-crusher's full-sized avatar

Vatsal Bajpai code-crusher

View GitHub Profile
@code-crusher
code-crusher / tune-android-sdk-systemproperties.md
Created September 11, 2019 00:31
tune-android-sdk-systemproperties

tune-android-sdk-systemproperties

Steps to integrate:

Copy the below code in your app into a new file TunePreloadSystemData.java:

class TunePreloadSystemData {

    private static final String SYSTEM_PROPERTIES_CLASS_KEY = "android.os.SystemProperties";
    private static final String TUNE_BRANCH_PREINSTALL_PROP_KEY = "io.branch.tune.preinstall.apps.path";
# Debugging 201
===
**Android**
1. Best way to debug Android is to use Charles always, at least we do not add cert pinning.
2. How to see and tackle common issues:
1. *Deferred deep linking is not working part 1:* This happens when the Branch SDK is not initialised in the Launcher Activity. Make sure this is implemented correctly.
2. *Deferred deep linking is not working part 2:* Even if the partner has set the initSession() within the Launcher Activity, deferred deep linking can still fail. This happens due to Java:. Here’s an example:
``` Java
protected void onStart(){
super.onStart();
@code-crusher
code-crusher / ReverseInterpolator.java
Created August 4, 2016 21:05
Reverse Interpolator Android Animation
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
class ReverseInterpolator implements Interpolator {
private Interpolator interpolator;
public ReverseInterpolator(Interpolator interpolator) {
this.interpolator = interpolator;
@code-crusher
code-crusher / KotlinActivity.kt
Last active July 30, 2016 15:59
Kotlin Demo
class KotlinActivity : AppCompatActivity() {
val text = "Made with Kotlin"
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_kotlin)
init()
}