Jump to content

Android software development

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Malkom1989 (talk | contribs) at 10:03, 16 October 2011 (Added a section of HyperNext Android Creator). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Android software development is the process by which new applications are created for the Android operating system. Applications are usually developed in the Java programming language using the Android Software Development Kit, but other development tools are available. As of April 2011 more than 200,000 applications have been developed for Android, with over 3 billion downloads.[1][2]. The Android platform has also grown to become a favorite among mobile developers. A June 2011 research indicated that over 67% of mobile developers used the platform, at the time of publication. [3]

Software development tools

Android SDK

The Android software development kit (SDK) includes a comprehensive set of development tools.[4] These include a debugger, libraries, a handset emulator (based on QEMU), documentation, sample code, and tutorials. Currently supported development platforms include computers running Linux (any modern desktop Linux distribution), Mac OS X 10.4.9 or later, Windows XP or later. The officially supported integrated development environment (IDE) is Eclipse (currently 3.5 or 3.6) using the Android Development Tools (ADT) Plugin, though developers may use any text editor to edit Java and XML files then use command line tools (Java Development Kit and Apache Ant are required) to create, build and debug Android applications as well as control attached Android devices (e.g., triggering a reboot, installing software package(s) remotely).[5]

Enhancements to Android's SDK go hand in hand with the overall Android platform development. The SDK also supports older versions of the Android platform in case developers wish to target their applications at older devices. Development tools are downloadable components, so after one has downloaded the latest version and platform, older platforms and tools can also be downloaded for compatibility testing.[6]

Android applications are packaged in .apk format and stored under /data/app folder on the Android OS (the folder is accessible only to root user for security reasons). APK package contains .dex files[7] (compiled byte code files called Dalvik executables), resource files, etc.

Native Development Kit

Libraries written in C and other languages can be compiled to ARM native code and installed using the Android Native Development Kit. Native classes can be called from Java code running under the Dalvik VM using the System.loadLibrary call, which is part of the standard Android Java classes.[8][9]

Complete applications can be compiled and installed using traditional development tools.[10] The ADB debugger gives a root shell under the Android Emulator which allows native ARM code to be uploaded and executed. ARM code can be compiled using GCC on a standard PC.[10] Running native code is complicated by the fact that Android uses a non-standard C library (libc, known as Bionic). The underlying graphics device is available as a framebuffer at /dev/graphics/fb0.[11] The graphics library that Android uses to arbitrate and control access to this device is called the Skia Graphics Library (SGL), and it has been released under an open source license.[12] Skia has backends for both win32 and Unix, allowing the development of cross-platform applications, and it is the graphics engine underlying the Google Chrome web browser.[13]

App Inventor for Android

On 12 July 2010 Google announced the availability of App Inventor for Android, a Web-based visual development environment for novice programmers, based on MIT's Open Blocks Java library and providing access to Android devices' GPS, accelerometer and orientation data, phone functions, text messaging, speech-to-text conversion, contact data, persistent storage, and Web services, initially including Amazon and Twitter.[14] "We could only have done this because Android’s architecture is so open," said the project director, MIT's Hal Abelson.[15] Under development for over a year,[16] the block-editing tool has been taught to non-majors in computer science at Harvard, MIT, Wellesley, and the University of San Francisco, where Professor David Wolber developed an introductory computer science course and tutorial book for non-computer science students based on App Inventor for Android.[17][18]

HyperNext Android Creator

HyperNext Android Creator (HAC) is a software development system aimed at beginner programmers that can help them create their own Android apps without knowing Java and the Android SDK. It is based on HyperCard that treated software as a stack of cards with only one card being visible at any one time and so is well suited to mobile phone applications that have only one window visible at a time. HyperNext Android Creator's main programming language is simply called HyperNext and is loosely based on Hypercard's HyperTalk language. HyperNext is an interpreted English-like language and has many features that allow creation of Android applications. It supports a growing subset of the Android SDK including its own versions of the GUI control types and automatically runs its own background service so apps can continue to run and process information while in the background.

The Simple project

The goal of Simple is to bring an easy to learn and use language to the Android platform.[19] Simple is a BASIC dialect for developing Android applications. It targets professional and non-professional programmers alike in that it allows programmers to quickly write Android applications that utilise the Android runtime components.

Similar to Microsoft Visual Basic 6, Simple programs are form definitions (which contain components) and code (which contains the program logic). The interaction between the components and the program logic happens through events triggered by the components. The program logic consists of event handlers which contain code reacting to the events.

