If you want to test your app on the emulator, run Android SDK Manager, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.

Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.

An introduction to this new support library, which allows you to add a compatible Action Bar to your application, targeting Android v2.1 or newer. This DevByte covers integrating the library, from adding it as a dependency to modifying your resources and code.
For more information you can visit -
http://developer.android.com/guide/topics/ui/actionbar.html

Wednesday, July 24, 2013

Google Cast is a screen-sharing technology that lets a user send and control content like video from a small computing device like a phone, tablet, or laptop to a large display device like a television.

A sender application running on the sender device uses the Google Cast API appropriate to its operating system to discover and transmit to the receiver application running on the receiver device. You can use the sender APIs to enable your Android, iOS, or Chrome app to send content to a large display.

The receiver device runs a scaled-down Chrome browser with a receiver application that receives data over Internet Protocol and transmits it to the television via HDMI. The receiver API lets you customize the messaging between the sender and receiver applications for authentication and other scenarios.

You can develop sender applications for Android, iOS, and Chrome which "cast" their content to a receiver device connected to a large display (television), and you can develop a receiver app that extends the default receiver functionality.

Note: You may not publicly distribute or ship your Google Cast application without written permission from Google, per the terms of service described on the Downloads page.The APIs in this preview release are subject to change. This preview supports the same three platforms that are intended for the released product: Android, iOS, and Chrome. If you are developing a Chrome application, Google will need to whitelist your website for development. This process usually takes only a few days.

Android 4.3 of Jelly Bean announced, includes great new features for users and developers. Android 4.3 powers the new Nexus 7 tablet and it’s rolling out now as an update to Nexus 4, Nexus 7, Nexus 10, and Galaxy Nexus HSPA+ devices across the world.

For developers, Android 4.3 includes the latest performance enhancements to keep your apps fast, smooth, and efficient, together with new APIs and capabilities to use in your apps.

Tuesday, July 23, 2013

Last example demonstrate a "Simple example of Button and OnClickListener", with individual OnClickListener for each View. Alternatively, we can have a common OnClickListener for more than one View, then determine event source in event listener, and perform the correspond operation accordingly.

The OpenWeatherMap service provides free weather data and forecast API suitable for any cartographic services like web and smartphones applications. Ideology is inspired by OpenStreetMap and Wikipedia that make information free and available for everybody. OpenWeatherMap provides wide range of weather data such as map with current weather, week forecast, precipitation, wind, clouds, data from weather Stations and many others. Weather data is received from global Meteorological broadcast services and more than 40 000 weather stations.

If you’re familiar with Gradle’s basics elements—possibly through the author’s previous O’Reilly book, Building and Testing with Gradle—this more advanced guide provides the recipes, techniques, and syntax to help you master this build automation tool. With clear, concise explanations and lots of ready-to-use code examples, you’ll explore four discrete areas of Gradle functionality: file operations, custom Gradle plugins, build lifecycle hooks, and dependency management.

Learn how to use Gradle’s rich set of APIs and Groovy-based Domain Specific Language to customize build software that actually conforms to your product. By using the techniques in this book, you’ll be able to write domain-specific builds that support every other line of code your team creates.

Saturday, July 20, 2013

To request more memory for App to run, you can specify android:largeHeap="true" in <application>. android:largeHeap specify Whether your application's processes should be created with a large Dalvik heap.

Wednesday, July 17, 2013

The best programming techniques are often the shortest and simplest—the hacks. In this compact and infinitely useful book, Android expert Carlos Sessa delivers 50 hacks that will save you time, stretch your skills, and maybe even make you smile.

About this Book

Hacks. Clever programming techniques to solve thorny little problems. Ten lines of code that save you two days of work. The little gems you learn from the old guy in the next cube or from the geniuses on Stack Overflow. That's just what you'll find in this compact and useful book.

