Android examples (example source code) Organized by topic





UI /

ActionBar 2Activity 45ActivityInfo 1AdapterView 1
AdapterWrapper 1AlertDialog 5AnalogClock 3AppWidgetManager 1
ArrayAdapter 1BackupHelper 1BaseAdapter 1Button 29
CheckBox 6Chronometer 1CursorAdapter 4DatePicker 3
Dialog 45Drag Drop 3Drawer 2EditText 11
Focus 5Fragment 2FrameLayout 1Gallery 6
GridView 6ImageSwitcher 3ImageView 18Layout 53
LinearLayout 13ListActivity 26ListAdapter 7ListPreference 1
ListView 16MapView 2Menu 21PreferenceActivity 3
Progress 7RadioGroup 7RatingBar 3RelativeLayout 4
RSSurfaceView 3ScrollView 5SeekBar 3SlidingDrawer 2
Spinner 8SurfaceHolder 1SurfaceView 3TabActivity 2
TabHost 7TableLayout 13TableRow 2TextSwitcher 1
TextView 27TextWatcher 2TimePicker 6Toast 13
VelocityTracker 1VideoView 1View 14ViewFlipper 2
ViewGroup 4ViewWrapper 1WebView 12Window 1

2D Graphics /

Arc 1Bitmap 69Canvas 9Circle 1
Clipping 1Color 19Drawable 13Font 7
Gif 1GLSurface 1Icon 7Image 17
Jpeg 1Line 3OpenGL 13Oval 1
Paint 4Path 6Pattern 1Picture 1
Point 2Polygon 1PorterDuffXfermode 2Rectangle 3
Region 1ShapeDrawable 1Stroke 2Text 8
Thumbnail 1

Core Class /

Account 2Alarm 4AndroidManifest 1Application 7
ApplicationInfo 1AssetManager 3AsyncQueryHandler 1AsyncTask 1
BackupManager 1BroadcastReceiver 3Browser 5Build 2
Clipboard 1Config 1Configuration 1Contact 9
ContentProvider 1ContentResolver 3Context 9Debug 1
DevicePolicyManager 1DisplayMetrics 1DoBackgroundTask 1Environment 7
Fragment 8Geocoder 1Handler 1IBinder 1
IME 2Intent 30IntentService 1Location 4
Log 13Map 5MapActivity 1NfcAdapter 3
Notification 7PackageInfo 5PendingIntent 1Preference 2
PreferenceCategory 1Resources 10SearchRecentSuggestionsProvider 1Settings 2
SharedPreferences 8SmsManager 1Telephony 5Text To Speech 4
Timer 1TypedValue 1Voice Recognition 1WallpaperService 1

Hardware /

Bluetooth 2Camera 10CPU 7Display 1
External Storage 1Gps 2Joystick 2Location 21
Memory 11PowerManager 1Screen 15SDCard 7
Sensor 17SensorManager 2System Information 9USB 2
Version 16Vibrator 2

Media /

Audio 13AudioRecord 1MediaPlayer 12MediaRecorder 3
MediaScannerConnection 1MediaStore 3Mp3 5Sound 3
SoundPool 1Video 15

User Event /

GestureStore 6Key 8MotionEvent 1SimpleOnGestureListener 1
Touch 7

Network /

Connectivity 7ConnectivityManager 1Cookie 1Download 10
Email 8Http Connection 40IP 5NetworkInfo 2
Restful 3RSS 1Service 20SMS 7
Socket 1SSL 2Url 26WiFi 5

Animation /

AlphaAnimation 2Animation 16AnimationSet 1AnimatorListener 1
LinearInterpolator 1RotateAnimation 1ScaleAnimation 2TranslateAnimation 2

Game /

Game 3Math 5Matrix 5Quaternion 2
Sprite 3Vector 10

Database /

SQLiteDatabase 11SQLiteOpenHelper 4

Security /

AES 3Authentication 3DES 1MD5.xml 9
RSA 3SHA 17

File /

Buffer 24File Name 2File 47Stream 18
Utilities 1

Development /

Exception 2I18N 2JSON 13Random 6
Reflection 3Regular Expression 2Resource 1System 6
Thread 7UncaughtExceptionHandler 3Unicode 3UTF 6
Xml 17XmlPullParser 3Zip 3

Date Type /

Array 27Base64 8Byte 6Date 61
Float 12Hex 13Integer 12List 4
String 67Time 31