Android Internship Task-2 Android | Running your first Android app

Android | Running your first Android app

After successfully Setting up an Android project, all of the default files are created with default code in them. Let us look at this default code and files and try to run the default app created.

  • The panel on the left side of the android studio window has all the files that the app includes. Under the java folder, observe the first folder containing the java file of your project.
    android 7
    For every activity, a “.java” file and a “.xml” file is created. In this case for MainActivity, “MainActivity.java” and “activity_main.xml” are created.

    The above java file shows us the default code that is present when an app is created. An activity is created that extends AppCompactActivity class.

    The “res” folder contains “layout” subfolder, which includes the xml files of the projects.

    android8



    You can find the activity_main.xml file under the layout folder. This the XML file corresponding to the MainActivity. There is an onCreate function that overrides a function of AppCompactActivity class. onCreate(Bundle) is where you initialize your activity. When the activity is first started, then both onCreate() methods are called. But after the first start of Activity, the onCreate() of application will not be called for subsequent runs.

  • Now, consider the activity_main.xml file, it contains various tags similar to HTML. The first tag ensures the version. The second tag is usually the Layout tag. There are various types of Layouts but for now, let us go with the default RelativeLayout. This is a layout that places the widgets relative to screen size.

    There is a TextView widget by default. This “TextView” is basically the Text field that displays the text specified. It has various attributes. For now, consider the default attributes present. The layout_width and layout_height are the width and height of the widget occupied in the screen. The attribute “wrap_content” refers to width or height being restricted to the content of the text.

    The text attribute takes a string in quotations ( i.e., “ ” ). The content within this is displayed on the screen.

    android 9

    Now, click the “Run” option at the Toolbar at the top. You can observe the option being highlighted in the image below.

  • You would get a pop-up as in the image below.
    android 10
  • You can either choose the emulator or you can connect your phone and find them listed under Connected Devices but for this you must enable the developer options in your phone and set the USB debugging mode on.
    android 11
    Once done, click on OK.
  • Usually, the emulator consumes a lot of RAM. The more RAM size you have, the faster your emulator will work. Generally, 4GB is the descent RAM size. Size more than that would increase the performance of your emulator.

    The image below shows the working of the first app, My Application. You can find all the basic functionalities that your phone has, on the emulator, like Home button, back button, power, etc.
    android 12

Share:

Android Internship Task 1:How to Install and Set up Android Studio on Windows?

How to Install and Set up Android Studio on Windows?

Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provides many excellent features that enhance productivity when building Android apps, such as:

  • A blended environment where one can develop for all Android devices
  • Apply Changes to push code and resource changes to the running app without restarting the app
  • A flexible Gradle-based build system
  • A fast and feature-rich emulator
  • GitHub and Code template integration to assist you to develop common app features and import sample code
  • Extensive testing tools and frameworks
  • C++ and NDK support
  • Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine, and many more.

