Crossplatform App der Caritas (Versuch).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. Any raw assets you want to be deployed with your application can be placed in
  2. this directory (and child directories) and given a Build Action of "AndroidAsset".
  3. These files will be deployed with your package and will be accessible using Android's
  4. AssetManager, like this:
  5. public class ReadAsset : Activity
  6. {
  7. protected override void OnCreate (Bundle bundle)
  8. {
  9. base.OnCreate (bundle);
  10. InputStream input = Assets.Open ("my_asset.txt");
  11. }
  12. }
  13. Additionally, some Android functions will automatically load asset files:
  14. Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");