CSS – Flexbox introduction

CSS – Flexbox introduction

Flexbox provides a more efficient layout even when the size is unknown. You can convert a container to a flex container by applying some css properties. Then this flex container will layout its children. flex container To create a flex container you need to set the display method of a container to flex or flex-inline. flex is for block elements and flex-inline for inline elements. Now let’s add the display:flex property to the parent container flex-flow is a property for the flex containers and specifies how to line up elements,…

CSS – Flexbox introduction Read More

Android – Service – Lifecycle, hook methods and start/stop a service – Part 2

Android – Service – Lifecycle, hook methods and start/stop a service – Part 2

You can read part 1 here. service hook methods onCreate() – The service is being created and this method is launched only one. It is used to initialize the service. onStartCommand() – The service is started because of startService(). This method is called every time intent is sent via startService() – only for started service onBind() – A client is binding to the service via bindService(). All the intent extras are not visible here. – only for bound service onUnbind() – is called when all clients have been disconnected via…

Android – Service – Lifecycle, hook methods and start/stop a service – Part 2 Read More