The name 50 Android Hacks says it all. Ranging from the mundane to the spectacular, each self-contained, fully illustrated hack is just a couple of pages long and includes annotated source code. These practical techniques are organized into twelve collections covering layout, animations, patterns, and more.

What's Inside

Hack 3 Creating a custom ViewGroup

Hack 8 Slideshow using the Ken Burns effect

Hack 20 The Model-View-Presenter pattern

Hack 23 The SyncAdapter pattern

Hack 31 Aspect-oriented programming in Android

Hack 34 Using Scala inside Android

Hack 43 Batching database operations

Plus 43 more hacks!

Most hacks work with Android 2.x and greater. Version-specific hacks are clearly marked.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Author

Carlos Sessa is a passionate professional Android developer. He's active on Stack Overflow and is an avid hack collector.

Friday, July 12, 2013

Android Security: Attacks and Defenses is for anyone interested in learning about the strengths and weaknesses of the Android platform from a security perspective. Starting with an introduction to Android OS architecture and application programming, it will help readers get up to speed on the basics of the Android platform and its security issues.

Explaining the Android security model and architecture, the book describes Android permissions, including Manifest permissions, to help readers analyze applications and understand permission requirements. It also rates the Android permissions based on security implications and covers JEB Decompiler.

The authors describe how to write Android bots in JAVA and how to use reversing tools to decompile any Android application. They also cover the Android file system, including import directories and files, so readers can perform basic forensic analysis on file system and SD cards. The book includes access to a wealth of resources on its website: www.androidinsecurity.com. It explains how to crack SecureApp.apk discussed in the text and also makes the application available on its site.

The book includes coverage of advanced topics such as reverse engineering and forensics, mobile device pen-testing methodology, malware analysis, secure coding, and hardening guidelines for Android. It also explains how to analyze security implications for Android mobile devices/applications and incorporate them into enterprise SDLC processes.

The book’s site includes a resource section where readers can access downloads for applications, tools created by users, and sample applications created by the authors under the Resource section. Readers can easily download the files and use them in conjunction with the text, wherever needed. Visit www.androidinsecurity.com for more information.

ADT provides many features to allow you to design and build your application's user interface. Many of these features are in the graphical layout editor, which you can access by opening one of your application's XML layout files in Eclipse.

Monday, July 8, 2013

This book is a step-by-step guide for developing 'gps', a full-fledged Android app. It also can be used as an intro book on Android programming.

The gps app:• locates the user's position on the map• e-mails the location in a URL form that positions the location on the Google Maps Web page• inserts the current location of the user into the SQLite database• retrieves locations from the database and places them in a list view. The user then chooses to view locations from the list on the map.• allows the user to tap on the screen to place markers and find the latitude, longitude pair of the point pressed• translates the name of a city or place to latitude, longitude and marks the location on the map

The goal of this book is to teach the skills necessary to develop Android based applications using the Eclipse Integrated Development Environment (IDE) and the Android 4.2 Software Development Kit (SDK).

Beginning with the basics, this book provides an outline of the steps necessary to set up an Android development and testing environment. An introduction to the architecture of Android is followed by an in-depth look at the design of Android applications and user interfaces. More advanced topics such as database management, content providers, intents and services are also covered, as are touch screen handling, gesture recognition, camera access and the playback and recording of both video and audio.

In addition to covering general Android development techniques, the book also includes Google Play specific topics such as using the Google Play In-App Billing API, implementing maps using the Google Maps Android API and submitting apps to the Google Play Developer Console.

Assuming you already have some Java programming experience, are ready to download Eclipse and the Android SDK, have access to a Windows, Mac or Linux system and ideas for some apps to develop, you are ready to get started.

Table of Contents

Setting up an Android Development Environment

Creating an Android Virtual Device (AVD)

Creating an Example Android Application

Testing Android Applications on a Physical Android Device with ADB

An Overview of the Android Architecture

The Anatomy of an Android Application

Understanding Android Application and Activity Lifecycles

Handling Android Activity State Changes

