Tutorial by Topics: s

Material Design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. Also see the original Android blog post introducing the Design Support Library Official Documentation https://developer.android.com/design/material/index.html Guidelines for Mat...
The Lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization. You can run Lint from the command-line or from Android Studio. Official documentation: https://dev...
A singleton is a class that only ever has one single instance. For more information on the Singleton design pattern, please refer to the Singleton topic in the Design Patterns tag.
public type name[ = value]; private type name[ = value]; protected type name[ = value]; type name[ = value]; public class name{ class name{ From the Java tutorial: Access level modifiers determine whether other classes can use a particular field or invoke a particular method. There a...
A regular expression is a special sequence of characters that helps in matching or finding other strings or sets of strings, using a specialized syntax held in a pattern. Java has support for regular expression usage through the java.util.regex package. This topic is to introduce and help developers...
A Service runs in background to perform long-running operations or to perform work for remote processes. A service does not provide any user interface it runs only in background with User’s input. For example a service can play music in the background while the user is in a different App, or it migh...
The Executor interface in Java provides a way of decoupling task submission from the mechanics of how each task will be run, including details of thread use, scheduling, etc. An Executor is normally used instead of explicitly creating threads. With Executors, developers won't have to significantly r...
This documentation page is for showing details with example about java class constructors and about Object Class Methods which are automatically inherited from the superclass Object of any newly created class. public final native Class<?> getClass() public final native void notify() pu...
The 8 primitive data types byte, short, int, long, char, boolean, float, and double are the types that store most raw numerical data in Java programs. int aInt = 8; // The defining (number) part of this int declaration is called a literal. int hexInt = 0x1a; // = 26; You can define literals...
FileOutputStream openFileInput (String name) FileOutputStream openFileOutput (String name, int mode) File(File dir, String name) File(String path) File getExternalStoragePublicDirectory (String type) File getExternalFilesDir (String type) ParameterDetailsnameThe name of the file to ope...
Java enums (declared using the enum keyword) are shorthand syntax for sizable quantities of constants of a single class. [public/protected/private] enum Enum_name { // Declare a new enum. ENUM_CONSTANT_1[, ENUM_CONSTANT_2...]; // Declare the enum constants. This must be the first line inside of t...
In Java, an annotation is a form of syntactic metadata that can be added to Java source code. It provides data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Classes, methods, variables, parameters and packages ar...
An Android application needs to run on all kinds of devices. Each device may have a different version on Android running on it. Now, each Android version might not support all the features that your app requires, and so while building an app, you need to keep the minimum and maximum Android version...
Date object = new Date(); Date object = new Date(long date); ParameterExplanationNo parameterCreates a new Date object using the allocation time (to the nearest millisecond)long dateCreates a new Date object with the time set to the number of milliseconds since "the epoch" (Januar...
As of Java 8, Calendar and its subclasses have been superseded by the java.time package and its subpackages. They should be preferred, unless a legacy API requires Calendar.
Nashorn is a JavaScript engine developed in Java by Oracle, and has been released with Java 8. Nashorn allows embedding Javascript in Java applications via JSR-223 and allows to develop standalone Javascript applications, and it provides better runtime performance and better compliance with the ECMA...
ParameterDetailsGoogleMapthe GoogleMap is an object that is received on a onMapReady() eventMarkerOptionsMarkerOptions is the builder class of a Marker, and is used to add one marker to a map. Requirements Google Play Services SDK installed. A Google Console Account. A Google Maps API Key o...
Operators in Java programming language are special symbols that perform specific operations on one, two, or three operands, and then return a result. An operator is a symbol (or symbols) that tells a Java program to perform an operation on one, two or three operands. An operator and its opera...

Page 5 of 333