Chapter 1 introduction background


Figure 5 The lower half of the New Android Project dialog box



Download 1.39 Mb.
Page4/9
Date09.06.2018
Size1.39 Mb.
#53724
1   2   3   4   5   6   7   8   9

Figure 5 The lower half of the New Android Project dialog box





  1. In the Application Name field, type a name for your app

In Figure 5, I type My First Android App. Whatever name you type appears below your app’s icon in the device’s Apps screen.

  1. In the Package Name field, type a name with a valid Java package name\

In Figure 5, I type stuff.of.mine. This isn’t the world’s best package name, but it’ll do.

  1. With the Create Activity check box selected, type a name for your application’s main activity

In Figure 5, I type MyActivity. Lazy as I am, I use the name MyActivity quite often. For your project, you can type the name of any valid Java identifier. Make sure to start with a letter and then include only letters, digits, and underscores (_). Your activity is a Java class. So, to adhere to Java’s stylistic conventions, start your activity’s name with an uppercase letter. In the name, don’t include any exotic characters (such as dots, blank spaces, dashes, dollar signs, or pictures of cows).

  1. In the Min SDK Version field, type the number to the far right of whichever target you selected in Step 4

In Figure 5, I type 11 because I find the number 11 at the end of the Android 3.0 target line in the Build Target panel. To find out what you’re promising when you check Android 3.0 and minimum SDK 11, see the nearby “Using Android’s versions” sidebar.

You can specify a min SDK version with a lower number than the number in the Build Target panel. For example, you can pick Build Target Android 2.3.1 with Min SDK Version 4. When you do this, Eclipse warns you that The API level for the selected SDK target does not match the Min SDK Version. You can safely ignore this warning.



  1. At the bottom of the New Android Project dialog box, click Finish

As a result, the New Android Project dialog box closes, and the Eclipse workbench comes to the foreground. Eclipse’s Package Explorer tree has a new branch. The branch’s label is the name of your new project. (See Figure 6.)

Figure 6 The Package Explorer has a MyFirst Android Project branch


Congratulations! You’ve created an Android application.




  1. Publishing Android Application

  1. Versioning The Application

Every Android application has the attribute that represent the version number of the application. For every revision made to the application, this version attribute must be increased by 1 value so that the application can be distinguished between new version and the previous one. This value of version have format ..
. If the application undergoes a major upgrade, then the number should be increased by 1. For small incremental updates, the number could be increased either or
.

  1. Digitally Sign The Android Applications

All Android application must be digitally signed before they are allowed to be deployed onto a device (or emulator). Unlike some mobile platforms, the application developer didn’t need to purchase digital certificates from a certificates authority (CA) to sign the applications. Instead, the developer can generate their own self-signed certificate and use it to sign the Android applications. If the developer wants to publish an Android application, they must sign it with their own certificate. Applications signed with the debug certificate cannot be published.

  1. Deploy The Signed Application

After the application gets signed, the developer needs a way to get the application onto the users’ devices. There are three methods to deploy the applications:

  1. Deploying manually using the adb.exe tool

Once the Android application is signed, it can be deployed to emulators and devices using the adb.exe (Android Debug Bridge) tool. The adb.exe tool is a very versatile tool that enables users to control Android devices (and emulator) that connected to the computer. Besides using the adb.exe tool to install applications, it can be used to uninstall the application as well.

  1. Hosting the application on a web server

If the developer wants to host their application on their own, they can use a web server to do that. This is the ideal if the developer has their own web hosting service and wants to provide the application free of charge to their users. By default, for online installation of Android applications, the Android emulator or device only allows applications to be installed from the Android Market (www.android.com/market). Therefore, for installation over a web-server, the users need to configure their Android emulator/device to accept applications from non-Market sources.

  1. Publishing through the Android Market

Publishing through the Android Market is a better way to host the applications, a Google-hosted service that makes it very easy for users to discover and download applications for their Android devices. Users simply need to launch the Market application on their Android device in order to discover a wide range of applications that they can install on their device.

Beside these methods, developer can install the applications on users’ devices using e-mail, an SD card, and so on. As long as the developer can transfer the applications file onto the users’ device, the application can be installed.



  1. Android Community

With Android in its fourth version, there is a large developer community all over the world. It is now much easier to get solutions to problems, and find like-minded developers to share app ideas and exchange experiences.

Here are some developer communities/sites that can help the reader while working with Android:



  1. Stack Overflow (www.stackoverflow.com)

Stack Overflow is a collaboratively edited question and answer site for developers. If you have a question about Android, chances are someone at Stack Overflow is probably already discussing the same question and someone else had already provided the answer. Best of all, other developers can vote for the best answer so that you can know which are the answer that are trustworthy.

  1. Google Android Training (http://developer.android.com/training/index.html)

Google has launched the Android training site that contains a number of useful classes grouped by topics. At the time of writing, the classes mostly contain useful code snippets that are very useful to Android developers once they have started with the basics.

  1. Android Discuss (http://groups.google.com/group/android-discuss)

Android Discuss is a discussion group hosted by Google using the Google Groups service. Here, the reader will be able to discuss the various aspects of Android programming. This group is monitored closely by the Android team at Google, and so this is good place to clarify the reader doubts and learn new tips and trick.
CHAPTER 4

CONCLUSION


  1. Conclusion

In fact that Android is released as an open source, which means it gives freedom to the user or manufacturer to modify and develop more without any restrictions, thanks to Google. This makes it a big incentive for any device manufacturers to adopt Android. And also all operating system has three main functions such as (1) comfortable, user as main objectives (2) efficiency, use of computer system resources efficiently (3) easily evolves, operating system has to be built for future development-able, new testing system.

Android, IDE and programming language is closely related. Android is a Java-based operating system that runs on the Linux 2.6 kernel. Android application are developed using Java programming language on IDE (Integrated Development Environment). Also android purpose can be seen in their evolution ‘food name’ (Jelly Bean, Kit Kat), they using that name because wants to make our life sweeter. Because their benefit are (1) Customization, people usually get bored by seeing same display over and over again, Android provides a lot of customization like launcher, keyboard, SMS client and other features (2) Multiple devices, OS of android requires user to register an email account (Google) so if user using more than 1 devices, user can easily synchronize their gadgets (3) Entertaining, provides tons of unique games and applications (4) Fast Update, android give a fast update of features that provided.

Android also is new technology that develop really fast and steady nowadays. So, knowing what is android, how to compile and publish would make user more understand about how fascinating Android is and give information about new technology surround us.


  1. Suggestion

For any party that gains benefit of this research, so note this following suggestion:

  • For User, must have a curiosity about what is android as a good user. Because it can provide insight knowledge about the high technology you use now.

  • For Government, need to create a space for learning newest technology for modern civilization. So, implementation of new future technology system can be easily understood by society and help for faster development.

  • For Society, needs to be open-minded to Android as a mobile application especially. Because society can gain a lots of benefits of technology later.



REFERENCES



Download 1.39 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9




The database is protected by copyright ©ininet.org 2024
send message

    Main page