Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

How to I place a file into the default com.companyname.xamarinandroidapp directory for a Xamarin App?

I created a sample Xamarin app using the wizard for Android App (Xamarin) in VS.Net 2019

Using an emulator I can see that on the SD CARD there is the following after I deploy my app.

SDCARD Android Data com.companyname.xamarinandroidapp

I want to place a file in that com.companyname.xamarinandroidapp folder so when my app is installed the file is automatically there.

I have placed around with assets and built types for my files but nothing seems to make the file appear in this folder.

How do I do that? I want it to be there after install. I do not want to use code to write the file, but after the apk is installed it is there.

Chris

question from:https://stackoverflow.com/questions/65865843/how-to-i-place-a-file-into-the-default-com-companyname-xamarinandroidapp-directo

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Thanks to @Jason

I now know you can not do this and must manage the copying of files myself.

Cheers

Jason


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...