Android : How to get the package name of Android application

How to get the package name of Android application


There are multiple ways in which we can obtain the package name of Android .apk file. 
Here are the some quick ways to get the package name.


Step 1 : If its public app and available in https://play.google.com/store/apps , then search the app name and click on that particular app. you will get the package name as shown in below screenshot.



















Demo of Step 1 :






Step 2 : Install the app on your device and run the below command to get the list of packages and search for your app. 
 *(Make sure ADB configured in your path variable, click here to know how to configure adb on Windows , For Mac - you can click here )

-> adb shell pm list packages 












Demo of Step 2 :




Step 3 : Again using the Android command , you can get the details of app , package name

-> aapt dump badging <path of apk> | grep <any_relevant_search_text>

for example :
-> aapt dump badging D:\facebook.app | grep package









   ** aapt stands for Android Asset Packaging Tool .


Demo of Step 3 :




Step 4 : [This step is now obsolete, as Appium UI has changed , if you have OLD Appium setup , you can still use it ] If you have Appium installed and locate the .apk file and it will list the package name as shown in below screenshot.
























You can choose any above mentioned steps to get the package name of your app. Some other ways are also present to get the app name.But here i listed few easy way to get the package name. 

If you like this, please subscribe my Youtube channel,like ,comments & share.

Mac OS : How to configure Java Home , Maven & Android Home


Mac OS : How to configure JAVA Home ,Maven & Android Home


Recently I have started using Mac OS  and I had to configure my Development environment for automation . To get started with the basic needs i.e basic program to run , my system should have been configured with JAVA_HOME , ANDROID_HOME and Maven(M2_HOME).
I learnt the way how to configure all these settings, so I am sharing my knowledge in a best possible way which can be understood easily. Also watch out my Youtube Channel for videos related to this (link is given below)

Make sure you have all these binaries installed or are downloaded and kept it in some location.

Download location :
JAVA can be downloaded from (based on bitness of OS) :  click here to download

Android SDK can be downloaded from(download Android studio, it will download the sdk) : click here to download

Maven can be downloaded from(download Binary tar.gz) : click here to download

Let’s get started with configuring these settings in OS path.

You can watch a Youtube video OR follow the step by step procedure below 

Part 1


Part 2





Step 1 : Open Terminal on your Mac.
Step 2 : Type   cd ~/
Step 3 : Check whether you have .bash_profile present, type command
$ ls –al
Step 4 : If it is not present , let’s create it using command
$ touch .bash_profile

(** touch is a standard Unix command-line interface program in its default usage, it is equivalent of creating or opening a file and saving it without any change to the file contents.)

Step 5 : Hit command ls –al again to verify its presence
Step 6 : Now open .bash_profile file which is just created. And to open you can use either of the commands.
$ open –e .bash_profile

**     -e   Opens with TextEdit.
          -t    Opens with default text editor. )

   OR
$ nano .bash_profile

(** GNU nano is a popular command line text editor used on many operating systems.)

 Above steps are common steps for configuring anything in PATH

Step 7 : How to configure JAVA_HOME
(You are required to give bin and jre path . Make sure to replace wth your path)

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$JAVA_HOME/jre

Step 8 : How to configure ANDROID_HOME
(You are required to give platform-tools ,build-tools and tools folder path. Make sure to replace wth your path)

export ANDROID_HOME=/Users/shakti/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/build-tools

Step 9 : How to configure MAVEN i.e M2_HOME
(You are required to give bin folder path. Make sure to replace wth your path) 

export M2_HOME=/Users/shakti/allmywork/tools/maven-3.5.2
export PATH=$PATH:$M2_HOME/bin

Step 10 : Save and close the .bash_profile

Step 11 : To refresh the file or reload the file, type below command
            $ source .bash_profile

Step 12 : Check whether all of these JAVA , MAVEN or ANDROID  configured properly or not by typing these multiple commands
-----------------------------------Java-------------------------------------------

$ echo $JAVA_HOME
 $ javac
 $ java --version

-----------------------------------Maven-------------------------------------------
$ echo $M2_HOME
$ mvn --version
$ mvn

-----------------------------------Android-------------------------------------------

$ echo $ANDROID_HOME
$ adb
$ adb devices

Hope this helps you a bit in understanding how to configure these in path in Mac OS.
If you like this, please subscribe my Youtube channel,like ,comments & share.

That’s it !!      

How to register Domain Name for FREE

How to get a Domain Name for free 


What is Domain Name:


A domain name is basically your website name. It is the address where Internet users can access your website. A domain name is used for finding / locating and identifying computers / machines on the Internet. As you are aware that Computers use IP addresses, which are a series of numbers. However, it is difficult for humans to remember strings of numbers. Because of this, domain names were developed and used to identify entities on the Internet rather than using IP addresses. 

A domain name can be any combination of letters and numbers, and it can be used in combination of the various domain name extensions, such as .com, .net, .ga, .gov, .in and more. 

Properties of Domain Name:

Domain name must be registered before you can use it. Since, every domain name is unique. NO two websites can have the same domain name. If someone types in www.yourdomainname.com or www.yourdomain.gov etc., it will go to your website and no one else's.


How to register Domain Name for free and create free website with own domain name

You can watch a Youtube video OR follow the step by step procedure below




Let see how to get Domain Name for free step by step below:

1. Browse URL freenom http://www.freenom.com
freenom home page

2. Enter your website name and click on “Check Availability” button.
freenom website available

3. You can see list of available domains which paid and free. 
available domain name

4. Choose one which is Free , for example - Let say , i will choose domain with .ga
phodup.ga

5. Click on “Checkout” button.
6. Select “Use DNS” under “Use your new domain” and Enter IP Address 80.80.80.80 , 80.80.81.81 under “Enter your A record here”.
freenomworld

7. On the same page from the dropdown select “12 Months @ Free” under “Period” and click on continue.
8. On Review & Checkout Page - Enter your valid email address for login and verification or Would be good if you already logged into your Gmail or Facebook before attempting this step.
review and checkout page

9. Open your email and click on Confirmation link.
email confirmation message

10. Enter all the valid details as asked after clicking the verification link to complete the order.
details page

11. Login with your credentials to freenom site.
Freenom Order number

12. Change the settings or view the subscription or manage the domain can be done from “Service” menu.
purchased domain name

13. Hurray !! you have your own website name which is completely free, now you can play around with that.

14. You can also have option to upgrade or purchase the subscription once it’s over or you want to continue with the same name as Paid version has more advantages. 

15. You can also create as site with Freedom GoSite option which is available under Service-> My Domains -> Manage GoSite.
GoSite page

16. You can select theme and you can start your website up and running with 1 mins.




Hope you like this, please subscribe to my YouTube channel and blog.

That’s it.


Thank you!

Android : How to connect your Android device over Wifi using ADB command for App debugging

How to connect your Android device over Wi-Fi using ADB command Sometimes it requires to connect your Android dev...