banner



How To Download An App I Made In Android Studio

Download Article

Download Article

Android Studio is the official IDE for Android apps. It doesn't cost anything and supports the Java and Kotlin programming languages. It gives you lot smashing command over what your app does. So why not plan your app in it? This article expects y'all to know the basics of Java, if yous don't, please look at How to Write Your Starting time Programme in Coffee for an introduction. This wikiHow teaches y'all how to brand a basic app in Android Studio.

  1. one

    Download Android Studio. Make certain you lot download the correct version for the operating system (i.e. Windows, Mac, Linux) you are using. The download is about 1GB and may take several minutes to download. Use the following steps to download and install Android Studio: Brand sure to get the version for your system.

    • Get to https://developer.android.com/studio/index.html in a web browser.
    • Click the light-green button that says Download Android Studio (brand certain the correct operating system is listed below the push.)
    • Click the checkbox next to "I accept read and agree with the higher up terms and conditions."
    • Click the blue button that says Download Android Studio for [Your Operating Organisation].
    • Open the install file.
    • Follow the on-screen instructions
  2. ii

    Install the dependencies (Linux 64-bit Only). If you have a 64-scrap Linux computer (skip this step if you don't), y'all will accept to install some additional packages.[one] On a organization that uses apt, enter into the command line: sudo apt-become install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-i.0:i386.

    • If your arrangement uses yum, enter the following instead: sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
    • Alternatively, yous can easily install Android Studio on Ubuntu by opening the Software Middle Click the icon that resembles a magnifying glass in the upper-right corner and enter "Android Studio" in the search bar. Click the Android Studio icon then click Install It has an icon that resembles a drawing compass in the shape of an "A" inside a green circumvolve.

    Advertisement

  3. 3

    Extract the archive (lLinux Only). Skip this footstep if y'all downloaded if y'all downloaded an install file on Windows or Mac, or if you downloaded Android Studio from the Software Heart on Ubuntu. Otherwise, change to the directory into which y'all downloaded the annal. Then, either right-click on it in the file director and select the "Extract here" option. or enter "tar -xf downloadName.tar.gz" into the control line (supplant "downloadName" with the name of the file you just downloaded).

  4. 4

    Launch Android Studio. If you downloaded an .exe or .dmg file, just double-click on it. If you downloaded and extracted an archive, open the Terminal and modify to the subdirectory "bin" of the directory with the extracted files (usually "android-studio"). This is washed by typing cd android-studio/bin. Run the file "studio.sh" by typing ./studio.sh.

  5. 5

    Make up one's mind whether to import settings. If this is your first fourth dimension using Android Studio, select No. If you used it earlier and desire to take the previous settings, select Yes and specify where you saved them.

  6. 6

    Decide whether to transport usage data to Google. This is a personal decision and won't modify anything in the installation or programming process.

  7. 7

    Wait until a window appears. It will be called "Android Studio Setup Wizard". Click on Next to go on.

  8. 8

    Decide whether to exercise a standard or custom install. If this is your offset time using Android Studio and/or you don't have special requirements, y'all should select "Standard".

  9. 9

    Wait until the components are downloaded and click Cease . This will have some time, and you can do something else meanwhile. When they are downloaded, click on Terminate.

  10. Advert

  1. i

    Open Android Studio. It has an icon that resembles a drawing compass in the shape of an A inside a green circle. Click the icon to open Android Studio.

  2. 2

    Click on + Commencement a new Android Studio projection . It is constitute in the window labeled "Welcome to Android Studio", directly under the Android Studio logo. If you don't meet such a window, check whether that window is hidden by other windows you accept opened.

  3. 3

    Select an activeness and click Next . When y'all start a new Android project, it displays a variety of templates yous can select. You tin also select the devices you desire to blueprint for using the tabs at the top (i.due east. Phone and tablet, WearOS, TV, etc.) For learning how to make apps, y'all should select "Empty Action". When you accept figured out app programming, y'all can use the additional features the other activities provide.

  4. iv

    Enter a name for your app. This goes in the field beneath "Proper noun" at the top of the "Configure your project" page. It should be short and descriptive so that you see immediately what the app is for.

  5. 5

    Select Java as the language. Use the drib-downward menu beneath "Language" to select Java.

  6. 6

    Select which Android version you want to design for. Use the drop-downwards menu adjacent to "Minimum API level" to select the earliest version of Android your app is will be compatible with. For a simple app, you should cull a version that is supported by most devices, even if it is older.

  7. 7

    Click Terminate . This creates a new Android Studio project. Allow a few minutes while the automated build system sets up your project.

  8. Advertisement

  1. 1

    Understand what you desire to do. Think about what input the user volition give, how you volition procedure it (you can improvise during programming, merely y'all should have an outline of how information technology should work), how you will display the output to the user. This case shows how to create an app where the user can enter two numbers and the sum is displayed.

  2. 2

    Open the translations editor. Information technology is a good practice to only apply strings from the translation resource, even if yous aren't translating the app. Use the following steps to open the Translations editor:

    • Click the tab that says activity_main.xml at the tiptop.
    • Click on the drop-downwardly bill of fare that says "Default (en-us)" at the peak next to an icon that resembles a globe.
    • Click on the choice that says Edit translations....
  3. 3

    Add some text. You will have to explain to the user what they're supposed to do with the app. Employ the following steps to add text:

    • Press on the plus ( + ) button in the upper left corner of the translation editor to add together a cord.
    • Insert a curt key (this is similar a variable proper name, for instance "main_instruction".)
    • Enter the total English language text adjacent to "Default Value" (i.e. "Enter two numbers to add:").
    • Click Ok.
    • If you desire, you can add a locale using the button that depicts a globe with a + sign on it, and then interpret all the text to that locale.
  4. iv

    Click the activity_main.xml tab. This closes the translation editor and switch back to the Activity Main screen. Yous will meet an empty screen with a textbox displaying the text "How-do-you-do World!" in the middle. For now, this is a pretty useless interface.

  5. 5

    Replace "Hello World!". Use the following steps to supplant the "Hello Earth!" text:

    • Click on the textbox in the center.
    • Select the input labeled "text" on the right side.
    • Replace "Hello world!" with "@string/main_instruction" (or whatever you called the key y'all created). The textbox will now display the text you entered for that cardinal.
    • Elevate the textbox farther up and so that yous have infinite for other elements below it.
    • Right-click on the entry of "TextView" in the bill of fare that displays all items on the screen and select Constrain followed by parent peak.
      • If this moves the textbox to an unacceptable position, move it back to where information technology was and repeat. Select Center followed past Horizontally to center the textbox horizontally.
  6. 6

    Place two numeric inputs on the screen. Employ the post-obit steps to add together numeric inputs on the screen:

    • Click Text in the panel to the left beneath "Palette."
    • Elevate two Number (Signed) inputs unto the preview screen.
    • Use the text box labeled "Id" in the Attributes panel to the right to change the IDs to something you tin call back (i.due east. "number1" and "number2".) Avoid using spaces in the Id.
    • Constrain and center the number inputs but similar y'all did with the textbox at the tiptop. Y'all tin can ignore the alarm about missing "autoFillHints" attribute.
  7. 7

    Place an "Add" push button on the screen. Use the following steps to add an "Add" push:

    • Click Buttons in the panel to the left below "Palette."
    • Drag Button onto the screen.
    • Add a string in the translation editor with the key "text_add" and "Add" as default value.
    • Go back to "activity_main.xml" and replace the text "Button" with "@string/text_add" in the Attributes panel to the correct
    • Give the button a descriptive ID, like "buttonAdd" side by side to "Id" in the Attributes panel to the right.
    • Constrain and center the button like you did with the other objects on screen.
  8. eight

    Add the two translation strings. Open the Translation Editor and create two new strings. Ane should be chosen "result" as the key and "Effect" as the default value. The other one should exist called "not_yet_calculated" as the key and "not calculated yet" as the default value.

  9. 9

    Add together two other textboxes. Apply the post-obit steps to add two new text boxes:

    • Switch back to the "Activity_main.xml" tab.
    • Click Text in the panel to the left beneath "Palette".
    • Elevate ii TextView text boxes onto the screen.
    • Replace the strings with the ones y'all added.
    • Give textbox that displays "not calculated nonetheless" an ID similar "resultOut" in the "id" field of the Attributes panel.
    • Constrain these textboxes to parent top and to parent start.
  10. ten

    Switch to "mainActivity.java". This is the file that contains the app code.

  11. xi

    Declare the necessary variables. You will need to become the user input, to react when the user presses a button, and to change the "not calculated yet" textbox to the effect of the adding. To do this, the plan needs to "encounter" the items on the screen. You should declare them as final because yous will never modify them directly, only their attributes. And then type the following on the line below the onCreate() function, after the line with "setContentView(). If the textboxes and buttons have different names than below, change them equally needed. Enter the lawmaking manually. Information technology volition not work if yous copy and paste. The code is as follows:

                                                final                      EditText                      num1                      =                      findViewById                      (                      R                      .                      id                      .                      number1                      );                      final                      EditText                      num2                      =                      findViewById                      (                      R                      .                      id                      .                      number2                      );                      final                      Button                      buttonAdd                      =                      findViewById                      (                      R                      .                      id                      .                      buttonAdd                      );                      final                      TextView                      resultOut                      =                      findViewById                      (                      R                      .                      id                      .                      resultOut                      );                    
  12. 12

    Create a click listener. This is the role that is called when the user clicks on the button. To add together one, blazon the post-obit beneath the last "final" line of lawmaking:

                                                buttonAdd                      .                      setOnClickListener                      (                      new                      View                      .                      OnClickListener                      ()                      {                      @Override                      public                      void                      onClick                      (                      View                      v                      )                      {                    
  13. 13

    Add code into the click listener. You want to get the user'due south inputs, convert them to integers, add them together, and change the text of the "not calculated yet" textbox to the result. Add the following lawmaking below the "public void onClick(View five)" line:

                                                int                      sum                      =                      Integer                      .                      parseInt                      (                      num1                      .                      getText                      ().                      toString                      ())                      +                      Integer                      .                      parseInt                      (                      num2                      .                      getText                      ().                      toString                      ());                      resultOut                      .                      setText                      (                      Integer                      .                      toString                      (                      sum                      ));                    
  14. Advert

  1. 1

    Build the APK. Employ the following steps to build the APK file:

    • Click the Build tab.
    • Click Build Parcel(s) / APK(s)
    • Click Build APK(due south).
  2. ii

    Click on the "locate" link in the appearing popular-upwardly in the lower correct corner. This will open the folder with the APK in the file managing director.

  3. three

    Connect your Android smartphone to your estimator. Use the USB / microUSB transfer cablevision to connect your smartphone or tablet to your computer.

  4. four

    Copy the APK onto your smartphone. To avoid making a mess on the smartphone, either create a new directory for your APKs (for now it is only one, only if you lot continue developing, yous will soon have many) or use the Downloads directory. Don't copy the .json file, but ignore it.

  5. v

    Notice the APK on the smartphone. Open the file manager. If it isn't in the recent downloads or in the APKs department, search for it.

  6. half-dozen

    Tap on the APK. This will ask you whether to install it. Tap Yes and wait for the installation.

    • You have to allow installing apps from external sources in the settings of the smartphone to exist able to install and exam your app on information technology.
    • You lot tin can delete the APK after installation. You tin always build a new one on your calculator if you lot demand it once again.
  7. 7

    Open the app on the smartphone. It will have a white Android logo behind a nighttime blue-dark-green background as icon.

  8. 8

    Bank check whether the app functions as expected.

  9. Advertisement

Ask a Question

200 characters left

Include your electronic mail address to get a bulletin when this question is answered.

Submit

Advertisement

  • If you create something you think will be useful to others, you tin can publish your app on some distribution platform like Google Play. But while y'all are still learning, you can too continue your programming experiments to yourself, having just saved them locally on your smartphone and computer.

Thanks for submitting a tip for review!

Advertisement

  • Typing any commands mentioned in this article into the Windows command line doesn't work. Use the other methods specified instead.

  • Only install Android Studio when you have a good cyberspace connection. If it is interrupted often during the installation process, unexpected bug tin occur.

Advertisement

Things You'll Need

  • Computer with Windows, Linux or Mac Os X
  • Internet connection (for installation)
  • Smartphone with Android
  • USB to microUSB transfer cable

About This Article

Thanks to all authors for creating a folio that has been read 22,068 times.

Is this article up to date?

How To Download An App I Made In Android Studio,

Source: https://www.wikihow.com/Create-an-App-with-Android-Studio

Posted by: heathhounsile.blogspot.com

0 Response to "How To Download An App I Made In Android Studio"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel