Skip to content

not-fl3/example-android-fileopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android fileopen dialog

fileopen

Code from "How to write Java with miniquad" tutorial. Showcases miniquad<->java interop. More of a Java native plugin example than a real usable crate!

How to use

  • Add a "quad-fileopen" crate as a dependency to Cargo.toml:
[dependencies]
quad-bt = { path = "../quad-fileopen" } # functionality of example-android-fileopen would probably be not sufficient, so local copy for local hacks is preferable!
  • call fileopen::find_file from the main loop:
let file_data = Arc::new(Mutex::new(None));

loop {
    if root_ui().button(None, "Open file"){
        fileopen::find_file(file_data.clone());
    }
}

for the full example check "examples/fileopen.rs"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors