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
// Use a `TimePickerDialog` to get the `runDelay` from user to do so | |
// **class variable:** | |
private TimePickerDialog time_picker; | |
private Calendar targetCal; | |
// **A class constructor** |
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 TipoDisp | |
{ | |
public static int alt_tabs(Context cont) | |
{ | |
int alt; | |
int dx, dy; | |
DisplayMetrics metrics = cont.getResources().getDisplayMetrics(); | |
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 boolean Exists(String _id) { | |
Cursor cursor = mDb.rawQuery("select 1 from yourTable where _id=?", | |
new String[] { _id }) | |
boolean exists = (cursor.getCount() > 0); | |
cursor.close(); | |
return exists; | |
} |
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
The type of navigation to use. | |
<p>Must be one of the following constant values.</p> | |
<table> | |
<colgroup align="left" /> | |
<colgroup align="left" /> | |
<colgroup align="left" /> | |
<tr><th>Constant</th><th>Value</th><th>Description</th></tr> | |
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr> | |
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr> | |
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr> |
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
String str = "hi,hello,abc,example,problems"; | |
String[] splits = str.split(","); | |
System.out.println("splits.size: " + splits.length); | |
for(String asset: splits){ | |
System.out.println(asset); | |
} |
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
/** | |
* Get the area of the screen size. following calculation done with the help | |
* of Ashik :D | |
* | |
* @param context | |
* @param percentage | |
* @return intRequiredCellSize | |
* @author Ashik Ali | |
*/ | |
public static int getCellSizeForScreen(Context context, double percentage) { |
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
<!-- All language list --> | |
<string-array name="languages"> | |
<item>Afrikaans</item> | |
<item>Amharic</item> | |
<item>Arabic</item> | |
<item>Belarusian</item> | |
<item>Bulgarian</item> | |
<item>Catalan</item> | |
<item>Chinese(Simplified)</item> | |
<item>Chinese(Traditional)</item> |
OlderNewer