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
/** | |
* A collection of authentication and account connection utilities. With strong inspiration from the Google IO session | |
* app. | |
* @author Dandré Allison | |
*/ | |
public class AccountUtils { | |
/** | |
* Interface for interacting with the result of {@link AccountUtils#getUserProfile}. | |
*/ |
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.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.AbsListView; | |
import android.widget.ListView; | |
import android.support.v4.app.ListFragment; | |
import com.nineoldandroids.animation.Animator; | |
import com.nineoldandroids.animation.ObjectAnimator; |
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 javax.annotation.Nonnull; | |
import android.app.Activity; | |
import android.app.Service; | |
import android.support.v4.app.Fragment; | |
import android.content.Context; | |
/** | |
* <p>Retrieves the {@link dagger.ObjectGraph} and injects dependencies.</p> | |
* @author Dandré Allison |
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 javax.annotation.Nonnull; | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.os.Build; | |
/** | |
* <p>Keeper of the {@linkplain Build#VERSION_CODES Android version gates}, used to guarantee non shall pass, | |
* unless they are worthy.</p> | |
* @author Dandre Allison |
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
/* | |
* Copyright 2012 Dandre Allison | |
* 2012 Roman Nurik | |
* | |
* 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 | |
* |
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
package com.example; | |
import android.annotation.TargetApi; | |
import android.app.Application; | |
import android.app.ActivityLifecycleCallbacks; | |
import com.squareup.otto.Bus; | |
import javax.inject.Inject; | |
import javax.inject.Provider; | |
import dagger.ObjectGraph; | |
import java.util.Map; |
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
package com.example.models; | |
import android.database.ContentObserver; | |
import android.database.Cursor; | |
import android.os.Handler; | |
import android.os.Looper; | |
import java.io.Closeable; | |
import java.util.concurrent.atomic.AtomicReference; |
OlderNewer