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
| CREATE TABLE SimpleStore( | |
| key TEXT NOT NULL PRIMARY KEY, | |
| valueString TEXT, | |
| valueBinary BLOB, | |
| timeStamp TEXT NOT NULL | |
| ); | |
| insertItem: | |
| INSERT OR REPLACE INTO SimpleStore(key, valueString, valueBinary, timeStamp)VALUES(?,?,?,?); |
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 com.duethealth.lib.medialibrary; | |
| import android.util.Log; | |
| import java.io.File; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| /** | |
| * A very dumb file catch that deletes the files in order by the {@link File#lastModified()} until the |
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
| import android.graphics.drawable.ColorDrawable; | |
| import android.graphics.drawable.Drawable; | |
| import android.widget.TextView; | |
| /** | |
| * Simple Utils class to help in fixing the issue where Button's and TextView's compound drawables will un-center | |
| * text when either one of a left and right or top and bottom compound drawable is not there. The centering of the | |
| * text is achieved by adding a transparent drawable of the same bounds to the opposite side. | |
| * <p/> | |
| * Methods: |