How to Develop Android Widget

Android Widget Widget are application which are run on home screen for quick access and easily inform you from current situation, like clock widget, weather widget, calender widget and much more like this. Now in this tutorial we want to develop Android Home Screen Widget Analog Clock. Complete tutorials and Source code are in this … Read more

Simple List Activity

Java Class of src folder where : import android.os.Bundle; import android.app.Activity; import android.app.ListActivity; import android.content.ClipData.Item; import android.view.Menu; import android.widget.ArrayAdapter; public class List extends ListActivity { private String[] listItems = new String[] { “Apple”, “Android”, “Symbian”, “Window” }; private ArrayAdapter< String> adapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list); adapter = new ArrayAdapter(this, R.layout.list, R.id.text1, … Read more

Drawing using Canvas in Android

In This tutorials We learn that how you can draw Images using canvas technology. canvas used for drawing geometrical shapes. Painting the shape using paint object . and it also used for drawing bitmap images. Fist of all we create inner class and extend it from View class. Now we override the onDraw() method of … Read more

Android Live Wallpaper

Android extend new excitement to new API. Android API 2.1 and onward support Live wallpapers feather. Live Wallpaper consists some extra function when we set it for background of Smart Phone. These are animated wallpapers which change state by touching screen and moving finger on screen. In this tutorial we Developed Live Wallpaper Application. Lets … Read more

How Intent Work

Intent is used for communicating among different Activity of Application. 1: send data from one Activity to another. 2: Broadcast Intent etc. Intent i=new Intent(this, Activity2.class); i.startActivity(i);

SGPA Calculator for Android

package com.example.intent; import android.R.id; import android.app.Activity; import android.os.Bundle; import android.text.InputType; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import android.widget.Toast; public class IntentClass extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.second); Bundle extras = getIntent().getExtras(); final int Value … Read more

Layout and ImageView Dynamically in Andorid Project

Layout and control are add from xml file and java file. In most application you can add controls dynamically . so let the fun began…. // setting Layout dynamically………. ScrollView sv = new ScrollView(this); LinearLayout ll = new LinearLayout(this); ll.setOrientation(LinearLayout.VERTICAL); sv.addView(ll); // setting image view layout dynamically ImageView iv=new ImageView(this); iv.setImageResource(R.drawable.android_logo); // path of resourses … Read more

How to Change phone Profile

//Construct object of Audio Manager AudioManager audMangr; audMangr= (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE); //For Normal mode audMangr.setRingerMode(AudioManager.RINGER_MODE_NORMAL); //For Silent mode audMangr.setRingerMode(AudioManager.RINGER_MODE_SILENT); //For Vibrate mode audMangr.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); source code Java class package com.silent; import android.app.Activity; import android.content.Context; import android.media.AudioManager; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class silentView extends Activity implements OnClickListener { /** Called when … Read more