Уточнение условий задачи
This commit is contained in:
@@ -12,9 +12,9 @@ import java.io.Serializable
|
||||
* - указать секртый action "android.intent.action.MAY_THE_FORCE_BE_WITH_YOU"
|
||||
* - задать секретные координаты по ключу "SECRET_COORDS"
|
||||
* - указать информацию о повстанце, который отправляет сообщение:
|
||||
* - имя, ключ "NAME"
|
||||
* - фамилия, ключ "SURNAME"
|
||||
* - возраст, ключ "AGE"
|
||||
* - имя, ключ "NAME", значение "Han"
|
||||
* - фамилия, ключ "SURNAME", значение "Solo"
|
||||
* - возраст, ключ "AGE", значение 40
|
||||
* 2 Отправить созданный Intent при помощи метода sendBroadcast
|
||||
*/
|
||||
|
||||
@@ -77,9 +77,9 @@ fun createSecretIntent(coords: Coords): Intent {
|
||||
val intent: Intent = Intent()
|
||||
intent.action = "android.intent.action.MAY_THE_FORCE_BE_WITH_YOU"
|
||||
intent.putExtras("SECRET_COORDS", coords)
|
||||
intent.putExtras("NAME", "someString")
|
||||
intent.putExtras("SURNAME", "someString")
|
||||
intent.putExtras("AGE", 28)
|
||||
intent.putExtras("NAME", "Han")
|
||||
intent.putExtras("SURNAME", "Solo")
|
||||
intent.putExtras("AGE", 40)
|
||||
return intent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user