1. Non-code files packed with an application (example, data or media files). 2. From a security point of view - any data or resource that should be (or can be) protected.
Questions tagged [assets]
3549 questions
64
votes
8 answers
List of files in assets folder and its subfolders
I have some folders with HTML files in the "assets" folder in my Android project. I need to show these HTML files from assets' sub-folders in a list. I already wrote some code about making this list.
lv1 = (ListView) findViewById(R.id.listView);
//…

Max L
- 1,453
- 2
- 17
- 32
60
votes
7 answers
How to make an iOS asset bundle?
I saw a custom asset bundle in an iOS project I evaluated, so at least I know it's possible.
My issue is that I'm using a CATiledLayer with about 22,000 tiles for a given image and it takes a very long time to compile (half an hour clean build, 5-10…

michael
- 2,332
- 2
- 21
- 27
59
votes
9 answers
Symfony2 - Assetic - load images in CSS
I have a CoreBundle that contains main css files and images. Now I have a problem when I load an image from css; the image isn't shown.
background-image:url(../images/file.png)
(with a full path it works)
I installed the assets using the command:…

LBridge
- 2,135
- 5
- 21
- 32
57
votes
6 answers
How can I add JPEGs to an asset catalog in Xcode?
Is it possible to add assets other than PNG files to an Xcode Asset Catalog?
When I drag JPEG files into an Asset Catalog they aren't accepted by the UI.

David Snabel-Caunt
- 57,804
- 13
- 114
- 132
52
votes
4 answers
Cookie “PHPSESSID” will be soon treated as cross-site cookie against because the scheme does not match
I've just noticed my console is littered with this warning, appearing for every single linked resource. This includes all referenced CSS files, javascript files, SVG images, and even URLs from ajax calls (which respond in JSON). But not images.
The…

Digital Ninja
- 3,415
- 5
- 26
- 51
52
votes
8 answers
Rails 3.1 and jquery-ui assets
This was asked in another question, but none of the solutions appear to work for me in 3.1rc1.
I'm trying to use the new assets stuff in rails 3.1 - I have the files:…

Roman Gaufman
- 1,104
- 1
- 13
- 17
49
votes
2 answers
Route helpers in asset pipeline
using Rails 3.1.0.rc4, I'm trying to access a route helper in a javascript file (event.js.erb in this case) and it seems like they are not loaded at that moment. When requesting the merged /assets/application.js file, I get:
throw Error("NameError:…

tbuehlmann
- 9,032
- 5
- 27
- 33
48
votes
10 answers
"rake assets:precompile" gives punc error
I'm trying to precompile my assets for production, but rails doesn't seem to be cooperating.
$ bundle exec rake assets:precompile
/home/drderp/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /home/drderp/.rvm/gems/ruby-1.9.3-p194@global/bin/rake…

Jeremy Rodi
- 2,485
- 2
- 21
- 40
46
votes
6 answers
How to load a image from assets?
i need to load a image from assets to avoid a froyo 2.2.2 bug resizing POT images in some particular cases. The way to avoid it is loading the image files from assets dir.
I'm trying to do with this:
String imagePath = "radiocd5.png";
AssetManager…

NullPointerException
- 36,107
- 79
- 222
- 382
46
votes
8 answers
Is it possible to load a drawable from the assets folder?
Can you load a drawable from a sub directory in the assets (not the drawable folder) folder?

Jamie
- 683
- 2
- 11
- 16
44
votes
6 answers
android get Bitmap or sound from assets
I need to get Bitmap and sound from assets. I try to do like this:
BitmapFactory.decodeFile("file:///android_asset/Files/Numbers/l1.png");
And like this:
getBitmapFromAsset("Files/Numbers/l1.png");
private Bitmap getBitmapFromAsset(String…

Val
- 4,225
- 8
- 36
- 55
43
votes
6 answers
rails active admin deployment : couldn't find file 'jquery-ui'
when trying to deploy with capistrano, when capistrano use command
bundle exec rake
RAILS_ENV=production
RAILS_GROUPS=assets
assets:precompile
I have this error
couldn't find file 'jquery-ui'
(in…

user2016483
- 583
- 1
- 5
- 13
38
votes
3 answers
Should I use @import or manifest files?
Rails 3.1 introduces a new way of organizing both JS and CSS with the introduction of manifest files. For example, application.js might look like this:
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree .
This will…

Rupert Madden-Abbott
- 12,899
- 14
- 59
- 74
38
votes
11 answers
Load files bigger than 1M from assets folder
I'm going crazy, I created a file object, so it can be read with ObjectInputStream, and I placed the assets folder.
The method works with a file smaller than 1M, and give error with larger files.
I read that is a limit of Android platform, but I…

Syco
- 799
- 2
- 14
- 23
35
votes
14 answers
Assets.car can't contain 16-bit or P3 assets if the app supports iOS 8 or earlier?
Has anyone come across this error when uploading to iTunesConnect. Upload precess gets to "Verifying assets with iTunes store" the I get the following error:
I am working with xCode8, embedding a custom sticker app within an existing iOS…

James Peyton
- 351
- 3
- 5