Tuesday, July 15, 2014

Learn to Think Like an Android Developer





By Reto Meier, Head of Scalable Developer Advocacy




Today I�m proud to announce the latest resource for learning to develop Android apps: Developing Android Apps: Android Fundamentals.




Android Fundamentals is an online training course featuring Google Developer Advocates Reto Meier, Dan Galpin, and Katherine Kuan, working with the team at Udacity that�s advanced and technical enough for experienced developers who are new to Android?—?maybe even new to mobile?— but not new to programming.



The course offers step-by-step training in which you�ll build an Android app, and learn best practices of mobile development in general and Android development in particular.



The full course materials — all the videos, quizzes, and forums — are available for free for all students by selecting �View Courseware�. Personalized ongoing feedback and guidance from Coaches is also available to anyone who chooses to enroll in Udacity�s guided program.



This guided course, along with UX Design for Mobile Developers and Mobile Web Development, complement our existing material—including documentation, samples, and videos — to offer a solid grounding in developing great experiences for people using mobile devices. Check out the trailer below for an overview of what's in the course.



Mobile devices are the platform that will bring the next five billion people online. With Android expanding rapidly into emerging markets, and growing beyond phones and tablets into wearables, auto, and TV, learning the fundamentals behind Android development represents an opportunity to affect and improve the lives of billions of people.



We look forward to seeing what the next wave of Android developers build, and we�ll keep exploring new ways to help you become better developers.






Thursday, July 10, 2014

New Cross-Platform Tools for Game Developers

By Ben Frenkel, Google Play Games team



There was a lot of excitement at Google I/O around Google Play Games, and today we�re delighted to share that the following tools are now available:




  • Updated Play Games cross-platform C++ SDK

  • Updated Play Games SDK for iOS

  • New game services alerts in the Developer Console



Here's a quick look at the cool new stuff for developers.



Updated Play Games C++ SDK



We've updated the Google Play Games C++ SDK with more cross-platform support for the new services and experiences we announced at I/O. Learn more»



The new C++ SDK now supports all of the following:









Cocos2D-x, a popular game engine, is an early adopter of the Play Games C++ SDK and is bringing the power of Play Games to their developers. Additionally, the Cocos2D-x team created Wagon War, a prototype game showcasing the capabilities of the Cocos2D-x engine with Play Games C++ SDK integration.


Wagon War is also a powerful reference for developers — it gives you immediately usable code samples to accelerate your C++ implementations. You can browse or download the game sources on the Wagon War page on GitHub.




Updated Play Games iOS SDK



The Play Games iOS SDK is now updated with support for Quests and Saved Games, enabling iOS developers to integrate the latest services and experiences with the Objective-C based tool-chains they are already familiar with. Learn more»



The new Play Games SDK for iOS now supports all of the following:




  • Quests and Events. Learn more»

  • Saved Games. Learn more»

  • Game Profile and related Player XP APIs — the SDK now also provides the UI for Game Profile and access to Player XP data for players.



New types of games services alerts



Last, you can now see new types of games services alerts in the Developer Console to learn about issues that might be affecting your users' gameplay experiences. For example, if your app implements Game Gifts, you'll now see an alert when players are unable to send a gift; if your app implements Multiplayer, you'll now see an alert when players are unable to join a match. Learn more»




Tuesday, July 8, 2014

Update on Android Wear Paid Apps

Update (8 September 2014): All of the issues in the post below have now been resolved in Android Studio 0.8.3 onwards, released on 21 July 2014. The gradle wearApp rule, and the packaging documentation, were updated to use res/raw. The instructions on this blog post remain correct and you can continue to use manual packaging if you want. You can upload Android Wear paid apps to the Google Play using the standard release wearApp release mechanism.



