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

What is GPS used for in Android Phone

GPS mean global positioning System. It’s available nowadays in every android phone, and it’s use for different features. You can find your current Position of your mobile through this  feature. When you find your mobile position then you take many work from it. For example  You can find where is the person now mean in … Read more

Android Hello World

package com.example.helloworld; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView hw = new TextView(this); hw.setText(“Hello World”); setContentView(hw); } }