What is a service
A service is simply code which is running , and this code , does not have a GUI . The code runs , on the main thread of its application (hosted process) , unless the … Read More
A service is simply code which is running , and this code , does not have a GUI . The code runs , on the main thread of its application (hosted process) , unless the … Read More
To set line spacing in android studio , go to Android Studio , then preferences , Control+Alt+S
for windows , or Command+, (comma)
for macOS , next select editor , font , and from there set the line spacing … Read More
The DisplayMetrics class is used to get various information about the screen in android .The information that we can get are the following :
DENSITY_DEVICE_STABLE :
The density of the device in ppi readA smartphone , has a width and a height which can be expressed in inches . The screen size is the length of the diagonal of the smartphone , and which can be … Read More
A bitmap is an object , which is an instance of the Bitmap
Class. This class represents a 2d coordinate system . The coordinate system move to the right on the x axis , and to … Read More
A light is a wave which doesn’t need a medium to propagate . Other examples of waves are water waves , or air waves which need water and air as a medium to propagate .Water , … Read More
The addView
method, is used to add a View
programmatically to a ViewGroup
. A ViewGroup
can be for example, a LinearLayout
, or a RelativeLayout
.. A ViewGroup
is itself a View
. The addView
method is overloaded.
The… Read More