- Add receive text, external control
External control
Share text from another app, or send an Intent with an EXTRA_TEXT
with the text containing the known letters and blanks or dots for the
unknown letters. The app will start or restart and display the results.
Parameter | Activity/Action/Category/Extra | Type | Value |
---|---|---|---|
Activity | org.billthefarmer.crossword.Main | ||
org.billthefarmer.crossword.Anagram | |||
Action | android.intent.action.MAIN | ||
android.intent.action.DEFAULT | |||
android.intent.action.SEND | |||
android.intent.action.VIEW | |||
Category | android.intent.category.LAUNCHER | ||
android.intent.category.DEFAULT | |||
Extras | android.intent.extra.TEXT | string | The text may contain |
blanks or dots for | |||
unknown letters, | |||
optionally a comma | |||
and letters known to | |||
be in results. | |||
Text for the anagram | |||
function should just | |||
contain letters |
This may be tested using the Android Debug Bridge.
$ adb shell am start -e android.intent.extra.TEXT bill..,d -n org.billthefarmer.crossword/.Main
Starting: Intent { cmp=org.billthefarmer.crossword/.Main (has extras) }
$ adb shell am start -e android.intent.extra.TEXT billfarmer -n org.billthefarmer.crossword/.Anagram
Starting: Intent { cmp=org.billthefarmer.crossword/.Anagram (has extras) }
Warning: Activity not started, its current task has been brought to the front