Questions tagged [bundle]

Bundles are a group of resources.

A bundle is a directory that has a well-defined structure and can host anything from classes to controllers and web resources. Even if bundles are very flexible, you should follow some best practices if you want to distribute them.

In ASP Net MVC, bundles are used to combine multiple javascript and CSS files into one, improving the download speed of a website.

In Android bundles are, "A mapping from String values to various Parcelable types." --http://developer.android.com/reference/android/os/Bundle.html Bundles are used to save the state of activities and/or fragments as well as passing data between classes.

5438 questions
43
votes
4 answers

Android Unit Testing: Bundle/Parcelable

How do you unit test Parcelable? I created a Parcelable class, and wrote this unit test TestClass test = new TestClass(); Bundle bundle = new Bundle(); bundle.putParcelable("test", test); TestClass testAfter =…
garbagecollector
  • 3,731
  • 5
  • 32
  • 44
43
votes
9 answers

Can't change bundle ID in project, greyed out

I'm having a problem with bundle identifiers. In the Summary section of my project in Xcode and under 'Identifiers', I can't seem to change the name of my bundle ID as it is greyed out. For example, my project name is 'My App'. In the identifier…
Moo33
  • 1,251
  • 3
  • 15
  • 27
42
votes
3 answers

IOS: copy a file in documents folder

In my project I have two file .txt (in Resources folder), how can I copy them inside documents folder?
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
42
votes
2 answers

How to Iterate through all Bundle objects

I am trying to create helper method that would iterate through all Bundle objects, in a generic manner. By "generic" I mean: Doesn't need to know the names (keys) of the objects in the Bundle passed as a parameter. Doesn't need to change if another…
ateiob
  • 9,016
  • 10
  • 44
  • 55
41
votes
7 answers

Unable to load the EventMachine C extension; To use the pure-ruby reactor

i got trouble, in a rails project(redmine2.3), rails version is 3.2 start the project bundle exec thin start -p 8080 -e production -s 5 -d error info (eval):9: warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 (eval):9:…
colin
  • 557
  • 1
  • 4
  • 7
40
votes
3 answers

bundle install and rbx-require-relative

After following railstutorial.orgI am trying to run bundle install. It list use of gem like : Using railties (3.0.7) Using rails (3.0.7) Using sass (3.1.3) And this error : Installing rbx-require-relative (0.0.5)…
canardman
  • 3,103
  • 6
  • 26
  • 28
39
votes
18 answers

Unable to resolve module 'AccessibilityInfo', when trying to create release bundle

I am running react-native bundle --platform windows --dev false --entry-file index.windows.js --bundle-output windows/app/ReactAssets/index.windows.bundle --assets-dest windows/app/ ReactAssets/ command to create release bundle, but I am getting…
pranay godha
  • 625
  • 2
  • 7
  • 13
39
votes
11 answers

The application bundle does not contain a valid identifier

I try to run my project but i get the following error "The application bundle does not contain a valid identifier." here my info.plist I followed other answer on the question. I don't have any "Ressources" folder inside my project. Thanks for your…
panic
  • 2,004
  • 2
  • 17
  • 33
39
votes
6 answers

How to localize bundle display name in iPhone app?

How can I localize bundle display name of an iPhone app? The name displayed in iPhone main screen under app icon. I wish a single binary bundle package which will be displayed multilingually.
eonil
  • 83,476
  • 81
  • 317
  • 516
39
votes
4 answers

savedInstanceState when restoring fragment from back stack

Can I use savedInstanceState() to save the state when removing a fragment, then restore the state when I pop the fragment off the back stack? When I restore the fragment from the back stack, savedInstanceState bundle is always null. Right now, the…
heero
  • 1,941
  • 5
  • 23
  • 33
38
votes
5 answers

getExtra from Intent launched from a pendingIntent

I am trying to make some alarms after the user selects something with a time from a list and create a notification for it at the given time. My problem is that the "showname" that a putExtra on my Intent cant be received at the broadcast receiver.…
spagi
  • 1,457
  • 4
  • 16
  • 19
38
votes
6 answers

SavedInstanceState is always null in fragment

I have a fragment attached to the activity using XML (and setContentView() in activity). A have a problem because I have very dynamic views in my fragment, so when orientation changes I must restore all states of views. I have problem because I'm…
TommyNecessary
  • 1,377
  • 1
  • 13
  • 19
37
votes
6 answers

How to get localized CFBundleDisplayName

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"] this API returns Bundle Display Name in plist. However my app is localized and has different display name. so i need to get localized display name in InfoPlist.strings…
Umgre
  • 667
  • 1
  • 6
  • 15
37
votes
2 answers

Symfony2 conceptual issue: general bundles vs. specific ones

Edit: the Symfony best practices answer most of my questions. I have several questions concerning my Symfony2 app. It will have a frontend and a backend, and they will use some common code (such as a date displayer, paginator, some templates often…
Nanocom
  • 3,696
  • 4
  • 31
  • 46
37
votes
2 answers

Configuration.resolve has an unknown property 'root'

I get the following error : Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.resolve has an unknown property 'root'. These properties are valid: …
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392