We provide complete mobile and web apps development solutions

Monday, October 29, 2012

Service in android

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...

Tuesday, October 23, 2012

Camera:

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()...

WifiManager

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 ...

WifiManager in 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 ...

TelephonyManager

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.....

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...

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...

Notifications -Toast, Dialogs,Statusbar Notifications

 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

Service in Android

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 ...

Monday, October 15, 2012

Creating Resources for 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

Android Introduction

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 ...

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts