Activity is a foreground process. It contains user interaction. To run long running operations, we have to create a service.It will run in background. It does not contain user interaction.
Types of services:
1. Unbound Service: it runs in the background indefinitely even started activity with service ends also.
2. Bound Service : it will run till life time of activity.
Activity can start...
Monday, October 29, 2012
October 29, 2012
Service in android
By Entrepreneur & Financial Planning
android, android background processes, android service, broadcast service, service, service in android
No comments

Tuesday, October 23, 2012
October 23, 2012
Camera:
By Entrepreneur & Financial Planning
android camera, camera, camera service in android, capture image in android, photo, photo upload in android

in android, we can access camera from app by 2 ways.
implicit intent launches default camera
Intent i=new Intent("android.media.action.IMAGE_CAPTURE");
startActivity(i);
permission in manifest.xml
<uses-permission android:name="android.permission.CAMERA"/>
Button b=(Button)findViewById(R.id.button1);
b.setOnClickListener(new OnClickListener()...
October 23, 2012
WifiManager
By Entrepreneur & Financial Planning
android wifi, internet android, local wireless android, wifi, wifi manager, wifi manager android, wireless android

java.lang.object
- android.net.wifi.wifimanager
WifiManager class provides primary api for managing all aspects of wifi connectivity.
get the instance of this class by calling
contaxt.getSystemService(context.WIFI_Service);
it deals with list of configured networks. this can be viewed, updated.
check wifi status:
ConnectivityManager conMgr;
NetworkInfo netInfo;
WifiManager wifiMgr;
conMgr=(ConnectivityManager)getSystemService(context.WIFI_Service);
netInfo=conMgr.getActiveNetworkInfo();
if(!(netInfo==null))
{
if(WifiMgr.isWifiEnabled())
{
//wifi ...
October 23, 2012
WifiManager in Android
By Entrepreneur & Financial Planning
android wifi, internet android, local wireless android, wifi, wifi manager, wifi manager android, wireless android

java.lang.object
- android.net.wifi.wifimanager
WifiManager class provides primary api for managing all aspects of wifi connectivity.
get the instance of this class by calling
contaxt.getSystemService(context.WIFI_Service);
it deals with list of configured networks. this can be viewed, updated.
check wifi status:
ConnectivityManager conMgr;
NetworkInfo netInfo;
WifiManager wifiMgr;
conMgr=(ConnectivityManager)getSystemService(context.WIFI_Service);
netInfo=conMgr.getActiveNetworkInfo();
if(!(netInfo==null))
{
if(WifiMgr.isWifiEnabled())
{
//wifi ...
October 23, 2012
TelephonyManager
By Entrepreneur & Financial Planning
android call handling, android call status, android phone, android telephony manager, phone call android, telephony manager

java.lang.object
android.telephony.TelephonyManager
it provides access to the info about telephony services.
we can register services to receive notification of telephony state changes.
context.getSystemService(context.TELEPHONY_SERVICE);
SOME METHODS:
public int getCallState()- get the call state
public cellLocation getCellLocation()- returns current location of the device.....
October 23, 2012
Bluetooth in Android
package:
import package:
import android.bluetooth.*;
<uses-permission android:name="android.permission.BLUETOOTH"/>
for more advanced bluetooth tasks , like setting name, connecting....
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
ACCESS THE BLUETOOTH ADAPTER
Android bluetooth apis include bluetooth adapter class.
if we want to perform any action
BluetoothAdapter...
October 23, 2012
Pending Intent in Android
Pending
intent is a token to the other application, which allows the other application
to use your application’s permissions to execute a predefined piece of code.
Here other
applications means it may be an alarm manager, home
screen widget manager etc......
To perform
a broadcast via a pending intent, so get a pendingIntent via
PendingIntent.getBroadcast().
To perform
an activity...
October 23, 2012
Notifications -Toast, Dialogs,Statusbar Notifications
By Entrepreneur & Financial Planning
alert dialog, dialog boxes, dialogs, notifications in android, progress bar dialog, statusbar notification, toast notification

Notifications:
toast notification
statusbar notification
dialogboxes
Adding sound
notification.defaults|=Notification.DEFAULT_SOUND;
Adding Vibration:
notification.defauls|=Notification.DEFAULT_VIBRATE;
adding flash lights:
notification.defauls|=Notification.DEFAULT_LIGHTS;
dialog is small window on the screen. when dialog is executed the activity losses its focus and dialog gets total...
Saturday, October 20, 2012
October 20, 2012
Service in Android
Monday, October 15, 2012
October 15, 2012
Creating Resources for multiple screens
By Entrepreneur & Financial Planning
android multiple resolutions, multi resolutions, multi screens android, multiple resolutions in android, multiple screens

Android application
runs on many android devices. To work with multiple devices, it will make
scaling and resizing to make work with the devices. Even it adjust the screen,
the user may experience bad with the application due to blurring of...
Tuesday, October 9, 2012
October 09, 2012
Android Introduction
By Entrepreneur & Financial Planning
Apple Pie, Banana Bread, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sand witch, ics, Jelly Bean, OHA, Open Hanset Alliance