System Requirements

  • Microsoft Windows 7/8/10 (32-bit or 64-bit)
  • 4 GB RAM minimum, 8 GB RAM recommended (plus 1 GB for the Android Emulator) 
  • 2 GB of available disk space minimum, 4 GB recommended (500 MB for IDE plus 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Installation Guide

Step 1: Head over to this link to get the Android Studio executable or zip file. 

Step 2: Click on the Download Android Studio Button. 

Click on the “I have read and agree with the above terms and conditions” checkbox followed by the download button. 



Click on the Save file button in the appeared prompt box and the file will start downloading. 

Step 3: After the downloading has finished, open the file from downloads and run it. It will prompt the following dialog box. 

Click on next. In the next prompt, it’ll ask for a path for installation. Choose a path and hit next. 

Step 4: It will start the installation, and once it is completed, it will be like the image shown below. 

Click on next.

Step 5: Once “Finish” is clicked, it will ask whether the previous settings need to be imported [if the android studio had been installed earlier], or not. It is better to choose the ‘Don’t import Settings option’.  

Click the OK button. 

Step 6: This will start the Android Studio. 

Meanwhile, it will be finding the available SDK components.

Step 7: After it has found the SDK components, it will redirect to the Welcome dialog box. 

Click on Next

Choose Standard and click on Next. Now choose the theme, whether the Light theme or the Dark one. The light one is called the IntelliJ theme whereas the dark theme is called Darcula. Choose as required. 

Click on the Next button. 

Step 8: Now it is time to download the SDK components. 

Click on Finish. Components begin to download let it complete.

The Android Studio has been successfully configured. Now it’s time to launch and build apps. Click on the Finish button to launch it. 

Step 9: Click on Start a new Android Studio project to build a new app. 

To run your first android app in Android Studio you may refer to

Share:

Software Training Institute in Coimbatore | Erode- Mullamparappu Training TrainsSoftware Training institute in erode, Mullamparappu | In-Plant Training / Internship



Hi

Greetings from Training Trains, 

This is in regards to your enquiry of In-Plant / Internship Training.

Training Trains, a Software Development and Corporate Training, Located in Erode-(Mullamparappu), Coimbatore accepting Invitation for In-plant Training for all kind of Engineering and Non-Engineering Students and Arts College Students. We will provide an industrial exposure to the students as well as to develop their career in the high tech industrial requirements. Training Trains  is providing In-plant training, Internship Training and Corporate Training to support the Students as per the current IT Industry exposure.

In-Plant Training / Internship

Java, Blockchain, Machine Learning, Meanstack, Artifical Intelligence, Kotlin, Cloud Computing, Angular, React, IOT, DevOps, PHP, .Net, Big Data and Hadoop, Spark, Data Analytics, R Programming, SEO and Digital Marketing, Android, Python, Oracle, Web Designing, Spring, Hibernate, Software Testing, Seleninum, Linux, C and C++ Python , Ethical Hacking and many more technologies

K.Boopathikumar
(Full stack developer/data science)
CEO/ Founder
Training Trains

https://g.page/r/Ce75IQ-Wyn5tEA0

https://training.trainingtrains.com/


Who can participate?
Engineering & Arts and Science & Master Degree students also can participate on the Inplant Training & Internship Training. 
In-plant training/Internship Training is an essential and integral part of various universities and educational institutions in almost all parts of India.  

In plant Training/Internship Training with Project supports the various Engineering and Non-Engineering, Arts Students to develop their Skills on the IT Companies/Corporate Expectations. 

DURATION OF IN-PLANT TRAINING: 1 week and Above.
DURATION OF INTERNSHIP: 1 Month and Above

Technologies Available in In-Plant / Internship training:

§  Artificial Intelligence
§  Machine Learning
§  Data Science
§  Internet of Things – IoT
§  C Panel / Web Hosting
§  How to Use Github - Overview
§  Amazon Web Services – Overview
§  Machine Learning Foundation – Overview
§  Android
§  Game Development
§  Web Development – Java/J2EE
§  Web Development - PHP/MySQL
§  HTML, CSS, Javascript, JQuery
§  Digital Marketing
§  Python
§  Big data & Analytics
§  Wordpress
§  Data Structures
§  Software Testing
§  StartUp India
§  Google Firebase
§  R Programming
§  Angular JS
§  React - Overview
§  Business Analyst - Overview
§  Laravel Framework
§  XML Technologies
§  Web Design
§  Selenium Testing
§  Cloud Computing
§  SEO
§  Full Stack Development.

 
 Benefits of Attending In-Plant training with us:
1.    2 or more Certificates
2.    Project Exposure in Live Server
3.    Post Support for your Project / Seminar / Presentation etc.,
4.    Start Up India Campaign Guidance
5.    Free Interview Coaching
6.    Tips for getting selected in Campus Recruitment
7.    Industry Trends

 In-Plant Training / Internship Students Project Work:
www.trainingtrains.com

Knowledge Base:

https://www.youtube.com/channel/UCQqG42FmqeFYRlTrRbMljVw

after complete  Get Certificate
Contact us:
919698548633

https://wa.me/919698548633

www.trainingtrains.com

Online Demo class video:

https://youtu.be/VV82GdJMIiI

 I will Train u Java, Blockchain, Machine Learning, Meanstack, Artifical Intelligence, Kotlin, Cloud Computing, Angular, React, IOT, DevOps, PHP, .Net, Big Data and Hadoop, Spark, Data Analytics, R Programming, SEO and Digital Marketing, Android, Python, Oracle, Web Designing, Spring, Hibernate, Software Testing, Seleninum, Linux, C and
 C++  Python , Ethical Hacking  and many more technologies. 

Contact Trainer:
K.Boopathikumar 
(Full stack developer/data science)
CEO/ Founder
Training Trains 

https://trainingtrains.com/
Personal Trainer in Erode(trainingtrains.com)

https://wa.me/919698548633
91-9698548633

#webdeveloper #developers #softwaredeveloper #frontenddeveloper #appdeveloper #fullstackdeveloper #webdevelopers #developerslife #javadeveloper #webdeveloperslife #androiddevelopers #developerlifestyle #appledeveloper #developerjobs #reactjsdeveloper #girldeveloper #php #developer #coder #programming #uxdesign #javascript #programmers #nodejs #codinglife #learntocode #laravel #angularjs #json #mobiledevelopment

#internships #internship #jobs #career #internshipprogram #jobsearch #interns #intern #summerinternship #college #students #job #hiring #training #education #internshipopportunity #workfromhome #internshipstudent #internshipabroad #scholarships #beasiswa #recruitment #internshiplife #resume #informasibeasiswa #volunteer #student #engineering #business #bhfyp
Share:

Live Chat With Us

My Blog List

Search This Blog

Locations

Training

Pages

My Blog List

Blog Archive

Privacy policy