Category «Android Useful Examples»

Android – Twitter Integration Tutorial

Android allows your application to connect to twitter and share data or any kind of updates on twitter. This chapter is about integrating twitter into your application. There are two ways through which you can integrate twitter and share something from your application. These ways are listed below − Twitter SDK (Twitter4J) Intent Share Integrating …

Android – UI Design Tutorial

In this chapter we will look at the different UI components of android screen. This chapter also covers the tips to make a better UI design and also explains how to design a UI. UI screen components A typical user interface of an android application consists of action bar and the application content area. Main …

Android – UI Patterns Tutorial

In this chapter we will look at the different UI Patterns which are available by android to design apps that behave in a consistent and foreseeable way. UI Patterns components A good android application should follow following UI patterns − Action Bar Confirming and Acknowledging Settings Help Selection Now we will discuss the above mentioned …

Android – UI Testing Tutorial

Android SDK provides the following tools to support automated, functional UI testing on your application. uiautomatorviewer uiautomator uiautomatorviewer A GUI tool to scan and analyse the UI components of an Android application. The uiautomatorviewer tool provides a convenient visual interface to inspect the layout hierarchy and view the properties of the individual UI components that …

Android – WebView Tutorial

WebView is a view that display web pages inside your application. You can also specify HTML string and can show it inside your application using WebView. WebView makes turns your application to a web application. In order to add WebView to your application, you have to add <WebView>element to your xml layout file. Its syntax …

Android – Wi-Fi Tutorial

Android allows applications to access to view the access the state of the wireless connections at very low level. Application can access almost all the information of a wifi connection. The information that an application can access includes connected network’s link speed,IP address, negotiation state, other networks information. Applications can also scan, add, save, terminate …

Android – Widgets Tutorial

A widget is a small gadget or control of your android application placed on the home screen. Widgets can be very handy as they allow you to put your favourite applications on your home screen in order to quickly access them. You have probably seen some common widgets, such as music widget, weather widget, clock …

Android – XML Parser Tutorial

XML stands for Extensible Mark-up Language.XML is a very popular format and commonly used for sharing data on the internet. This chapter explains how to parse the XML file and extract necessary information from it. Android provides three types of XML parsers which are DOM,SAX and XMLPullParser. Among all of them android recommend XMLPullParser because …

Android – Support Library Tutorial

When you develop an app on a latest version of android like 5.x and you also want it to run on those devices which are running older versions of android like 3.2 e.t.c. you can’t do that until you add backward compatibility to your code. To provide this backward compatibility android provides you the Android …

Android – Testing Tutorial

The Android framework includes an integrated testing framework that helps you test all aspects of your application and the SDK tools include tools for setting up and running test applications. Whether you are working in Eclipse with ADT or working from the command line, the SDK tools help you set up and run your tests …