Victor Dalvi

23 Flips | 1 Magazine | @vdalvi | Keep up with Victor Dalvi on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Victor Dalvi”

Implement OnMyLocationChangeListener for Google Maps Android API v2

With Google Play services v3.0, and Android SDK Platform-tools with Google Play Services updated, we can implement OnMyLocationChangeListener, called …

What is Iterable?

In the exercise "Draw hollow Polygon on Map, using addHole() method", object of ArrayList<LatLng> is passed to addHole() as Iterable<latlng>. …

Example to start AsyncTask when button clicked

This exercise demonstrate how to start AsyncTask when button clicked. It will achieve the same function of "Get yweather:forecast from Yahoo! Weather …

Kick-start Google Maps Android API v2 Development

<b>Shortcuts: Kick-start Google Maps Android API v2 Development</b><p>In this Shortcuts episode, Chris Broadfoot shows how to get started with Google Maps …

Example of using Notification.Builder

android.app.Notification.Builder is a builder class for Notification objects. Provides a convenient way to set the various fields of a Notification …

Example of using NotificationCompat.Builder

Last exercise demonstrate "Notification.Builder". If your app supports versions of Android as old as API level 4, you can instead use …

Search address by name with Geocoder

The getFromLocationName() method of android.location.Geocoder returns an array of Addresses that are known to describe the named location.<p>Example of …

Search address by name with Geocoder, with Search Dialog.

Get details of Address returned from Geocoder

Modify MainActivity.java from last exercise "Search address by name with Geocoder, with Search Dialog", implement OnItemClickListener on the search …

android-webserver: Small webserver on your android phone

<b>android-webserver</b> is a open source project of small webserver on your android phone, hosted on Google Code. It understands "GET"-Requests and can …

Display UP icon on action bar and implement BACK navigation in Fragment Transaction

Follow the exercise "Allow navigate BACK through FragmentTransaction, by calling addToBackStack()", we are going to add a UP icon on non-home …

implements OnBackStackChangedListener to display UP icon, automatically by getBackStackEntryCount

Last exercise handle UP icon for Fragment navigation in hard code; call setDisplayHomeAsUpEnabled(true) when switch to MyDetailFragment, and call …

Understand lifecycle of Activity and Fragment, Introduction

To develop Android Apps run on Fragment, understanding of lifecycle of Activity and Fragment is very important. <i>(I'm confused now!)</i><p>It is a simple …

Different case in lifecycle of Activity and Fragment

It's part of the articles of lifecycle: start reading from Understand lifecycle of Activity and Fragment, Introduction.<p>I try to show the different …

Example to create Menu

Modify /res/menu/main.xml to define menu items.<p>To load menu, override onCreateOptionsMenu() method to inflate R.menu.main. It's loaded in default …

What's New in Android Developer Tools - Google I/O 2013

An in-depth tour of the Android development tools, with a closer look at everything new - along with tips and tricks for getting the most out of them.<p>…

Add and Remove view dynamically

This exercise demonstrate how to add and remove view dynamically at run-time. When user click on the Add button, new view will be added. When user …

Apply animations on layout changes using LayoutTransition

LayoutTransition (Added in API level 11) enables automatic animations on layout changes in ViewGroup objects.<p>example:<p><i>LayoutTransition transition =</i> …

How to use the new Google Maps: A map built for you

YouTube Android Player API step-by-step

<i>The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for</i> …

Custom ArrayAdapter for Spinner, with custom icons

<i>It repost my old exercise "Custom ArrayAdapter for Spinner, with different icons". Somebody report that the icon in the Spinner button doesn't change</i> …