Android check SD card availability from code Function in code to check the availability of SD card in the hand held android device.

Android Check GPS is Enabled or Not

In android, we can easily check whether GPS is enabled in device or not using LocationManager.
Here is a simple program to Check.
GPS Enabled or Not :-
Add the below user permission line in AndroidManifest.xml to Access Location
[sourcecode language="xml"]
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Your java class file sgould be
[sourcecode language="java"]
public class ExampleApp extends Activity {
/** Called when the activity is first created.

Android CheckBox Example

Android checkbox is used to select more than one option at a time.

Ex: - In an admission form we may need to select both diploma & BE in Graduate option.

Syndicate content