android.content.Intent
for the android platform.
By default, API 10 is imported. Import more recent API to suit your needs.
There's two ways of defining which activity/service to be launched :
set_class_name
To provide a description, you need to assign values using one or more of these methods :
The Intent class wraps most of the android.content.Intent
constants and is
designed to be used with this syntax :
intent_action.main.to_s
intent_category.home.to_s
intent_extra.phone_number.to_s
intent_flag.activity_brought_to_front
For further details about these constants meaning, refer to the official android Intent documentation :
Error: No entity for Android Intent documentation
.
Did you mean:
Serializable::inspect
to show more useful information
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsdeserialize_json
and JsonDeserializer
serialize_to_json
and JsonSerializer
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Services allowing to launch activities and start/stop services using
# `android.content.Intent` for the android platform.
#
# By default, API 10 is imported. Import more recent API to suit your needs.
#
# There's two ways of defining which activity/service to be launched :
# * Provide an explicit class to be launched with `set_class_name`
# * Provide a description of the activity to perform and let the system determine the best application to run
#
# To provide a description, you need to assign values using one or more of these
# methods :
# * `action=`
# * `data=`
# * `add_category`
# * `mime_type=`
#
# The Intent class wraps most of the `android.content.Intent` constants and is
# designed to be used with this syntax :
# * Action : `intent_action.main.to_s`
# * Category : `intent_category.home.to_s`
# * Extra : `intent_extra.phone_number.to_s`
# * Flag : `intent_flag.activity_brought_to_front`
#
# For further details about these constants meaning, refer to the official
# android Intent documentation : [[Android Intent documentation|http://developer.android.com/reference/android/content/Intent.html]]
module intent
import intent_api10
lib/android/intent/intent.nit:17,1--44,19