Need help opening and reading files from my app

DeadWorkerBee

New Member
Joined
Aug 23, 2023
Messages
1
Reaction score
0
Current Phone Model
Galaxy A51
I'm new here and I'm not sure this forum can help me. I'm developing an app based on my Windows app. Both work. BUT I want to permit users to look at the files on the phone, and select one for use by the app. I code in C# and Xamarin. The code which lets the user see the files is this:

Code:
Intent intent = new Intent(Intent.ActionGetContent);                 
intent.SetType("*/*");               
StartActivityForResult(intent, 1);

And that works OK but I don't see how I can "capture" clicking on the file to open it. Sort of like with FX.

Any help is greatly appreciated.

DWB(aka Ron)
 

bkdodger

Administrator
Staff member
Joined
Dec 13, 2011
Messages
15,482
Reaction score
12,595
Location
Staten Island, New York
Current Phone Model
Note 10+
I'm new here and I'm not sure this forum can help me. I'm developing an app based on my Windows app. Both work. BUT I want to permit users to look at the files on the phone, and select one for use by the app. I code in C# and Xamarin. The code which lets the user see the files is this:

Code:
Intent intent = new Intent(Intent.ActionGetContent); 
intent.SetType("*/*"); 
StartActivityForResult(intent, 1);

And that works OK but I don't see how I can "capture" clicking on the file to open it. Sort of like with FX.

Any help is greatly appreciated.

DWB(aka Ron)

Welcome to The forum.. unfortunately I don't think we're going to be able to help much ...
 
Top