Impact | Description | Total |
---|---|---|
Direct Impact | Meetups, confs and talks | +1.1k |
Indirect Impact | Articles, Stack overflow | +135k |
People Trained | Workshops | +60 |
This file contains hidden or 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
package hakerrank | |
import java.io.* | |
import java.math.* | |
import java.security.* | |
import java.text.* | |
import java.util.* | |
import java.util.concurrent.* | |
import java.util.function.* | |
import java.util.regex.* |
This file contains hidden or 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
public class MyApp extends MultiDexApplication { | |
private static final String TAG = MyApp.class.getName(); | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
AppLifecycleObserver appLifecycleObserver = new AppLifecycleObserver(); | |
ProcessLifecycleOwner.get().getLifecycle().addObserver(appLifecycleObserver); |
This file contains hidden or 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
public class AppLifecycleObserver implements LifecycleObserver { | |
public static final String TAG = AppLifecycleObserver.class.getName(); | |
@OnLifecycleEvent(Lifecycle.Event.ON_START) | |
public void onEnterForeground() { | |
//run the code we need | |
} | |
@OnLifecycleEvent(Lifecycle.Event.ON_STOP) |
This file contains hidden or 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
<android.support.design.widget.BottomNavigationView | |
android:id="@+id/main_bottom_navigation" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="0dp" | |
android:layout_marginEnd="0dp" | |
android:layout_marginStart="0dp" | |
android:background="@color/bottombar_background" | |
android:theme="@style/Widget.BottomNavigationView" | |
app:itemBackground="@color/bottombar_background" |
This file contains hidden or 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
CrashlyticsUtils.dropAuctionBreadCrumb(TAG, "intercept", 0L, "Request: "+ request.url().toString()); |
This file contains hidden or 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
public class CrashlyticsUtils { | |
public static void dropAuctionBreadCrumb(String className, String methodName, Long auctionId, String generalData) { | |
String breadCrumb = String.format("%s - %s - %s - %s", className, methodName, String.valueOf(auctionId), generalData); | |
Crashlytics.log(breadCrumb); | |
} | |
} |
This file contains hidden or 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
FirebaseInstanceId.getInstance().getInstanceId() | |
.addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() { | |
@Override | |
public void onComplete(@NonNull Task<InstanceIdResult> task) { | |
if (!task.isSuccessful()) { | |
Log.w(TAG, "getInstanceId failed", task.getException()); | |
return; | |
} | |
// Get new Instance ID token |