Posts

Showing posts from September, 2012

Set Wallpaper For Android

In this tutorials We study that How to Set Wallpaper for Android Screen. Now Let the fun began...................... Please add source code here

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 go to Start ............ Live Wallpaper For Android Live Wallpaper is the shining feature of android mobile. Where you can animated wallpaper , change it with time , weahter, sensor moments , touch event and much more as you think. Requirments Its required Andriod API 7 (2.1 Froyo) and latest API of android . before Android 2.1 can not support touch event and live wallpaper feathures. So you must care of this requirments. Lets Start First of all Create new Andoird project Activity . OR delete Activity from Manifest file. Add Service to Manifest file and it name must be your java class which extend WallpaperServ

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 = extras.getInt("LatValue"); final int boxes=Value*2; int loopvalue=boxes; ////// dynamic progr

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 // add Image view to layout ll.addView(iv); // add layout to project this.setContentView(sv);