Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Intents ]] Implement OnActivityResultListener #6844

Open
wants to merge 4 commits into
base: develop
Choose a base branch
Loading
from

Conversation

montegoulding
Copy link
Member

This patch implements an OnActivityResultListener interface so it is possible to
handle onActivityResult for a particular result code.

This implementation should be icnsidered temporary until bug 19920 (EngineAPI class)
is implemented at which point OnActivityResultListener would likely become an
interface of EngineAPI rather than LiveCodeActivity.

@montegoulding
Copy link
Member Author

montegoulding commented May 6, 2019

@livecodeali Do you think creating an abstraction for the activity listener and object array to list in com.livecode.library.androidutils is sufficient for now and then we can move stuff to an engine api class later? That also gives me somewhere to document these.

@montegoulding
Copy link
Member Author

Perhaps object array to list should go in com.livecode.java

@montegoulding
Copy link
Member Author

@livecodeali have gone ahead with the above and added docs & notes

@montegoulding montegoulding force-pushed the lcbintent branch 2 times, most recently from 712dbbc to 76eb6bc Compare May 9, 2019 01:05
@montegoulding montegoulding force-pushed the lcbintent branch 3 times, most recently from 55e63a9 to 450683d Compare February 25, 2020 09:52
This patch implements an `OnActivityResultListener` interface so it is possible to
handle `onActivityResult` for a particular result code.

This implementation should be icnsidered temporary until bug 19920 (EngineAPI class)
is implemented at which point `OnActivityResultListener` would likely become an
interface of `EngineAPI` rather than `LiveCodeActivity`.
This patch adds new handler to facilitate starting activities by Intent and
handling results. The `StartActivityForResult` handler registers a listener to
handle the `onActivityResult` method of the engine activity and when handled
calls a callback handler with the request code, result code and Intent object.
This patch implements `ListFromJObjectArray` and `ListToJObjectArray` handlers.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.