Material Design The Development Documentation
This site has a single list of available Material Components and samples of their usage for developer. π
The v7 appcompat library is used in website - provide support of material design user interface implementations for older Android platforms. ππ»ββοΈ
Note: Design Library - provides various material design components which are not part of Android SDK.
http://www.materialdoc.com/
#java #android #material
@ProgrammingTip
This site has a single list of available Material Components and samples of their usage for developer. π
The v7 appcompat library is used in website - provide support of material design user interface implementations for older Android platforms. ππ»ββοΈ
Note: Design Library - provides various material design components which are not part of Android SDK.
http://www.materialdoc.com/
#java #android #material
@ProgrammingTip
π Retrofit Library π
Retrofit turns your REST API into a Java Interface π
Itβs an elegant solution for organizing API Calls in a project. The request method and relative URL are added with an Annotation , which makes code clean and simple.
With annotations, you can easily add a request body, manipulate the URL or headers and add query parameters. π₯
Adding a return type to a method will make it synchronous, while adding a Callback will allow it to finish asynchronously with success or failure. π°
For learn more about Retrofit see :
https://github.com/square/retrofit
http://square.github.io/retrofit/
#java #android #library
@ProgrammingTip
Retrofit turns your REST API into a Java Interface π
Itβs an elegant solution for organizing API Calls in a project. The request method and relative URL are added with an Annotation , which makes code clean and simple.
With annotations, you can easily add a request body, manipulate the URL or headers and add query parameters. π₯
Adding a return type to a method will make it synchronous, while adding a Callback will allow it to finish asynchronously with success or failure. π°
For learn more about Retrofit see :
https://github.com/square/retrofit
http://square.github.io/retrofit/
#java #android #library
@ProgrammingTip
GitHub
GitHub - square/retrofit: A type-safe HTTP client for Android and the JVM
A type-safe HTTP client for Android and the JVM. Contribute to square/retrofit development by creating an account on GitHub.
Listing Content Of Directory In Java π
In order to list the contents of a directory, below program can be used. π
This program simply receives the names of the all sub-directory and files in a folder in an Array and then that array is sequentially traversed to list all the contents. π
ββββββββββββ
#java #io
@ProgrammingTip
In order to list the contents of a directory, below program can be used. π
This program simply receives the names of the all sub-directory and files in a folder in an Array and then that array is sequentially traversed to list all the contents. π
import java.io.*;
public class ListContents {
public static void main(String[] args) {
File file =
new File("//home//user//Documents/");
String[] files = file.list();
System.out.println (
"Listing contents of " + file.getPath()
);
for(int i=0 ; i < files.length ; i++) {
System.out.println(files[i]);
}
}
}
ββββββββββββ
#java #io
@ProgrammingTip
Compare two string by equals() instead == in java π‘
Use equals() because this method internally checks == plus content equality check. βοΈ
[ CODE ]
[ RESULT ]
γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°
#java
@PorgrammingTip
Use equals() because this method internally checks == plus content equality check. βοΈ
[ CODE ]
public class Test {
public static void main(String[] args) {
String s1 = "string";
String s2 = "string";
String s3 = new String("string");
String s4 = s3;
String s5 = "str"+"ing";
System.out.println("s1==s2 :"+(s1==s2));
System.out.println("s1==s3 :"+(s1==s3));
System.out.println(
"s1.equals(s3) :"+s1.equals(s3)
);
System.out.println("s3==s4 :"+(s3==s4));
System.out.println(
"s3.equals(s4) :"+s3.equals(s4)
);
System.out.println("s1==s5 :"+(s1==s5));
System.out.println(
"s1.equals(s5) :"+s1.equals(s5)
);
}
}[ RESULT ]
s1==s2 :true
s1==s3 :false
s1.equals(s3) :true
s3==s4 :true
s3.equals(s4) :true
s1==s5 :true
s1.equals(s5) :true
γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°
#java
@PorgrammingTip
Dagger 2
Dagger 2 is a dependency injection (DI) framework. It's based on the javax.inject annotations standard.
[GitHub] : http://bit.ly/2gY3BND
γ°γ°γ°γ°γ°γ°
#Dagger #Java #Android
@ProgrammingTip
Dagger 2 is a dependency injection (DI) framework. It's based on the javax.inject annotations standard.
[GitHub] : http://bit.ly/2gY3BND
γ°γ°γ°γ°γ°γ°
#Dagger #Java #Android
@ProgrammingTip
JUnit βοΈ
JUnit is a Unit Testing framework for the Java programming language. βοΈ
JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit that originated with SUnit.
https://ibb.co/f0EFR5
[Website] : http://junit.org/junit5/
γ°γ°γ°γ°γ°
#java #junit
@ProgrammingTip
JUnit is a Unit Testing framework for the Java programming language. βοΈ
JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit that originated with SUnit.
https://ibb.co/f0EFR5
[Website] : http://junit.org/junit5/
γ°γ°γ°γ°γ°
#java #junit
@ProgrammingTip
imgbb.com
junit5 banner
Image junit5 banner hosted in imgbb.com
This media is not supported in your browser
VIEW IN TELEGRAM
Codota : AI Pair Programmer π€
Codota understands the world's code and provides you with the right suggestion at the right time.
Supports : Java β¨οΈ
www.codota.com
γ°γ°γ°γ°γ°γ°
#Java #Tools
@ProgrammingTip
Codota understands the world's code and provides you with the right suggestion at the right time.
Supports : Java β¨οΈ
www.codota.com
γ°γ°γ°γ°γ°γ°
#Java #Tools
@ProgrammingTip
Lambda in Java 8 π₯
Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. 8οΈβ£
Lambda expression facilitates functional programming, and simplifies the development a lot. π€·π»ββοΈ
γ°γ°γ°γ°γ°γ°
#java #lambda
@ProgrammingTip
https://t.me/pgimg/6
Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. 8οΈβ£
Lambda expression facilitates functional programming, and simplifies the development a lot. π€·π»ββοΈ
γ°γ°γ°γ°γ°γ°
#java #lambda
@ProgrammingTip
https://t.me/pgimg/6
Telegram
Programming Tips Resources
Avian π
A lightweight virtual machine and class library designed to provide a useful subset of Javaβs features, suitable for building self-contained applications. π‘
Efficient
πΈJust-In-Time (JIT) compilation for fast method execution
πΉGenerational, copying garbage collection ensures short pause times and good spatial locality
πΈThread-local heaps provide O(1) memory allocation with no synchronization overhead
πΉNull pointer dereferences are handled via OS signals to avoid unecessary branches
The class library is designed to be as loosely coupled as possible, allowing tools like ProGuard to aggressively isolate the minimum code needed for an application. β‘οΈ
This translates to smaller downloads and faster startup. β¨
https://t.me/pgimg/135
[ Website ] : readytalk.github.io/avian
γ°γ°γ°γ°γ°γ°
#Java #VM #JIT
@ProgrammingTip
A lightweight virtual machine and class library designed to provide a useful subset of Javaβs features, suitable for building self-contained applications. π‘
The VM is implemented from scratch and designed to be both fast and small.
Efficient
πΈJust-In-Time (JIT) compilation for fast method execution
πΉGenerational, copying garbage collection ensures short pause times and good spatial locality
πΈThread-local heaps provide O(1) memory allocation with no synchronization overhead
πΉNull pointer dereferences are handled via OS signals to avoid unecessary branches
The class library is designed to be as loosely coupled as possible, allowing tools like ProGuard to aggressively isolate the minimum code needed for an application. β‘οΈ
This translates to smaller downloads and faster startup. β¨
https://t.me/pgimg/135
[ Website ] : readytalk.github.io/avian
γ°γ°γ°γ°γ°γ°
#Java #VM #JIT
@ProgrammingTip
Telegram
Programming Tips Resources
βSorry JAVA, I am done with you. I have fallen in love with Kotlin.ββ- Sad Love Story πGoogle started supporting Kotlin as an official language for Android development. β
On that day I decided, If Google somehow exclude JAVA then I am gonna leave Android development to continue my relation with JAVA. β
I was very egoistic that no any other language can took place in my heart. π
One day, One of my friends suggest me to give at least one chance to Kotlin. Because JAVA does not value my relationship. π π»ββοΈ
Since we have been together from last 6 years sometimes I got angry and scolding on JAVA that It can not do some simple things by itself. π€·π»ββοΈ
Every time I need to write boilerplate code again and again, but still I was appreciating JAVA in front of everyone. π
[ Article ] : kutt.it/ktjv
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Kotlin #Android #Java
@ProgrammingTip
Telegram
Programming Tips Resources