Thursday , November 7 2024

Tag Archives: Android

Android Simple Graphics Example

The android.graphics.Canvas can be used to draw graphics in android. It provides methods to draw oval, rectangle, picture, text, line etc. The android.graphics.Paint class is used with canvas to draw objects. It holds the information of color and style. In this example, we are going to display 2D graphics in …

Read More »

Android Screen Orientation Example

The screenOrientation is the attribute of activity element. The orientation of android activity can be portrait, landscape, sensor, unspecified etc. You need to define it in the AndroidManifest.xml file. For example: <activity android:name="com.example.screenorientation.MainActivity" android:label="@string/app_name" android:screenOrientation="landscape" > The common values for screenOrientation attribute are as follows: Value Description unspecified It is …

Read More »

Android Camera Tutorial

Camera is mainly used to capture picture and video. We can control the camera by using methods of camera api. Android provides the facility to work on camera by 2 ways: 1) By Camera Intent 2) By Camera API Understanding basic classes of Camera Intent and API There are mainly …

Read More »

Android Analog clock and Digital clock example

The android.widget.AnalogClock and android.widget.DigitalClock classes provides the functionality to display analog and digital clocks. Android analog and digital clocks are used to show time in android application. Android AnalogClock is the subclass of View class.Android DigitalClock is the subclass of TextView class. Since Android API level 17, it is deprecated. …

Read More »

Android Speech To Text Tutorial

Android comes with an inbuilt feature speech to text through which you can provide speech input to your app. With this you can add some of the cool features to your app like adding voice navigation(Helpful when you are targeting disabled people), filling a form with voice input etc., In …

Read More »

Android Background Service Example

In this example we are going to learn about Android Service. The Android Service is one of the most important components and building blocks in an Android System. One obvious characteristic of the Service component is that it offers no UI. It’s simply a program that runs on the background …

Read More »

Android Registration Screen Design

Almost all android application will have login or registration process in order to authenticate a user. In this article i will be demonstrating how to design android registration screen design (note that it just designing the screens – no database connection or user validation).

Read More »

Android Login Page Screen Design

Almost all android application will have login or registration process in order to authenticate a user. In this article i will be demonstrating how to design android login screen design (note that it just designing the screens – no database connection or user validation).

Read More »

Dynamically add Fragments to an Activity in Android

Fragments are more often used for user interfacepurposes. Fragments are used when the user wants to see two different views of two different classes on the same screen. In this article , we will create an Android application in which a fragment can be added to an activity on a …

Read More »