fbpx
Add Image to Android app

Add Image to Android app

Add PNG Icon to Android app

 

In this article, let discuss on

Add PNG Icon to Android app

Let us see how to Add PNG icon to Android App. In the end you your app will use the icon you have added for the android application.

 In this article I’m going to use the existing android project created as part of this article Make WordPress as Android App. This Follow the code repo used  ).

How to Add PNG Icon to Android App?

You can add Image assets by Right click on the location where the image or icon need to be placed.

See below screenshot for the Menu option in Android Studio.

  • After right-click drawable folder, Choose New > Image Assets
  • You need to choose the image or icon from the browse menu under Source Asset section of Foreground Layer Tab.
  • Adjust the Scaling according to the image or icon output.
  • Go to Background Layer tab and adjust the background color or image accordingly.
  • Once done, click Finish (Note: Try to keep the same name as the previous icon file name, if you are replacing the icon)
  • Run the App to see the new Icon changed.
intellij add image asset menu
WeCanCode-Author

WeCanCode-Author

October 22, 2021

Senior Developer | Java & C#.NET | 10++ years of IT experience.

Planning to learn ReactJS or Angular or Flutter.!

Check the port used by any process in unix?

Check the port used by any process in unix?

Here we are going to see how to Check the port used by any process in unix?

Check the port used by any process in unix?

Here is how you can check port used by any process in unix terminal.

While developing any webservice or web server you might end up using existing port number and will face issue while starting the server

Before such thing happens, better to check the port is being used by any process already to avoid such conflicts. Its saves us more time.

We have discussed below listed commands

  1. netstat – network utility used for checking the connection of TCP/UDP
  2. ss – Socket statistics, similar to netstat but faster.
  3. sudo – Run any command with root or super user level/mode.
https://youtu.be/kqVzUOZMSY0

netstat command

[email protected]:~/dev/folder1$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:33060         0.0.0.0:*               LISTEN      5314/mysqld         
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      5314/mysqld         
udp        0      0 127.0.0.53:53           0.0.0.0:*                           4434/systemd-resolv

ss command

[email protected]:~/dev/folder1$ sudo ss -tulpn
Netid           State            Recv-Q           Send-Q                     Local Address:Port                       Peer Address:Port           Process                                                                                                                                           
udp             UNCONN           0                0                          127.0.0.53%lo:53                              0.0.0.0:*               users:(("systemd-resolve",pid=4434,fd=12))                                                                                                                                                                                                           
tcp             LISTEN           0                70                             127.0.0.1:33060                           0.0.0.0:*               users:(("mysqld",pid=5314,fd=32))                                                                                                                
tcp             LISTEN           0                151                            127.0.0.1:3306                            0.0.0.0:*               users:(("mysqld",pid=5314,fd=34))                                                                                                                                                                                  
Check the port used by any process in unix? - 3Minutes: Tutorial
~3Minutes: Tutorial

How to create a file in unix – 3Minutes: Tutorial

In this video, I have explained How to create a file in unix?

(Create, edit, view and save text file using unix terminal.)

This video covers the below listed commands

  1. pwd – present working directory
  2. cd – change directory
  3. touch – to create file
  4. cat – view content of the file
  5. less – same as cat command, but opens in editor
  6. mkdir – make or create directory
https://youtu.be/xDe6OLATxQc

How to create a file in unix ?

[email protected]:~/dev/folder1$ touch hello.txt
[email protected]:~/dev/folder1$ vi hello.txt
[Edit the file] to save press Esc + :wq (w is for save and q is for quit)
[email protected]:~/dev/folder1$ cat hello.txt

Keep the learning short, not to waste your precious time.

How to create a file in unix - 3Minutes: Tutorial

Pin It on Pinterest