Category «Android Useful Examples»

Android – Text To Speech Tutorial

Android allows you convert your text into voice. Not only you can convert it but it also allows you to speak text in variety of different languages. Android provides TextToSpeech class for this purpose. In order to use this class, you need to instantiate an object of this class and also specify theinitListnere. Its syntax …

Android – TextureView Tutorial

If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that. In order to use TextureView, all you need to do is get its SurfaceTexture.The SurfaceTexture can then be used to render content. In …

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 …