Professional Documents
Culture Documents
2012
Simple Android
Project
(SAP)
Developed By……
But We thought of
Real life application..
So, We created…
» Multitasking
Software Requirement Specification
Software Requirement and Specification
Purpose
Explains the functional features, design constraints and related
considerations such as performance characteristics.
Scope
This application can run anonymously in any Android based
Smartphones.
Permission
• SET_WALLPAPER permission
• INTERNET permission
Now, Let’s Have A Look At…
System Features
Start Up
Functional Requirements
UI Tested on:
A Camera
600 MHz Processor
256 Mb+ RAM
Software Requirement:
Code by Code
Start Up! Thread
@Override
Protected void onPause() {
// TODO Auto-generated
method stub
super.onPause();
mySong.release();
finish();
}
The Start-Up
Camera Initialization
ImageButton ib;
Button b;
ib=(ImageButton)findViewById(R.id.ibTakePic);
b=(Button)findViewById(R.id.bSetWall);
b.setOnClickListener(this);
ib.setOnClickListener(this);
Camera OnClick() Method
Public void onClick(View v) {
// TODO Auto-generated method stub
switch(v.getId()){
case R.id.bSetWall:
WallpaperManager
myWallpaperManager=WallpaperManager.getInstance(ge
tApplicationContext());
try {
myWallpaperManager.setBitmap(bmp);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
break;
case R.id.ibTakePic:
i=new
Intent(android.provider.MediaStore.ACTION_IMAGE_CAP
TURE);
startActivityForResult(i,cameraData);
break;
}
}
Camera Setting Picture on ImageView
Protected void onActivityResult(int requestCode,
int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode,
resultCode, data);
if(resultCode == RESULT_OK){
Bundle extras =
data.getExtras();
bmp=(Bitmap)extras.get("data");
iv.setImageBitmap(bmp);
}
}
Camera App
Testing