-
Recent Posts
Popular Posts List
-
Linkify text li...
0
96
-
Scroll to certa...
0
79
-
Foreach loop cy...
0
75
-
Get Resource ID...
0
68
-
How quickly res...
0
66
-
Get Assets fold...
0
53
-
Transparent Bac...
0
51
-
Timer simple Ti...
0
49
-
Android Studio ...
0
46
-
Convert Drawabl...
0
45
-
Convert Activit...
0
45
-
Compressing a b...
0
43
-
Open url with b...
0
43
-
Create Button a...
0
42
-
Timer task Time...
0
42
-
How set focus o...
0
42
-
Progressbar cha...
0
40
-
If, else if, el...
0
40
-
How update View...
0
38
-
PHP how to incl...
0
37
-
Linkify text li...
Views
- Timer simple TimerTask Java Android example - 136,316 views
- Linkify text link url in TextView text Android example - 94,913 views
- Spinner ComboBox DropDown List Android example code - 85,143 views
- How quickly restart adb.exe ADB server Android emulator example - 82,396 views
- Compressing a bitmap to JPG format Android example - 72,928 views
- Turn screen ON OFF Android sample code - 71,914 views
- Get Assets folder path and read txt file to string Android example code - 71,424 views
- Timer task TimerTask run cancel Android example - 65,060 views
- Start Activity from ListView item click Android example - 63,113 views
- How update View TextView with timer Android runnable example - 61,390 views
- If, else if, else statement Java Android example - 49,257 views
- Draw Arc Android basic example - 45,587 views
- Class File Editor – Source not found – Change Attached Source – Eclipse - 45,181 views
- Draw circle Android basic example - 44,578 views
- Scroll to certain position on application Android example code - 44,396 views
- Get Resource ID by Resources String Name Android example - 40,487 views
- Crop cropped cut bitmap image pictures Android example - 38,910 views
- Foreach loop cycle in Java Android example - 38,771 views
- AsyncTask Example Android with ProgressBar - 38,551 views
- Create bitmap and draw text into bitmap Android example - 37,516 views
Categories
- Android Examples Code (314)
- Android Software Download (4)
- Android Studio (43)
- Array,List,Collections (22)
- Bitmap, drawing (44)
- Bugs, warnings, errors (108)
- Dictionaries (22)
- Download (2)
- Eclipse (78)
- Fragments Tutorial (8)
- Javascript css html (12)
- PHP (3)
- Smartphone (31)
- Smartphones (3)
- SQLite database (7)
- Uncategorized (4)
Archives
Meta
Tag Archives: time
2,102 views
PHP get daylight saving time
$dst = date("I"); //I (capital i); 0 or 1 if daylight saving time // example: $hour = 14; if(date("I")===1){ $hour = $hour + 1; } // OR $hour = 14 + date("I");
Date getDate is deprecated Java Android
Date getDate is deprecated Java Android example code: long dayInMili = 100000000; GregorianCalendar calToDay = new GregorianCalendar(); int nD = calToDay.get((Calendar.MILLISECOND)); // +dayInMili; System.out.println(nD); long lTime = calToDay.getTimeInMillis(); System.out.println(lTime); Date dtA = new Date(lTime); // today … Continue reading
Posted in Android Examples Code
Tagged date, java, time
Comments Off on Date getDate is deprecated Java Android
Timer task TimerTask run cancel Android example
Update TextView from TimerTask, Handler, schedule, run, cancel TimerTask, Android example public class TimerActivity extends Activity { TimerTask mTimerTask; final Handler handler = new Handler(); Timer t = new Timer(); TextView hTextView; TableRow hTableRow; Button hButton, hButtonStop; private … Continue reading
How are you old – date calendar age Java Android example
Calendar dateOfYourBirth = new GregorianCalendar(1998, Calendar.SEPTEMBER, 17); Calendar today = Calendar.getInstance(); Android example. public class HoriziontalScrollActivity extends Activity { TextView txtV; Context cntx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); txtV = (TextView)findViewById(R.id.idLabel); cntx = this; StringBuilder strBuild … Continue reading
Leap year date time Java Android example
GregorianCalendar cal = new GregorianCalendar(); Boolean b = cal.isLeapYear(2012); // true, Android example. public class MainActivity extends Activity { TextView txtV; Context cntx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); txtV = (TextView)findViewById(R.id.idLabel); cntx = this; StringBuilder strBuild … Continue reading
Date time difference determine which is earlier Android Java example
Date difference in millisecond between two date, GregorianCalendar, Calendar, after(), befor(), getTimeInMillis(). public class HoriziontalScrollActivity extends Activity { TextView txtV; Context cntx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); txtV = (TextView)findViewById(R.id.idLabel); cntx = this; StringBuilder strBuild … Continue reading
Timer stopwatch based on Java Calendar class Android example
Start Stop Stopwatch Timer Android example source code. private static long mStartTime = 0L; Calendar cal; TextView hTextViewVypis = (TextView)findViewById(R.id.idTextVypis); void start(){ cal = Calendar.getInstance(); mStartTime = cal.getTimeInMillis(); } void stop(){ prinOutStopWatchTime(); } private void prinOutStopWatchTime() … Continue reading