
Android Articles
Recent Android Articles
-
Status Bar Notification Example Code in Android
Simple Example CodeMainActivity Java Code:
import java.util.Timer;import java.util.TimerTask; import android.app.Activity;import android.app.Notification;import android.app.NotificationManager;import android.app.PendingIntent...
Posted Aug 20, 2011 4:45 AM by thiyagaraaj Mr -
Control Back Button In Android
Control default back button in AndroidSimple Example CodeAdd Override Function: onKeyDown(....)Back Button Key Code: KeyEvent.KEYCODE_BACKExample Code: @Override public boolean onKeyDown(int keyCode, KeyEvent event ...
Posted Aug 20, 2011 4:36 AM by thiyagaraaj Mr -
EditText Password in Android
Syntax:android:password="true"Example XML Code:<EditText android:id="@+id/EdtTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Im Text"
android:password="true
Posted Feb 1, 2011 7:21 AM by Thiyagaraaj Mp -
Popup Layout Window In Android
Tags: Android,Layout,Popup window,Example CodeLayoutNeed two XML Layouts One For root Layout (main.xml) and another one for popup window (mydialog.xml)Root Layout : (main.xml ...
Posted Aug 20, 2011 4:43 AM by thiyagaraaj Mr -
Custom Dialog Box Popup using Layout in Android
Main XML Code<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/RelativeLayout01"android:layout_width="fill_parent"android ...
Posted Aug 20, 2011 4:38 AM by thiyagaraaj Mr -
Android Application Root Elements
Android Architecture:List Of Elements:AndroidManifest.xmlbuild.xmldefault.propertiesbin/libs/src/res/assets/Elements and its Meaning:AndroidManifest.xml, an XML file describing the application being built ...
Posted Feb 1, 2011 7:12 AM by Thiyagaraaj Mp -
number Validation in Android
number Validation in Android XML Code and Java CodeXML Code:<EditText id ="@+id/edittext1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:numeric="integer"/>Java Code ...
Posted Feb 1, 2011 7:22 AM by Thiyagaraaj Mp -
email Validation in Android
Example Java CodeValidate Function: public boolean eMailValidation(String emailstring) { Pattern emailPattern = Pattern.compile(".+@.+\\.[a-z]+"); Matcher emailMatcher = emailPattern.matcher(emailstring); return emailMatcher.matches(); }Call method:eMailValidation("hai@hai.com ...
Posted Feb 1, 2011 7:21 AM by Thiyagaraaj Mp -
TextView Style In Android
Change TextView Style in Android Add in Layout XML<TextView android:id="@+id/Heading" style="@style/TitleTextViewStyle" android:text="Heading" />Create style.xml file in values folder and add this ...
Posted Feb 1, 2011 7:28 AM by Thiyagaraaj Mp -
Button Creation and Button Action in Android
Create Button and Button Action in Android simple example codeXML Code:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android ...
Posted Aug 20, 2011 4:33 AM by thiyagaraaj Mr -
Analog and Digital Clock in Android
Analog and Digital Clock in Android with simple example codeAnalog Clock Code: <AnalogClock android:id="@+id/analogclock" android:layout_width="fill_parent" android:layout_height="wrap_content" />Digital Clock ...
Posted Feb 1, 2011 7:11 AM by Thiyagaraaj Mp -
TextView font Change In Android
TextView font Change In AndroidSyntax: android:typeface="serif" Example: android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Example Application" android:typeface="serif" />
Posted Feb 1, 2011 7:27 AM by Thiyagaraaj Mp -
EditText Hint In Android
EditText Hint In AndroidSyntax:android:hint="hint-statement"Example: android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Enter user Name" />Screenshot:
Posted Feb 1, 2011 7:20 AM by Thiyagaraaj Mp -
Call intents (classes) in Android simple example code
First Class XML:(main.xml)<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent ...
Posted Aug 20, 2011 4:35 AM by thiyagaraaj Mr -
Create Simple Browser Using WebView in Android simple browser
full example codeXML File<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent ...
Posted Feb 1, 2011 7:16 AM by Thiyagaraaj Mp -
Simple Menu Creation In Android
Easy Stpes to menu creation in androidMenu Creation without XML in AndroidSyntax For Menu Creation In Android:menu.add(groupId, itemId, order, titleRes);Plan and Constant Values Declaration ...
Posted Aug 20, 2011 4:43 AM by thiyagaraaj Mr -
Passing Arguments One Activity to Another Activity In Android
Assume:Passing Argument A Activity to B another activityUsing Methods:For A ClassgetIntent().getStringExtra(....);Toast.makeText(...).show();For B ClassString NullString = "null";new Intent(...);i.putExtra(...);startActivity ...
Posted Aug 20, 2011 4:41 AM by thiyagaraaj Mr
Showing posts 1 - 17 of 17.
View more »

