One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Idle mode is a state where the phone has no network connectivity and apps are temporarily suspended. Idle mode gets triggered by one of two ways: an asleep, still, unplugged phone (Doze mode), and when an app has not been opened in a significant amount of time (App Standby Mode). During idle mode via Doze, the phone will wake up periodically for a short amount of time, allowing apps to run and use network connectivity. Using several different methods outlined below, it is possible to wake apps up during idle mode outside of these maintenance windows.
1 hour of being still after the screen turns off.
TBD
| apply plugin: 'android-sdk-manager' | |
| apply plugin: 'com.android.application' | |
| apply plugin: 'com.jakewharton.hugo' | |
| apply from: '../config/quality.gradle' | |
| import com.android.ddmlib.DdmPreferences | |
| import java.util.concurrent.TimeUnit | |
| // Copy the signing.properties.sample file to ~/.sign/signing.properties and adjust the values. |
| public class RealPathUtil { | |
| public static String getRealPath(Context context, Uri fileUri) { | |
| String realPath; | |
| // SDK < API11 | |
| if (Build.VERSION.SDK_INT < 11) { | |
| realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri); | |
| } | |
| // SDK >= 11 && SDK < 19 | |
| else if (Build.VERSION.SDK_INT < 19) { |
| public class TextViewDrawableSize extends TextView { | |
| private static final int DEFAULT_COMPOUND_DRAWABLE_SIZE = -1; | |
| private int compoundDrawableWidth; | |
| private int compoundDrawableHeight; | |
| public TextViewDrawableSize(Context context) { | |
| this(context, null); | |
| } | |
| public TextViewDrawableSize(Context context, AttributeSet attrs) { |
| println object.properties | |
| .sort{it.key} | |
| .collect{it} | |
| .findAll{!['class', 'active'].contains(it.key)} | |
| .join('\n') |