Sunday, June 30, 2013

Follow the step in "YouTube Android Player API step-by-step" to Download and import YouTube Android Player API, and Register your app using YouTube Android Player API and obtain API Key. To use YouTubePlayerFragment, you have to define android:minSdkVersion="11" or higher in your AndroidManifest.xml.

Modify /res/layout/activity_main.xml to define layout, with <fragment> of "com.google.android.youtube.player.YouTubePlayerFragment".

The Google Maps Javascript API lets you embed Google Maps in your own web pages. Version 3 of this API is especially designed to be faster and more applicable to mobile devices, as well as traditional desktop browser applications.The API provides a number of utilities for manipulating maps (just like on the http://maps.google.com web page) and adding content to the map through a variety of services, allowing you to create robust maps applications on your website.The JavaScript Maps API V3 is a free service, available for any web site that is free to consumers. Please see the terms of use for more information.

To run them, simply right click on the test and click on Run as type Android Junit test.

You can also create a new run configuration of type "Android Test" and specify whether you want to run all the tests in a module, package, class or just a single test.

NOTE: Debugging tests will be supported in the next release

0.1.8 also comes with a brand new implementation of a resource manager in the IDE, used for layout preview, editor resource folding, etc. This should address many bugs reported in earlier versions (such as @id attributes not being handled properly in RelativeLayouts, bugs with opening layouts after making edits, etc, and should be more performant.

Monday, June 24, 2013

BizDevBytes: Introducing Google Play for Education
As Google expands its education offering to Android, Shazia Makhdumi provides an overview of the Google Play for Education program. Developers will learn how the program works and how to leverage the unique business opportunities in creating educational apps for the K-12 market.

Friday, June 21, 2013

In the exercise "Generate Notification with sound when alarm received", a browse opened and load a specified url once user click on the notification. We can also pass intent to start activity to notification, to start activity once user click on the notification.

Somebody report that my old exercise "Share IntentService among Fragments" not work. So I try to import the downloaded project in a new installed Android ADT, and the following error...sss reported in LogCat:

YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.

Sunday, June 16, 2013

It repost my old exercise "Custom ArrayAdapter for Spinner, with different icons". Somebody report that the icon in the Spinner button doesn't change accordingly. I have re-check on HTC One X (running Android 4.1.1), HTC Flyer (Android 3.2.1) and Nexus One (Android 2.3.6), all work as expected. Would you help to check in your device and let me know if any problem?APK available here: http://goo.gl/8VmK3

Before implement custom Spinner with icons, we have to prepare our custom icons. Download the sample icons to /drawable folder, named icon.png and icongray.png.

Thursday, June 13, 2013

The former exercise show a "Simple example of using DatePicker with both calendar view and spinners". We can show/hide calendar view and spinners individually in XML with android:calendarViewShown and android:spinnersShown attributes. Introduced in API level 11, we can also program it using Java code with setCalendarViewShown() and setSpinnersShown() methods.