Install latest version of android studio
In the Welcome to Android window. Click to start new android project
if you have already opened select file -> new -> new project
click on Create new project select empty activity and name it my first app and next
and select language java|kotlin and select version min sdk ex: 5 lollipop
after clicking on finish android studio main window appears.
their is App-> java-> com.example.MainActivity -> mainActivity
we are using for java code
menifest file -> we are using for permissions
xml file using for design
and In text view I have Added Hello world.
Run App Now
we created an Android app that displays "Hello, World!" we can now run the app on a real device or an emulator.
1. Perform the following steps to enable USB debugging in the Developer options window
a. Open the settings app
b. If your device uses Android v8.0 or higher, select system. Otherwise, proceed to the next step.
c. scroll to the bottom and select About phone.
d. Scroll to the bottom and tap build number seven times.
e. Return to the previous screen, scroll to the bottom, and tap developer option.
f. In the developer option window, scroll down to find and enable USB debugging.
In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar
In the toolbar, select the device that you want to run your app on from the target device drop-down menu
select device and run.
For Android related help
Contact :
contact@codersarts.com
Kommentare