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
3 answers

How to attach .db file with another .apk android

i am making dictionary and i have so much data to load. I want that i create a project which first load the dictionary words in database and the after i use this .db file in my 2nd project which is dictionary project. But i don't know how to get…
User42590
  • 2,473
  • 12
  • 44
  • 85
0
votes
2 answers

Setting File for android applications

I have an XML setting file for my android application. When application is published it has some default values that have to published with app. And after changing settings by user the value of this setting file has to be changed. I use an XML asset…
user1682893
0
votes
2 answers

Where to place a xml file in android project?

For my project I am using an xml file to fetch information. I know this can be stored inside assets folders or inside resources/raw folder. My issue is I have to modify the xml dom and write back to the file again as a persistent storage. I have…
Zach
  • 9,989
  • 19
  • 70
  • 107
0
votes
1 answer

Android assets used for testing

I have a CSV file that I want to make available for my Android testing suite. I don't want it to be available for the main app, though. I saved it in the assets folder of my test project. Then I try to access it from a test…
Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
0
votes
0 answers

How to resolve table no such table exception in android?

I developed an android application with sqlite database.Presently my app is in google play.Here i am getting some reported issues like "no such table" while executing select query. Actually i copied my database from Assets folder. Here i followed…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
0
votes
1 answer

Database is shown in emulator but not on my android device

Here is my code... private static String DB_NAME = "pa1.db"; private static String DB_PATH = "/data/data/in.bitcode.sn/databases/"; private void copyDataBase() throws IOException { InputStream myInput = context.getAssets().open(DB_NAME); …
Pavan Anadkat
  • 111
  • 1
  • 3
  • 9
0
votes
2 answers

Minitemplator on android, how to access to template file in asset directory?

I am trying to integrate Minitemplator (http://www.source-code.biz/MiniTemplator/) to an application of android but i am little lost. I can access to the template file, the template file is in asset directory and i try to get the file at this…
kentverger
  • 475
  • 1
  • 5
  • 19
0
votes
1 answer

Programatically save apk file from asset folder to system/app in android

I am trying to programatically save apk file from asset folder to system/app folder in android. I am using following code. but error is showing read only file system. AssetManager assetManager = getAssets(); InputStream in = null; …
Ranjitsingh Chandel
  • 1,479
  • 6
  • 19
  • 33
0
votes
1 answer

Get resource from URL

I am making an Android app whose core functionality revolves around a single CSV file, which is stored in the 'assets' folder. It is a dictionary-type app, and once I have finished coding it, the only updates I can foresee (it's a very simple app)…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
0
votes
2 answers

copy images from assest to sd card on install android application

i have some images should be displayed in the Application, the Q. is how to copy the images i am putting in the assets folder in the code to a folder under the SC card of the user on install the application on the phone
omnia Mm
  • 157
  • 5
  • 16
0
votes
3 answers

Accessing folder/file structure to get resources

I have a folder structure inside my various drawable folders, e.g. drawable, drawable-hdpi etc. Something like: drawable-hdpi ├── folder_main │ ├── sub_folder_1 │ │ ├── 1.png │ │ └── 2.png │ ├── sub_folder_2 │ │ ├── 1.png │ │ └──…
HGPB
  • 4,346
  • 8
  • 50
  • 86
0
votes
2 answers

Android unable to attach image to Facebook,Twitter,Email via my app.Please Suggest

I am making a photo gallery app in which I try to load images from asset folder. I'm successful in doing this. Now I want to share the image(single not multiple) via email, facebook and twitter. This is where my problem starts. I'm able to post a…
userRav
  • 1
  • 1
  • 2
0
votes
1 answer

Can I use the files inside the Assets folder without having a context?

I have a file in the assets folder of my app. Is there any way I can use this file without having a context instance?
anirus
  • 1,597
  • 2
  • 18
  • 24
0
votes
1 answer

Simulating Camera with JPEGs in Android

I have an application where we want the user to either be able to run it using the camera on their phone (and feed the camera bytes into our library) or to use a jpeg sequence and feed those images in instead. We are planning on shipping with a few…
Liron
  • 2,012
  • 19
  • 39
0
votes
1 answer

Where to store .txt and .pdf in Android?

In my application, I need to store .txt and .pdf so that I can open them in the app. Which folder would be the best place for these files to reside. I've considered values, but I'm guessing the assets folder? When I need to call these files from…
EGHDK
  • 17,818
  • 45
  • 129
  • 204