Members

How to Create an Android App With Android Studio


If you wish to create an android app using Android studio, the instructions are given below, however, in case you wish to build a customized app where you do not want to make any efforts and get things done anyway, hiring a mobile app development Services company would be a suitable solution.

Subsequent to utilizing this instructional exercise to make your first Android app, you'll be well headed to a fun new leisure activity or potentially even a promising profession in a versatile turn of events. Or else you can always look for a credible mobile app development company to complete the task for you.

1. Deploy Android Studio
Visit http://developer.android.com/sdk/index.html when you are ready to download Android Studio.
Utilize this manual to introduce Android Studio.

Create a New Project
Open Android Studio.
Chose "Start another Android Studio project."
On the "Make New Project" window that opens, name your task "Hi, World".
On the off chance that you want, set the organization name as desired.
Tap on "Next."
Ensure that you check only the "Phone and Tablet" box.
In case you are wanting to test the app on your phone, ensure the base SDK is as per your phone's working framework level.
Tap on "Next."
Chose "Black Activity."
Tap on "Next."
Do not change anything.
Tap on "Finish."

2. Create the Welcome Message in the Main Activity
Explore the activity_main.xml tab in case it isn't as of now open.

Ensure that the Design tab is open on the activity_main.xml show.

Tap on and bring the "Hi, world!" to the centre of the screen.
In the task, the record framework opens the values folder.
In the values organizer, double-tap the strings.xml document.
In this document, find the line "Hi, world!".

After the "Hi, world!" message, add "Welcome to my app!"
Explore back to the activity_main.xml tab.
Ensure that your focused text currently peruses "Hi, world! Welcome to my app!"

3. Adding a button to the main activity
Explore the Design tab of the activity_main.xml show.
In the Palette option, find Button
Tap on and bring the Button to be placed under your welcome message.
Ensure your button is selected.
In the Properties option, find the field for "text."
Change the text from "New Button" to "Next Page."

4. Make a Second Activity

We hope you are not finding the process hard, or else, you can always contact a reliable Android app development services provider. However, now that you have come this far, please focus and go ahead.

At the highest point of the project record system tree, right Tap on on "app."

Follow New > Activity > Blank Activity.
Change it to "SecondActivity".

Tap on "done/complete/finish."
Bring the text box to the middle as you did on the Main Activity.

With the text box actually chosen, find the "id" field in the Properties option, and set it to "text2".
Again open strings.xml .

Add another line under "Hi world! Welcome to my app!" saying "Welcome to the second page!".

Explore back to activity_second.xml.
Chose the text box once more.

In the Properties sheet, set the "text" field to "@string/second_page".

5. Create the Button's "onClick" Method & Test the app
Tap on the green play image.

When the " Device" dialogue box appears, Chose the "Launch emulator" alternative.

Tap on OK.
Congratulations! You've finished your first android app development using Android Studio.

Views: 40

Comment

You need to be a member of On Feet Nation to add comments!

Join On Feet Nation

© 2024   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service