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.sample.awsutils; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.util.Log; | |
import com.amazonaws.ClientConfiguration; | |
import com.amazonaws.auth.CognitoCachingCredentialsProvider; | |
import com.amazonaws.mobileconnectors.s3.transferutility.TransferListener; | |
import com.amazonaws.mobileconnectors.s3.transferutility.TransferObserver; |
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.sample.awsutils; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.util.Log; | |
import com.amazonaws.ClientConfiguration; | |
import com.amazonaws.auth.CognitoCachingCredentialsProvider; | |
import com.amazonaws.mobileconnectors.s3.transferutility.TransferListener; | |
import com.amazonaws.mobileconnectors.s3.transferutility.TransferObserver; |
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
public class LogOutTimerUtil { | |
public interface LogOutListener { | |
void doLogout(); | |
} | |
static Timer longTimer; | |
static final int LOGOUT_TIME = 600000; // delay in milliseconds i.e. 5 min = 300000 ms or use timeout argument | |
public static synchronized void startLogoutTimer(final Context context, final LogOutListener logOutListener) { |
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.bolste.android.activities.ui.utils; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.provider.MediaStore; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.content.FileProvider; | |
import android.util.Log; |