Introduction
An Intent is a small message passed around the Android system. This message may hold information about our intention to perform a task.
It is basically a passive data structure holding an abstract description of an action to be performed.
Syntax
- Intent Intent()
- Intent Intent(Intent intent)
- Intent Intent(String action)
- Intent Intent(String action, Uri uri)
- Intent Intent(Context packageContext, Class<?> cls)
- Intent Intent(String action, Uri uri, Context packageContext, Class<?> cls)
- void startActivity(Intent intent)
- void startActivity(Intent intent, Bundle options)
- void startActivityForResult (Intent intent, int requestCode)
- void startActivityForResult (Intent intent, int requestCode, Bundle options)
- Intent putExtra(String name, double[] value)
- Intent putExtra(String name, int value)
- Intent putExtra(String name, CharSequence value)
- Intent putExtra(String name, char value)
- Intent putExtra(String name, Bundle value)
- Intent putExtra(String name, Parcelable[] value)