Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Enable string arrays in Java methods #55

Closed
t-arn opened this issue Dec 8, 2020 · 2 comments
Closed

Enable string arrays in Java methods #55

t-arn opened this issue Dec 8, 2020 · 2 comments

Comments

@t-arn
Copy link

t-arn commented Dec 8, 2020

Is your feature request related to a problem? Please describe.
I wanted to call the Android Intent ACTION_OPEN_DOCUMENT where you can pass a String[] with file types.
This creates a rubicon error.
See this PR: beeware/toga#1158

Describe the solution you'd like

  1. I would like to be able to pass in String[] to native Java methods (see PR, src/android/toga_android/window.py, open_file_dialog

  2. I would like to map String[] to a variable, e.g.
    String = JavaClass("java/lang/String")
    myArray=String("one two three".split(" "))

@t-arn t-arn changed the title Enable calling Java methods that take string arrays Enable string arrays in Java methods Dec 8, 2020
@t-arn
Copy link
Author

t-arn commented Jan 15, 2021

Addition: we should also add arrays of classes, e.g. Class.getMethods() returns Method[] which currently creates a rubicon error

@t-arn
Copy link
Author

t-arn commented Jan 6, 2022

@freakboy3742 Thank you for this rubicon-java addition and for the new release 0.2.6!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant