Sunday, February 16, 2014

Learn Android in 20 concepts. Beginning programming for ... - The Free Android

android development

Today, Android has hundreds of millions of mobile devices in over 190 countries throughout the world. And all accompanied by over 1.5 billion app downloads from Google Play every month. Some amazing numbers that many people have led them to want to contribute their grain of sand, developing your own application. Who has not? Have thought that idea to carry out

Android growth

it, and bringing my own experience as a developer of apps for Android, today we will inaugurate a new section aimed at introducing us to develop applications for Android: section ‘Learn Android in 20 concepts’.

In this section we will review the basics 20 API ( Application Programming Interface ) Android to program an application on Android, from Zero . For those who do not know what a API , basically it is the functionality that we provide (in this case Android) to program.

This does not mean that these 20 concepts you know everything, or indeed that there is also other important concepts. What is at issue here is to explain the most important general concepts to create a good structure of our application . On this basis, further into more specific concepts (such as it may be access to GPS) will be much easier.

20 concepts discussed in the section ‘ Learn Android in 20 concepts’ are:

0. Beginning

1. Foundations of
Application 2. Resources of an app
3. The Activity class
4. The Fragment class
5. Custom View
6. Adapters (Adapter)
7. The Intent class
8. Message recipients broadcast (Broadcast Receiver)
9. Prefencias an app (Shared Preferences)
10. SQLite databases
11. Services (The Service class)
12. Asynchronous tasks (AsyncTask class)

13. Content Management (Content Provider)
14. ActionBar bar actions
15. Notifications
16.
Orientation device 17. Animations
18. Widgets
19. Other items
20. Additional Information

The section will be weekly

, but introduce more than one concept each week starting next week. This week we’ll worry about leave our computer ready to start programming in Android .

First

will know to program native applications on Android , we learn how to program in the Java language , knowing the OOP .

The first thing to do is prepare our development environment and know where to get any information. To do this, the first thing is to know where all information for Android developers. Google has prepared us a website for it, but we know that all the information is in English :

Web Developer Android

web development android

this website, we three basic sections: Design, Development and Distribution . In them, we will have all the information on Google’s recommendations for designing our app, information about the Android API and publish information to know our application, knowing how to promote it, advertise it …

the bottom, we will have additional information on Android, get the SDK ( Software Development Kit ) Support …

This will be our first step, unburden the development environment , for which we will Get the SDK , or make click on the following link:

Download the SDK

web development sdk

Once on the web, just to give you the link that says Download the SDK , and we will lower a version of the Eclipse development environment, customized for Android and ready to the latest SDK, the ADT plugin and emulators on which to test our application.

In the past Google I / O (2013), also announced the new Android Studio IDE , which can also be used instead of Eclipse, but we know they are still in beta. From the same page you can access the same information. We have already spoken before this new IDE, but in this tutorial we will use Eclipse.

Once we open our development environment, we can unburden we all versions of Android if you want, as well as other extra packages . We will use the Android SDK Manager .

eclipse sdk manager

the other hand, we can create as many Android devices as emulators want: with different screen sizes, different versions of Android … For this, we use the Android Virtual Device Manager (ADB) , the which can be accessed from Eclipse or from the command via your operating system:

eclipse adb

Although the best way to have control over our devices will be learning to drive ADB from the command line , something I have also spoken. However, we can also manage Eclipse our devices and get information from our device: from screenshots or see the files to send GPS coordinates or send a call. To do this, we’ll go Window / Open Perspective / Other … / DDMS . The view of Eclipse DDMS (Dalvik Debug Monitor Server ) we will be very useful as we develop our applications. We have all the information about it at the following link:

DDMS

At this point, your computer is ready to create our first Android application. To do this, we will rely on Google recommends steps that we follow for a simple app . All this information can be found in a trainings that Google has prepared us:

Training (Trainings) on Google Android

Creating a new project

Android

Our section

end today following the second link, where we will create a new Android project. To do this, follow these steps:

Click

    1. New
    2. In the window that appears, open the folder Android and choose Android Application Project
    3. In the next window, you must enter the name of your application, the project name and package name (this will unique to our app, then that will be the Google Play ID used to identify the application ). Also introduce the minimum required version of Android and the version you compile (build our application code from) our application.
    4. We
    5. After filling all the fields as need or want, we go to the next screen, where we leave the default options selected.
    6. On the next screen, we can create an icon for your application. To do this, it would be ideal to have a look at Android design guidelines with respect to what relates to icons.
    7. Finally, select an activity template on which to start working. We can select Blank Activity , which is basically a blank screen.
    8. We finish the wizard.

    adt assistant

    With this, we will have our particular Hello World with which we started when we used to always program a new API (also saw how to create a Hello World in AndroidStudio). To run , simply having an actual device connected or launch an emulator and click Run button (a green circle with the Play icon on white).

    With this basic information, we end this section today. Next week enter fully into these 20 concepts I think that would help us to have this much clearer how to organize the structure of the Android API and thus make things easier for us be clear about how develop our applications.

    If you have any question or want to suggest or ask anything, you can also find me on Twitter.

    If you have not yet encouraged to schedule, do you animaréis

    You can follow the entire course in this direction where all items will be gathered

  • No comments:

    Post a Comment