Session 4 :ANDROID STUDIO today :)

CONNECT YOUR Devices to the PC/LAPTOP via USB

1. Make sure Developers Options MENU is enabled
 
( if not go to SettingsAbout DeviceTap BUILD # 7 times
Go back one screen, find Developers Options Menu and go to # 2

2. Make sure USB DEBUGING BOX is CHECKED

3. OPEN ANDROID STUDIO 

4.    check your devices if “TRUST THIS COMPUTER” notification appears -CONFIRM YES   

5. Open Emulator

6. type :   adb devices

7. if you have real device , then you will see both : real and emulator 

Open Android Studio
To see if device or how many are connected to Android studio

adb devices  -l    ( with all info)

 
 How to separate devices using command line ?

You may use ( -e, -d, -s whenever you feel ) to separate devices in your command line.
 adb ……

Example : 
0001 Device ( -d)  or ( -s 0001)
Emulator -5554 ( -e) ( -s Emulator -5554 )

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

adb  -d ( or -s 0001 )shell
adb  -e ( or -s Emulator-5554 )shell

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

0001 Device ( -s 0001)
0002 Device ( -s 0002)

Emulator -5554 ( -e) ( -s Emulator -5554 )

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

0001 Device ( -s 0001)
0002 Device ( -s 0002)

Emulator -5554 ( -s Emulator -5554 )
Emulator -5556 ( -s Emulator -5556 )

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

adb -s 0001 shell
adb -s 0002 shell

adb -s Emulator-5554 shell
adb -s Emulator-5556 shell 

Lets talk about Emulator Advanced Options 

Capture a bug report from the Android Emulator
From the Android Emulator, you can use the File a bug feature in the extended controls:
•	Click More  in the emulator panel.   ( VERY COOL TOOLS are placed in here : )  
•	In the Extended controls window, select Bug Report on the left.
This opens a screen where you can see the bug report details such as the screenshot, the AVD configuration info, and the bug report log. You can also type a message with reproduction steps to save with the report.
•	Wait for the bug report to finish collecting, and then click Save Report.