The Simple project is not very active. The last source code update was at August 2009. A similar commercial product named Basic4android is available.[20] It is inspired from Microsoft Visual Basic 6 and Microsoft Visual Studio. Basic4android is very active and there is a strong online community of Basic4android developers.

Android Developer Challenge

The Android Developer Challenge was a competition for the most innovative application for Android. Google offered prizes totaling 10 million US dollars, distributed between ADC I and ADC II. ADC I accepted submissions from 2 January to 14 April 2008. The 50 most promising entries, announced on 12 May 2008, each received a $25,000 award to further development.[21][22] It ended in early September with the announcement of ten teams that received $275,000 each, and ten teams that received $100,000 each.[23] ADC II was announced on 27 May 2009.[24] The first round of the ADC II closed on 6 October 2009.[25] The first-round winners of ADC II comprising the top 200 applications were announced on 5 November 2009. Voting for the second round also opened on the same day and ended on November 25. Google announced the top winners of ADC II on November 30, with SweetDreams, What the Doodle!? and WaveSecure being nominated the overall winners of the challenge.[26][27]

Community-based firmware

There is a community of open-source enthusiasts that build and share Android-based firmware with a number of customizations and additional features, such as FLAC lossless audio support and the ability to store downloaded applications on the microSD card.[28] This usually involves rooting the device. Rooting allows users root access to the operating system, enabling full control of the phone. In order to use custom firmwares the device's bootloader must be unlocked. Rooting alone does not allow the flashing of custom firmware. Modified firmwares allow users of older phones to use applications available only on newer releases.[29]

Those firmware packages are updated frequently, incorporate elements of Android functionality that haven't yet been officially released within a carrier-sanctioned firmware, and tend to have fewer limitations. CyanogenMod and VillainROM are two examples of such firmware.

On 24 September 2009, Google issued a cease and desist letter[30] to the modder Cyanogen, citing issues with the re-distribution of Google's closed-source applications[31] within the custom firmware. Even though most of Android OS is open source, phones come packaged with closed-source Google applications for functionality such as the application store and GPS navigation. Google has asserted that these applications can only be provided through approved distribution channels by licensed distributors. Cyanogen has complied with Google's wishes and is continuing to distribute this mod without the proprietary software. He has provided a method to back up licensed Google applications during the mod's install process and restore them when it is complete.[32]

Java Standards

Obstacles to development include the fact that Android does not use established Java standards, i.e. Java SE and ME. This prevents compatibility among Java applications written for those platforms and those for the Android platform. Android only reuses the Java language syntax and semantics, but does not provide the full class libraries and APIs bundled with Java SE or ME.[33] However, there are multiple tools in the market from companies such as Myriad Group and UpOnTek that provide J2ME to Android conversion services.[34][35][36]

Fragmentation

Developers had reported that it was difficult to maintain applications on multiple versions of Android, owing to compatibility issues between versions 1.5 and 1.6,[37] especially the different resolution ratios in use among various Android phones. [38]

However, this situation appears to have improved, in that by July 2011, Google reported over 95% of android phones in service were on 2.1 variants and newer, over 60% on 2.2 variants and newer [39]. A year ago, August 2010, Google reported 83% of Android phones were running the, then current, 2.x versions, with 17% still on 1.5 and 1.6.

Such problems were pointedly brought into focus as they were encountered during the ADC2 contest.[40] Further, the rapid growth in the number of Android-based phone models with differing hardware capabilities also makes it difficult to develop applications that work on all Android-based phones.[41][42][43][44]

History

Early Android device.

Android is created by the Open Handset Alliance which is lead by Google.[45] The early feedback on developing applications for the Android platform was mixed.[46] Issues cited include bugs, lack of documentation, inadequate QA infrastructure, and no public issue-tracking system. (Google announced an issue tracker on 18 January 2008.)[47] In December 2007, MergeLab mobile startup founder Adam MacBeth stated, "Functionality is not there, is poorly documented or just doesn't work... It's clearly not ready for prime time."[48] Despite this, Android-targeted applications began to appear the week after the platform was announced. The first publicly available application was the Snake game.[49][50] The Android Dev Phone is a SIM-unlocked and hardware-unlocked device that is designed for advanced developers. While developers can use regular consumer devices purchased at retail to test and use their applications, some developers may choose not to use a retail device, preferring an unlocked or no-contract device.

A preview release of the Android SDK was released on 12 November 2007. On 15 July 2008, the Android Developer Challenge Team accidentally sent an email to all entrants in the Android Developer Challenge announcing that a new release of the SDK was available in a "private" download area. The email was intended for winners of the first round of the Android Developer Challenge. The revelation that Google was supplying new SDK releases to some developers and not others (and keeping this arrangement private) led to widely reported frustration within the Android developer community at the time.[51]

On 18 August 2008 the Android 0.9 SDK beta was released. This release provided an updated and extended API, improved development tools and an updated design for the home screen. Detailed instructions for upgrading are available to those already working with an earlier release.[52] On 23 September 2008 the Android 1.0 SDK (Release 1) was released.[53] According to the release notes, it included "mainly bug fixes, although some smaller features were added." It also included several API changes from the 0.9 version. Multiple versions have been released since.[54]

References

  1. ^ "Android App Stats". Retrieved 31 December 2010.
  2. ^ Leena Rao (14 April 2011). "Google: 3 Billion Android Apps Installed; Downloads Up 50 Percent From Last Quarter". Techcrunch. Retrieved 13 May 2011.
  3. ^ "Developer Economics 2011".
  4. ^ "Tools Overview". Android Developers. 21 July 2009.
  5. ^ Westfall, Jon (25 August 2009). "Backup & Restore Android Apps Using ADB". JonWestfall.com. Retrieved 2009-12-07.
  6. ^ "SDK Tools".
  7. ^ "Android SDK Glossary".
  8. ^ Srinivas, Davanum (2007-12-09). "Android — Invoke JNI based methods (Bridging C/C++ and Java)". Retrieved 2008-12-13.
  9. ^ "java.lang.System". Android Developers. Retrieved 2009-09-03.
  10. ^ a b Leslie, Ben (13 November 2007). "Native C application for Android". Benno's blog. Retrieved 2009-09-04.
  11. ^ Cooksey, Tom (2007-11-07). "Native C *GRAPHICAL* applications now working on Android emulator". android-developers (Mailing list). Retrieved 2008-12-13. {{cite mailing list}}: Unknown parameter |mailinglist= ignored (|mailing-list= suggested) (help)
  12. ^ "Skia source".
  13. ^ Toker, Alp (2008-09-06). "Skia graphics library in Chrome: First impressions". Retrieved 2008-12-13.
  14. ^ Claburn, Thomas (2010-07-12). "Google App Inventor Simplifies Android Programming". Information Week. Retrieved 2010-07-12.
  15. ^ Lohr, Steve (2010-07-11). "Google's Do-It-Yourself App Creation Software". New York Times. Retrieved 2010-07-12.
  16. ^ Abelson, Hal (2009-07-31). "App Inventor for Android". Google Research Blog. Retrieved 2010-07-12.
  17. ^ Kim, Ryan (2009-12-11). "Google brings app-making to the masses". San Francisco Chronicle. Retrieved 2010-07-12.
  18. ^ Wolber, David. "AppInventor.org". Retrieved 2010-07-12.
  19. ^ "Android Simple".
  20. ^ "Basic4android".
  21. ^ Chen, Jason (12 May 2008). "The Top 50 Applications". Android Developers Blog. Retrieved 2009-09-04.
  22. ^ Brown, Eric (13 May 2008). "Android Developer Challenge announces first-round winners". Linux for Devices.
  23. ^ "ADC I Top 50 Gallery". Android Developer Challenge. Retrieved 2009-05-19.
  24. ^ "Android Developer Challenge". Google Code. Retrieved 2008-01-11.
  25. ^ Chu, Eric (6 October 2009). "ADC 2 Round 1 Scoring Complete". Android Developers Blog. Retrieved 2009-11-03.
  26. ^ "ADC 2 Overall Winners". Android Developer Challenge. Google. Retrieved 2010-12-05.
  27. ^ Kharif, Olga (30 November 2009). "Android Developer Challenge 2 Winners Announced". BusinessWeek. Retrieved 2010-12-05.
  28. ^ "Dream android development". xda-developers forum. Retrieved 2009-09-11.
  29. ^ "Android 2.1 from Motorola Droid Ported to G1". Volt Mobile. March 10, 2010.
  30. ^ Wimberly, Taylor (24 September 2009). "CyanogenMod in trouble?". Android and me. Retrieved 2009-09-26.
  31. ^ Morrill, Dan (25 September 2009). "A Note on Google Apps for Android". Android Developers Blog. Retrieved 2009-09-26.
  32. ^ "The current state..." CyanogenMod Android Rom. 27 September 2009. Retrieved 2009-09-27. {{cite web}}: |first= missing |last= (help)
  33. ^ van Gurp, Jilles (13 November 2007). "Google Android: Initial Impressions and Criticism". Javalobby. Retrieved 2009-03-07. Frankly, I don't understand why Google intends to ignore the vast amount of existing implementation out there. It seems like a bad case of "not invented here" to me. Ultimately, this will slow adoption. There are already too many Java platforms for the mobile world and this is yet another one
  34. ^ "Myriad's New J2Android Converter Fuels Android Applications Gold Rush". 19 March 2010.
  35. ^ "J2Android hopes you don't know that Android is Java-based". 23 March 2010. On the other hand, you might think this is kind of a scam aimed at developers who don't really understand the nature of the platform they're targeting. My biggest complaint is that you'd think that Mikael Ricknäs, the IDG News Service reporter who wrote the first story linked to above (who toils for the same company that publishes JavaWorld), would have at least mentioned the relationship between Java and Android to make the oddness of this announcement clear.
  36. ^ "Myriad CTO: J2Android moves MIDlets to "beautiful" Android framework". 31 March 2010. We will have to wait and see exactly how much pickup J2Android actually sees. The tool isn't actually available on the open market just yet; while Schillings spoke optimistically about "converting 1,000 MIDlets in an afternoon," at the moment they're working with a few providers to transform their back catalogs. So those of you out there hoping to avoid learning how to write Android code may have to wait a while.
  37. ^ "Android's Weakest Link". ZDNet. 2009-10-11. Retrieved 2010-01-15.
  38. ^ "Complications looming for Android developers". androidandme.com. 2009-11-06. Retrieved 2010-01-15.
  39. ^ "Platform Versions". developer.android.com. 2011-07-05. Retrieved 2011-07-29.
  40. ^ "A Chink In Android's Armor". TechCrunch. 2009-10-11. Retrieved 2009-10-11. And now they're faced with a landslide of new handsets, some running v.1.6 and some courageous souls even running android v.2.0. All those manufacturers/carriers are racing to release their phones by the 2009 holiday season, and want to ensure the hot applications will work on their phones. And here's the problem – in almost every case, we hear, there are bugs and more serious problems with the apps.[...]First of all, the compatibility between versions issue may be overblown. The reported problems have been limited to an Android developer contest[...]We haven't heard of any major app developers complaining of backwards or forward compatibility problems. Also, I've now upgraded my phone from 1.5 to 1.6, and every application continues to work fine.
  41. ^ "Android's Rapid Growth Has Some Developers Worried". Wired News. 2009-11-16. Retrieved 2010-02-26. Fagan's concerns about the fragmentation of Android is being echoed by other developers, says Sean Galligan, vice president of business development at Flurry, an mobile app analytics company(...)"You may build an app that works perfectly with all three firmwares, but then when you run it on carriers' ROMs it completely blows up," says Fagan. "So we find ourselves having to create apps that are compatible with multiple firmwares, multiple ROMs and multiple devices with different hardware.
  42. ^ "Android just reproducing Java ME's problems, now". JavaWorld. 2009-11-17. Retrieved 2010-02-26.
  43. ^ "Android's Spread Could Become a Problem". BusinessWeek. 2009-10-15. Retrieved 2010-02-28.
  44. ^ "Google Android's self-destruction derby begins". InfoWorld. 2010-02-22. Retrieved 2010-02-28.
  45. ^ Android Development Tutorial
  46. ^ Paul, Ryan (2007-12-19). "Developing apps for Google Android: it's a mixed bag". Ars Technica. Retrieved 2007-12-19.
  47. ^ Morrill, Dan (18 January 2008). "You can't rush perfection, but now you can file bugs against it". Android Developers Blog. Retrieved 2009-09-03.
  48. ^ Morrison, Scott (2007-12-19). "Glitches Bug Google's Android Software". The Wall Street Journal. Retrieved 2007-12-19.
  49. ^ "Snake". Android Freeware Directory. Retrieved 2008-01-26.
  50. ^ "First Android Application — Snake". Mobiles2day. 2007-11-14. Retrieved 2008-01-07.
  51. ^ Metz, Cade (14 July 2008). "Google plays Hide and Seek with Android SDK". The Register. Retrieved 2008-10-23.
  52. ^ "Android — An Open Handset Alliance Project: Upgrading the SDK". Retrieved 2008-10-24.[dead link]
  53. ^ "Other SDK Releases". Android Developers. Retrieved 2009-09-02.
  54. ^ "SDK Archives".

Bibliography