Developing Android Apps

In: Computers and Technology

Submitted By pman55
Words 2057
Pages 9
Developing Android applications in IntelliJ IDEA
From IntelliJ-Wiki

Contents
1 Introduction 2 Prerequisites 3 Creating a New Project 4 Exploring an Android Application 5 Creating Elements of Your Application 5.1 Adding a String 5.2 Adding a Color 6 Running Android Application 6.1 Configuring a Virtual Android Device 6.2 Start Application 7 Related Articles

Introduction
IntelliJ IDEA supports development of applications to be executed on mobile phones that run under the Android (http://developer.android.com/index.html) operating system. Besides general coding assistance, the IDE lets you test Android applications on user-configured emulators of physical devices. IntelliJ IDEA helps: Create an Android application using the New Project Wizard. Explore an Android application as a tree-view of files and folders. Create elements of an Android application and manage static content resources, such as strings, colors, etc. via tight integration between

resources and the R.java (http://developer.android.com/guide/topics/resources/accessing-resources.html) file. Run an application. Configure an emulator of a physical device to run Android applications on. This tutorial will walk you step-by-step through developing and launching a simple Android application.

Prerequisites
You are working with IntelliJ IDEA Ultimate edition version 10. JDK is available on your machine. Android SDK (http://developer.android.com/sdk/index.html) is installed on your machine. This tutorial uses SDK 2.3. Gingerbread.

Creating a New Project
Let’s start from the very beginning and create a project (http://www.jetbrains.com/idea/webhelp/project.html) for our application. Choose File | New Project on the main menu or click the Create New Project icon on the Welcome screen (Image 1).

Image 1.

On the first page of the New Project wizard (Image 2), make sure that the option Create…...

Similar Documents

Android

...ANDROID VERSION ICE CREAM SANDWICH WHAT IS ANDROID Let me first give you an intro about Android. As we all know it is an operating system and platform for mobile devices. It is an open source product. Android is a ground-breaking innovation from the scientists down at Google Labs. It is touted as the next big revolution in the mobile phone Operating System play ground. The reason why Android Operating System is so famous amongst them asses of today is because of its flexibility and ease of resources. Android Inc, was founded in Palo Alto, California, United States Developed by Andy Rubin, Rich Miner, Nick Sears and Cris White - October 2003 Google acquired Android Inc. - August 2005 The Open Handset Allience, a consortium of several companies was formed - November 2007 Android Beta SDK Realeased - November 2007 VERSIONS OF ANDROID Google has always sought for fun in everything they do and Android is no exception to it. The versions of Android are named after mouth watering desserts. Platform | Codename | Release Date | Android | Beta | November 5, 2007 | Android 1.0 | | September 23, 2008 | Android 1.1 | | February 9, 2009 | Android 1.5 | Cupcake | April 30, 2009 | Android 1.6 | Donut | September 15, 2009 | Android 2.1 | Éclair | October 26, 2009 | Android 2.2 | Android 2.2 | May 20, 2010 | Android 2.3 | Gingerbread | December 6, 2010 | Android 3.0 | Honeycomb | February 22, 2011 | Android 4.0 | Ice Cream Sandwich | October......

Words: 2278 - Pages: 10

Android

...RTL improvements Android 4.3 includes RTL performance enhancements and broader RTL support across framework UI widgets, including ProgressBar/Spinner and ExpandableListView. More debugging information visible through the uiautomatorviewer tool. In addition, more system UI components are now RTL aware, such as notifications, navigation bar and the Action Bar. To provide a better systemwide experience in RTL scripts, more default system apps now support RTL layouts, including Launcher, Quick Settings, Phone, People, SetupWizard, Clock, Downloads, and more. Utilities for localization Pseudo-locales make it easier to test your app's localization. Android 4.3 also includes new utilities and APIs for creating better RTL strings and testing your localized UIs. A new BidiFormatter provides a set of simple APIs for wrapping Unicode strings so that you can fine-tune your text rendering in RTL scripts. To let you use this utility more broadly in your apps, the BidiFormatter APIs are also now available for earlier platform versions through the Support Package in the Android SDK. To assist you with managing date formatting across locales, Android 4.3 includes a new getBestDateTimePattern() method that automatically generates the best possible localized form of a Unicode UTS date for a locale that you specify. It’s a convenient way to provide a more localized experience for your users. To help you test your app more easily in other locales, Android 4.3 introduces......

Words: 494 - Pages: 2

Android

...positioning (GPS), and well, you have a product to sell. Google has done just that. Taking bits and pieces of everything one could ever ask for, and merging it all into its mobile operating system titled Android. Represented by a green round-headed robot figure, Android is passing its two year anniversary, and has surpassed other prominent mobile architectures like Apple’s iPhone software. But what exactly is Android? Why would one desire to chuck away their limited iPhone, or stray away from the Blackberry Enterprise lineup? One word: Open source. Couple that with the experience (the art of customizing your device), and the synchronization aspects of the device for virtually any account you have on the net, and you have a total package. Having a total package within arm’s reach, and inside your pocket is quite a powerful tool. With Google’s Android platform, there is never a point where you can say No. Any and every idea can and could be coded into the device if you have the means to do so. Open source is the ticket. Asking yourself what this means is actually a very simple question. Open source is the definition of computer code that is freely available to anyone who wishes to find it. Google has opened up the software to all who have a spirit to create and provide applications (Apps) and programs to others. Hackers, coders, and all techy guros have created a plethora of net-libraries ranging from support groups, forums and websites to further help noobies in the......

Words: 495 - Pages: 2

Android

...Critique #4 Android Insecurity Source: http://www.sciencedirect.com/science/article/pii/S1353485811701040# Generally speaking, almost every issue comes up with double-edged sword. In today’s society, Android operating system is also no exception. Along with its open source code released by Google under the Apache license, the security issue is becoming more and more significant and emergency. Whether or not the Android operating system is designed with any intrinsic security initially, from this article’s perspective, the author may state a negative answer of Android as a failure both the operating system and the hardware. We can get start from an overview about what the author listed through the beginning to end in the article. At first, the initial reason and environment about why Android developed appear to us along with the so called wrong policy-atypia at the beginning in the development cycle. It’s precisely because these non-mainstreams such as true multi-tasking that cause the current insecurity issues including multifariously malicious malware, e.g. Trojan-SMS, Fake Player, Droid Dream malware and so on. Meanwhile, the author listed the cause for concern, and also some tests on Android from the analyst view to test the security. There are two points in the article leave me a deep impression. The first one is a series of atypical and nonstandard design of Android. To come the first, its main kernel is just a branch of mainstream in Linux research and......

Words: 598 - Pages: 3

Android

...Essay on “Google Android OS vs. Apple iOS” The competition between Google Android and Apple iOSis one of the most talked after wars in mobile gadget platforms. The Google Android platform is increasingly becoming dominant in the smartphones and tablets market. Nokia, a once leading company in the mobile phone market is slowly entering the smartphone market with a new range of Lumia smartphones powered by Windows 8 mobile as it phases out its range of Symbian powered smartphones. Equally, Motorola Mobility is trying to gain a share of the market by increasing its product portfolio of smartphones in the Droid family. The Android Operating System powers the Droid range of smartphones. Samsung is by far the largest mobile manufacturing company in the world with a full range of Android powered smartphones in the Galaxy family. The recent entry of the Samsung Galaxy SIII heightened the competitive advantage of the Android Software Platform based on the Android 4.0 (Ice Cream Sandwich) software. With HTC,Blackberry OS, and Microsoft Mobile as a distant competitors, the war is clearly not between mobile phone manufacturers but the war is between software manufacturers, and in this case,Apple iOS and Google Android (Katie, 2012). Currently, the competition between Apple iOS and Google Android is so close such that it becomes difficult to tell the superior operating system (Ian, 2011). Undeniably, each mobile platform has its strengths and weaknesses. Advantages of Android OS over......

Words: 1828 - Pages: 8

Android 4

...Android 4.3, Jelly Bean Android 4.3, an even sweeter Jelly Bean, is available now on Nexus phones and tablets. Restricted profiles limit access to apps and content, at home with your family and at work. Bluetooth Smart support makes Android ready for a whole new class of mobile apps that connect to fitness sensors. Games look great thanks to the 3D realistic, high performance graphics powered by OpenGL ES 3.0. And there's a lot more new in this release: Audio * Virtual surround sound - enjoy movies from Google Play with surround sound on Nexus 7 (2013 edition) and other Nexus devices. Surround sound is powered by Fraunhofer Cingo™ mobile audio technology. Dial pad * Autocomplete - just start touching numbers or letters and the dial pad will suggest phone numbers or names. To turn on this feature, open your phone app settings and enable “Dial pad autocomplete.” Graphics * OpenGL ES 3.0 - Android now supports the latest version of the industry standard for high performance graphics. * Wireless Display for Nexus 7 (2013 edition) and Nexus 10 - project from your tablet to a TV. Internationalization and localization * Additional language support - Android is now translated in Africaans, Amharic (አማርኛ), Hindi (हिंदी), Swahili (Kiswahili), and Zulu (IsiZulu). * Hebrew, Arabic, and other RTL (right-to-left) - now supported in the home screen, settings, and Phone, People, and Keep apps. Keyboard & input * Easier text input - an......

Words: 4352 - Pages: 18

Android

...Android vs iPhone Junyao Zhang April 12, 2010 This is a complete analysis and comparison between Android and iPhone OS. The rest of this report is organized as follows. Section ?? outlines the system architecture, history and detail management configuration. Section ?? discusses the iPhone system. In Section ??, a comparison between these two systems is presented. 1 Android Android, originally meaning “robot”, is a mobile operating system using a modified version of the Linux kernel. It was initially developed by Android Inc., a firm later purchased by Google,[?]and lately by the Open Handset Alliance[?]. It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries.[8] It empolys the software stack architecture, as shown in Figure 1. • Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack. It is implemented by programming language C. • The middleware level includes Runtime and Libraries. The Runtime includes core libraries, providing most of the functionality available in the core libraries of the Java programming language, and Dalvik virtual machine which allows every Android application runs in its own process. The Libraries is used by various components of the Android system, such as Media Libraries, 3D......

Words: 6786 - Pages: 28

Android

...Android by 2012 A study on present and future of Google's Android Dot Com Infoway - Position Paper- www.dotcominfoway.com Android by 2012 A study on present and future of Google's Android S.No 1 2 3 4 5 6 7 8 9 10 11 12 13 Contents Executive Summary The Android Tale Why Google Android Android: Breaking the 'Walled Gardens' What's so different in Android Advantages of Dalvik Virtual machines Android: A promising haven for app developers and OEMs? Market Predictions Final Comments About Dot Com Infoway Sources Interesting Android links Glossary Dot Com Infoway - Position Paper- www.dotcominfoway.com Executive Summary: This paper attempts to study the present conditions of Android OS and unveils the predicted future market possibilities for Android, based on results from several research firms, using current market statistics and popularity among developers and end-users. All the flimflams and excitement about the costlier iphones and Blackberrys are vanishing, after the arrival of the most anticipated, open source mobile operating system, the Google Android, which is fated to turn the industry upside down. Despite the growth and popularity for iPhones and Blackberrys, it is predicted that, Android will make a history in sales and on acquiring the market share, slicing down the markets of both Symbians and iPhones. This paper will elaborately examine the predictions about the future of Android phones, considering the present facts and reasons. The Android......

Words: 2607 - Pages: 11

Android

...Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google. With a user interface based on direct manipulation, Android is designed primarily for touchscreen mobile devices such as smartphones and tablet computers, with specialized user interfaces for televisions (Android TV), cars (Android Auto), and wrist watches (Android Wear). The OS uses touch inputs that loosely correspond to real-world actions, like swiping, tapping, pinching, and reverse pinching to manipulate on-screen objects, and a virtual keyboard. Despite being primarily designed for touchscreen input, it also has been used in game consoles, digital cameras, and other electronics. Android is the most popular mobile OS. As of 2013, Android devices sell more than Windows, iOS, and Mac OS devices combined, with sales in 2012, 2013 and 2014 close to the installed base of all PCs. As of July 2013 the Google Play store has had over 1 million Android apps published, and over 50 billion apps downloaded.[20] A developer survey conducted in April–May 2013 found that 71% of mobile developers develop for Android. At Google I/O 2014, the company revealed that there were over 1 billion active monthly Android users (that have been active for 30 days), up from 538 million in June 2013. Android's source code is released by Google under open source licenses, although most Android devices ultimately ship with a combination of open source and proprietary software. Initially developed by......

Words: 371 - Pages: 2

Android

...Introduction……………………………………………………………….3 2. Literature review…………………………………………………………..4 3. Architecture……………………………………………………………...5-6 4. Version of android OS…………………………………………………. 7-9 5. Feature version……………………………………………………………10 6. Conclusion…………………………………………………………………11 INTRODUCTION Android is a software stack for mobile devices that includes an operating system middleware and mobile applications .It is LINUX based operating system developed by google. It is specially designed for touch screen mobiles like smart phones and computer tablets. It was developed by google and later on open handset alliance. Handset Alliance, a consortium of 34hardware, software and telecom companies devoted to advancing open standards for mobile devices. When released in 2008, most of The unveiling of the Android platform on 5 November 2007 was announced with the founding of the Open the Android platform will be made available under the Apache free-software and open-source license. It allows developers to write managed code in a Java-like language that utilizes Google-developed Java libraries, but does not support programs developed in native code. Applications   written   in   C   and   other   languages can   be compiled to ARM native code and run, but this development path   isn’t   officially   supported by Google. Android   is available   as   open   source. Google   threw open   the   entire source......

Words: 2440 - Pages: 10

Android App Dev

...Name: ______________________________ CSSE483 Android Application Development Lab 1: Getting Started with Buttons The purpose of this lab is to give you some practice building simple Android apps. ______ Part A: Building a Simple User Interface ______ Part B: Linear Lights Out     A. Building a Simple User Interface   1. Create a new Application called MyFirstAppYourName. You can use your username or initials as long as they are unique among your classmates.) Setup the UI for the MainActivity using the link below. Note that the link is to a single step in a Google tutorial. Only do that one step. You do not need to do the “Starting Another Activity” step that comes next. So only this one page. http://developer.android.com/training/basics/firstapp/building-ui.html Complete that page then use the instructions below. 2. So far so good, but the button doesn’t do anything. Add java code to listen for the button press. If it is pressed, it checks to see what the user entered. If they entered “secret”, the button’s text will change to “Wow”. Otherwise, it stays, “Send” like in the tutorial. Hint: The body of the onClick method will include this: if (editText.getText().toString().equals(getString(R.string.secret))) { button.setText(R.string.button_text_wow); } else { // you fill this in } Notes: (1) Check out the return type for the getText() method. Can you see why you need the toString()? (2) Note that the setText() method can take a resource ID (a string from......

Words: 997 - Pages: 4

Android App Idea

...is one of the great cities of the world and many people want to get there for many reasons. Now since the tourist or other people that are not very well aware of the demographics of the city face many problems. They face issues in finding the popular restaurants, hospitals, public service offices and other similar issues. This may be hectic for the tourists and may have a bad image of the city in their mind. The directions of one place from another is also difficult to find and people may face problems. So keeping in mind the above discussed problems, I proposed a solution of a mobile based android application “Nottingham”. The application is meant to help the tourist in finding their required details about Nottingham. Tourists can install the app and their account will be handled at a database. Considering the requirements of the user different details will be provided to the users. This app will be of great help to the tourists and if launched successfully in initial days, it can be developed into a good application for profits. APPLICATION SOLVING THE PROBLEM The application Nottingham is very helpful in dealing with the most prominent problems of the tourists. The main problems may include that a friend in the crew who came to Nottingham for a weekend party is deceased and is not feeling very well. Now they want to take him to a doctor but being new they don’t know where they may find a doctor. Our application may help in providing them with the needed information......

Words: 878 - Pages: 4

Android

...2. What is Android ? Android is a Linux-based operating system for mobile devices such as smartphones and tablet computers. Android specially developed for applications There are more than 4,00,000 apps in Android market The Android is an open source. 3. Foundation of an Android Android, Inc. found in Palo alto in California united states by Andy Rubin. - October 2003 Google acquired Android, Inc. – August 2005 The open handset alliance, a group of several companies was formed - 5 November 2007 Android Beta SDK Released - 12 November 2007. 4. Features of Android Android can run multiple apps at the Same Time Also support optimized graphics VGA, 2D graphics and 3D graphics Android has a better app market Android lets you change your settings faster It gives you more options to fit your budget Android keeps information visible on your home screen. Android also support Java applications. 5. Versions of an Android Android 1.0 23 September 2008 Android 1.1 9 February 2009 Android 1.5 (Cupcake) 30 April 2009 Android 1.6 (Donut) 15 September 2009 Android 2.0 (Éclair) 26 October 2009 Android 2.2 (Froyo) 20 May 2010 Android 2.3 (Gingerbread) 6 December 2010 Android 3.0 (Honeycomb) 10 May 2011 Android 4.0 (Ice cream sandwich) 19 October 2011 Android 4.1 (Jelly Bean) 13 July 2012 6. Why Android OS is better than iPhone OS ? Android OS iPhone OS We can set any app as a  It is impossible on iPhone. default on Android Have to click manually Android just drag......

Words: 385 - Pages: 2

Android

...ANDROID OPERATION SYSTEM INTRODUCTION Android is a mobile operating system that is currently developed by Google, it is based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android’s user-interface is mainly based on direct manipulation, using touch gestures that loosely corresponds to real-world actions, such as swiping, tapping and pinching to manipulate on-screen objects along with a virtual keyboard for text input. In addition to touchscreen devices Google has also developed android for other platforms such Android TV for Television, Android Auto for Cars and Android Wear for wristwatches. Each of these platform have special interface to sooth the platform. Variant of Android are also used on Notebooks, game console, digital camera and other electronics. As smartphones and tablets become more popular, the operating systems for those devices become more important. Android is such an operating system for low powered devices that run on battery and contain hardware like Global Positioning System (GPS) receivers, cameras, light and orientation sensors, WiFi and UMTS (3G telephony) connectivity and a touch screen. Like all operating systems, Android enables applications to make use of the hardware features through abstraction and provide a defined environment for applications. Unlike on other mobile operating systems like Apple’s iOS, Palm’s web OS or Symbian, Android applications are written in Java and run in......

Words: 3950 - Pages: 16

Intro to Android and Android Applications

...An Intro to Android and Android Applications D. Reynolds In today’s world of technology, even the average user can identify that mobile technology development grows exponentially each year. As more resources become available in the palm of our hands, the software and devices which we use to access these resources become more powerful and competitive in their market. According to the Open Handset Alliance, there are 3 billion mobile phone users worldwide, in comparison to the estimated 1.5 billion TV’s currently in use. Clearly, mobile devices are leading among the world’s most successful products for consumers. Currently, in the crusade to stay connected, there are a variety of operating systems and platforms, both firmware and software, that are always being reviewed and revised to create optimal end user experiences. The successes of device manufactures create new opportunities for innovative software products to wow users and create solutions for productivity and entertainment purposes. The relationship between devices and software to run on those devices is reciprocal. They both have to be compatible with one another in order to be relevant. Keeping up with ever emerging devices and software offered by developers for our service and convenience, can be overwhelming. As an aspiring programmer, I am most intrigued by open source platforms where the basic idea is to allow developers to create programs to run according to the protocols of one operating system that...

Words: 2763 - Pages: 12