-
Recent Posts
Popular Posts List
-
Linkify text li...
0
96
-
Scroll to certa...
0
77
-
Foreach loop cy...
0
72
-
Get Resource ID...
0
67
-
How quickly res...
0
65
-
Get Assets fold...
0
51
-
Transparent Bac...
0
50
-
Timer simple Ti...
0
49
-
Convert Drawabl...
0
45
-
Android Studio ...
0
45
-
Convert Activit...
0
45
-
Compressing a b...
0
42
-
Create Button a...
0
42
-
Timer task Time...
0
42
-
Open url with b...
0
41
-
How set focus o...
0
41
-
Progressbar cha...
0
40
-
If, else if, el...
0
39
-
How update View...
0
38
-
PHP how to incl...
0
36
-
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,142 views
- How quickly restart adb.exe ADB server Android emulator example - 82,395 views
- Compressing a bitmap to JPG format Android example - 72,927 views
- Turn screen ON OFF Android sample code - 71,913 views
- Get Assets folder path and read txt file to string Android example code - 71,421 views
- Timer task TimerTask run cancel Android example - 65,059 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,256 views
- Draw Arc Android basic example - 45,585 views
- Class File Editor – Source not found – Change Attached Source – Eclipse - 45,180 views
- Draw circle Android basic example - 44,578 views
- Scroll to certain position on application Android example code - 44,394 views
- Get Resource ID by Resources String Name Android example - 40,486 views
- Crop cropped cut bitmap image pictures Android example - 38,909 views
- Foreach loop cycle in Java Android example - 38,766 views
- AsyncTask Example Android with ProgressBar - 38,550 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: java
3,187 views
Unchecked call to add(E) as a member of raw type java.util.List
// warnning private List list = new ArrayList(); // ok /put type of added object private List<String> list = new ArrayList<String>();
Posted in Bugs, warnings, errors
Tagged errors, java
Comments Off on Unchecked call to add(E) as a member of raw type java.util.List
Difference between logical operators and or Java
Basic difference remember it!!! if(TRUE && TRUE && TRUE) return TRUE otherwise FALSE if(FALSE || FALSE || FALSE) return FALSE otherwise TRUE Logical operator and && If all conditions/operands is TRUE return TRUE, otherwise return FALSE if( true and true … Continue reading
Posted in Android Examples Code
Tagged java, statement
Comments Off on Difference between logical operators and or Java
Windows set Environment Variables – Java path
How set JAVA path to Environment Variables on Windows (7) Select Start menu > Computer > System Properties > Advanced System Settings(properties). Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your … Continue reading
Java Basic Rules
// file name MyFirstClass.java import java.util.*; import java.lang.Math; import java.io.*; import javax.swing.*; public class MyFirstClass{ // start of program public static void main(String[] args) { // basic function main // variables and calculation int a=2; int b=3; … Continue reading
Posted in Android Examples Code, Array,List,Collections
Tagged example, file, java
Comments Off on Java Basic Rules
String Array of Array Java Example
Set, get string , array of array of strings, Java example code public final static String[][]_arArOfString_1 = { new String[] {"bla","bla","hello world!"}, new String[] {}, new String[] {}, new String[] {}, new String[] {}, new String[] {} }; String sOut … Continue reading
Posted in Android Examples Code, Array,List,Collections
Tagged array, example, java
Comments Off on String Array of Array Java Example
Two boolean as one parameter value in function Java
boolean fc(boolean b) { return b; }// end fc boolean bA = true; boolean bB = true; boolean bC = bA || bB; // true bA = true; bB = false; bC = bA || bB; // true … Continue reading
Posted in Android Examples Code
Tagged boolean, example, java
Comments Off on Two boolean as one parameter value in function Java
Replace graphic accent diacritic Java Function
Replace diacritic marks: Á Č Ď É Ě Í Ň Ó Ř Š Ť Ú Ů Ý Ž á č ď é ě í ň ó ř š ť ú ů ý ž public String replaceDiacritic (String inputStr) { … Continue reading
Posted in Android Examples Code
Tagged java
Comments Off on Replace graphic accent diacritic Java Function
goto statement in Java
You can use for, do while, while cycle for example: public void myFunction(){ for (int i = 0; i < 1; i++) { // some code int c = 10; if(c==10) break; // goto stop; in C++ } // end … Continue reading
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