Skip to content

Questions about GoNativeActivity.java and build.gradle (implementing camera support for Android) #4965

Answered by andydotxyz
Gys asked this question in Q&A
Discussion options

You must be logged in to vote

What you need to know for 1 is that the java is part of the app bootloading and so is not in the main code but actually injected by the packager - after you modify the .java file you have to generate the Android .dex blob which is done by running the generator inside cmd/fyne/internal/mobile/gendex/. Then this change must be compiled into the replacement fyne binary which then should be used to package your app.

For 2 the concept of dependencies is very vague - we'd need to know more. Accessing the camera directly should not require more libraries than opening an intent with a request, as this is all baked into the core Android system.
There is no build.gradle because we use the go depend…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gys
Comment options

@andydotxyz
Comment options

Answer selected by Gys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants