Internet Services in Android

Software as a service (SaaS) and cloud computing are becoming increasingly popular as companies try to reduce the cost overheads associated with installing, upgrading, and maintaining deployed software. The result is a range of rich Internet services with which you can build thin mobile applications that enrich online services with the personalization available from your … Read more

Download Manager Query in Android

The query method takes a DownloadManager.Query object as a parameter. Use the setFilterById method on a Query object to specify a sequence of download reference IDs, or use the setFilterByStatus method to filter on a download status using one of the DownloadManager .STATUS_* constants to specify running, paused, failed, or successful downloads The Download Manager … Read more

Download Manager in Android to download Files

The Download Manager was introduced in Android 2.3 (API level 9) as a Service to optimize the handling of long-running downloads. The Download Manager handles the HTTP connection and monitors connectivity changes and system reboots to ensure each download completes successfully To access the Download Manager, request the DOWNLOAD_SERVICE using the getSystemService method, as follows: … Read more

Android to Create an Earthquake Viewer APP

The earthquake feed XML is parsed here by the DOM parser Start by creating an Earthquake project featuring an Earthquake Activity. Create a new EarthquakeListFragment that extends ListFragment. This Fragment displays your list of earthquakes. public class EarthquakeListFragment extends ListFragment {} Modify the main.xml layout resource to include the Fragment you created in Step 2. … Read more

Need to make Android Native APP

Android offers several ways to leverage Internet resources. At one extreme you can use a WebView to include a WebKit-based browser within an Activity. At the other extreme you can use client-side APIs, such as the Google APIs, to interact directly with server processes. Somewhere in between, you can process remote XML feeds to extract … Read more

Managing Manifest Receivers at Run Time in Android

Using the Package Manager, you can enable and disable any of your application’s manifest Receivers at run time using the setComponentEnabledSetting method. You can use this technique to enable or disable any application component (including Activities and Services), but it is particularly useful for manifest Receivers. To minimize the footprint of your application, it’s good … Read more

Android to listen Connectivity Changes

Changes in connectivity, including the bandwidth, latency, and availability of an Internet connection, can be significant signals for your application. In particular, you might choose to suspend recurring updates when you lose connectivity or to delay downloads of significant size until you have a Wi-Fi connection To monitor changes in connectivity, register a Broadcast Receiver … Read more