Questions tagged [android-assets]

You can use the `assets` folder to store raw asset files. Files that you save here are compiled into an .apk file as-is, and the original filename is preserved. You can navigate this directory in the same way as a typical file system using URIs and read files as a stream of bytes using the the AssetManager. For example, this is a good location for textures and game data.

In Android, you can use assets folder to store raw asset files. Files that you save here are compiled into an .apk file as-is, and the original filename is preserved. You can navigate this directory in the same way as a typical file system using URIs and read files as a stream of bytes using the AssetManager. For example, this is a good location for textures and game data.

598 questions
0
votes
1 answer

Mount multiple obb files in android

When I mount 3 OBB files one after another to the same app they are created with different paths. After that context.getAssets() returns only the last one. How can I mount them to one path and have all the data? Or how can I switch between them…
user2863638
  • 121
  • 7
0
votes
1 answer

How can I copy the whole content of a directory from raw resources to internal storage

I have an index.html file and some images displayed on this page stored in res/raw folder. I need to open this file in android browser. So, I copy this file into sdcard. But if i use R.raw.index the index file only copied other files are not…
0
votes
2 answers

Java Android android content res Resources NotFoundException:

I developed an application Java Android and i have a problem :) I want to load an XML file. AssetManager assetManager = getAssets(); InputStream questionsFile = assetManager.open("questions.xml"); document = builder.parse(questionsFile); NodeList…
drdystopie
  • 28
  • 3
0
votes
1 answer

Android carousel issues

i am a newbie here and was wondering if someone could help me with this issue. I was able to go to this website http://www.pocketmagic.net/2013/06/a-3d-carousel-view-for-android/#.U2fTONK-o-U to get an example of a 3d carousel code but when i run it…
Andrecon
  • 113
  • 2
  • 12
0
votes
1 answer

Android: LiveWallpaper how to set in landscape from asets

Hiii, I had make application to set LiveWallpaper. It works fine, but when i see in landscape mode Image set on left portion and right portion is black. How i set in full screen. Image come from assets, so i don't use different images like drawable…
Angel
  • 902
  • 8
  • 16
0
votes
0 answers

Display HTML page with external JavaScript via Android assets

So I have been looking everywhere and doesn't seems to find working answer for this. I have dynamic html page create using iMapBuilder and it has 3 external js files. Before I have added dynamic contents html was working just fine being under assets…
user3204192
  • 49
  • 1
  • 4
0
votes
3 answers

How to return file object from assets in Android?

I want to return file object from assests folder. In Similar questions's response, it's returned InputStream class object, but I don't want to read content. What I try to explain, there is an example.eg file in assests folder. I need to state this…
ismael92
  • 33
  • 1
  • 6
0
votes
1 answer

Failed access assets folder

In android, I've used a font from my assets folder and worked correctly. Suddenly today i can't access to this font in my assets folder and the terminal generates java.lang.RuntimeException: native typeface cannot be made this is the piece of code…
0
votes
0 answers

Opening Assets Files - assetManager.open(file) throws Empty Exception?

I'm trying to plug in some Web UI / Javascript code into my app from chrome plugin apps. Part of what the Javascript does is reading in some translation files (I don't want to change the method it uses to do this too much) To do this I furnished…
Graeme
  • 25,714
  • 24
  • 124
  • 186
0
votes
2 answers

Android Customizing Image and Saving

How can I make an image customisable (size, colour, opacity, ...) like Android Asset Studio (in the app)? Then, save it as a custom name inside an external folder?
jyoonPro
  • 1,661
  • 1
  • 16
  • 41
0
votes
2 answers

Attaching a database file in asset folder to my own SQLite database in Android

I am making an app which requires large set of data to be initialized when the app starts so I thought of exporting the initial db with the apk file in assets folder. I can copy that database to the working directory of mine, however the issue comes…
Saty
  • 2,563
  • 3
  • 37
  • 88
0
votes
1 answer

Retrieving .json file from assets and Parsing

I'm trying to retrieve a .json file that i generated in my assets in order to test my ListView , I'm having trouble when running the app the try/catch is always returning exception and the file is never loaded,ListView returns "No data" , here's my…
0
votes
0 answers

Libgdx Using AssetManager with High and Low resolution textures

I'm using the AssetManager in libgdx with an Atlas file, to load all textures. This works just fine, however I want to modify the code I have to incorporate using different textures. For example when fully zoomed out, I don't need a nice hi-res…
Jammo
  • 1,838
  • 4
  • 25
  • 39
0
votes
1 answer

Show list of file names present in assets folder in listview in Android

AssetManager am=getAssets(); try { files = am.list("music"); Log.d("++++++++++++length++++++++++",""+files.length); if (files == null) { // dir does not exist or is not a directory …
0
votes
1 answer

Android: Limit scalable drawables like icon to one file

Previously I made some apps with Adobe Flash Builder. That's works great but is not the best choice is some cases so I start with developing Android apps with use of ADT. Like in Flash Builder you can set several icons for different screen…
Codebeat
  • 6,501
  • 6
  • 57
  • 99