Android Question My own file selector

hub73

Active Member
Licensed User
Longtime User
Hi !
I want code my own file selector. Something easy. So...

1) i've a .bal form with : an listview (list files and folders), a button 'root' to return to the initial start path, 'previous' to return to the previous folder path, 'Ok' button. No problem with this.

2) In my only one activity code i've loaded a database form. It's time to press the button 'choose file'. (i want sent the initial start path and retrieve the user selected path and file). I don't know how to do this :

- send the initial path to the file_selector screen
- display the file_selectorscreen
- retreive the user path and file
- hide the file_selector screen

A new Activity ?

- i open it, send to it my initial path, display the file_selector bal.
- close it and retreive the user path ?

Many thanks for your help !
 

hub73

Active Member
Licensed User
Longtime User
- Could i send a 'text message' from activity2 to activity1 and close activity2 (by activity.Finish or ExitApplication) ?
- How to close all when i exit my application (i use ExitApplication inside activity1).
 
Upvote 0

hub73

Active Member
Licensed User
Longtime User
'text message' from a global variable inside Main activity Process_Globals. Next i close activity2 itself with activity.finish.
Works fine now.

Thanks !
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…