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

Windows 10 – Find an application on Start menu.

Screenshot 20190107 091843

When you open the Start menu, by pressing the Windows key or by clicking the window image at the bottom left corner, you see a list of all the applications that are installed on your computer and your favorites. If you want to find an application/program that you haven’t used recently or it is not in your favorites at the right panel, then the easiest way is to start typing the application name. For example, I typed control so I can find the control panel. The picture below shows what…

Windows 10 – Find an application on Start menu. Read More

Windows 10 – Start Menu

Screenshot 20190102 091534

To open the start menu you just click the icon at the bottom left of your screen. It will open the Start Menu. On the Start Menu you see: Recently added All apps You can scroll down this list and you will see all the installed apps. User tile Documents Pictures Settings Power and the Start Layout. Start Layout can be managed, and scrolled. If you click a tile it will start the app. If you right-click the tile you will see the following menu. Unpin from Start – removes the tile from the Start…

Windows 10 – Start Menu Read More

Windows Server 2016 – Start live migration for a VM

Screenshot 20181130 070913

You need to enable Live migration first. You can find more information here. Open Hyper-V Manager, select a VM and at the right panel click Move. Click Next. Choose what type of move you want to perform and then Next. Next, specify the name of the destination server and click Next. Choose what you want to do with the VM items. Click Next. Click Browse and select the destination location. Then click Finish. With PowerShell, you must use move-vm move-vm “nanoserv” -DestinationHost srv-1 More information about move-vm   Windows Server 2016 – Start…

Windows Server 2016 – Start live migration for a VM Read More

Windows Server 2016 – Docker start and stop a container

Screenshot 20181123 093208 1

To stop and start a container you need the Container ID. If you do not know how to find the container id check this post To stop a container: docker stop CONTAINERid change the CONTAINERid with the container id you want to stop To start a container: docker start CONTAINERid change the CONTAINERid with the container id you want to start   Windows Server 2016 – Docker start and stop a container

Windows Server 2016 – Docker start and stop a container Read More