Android Activity State Changes – An Example Application

Saving and Restoring the User Interface State of an Android Activity

Understanding Android Views, View Groups and Layouts

Designing an Android User Interface using the Graphical Layout Tool

Creating an Android User Interface in Java Code

Using the Android GridLayout Manager in the Graphical Layout Tool

Working with the Android GridLayout in XML Layout Resources

An Overview and Example of Android Event Handling

Detecting Common Gestures using the Android Gesture Detector Class

Implementing Android Custom Gesture and Pinch Recognition

An Introduction to Android Fragments

Using Fragments in Android – A Worked Example

An Android Master/Detail Flow Tutorial

Creating and Managing Overflow Menus on Android

An Overview of Android Intents

Android Explicit Intents – A Worked Example

Android Implicit Intents – A Worked Example

Android Broadcast Intents and Broadcast Receivers

A Basic Overview of Android Threads and Thread handlers

An Overview of Android Started and Bound Services

Implementing an Android Started Service – A Worked Example

Android Local Bound Services – A Worked Example

Android Remote Bound Services – A Worked Example

An Overview of Android SQLite Databases

An Android TableLayout and TableRow Tutorial

An Android SQLite Database Tutorial

Understanding Android Content Providers

An Android Content Provider Tutorial

Implementing Video Playback on Android using the VideoView and MediaController Classes

Video Recording and Image Capture on Android using Camera Intents

Android Audio Recording and Playback using MediaPlayer and MediaRecorder

Working with the Google Maps Android API

Handling Different Android Devices and Displays

Signing and Preparing an Android Application for Release

Integrating Google Play In-app Billing into an Android Application . A Tutorial

Thursday, July 4, 2013

This is a demonstration of the Boot to Qt SDK. It shows how to configure Qt Creator for hardware development and how to run applications in both the emulator and on embedded hardware.

Boot to Qt is a light-weight UI stack based on the Qt Framework. It is built on top of a a minimal Android baselayer. Boot to Qt is a commercial offering by Digia, including ready-made images for several hardware types, Single-click deploy from the Qt Creator IDE, a device emulator. For more information see qt.digia.com.

Qt is a cross-platform complete development framework with tools designed to streamline the creation of stunning native applications and amazing user interfaces for desktop, embedded and mobile platforms.Application demonstrated in the video contains several Qt Quick 2 applications which you can launch by tapping the devices. This application highlights the versatility of Qt technology in bringing different user interface styles in several platforms and device types with one source code. For more information about Qt, please refer to http://qt.digia.com/

Wednesday, July 3, 2013

In addition to that our work to bring Qt to mobile operating systems is showing great results. Even though Qt for Android and Qt for iOS are not yet final, and are marked as technology previews in this release, they are already very usable for a large number of use cases.Qt for Android supports all Qt modules that are part of 5.1 with the exception of Qt Serialport, Qt WebKit and parts of Qt Multimedia. Qt for Android also comes with a great integration into Qt Creator that allows you to do almost all your development until the point where you want to upload the application to Google Play.Qt for iOS also already supports the same Qt modules as Android does, with the exception of Qt Quick 2. This is due to limitations in iOS that make it impossible to use V8 as the JavaScript engine on this operating system. We will provide full Qt Quick support on iOS with Qt 5.2.You can install some demo applications that show Qt on iOS and Android from the App Store and Google Play. For Android we have a new Qt Everywhere demo as well as the Qt 5 launch demo available in Google Play. The blog post about Google Play contains more details about publishing Qt applications in Google Play. For iOS, we have Sub Attack, a small Qt based game and Qt Quicksand published in the app store.As with any release also this one contains a few issues that we know about and probably some more we haven’t yet found. All of these will be collected on the Known Issues page in our wiki.

Moto X. is coming soon, The first smartphone designed, engineered and assembled in the USA is coming. It’s also the first smartphone that you can design yourself. Because today you should have the freedom to design the things in your life to be as unique as you are.