0% found this document useful (0 votes)
2 views1 page

Deploying Android Assets Guide

This document discusses placing raw assets in a directory with a Build Action of AndroidAsset to deploy them with an application, and how to access the assets using Android's AssetManager and some functions that automatically load asset files.

Uploaded by

Joao Afonso
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Deploying Android Assets Guide

This document discusses placing raw assets in a directory with a Build Action of AndroidAsset to deploy them with an application, and how to access the assets using Android's AssetManager and some functions that automatically load asset files.

Uploaded by

Joao Afonso
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Any raw assets you want to be deployed with your application can be placed in

this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with you package and will be accessible using
Android's
AssetManager, like this:

public class ReadAsset : Activity


{
protected override void OnCreate (Bundle bundle)
{
[Link] (bundle);

InputStream input = [Link] ("my_asset.txt");


}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = [Link] ([Link], "fonts/[Link]");

You might also like