We have a workaround to enable paid apps (and other apps that use Google Play's forward-lock mechanism) on Android Wear. The assets/ directory of those apps, which contains the wearable APK, cannot be extracted or read by the wearable installer. The workaround is to place the wearable APK in the res/raw directory instead.



As per the documentation, there are two ways to package your wearable app: use the �wearApp� Gradle rule to package your wearable app or manually package the wearable app. For paid apps, the workaround is to manually package your apps with the following two changes, and you cannot use the �wearApp� Gradle rule. To manually package the wearable APK into res/raw, do the following:




  1. Copy the signed wearable app into your handheld project's res/raw directory and rename it to wearable_app.apk, it will be referred to as wearable_app.

  2. Create a res/xml/wearable_app_desc.xml file that contains the version and path information of the wearable app:
    <wearableApp package="wearable app package name">
    <versionCode>1</versionCode>
    <versionName>1.0</versionName>
    <rawPathResId>wearable_app</rawPathResId>
    </wearableApp>


    The package, versionCode, and versionName are the same as values specified in the wearable app's AndroidManifest.xml file. The rawPathResId is the static variable name of the resource. If the filename of your resource is wearable_app.apk, the static variable name would be wearable_app.


  3. Add a <meta-data> tag to your handheld app's <application> tag to reference the wearable_app_desc.xml file.
    <meta-data android:name="com.google.android.wearable.beta.app"
    android:resource="@xml/wearable_app_desc"/>

  4. Build and sign the handheld app.



We will be updating the �wearApp� Gradle rule in a future update to the Android SDK build tools to support APK embedding into res/raw. In the meantime, for paid apps you will need to follow the manual steps outlined above. We will be also be updating the documentation to reflect the above workaround. We're working to make this easier for you in the future, and we apologize for the inconvenience.




Wednesday, July 2, 2014

Google Play Services 5.0

gps

Google Play services 5.0 is now rolled out to devices worldwide, and it includes a number of features you can use to improve your apps. This release introduces Android wearable services APIs, Dynamic Security Provider and App Indexing, whilst also including updates to the Google Play game services, Cast, Drive, Wallet, Analytics, and Mobile Ads.




Android wearable services



Google Play services 5.0 introduces a set of APIs that make it easier to communicate with your apps running on Android wearables. The APIs provide an automatically synchronized, persistent data store and a low-latency messaging interface that let you sync data, exchange control messages, and transfer assets.



Dynamic security provider



Provides an API that apps can use to easily install a dynamic security provider. The dynamic security provider includes a replacement for the platform's secure networking APIs, which can be updated frequently for rapid delivery of security patches. The current version includes fixes for recent issues identified in OpenSSL.



Google Play game services



Quests are a new set of APIs to run time-based goals for players, and reward them without needing to update the game. To do this, you can send game activity data to the Quests service whenever a player successfully wins a level, kills an alien, or saves a rare black sheep, for example. This tells Quests what�s going on in the game, and you can use that game activity to create new Quests. By running Quests on a regular basis, you can create an unlimited number of new player experiences to drive re-engagement and retention.



Saved games lets you store a player's game progress to the cloud for use across many screen, using a new saved game snapshot API. Along with game progress, you can store a cover image, description and time-played. Players never play level 1 again when they have their progress stored with Google, and they can see where they left off when you attach a cover image and description. Adding cover images and descriptions provides additional context on the player�s progress and helps drive re-engagement through the Play Games app.




App Indexing API



The App Indexing API provides a way for you to notify Google about deep links in your native mobile applications and drive additional user engagement. Integrating with the App Indexing API allows the Google Search app to serve up your app�s history to users as
instant Search suggestions, providing fast and easy access to inner pages in your app. The deep links reported using the App Indexing API are also used by Google to index your app�s content and surface them as deep links to Google search result.



Google Cast



The Google Cast SDK now includes media tracks that introduce closed caption support for Chromecast.



Drive



The Google Drive API adds the ability to sort query results, create folders offline, and select any mime type in the file picker by default.



Wallet



Wallet objects from Google take physical objects (like loyalty cards, offers) from your wallet and store them in the cloud. In this release, Wallet adds "Save to Wallet" button support for offers. When a user clicks "Save to Wallet" the offer gets saved and shows up in the user's Google Wallet app. Geo-fenced in-store notifications prompt the user to show and scan digital cards at point-of-sale, driving higher redemption. This also frees the user from having to carry around offers and loyalty cards.



Users can also now use their Google Wallet Balance to pay for Instant Buy transactions by providing split tender support. With split tender, if your Wallet Balance is not sufficient, the payment is split between your Wallet Balance and a credit/debit card in your Google Wallet.



Analytics



Enhanced Ecommerce provides visibility into the full customer journey, adding the ability to measure product impressions, product clicks, viewing product details, adding a product to a shopping cart, initiating the checkout process, internal promotions, transactions, and refunds. Together they help users gain deeper insights into the performance of their business, including how far users progress through the shopping funnel and where they are abandoning in the purchase process. Enhanced Ecommerce also allows users to analyze the effectiveness of their marketing and merchandising efforts, including the impact of internal promotions, coupons, and affiliate marketing programs.



Mobile Ads



Google Mobile Ads are a great way to monetise your apps and you now have access to better in-app purchase ads. We've now added a default implementation for consumable purchases using the Google Play In-app Billing service.



And that�s another release of Google Play services. The updated Google Play services SDK is now available through the Android SDK manager. For details on the APIs, please see New Features in Google Play services 5.0.











Thursday, June 26, 2014

Android L Developer Preview and Android Studio Beta

By Jamal Eason, Product Manager, Android







At the Google I/O keynote yesterday we announced the L Developer Preview — a development version of an upcoming Android release. The Developer Preview lets you explore features and capabilities of the L release and get started developing and testing on the new platform. You can take a look at the developer features and APIs in the API Overview page.



Starting today, the L Developer Preview is available for download from the L Developer Preview site. We're also announcing that Android Studio is now in beta, and making great progress toward a full release.



Let�s take a deeper dive into what�s included in the preview and what it means for you as a developer as you prepare your apps for the next Android release.



What�s in the L Developer Preview



The L Developer Preview includes updated SDK tools, system images for testing on an emulator, and system images for testing on a Nexus 5 or Nexus 7 device.



You can download these components through the Android SDK Manager:




  • L Developer Preview SDK Tools

  • L Developer Preview Emulator System Image - 32-bit (64-bit experimental emulator image coming soon)

  • L Developer Preview Emulator System Image for Android TV (32-bit)



(Note: the full release of Android Wear is a part of Android KitKat, API Level 20. Read more about Android Wear development here.)



Today, we are also providing system image downloads for these Nexus devices to help with your testing as well:




  • Nexus 5 (GSM/LTE) �hammerhead� Device System Image

  • Nexus 7 [2013] - (Wifi) �razor� Device System Image



You can download both of these system images from the L Developer Preview site.

With the SDK Tools, and Nexus device images, you can get a head start on testing out your app on the latest Android platform months before the official launch. You can use the extra lead time to take advantage of all the new app features and APIs in your apps. The Nexus device images can help you with testing, but keep in mind that they are meant for development purposes only and should not be used on a production device.



Notes on APIs and publishing



The L Developer Preview is a development release and does not have a standard API level. The APIs are not final, and you can expect minor API changes over time.



To ensure a great user experience and broad compatibility, you can not publish versions of your app to Google Play that are compiled against L Developer Preview. Apps built for L Developer Preview will have to wait until the full official launch to publish on Google Play.



Android Studio Beta



To help you develop your apps for the upcoming Android version and for new Android device types, we�re also happy to announce Android Studio Beta. Android Studio Beta helps you develop apps by enabling you to:




  • Incorporate the new material design and interaction elements of the L Developer Preview SDK

  • Quickly create and build apps with a new app wizard and layout editor support for Android Wear and Android TV



Building on top of the build variants and flavors features we introduced last year, the Android Studio build system now supports creating multiple apks, such as for devices like Android Wear. You can try out all the new features with the L Developer Preview by downloading the Android Studio Beta today.



How to get started



To get started with the L Developer Preview and prepare your apps for the full release, just follow these steps:




  1. Try out Android Studio Beta

  2. Visit the L Developer Preview site

  3. Explore the new APIs

  4. Enable the material theme and try out material design on your apps

  5. Get the emulator system images through the SDK Manager or download the Nexus device system images.

  6. Test your app on the new Android Runtime (ART) with your device or emulator

  7. Give us feedback





As you use the new developer features and APIs in the L Developer Preview, we encourage you to give us your feedback using the L Developer Preview Issue Tracker. During the developer preview period, we aim to incorporate your feedback into our new APIs and adjust features as best as we can.




You can get all the latest downloads, documentation, and tools information from the L Developer Preview site on developer.android.com. You can also check our Android Developer Preview Google+ page for updates and information.




We hope you try the L Developer Preview as you start building the next generation of amazing Android user experiences.













Get it on Google Play

Wednesday, June 25, 2014

Google I/O: Design, Develop, Distribute

By Monica Tran, Head of Developer Marketing








Today at Moscone, we kicked off our 7th annual Google I/O. This year, we�re focusing on three key themes: design, develop, distribute, helping you build your app from start to finish.



It�s been amazing to see how far you�ve come: in fact, since the last Google I/O, we�ve paid developers more than $5 billion, a testament to the experiences you�re creating. In the keynote, we had a number of announcements geared towards meeting the user wherever they go: on the TV, in the car and on your wrist. Below is a taste of some of the goodies we unveiled to help you along the way.



DESIGN




  • Material design — we introduced material design, which uses tactile surfaces, bold graphic design, and fluid motion to create beautiful, intuitive experiences.

  • L-Release of Android, with material design — Bringing material design to Android is a big part of the L-Release of Android: we�ve added the new Material theme (which you can apply to your apps for a new style) and the ability to specify a view�s elevation, allowing you to cast dynamic, real-time shadows in your apps.

  • Bringing material design to Polymer — As a developer, you�ll now have access to all the capabilities of material design via Polymer, bringing tangibility, bold graphics, and animations to your applications on the web, all at 60fps.



DEVELOP



  • Android L Developer Preview — Get extra lead time to make great apps for the next version of Android, with lots of new APIs to make Android simpler and more consistent on screens everywhere

  • Google Play services 5.0 is rolling out worldwide with great new features for developers.

  • Android TV SDK — Explore, learn and build apps and games for the biggest screen in the home. Your hard work will pay off in the fall when Asus, Razer and other partners launch their first Android TV devices.

  • Google Cast SDK — Help users find your content more easily with the improved Google Cast SDK developer console, which lets your app get discovered on chromecast.com/apps and on Google Play.

  • Android Auto SDK coming — Bring your app experience to the car by extending your existing app with Android Auto APIs. Be in millions of cars — with just one app.

  • Google Fit — An open fitness platform giving users control of their fitness data so that developers can focus on building smarter apps and manufacturers can focus on creating amazing devices.

  • Gaming — Learn what's new about Google Play Games and the Android platform to take games to the next level.

  • Google Cloud Platform — Get help with debugging, tracing, and monitoring applications in with new developer productivity tooling. Also, try Cloud Dataflow, a new fully managed service that simplifies the process of creating data pipelines.

  • The new Gmail API — Add Gmail features to your app with RESTful access to threads, messages, labels, drafts and history.

  • Android features for Enterprise — Secure apps and data without complicating the user experience. Build for the enterprise with no changes to the apps you're already developing. Learn more here.



DISTRIBUTE
















Get it on Google Play

New in Android: L Developer Preview and Google Play Services 5.0

By Jamal Eason, Product Manager, Android








Earlier today, at Google I/O, we showed a number of projects we�ve been working on to the thousands of developers in the audience and the millions more tuning in on the livestream. These projects extend Android to the TV (Android TV), to the car (Android Auto) and to wearables (Android Wear), among others.



At Google, our focus is providing a seamless experience for users across all of the screens in their lives. An important component to that is making sure that you as developers have all of the tools necessary to easily deploy your apps across to those screens. Increasingly, Android is becoming the fabric that weaves these experiences together, which is why you�ll be excited about a number of things we unveiled today.



Android L Developer Preview



For the first time since we launched Android, we�re giving you early access to a development version of an upcoming release. The L Developer Preview, available starting tomorrow, lets you explore many of the new features and capabilities of the next version of Android, and offers everything you need to get started developing and testing on the new platform. This is important because the platform is evolving in a significant way — not only for mobile but also moving beyond phones and tablets. Here are a few of the highlights for developers:




  • Material design for the multiscreen world — We�ve been working on a new design language at Google that takes a comprehensive approach to visual, motion, and interaction design across a number of platforms and form factors. Material design is a new aesthetic for designing apps in today�s multi-device world. The L Developer Preview brings material design to Android, with a full set of tools for your apps. The system is incredibly flexible, allowing your app to express its individual character and brand with bold colors and a variety of responsive UI patterns and themeable elements.

  • Enhanced notifications — New lockscreen notifications let you surface content, updates, and actions to users at a glance, without unlocking. Visibility controls let you manage the types of information shown on the lockscreen. Heads-up notifications display content and actions in a small floating window that�s managed by the system, no matter which app is in the foreground. Notifications are material themed and you can express your brand through accent colors and more.

  • Document-centric Recents — Now you can organize your app by tasks and present these concurrently as individual �documents� in the Recents screen. Users can flip through Recents to find the specific task they want and then jump deep into your app with a single tap.

  • Project Volta — New tools and APIs help your app run efficiently and conserve power. Battery Historian is a new tool that lets you visualize power events over time and understand how your app is using battery. A job scheduler API lets you set the conditions under which your background tasks and other jobs should run, such as when the device is idle or connected to an unmetered to a charger, to minimize battery impact.

  • BLE Peripheral Mode — Android devices can now function in Bluetooth Low Energy (BLE) peripheral mode. Apps can use this capability to broadcast their presence to nearby devices — for example, you can now build apps that let a device to function as a pedometer or health monitor and transmit data to another BLE device.

  • Multi-networking — Apps can work with the system to dynamically scan for available networks with specific capabilities and then automatically connect. This is useful when you want to manage handoffs or connect to a specialized network, such as a carrier-billing network.

  • Advanced camera capabilities — A new camera API gives you new capabilities for image capture and processing. On supported devices, your app can capture uncompressed YUV capture at full 8 megapixel resolution at 30 FPS. The API also lets you capture raw sensor data and control parameters such as exposure time, ISO sensitivity, and frame duration, on a per-frame basis.

  • New features for game developers — Support for OpenGL ES 3.1, gives you capabilities such as compute shaders, stencil textures, and texture gather for your games. Android Extension Pack (AEP) is a new set of extensions to OpenGL ES that bring desktop-class graphics to Android. Games will be able to take advantage of tessellation and geometry shaders, and use ASTC texture compression across multiple GPU techonolgies.

  • Android Runtime (ART) — The L Developer Preview introduces the Android Runtime (ART) as the system default. ART offers ahead-of-time (AOT) compilation, more efficient garbage collection, and improved development and debugging features. In many cases it improves performance of the device with no action required by the developer.

  • 64-bit support — The L Developer Preview adds support for 64-bit ABIs, for additional address space and improved performance with certain compute workloads. Apps written in the Java language can run immediately on 64-bit architectures with no modifications required. To support apps using native code, we�re also releasing an updated NDK that includes 64-bit support.





Watch for more details coming out tomorrow (26 June) on what�s in the L Developer Preview and how to get it.



Google Play Services 5.0



Along with the L Developer Preview, we also announced a new version of Google Play services that brings new capabilities and the latest optimizations to devices across the Android ecosystem. Google Play services ensures that you can build on the latest features from Google for your users, with the confidence that those services will work properly everywhere. The latest version has begun rolling out and here are some of the highlights:




  • Services for Android wearables — Your apps can more easily communicate and sync with code running on Android wearables through an automatically synchronized, persistent data store and a reliable messaging interface.

  • Play Games services — Build a great gaming experience with Quests, which allow event-based challenges for players to complete for rewards, Saved Games (a snapshot API allow synchronization of game data along with a cover-image and description), and Game Profile (providing experience points for players).

  • App Indexing API — Surface deep content in your native mobile applications on Google search and drive additional user engagement.

  • Google Cast — Use media tracks to enable closed-caption support for Chromecast.

  • Drive — Sort query results, create offline folders, and select any mime type in the file picker by default.

  • Wallet — Build a "Save to Wallet" button for offers directly into your app; use geo-fenced in-store notifications to prompt the user to show and scan digital cards. Split tender allows payment to be split between Wallet Balance and a credit/debit card in Google Wallet.

  • Analytics — Get insights into the full user journey and understand how different user acquisition campaigns are performing with Enhanced Ecommerce, letting you measure product impressions, product clicks, and more.

  • Mobile Ads — Use improved in-app purchase ads and integrations for the Play store in-app purchase API client.

  • Dynamic Security Provider — Offers an alternative to the platform's secure networking APIs that can be updated more frequently, for faster delivery of security patches.



We expect the rollout of Google Play services 5.0 to take several days, after which time you�ll be able to get started developing with these new APIs.



Join us at the Google I/O sessions



If you�d like to learn more, join us for sessions on Android development, material design, game development, and more. You�ll find the full session list on the Google I/O 2014 site, and you can filter the schedule to find livestreamed sessions of interest.














Get it on Google Play