Android Question Open xlsx from my app

hello everyone.
i want to open excel(xlsx) from my app.. like pic in attachment.. thanks
 

Attachments

  • Screenshot_٢٠٢٣-١١-٠٩-٠٤-١٩-٥٨-٨٤١_android.jpg
    Screenshot_٢٠٢٣-١١-٠٩-٠٤-١٩-٥٨-٨٤١_android.jpg
    235.1 KB · Views: 70
thanks Erel
I use this code: it works well, but it does not open the file in the program

open xlsx:
Dim ii As Intent
        ii.Initialize(ii.ACTION_VIEW, File.Combine(File.DirRootExternal, "aa.xlsx"))
        ii.SetType("application/vnd.ms-excel")
  
        StartActivity(ii

The code opens the program I choose without opening the file in this program
 
Upvote 0
When I open a file xlsx From the file manager, everything is fine and when using the code above it opens the program without the file، The following pictures show what happens when I open the file by my code.
 

Attachments

  • Screenshot_٢٠٢٣-١١-٠٩-٢٢-٣٢-٥٣-١٤٥_com.miui.gallery.jpg
    Screenshot_٢٠٢٣-١١-٠٩-٢٢-٣٢-٥٣-١٤٥_com.miui.gallery.jpg
    382.4 KB · Views: 65
  • Screenshot_٢٠٢٣-١١-٠٩-٢٢-٣٢-٥٦-٠٧٨_com.miui.gallery.jpg
    Screenshot_٢٠٢٣-١١-٠٩-٢٢-٣٢-٥٦-٠٧٨_com.miui.gallery.jpg
    178.1 KB · Views: 65
Upvote 0
Top