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
57
votes
10 answers

how do you pass images (bitmaps) between android activities using bundles?

Suppose I have an activity to select an image from the gallery, and retrieve it as a BitMap, just like the example: here Now, I want to pass this BitMap to be used in an ImageView for another activity. I am aware bundles can be passed between…
damonkashu
  • 1,813
  • 5
  • 19
  • 25
56
votes
10 answers

Convert Map to Bundle in android

Is there an easy way to convert a Map to a Bundle in android without explicit iteration? Why? Firebase returns a Map for Notification getData(). I need to pass the data to an intent. Formerly GCM gave me a bundle, so I didn't need to worry about…
Nouvel Travay
  • 6,292
  • 13
  • 40
  • 65
56
votes
5 answers

Font files are not loading with ASP.NET Bundles

In my ASP.NET MVC application, I'm using Bundles to compress css and js files. The problem is - the fonts are not loading after i enable the optimization mode. BundleTable.EnableOptimizations = true; Here is the C# code public static void…
Zafar
  • 3,394
  • 4
  • 28
  • 43
56
votes
6 answers

MVC4 StyleBundle: Can you add a cache-busting query string in Debug mode?

I've got an MVC application and I'm using the StyleBundle class for rendering out CSS files like this: bundles.Add(new StyleBundle("~/bundles/css").Include("~/Content/*.css")); The problem I have is that in Debug mode, the CSS urls are rendered out…
growse
  • 3,554
  • 9
  • 43
  • 66
55
votes
6 answers

How to pass custom object in Bundle?

I am trying to pass my own custom object into a bundle: Bundle b = new Bundle(); STMessage message = (STMessage)a.getAdapter().getItem(position); b.putObject("message",message); I get the error: The method…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
55
votes
3 answers

How to pass ArrayList from one activity to another?

I want to send Following ArrayList from one activity to another please help. ContactBean m_objUserDetails = new ContactBean(); ArrayList ContactLis = new ArrayList(); I am sending the above arraylist after adding data in…
DCoder
  • 3,486
  • 7
  • 36
  • 68
55
votes
17 answers

A cycle was detected in the build path of project xxx - Build Path Problem

I'm in the process of converting my projects to OSGI bundles using maven and eclipse. Maven builds the stuff just fine, only I get the above error now within Eclipse. How can I find out which project causes this? Is there a special view or…
Mauli
  • 16,863
  • 27
  • 87
  • 114
52
votes
10 answers

MVC4 Less Bundle @import Directory

I'm trying to use MVC4 bundling to group some of my less files, but it looks like the import path I'm using is off. My directory structure is: static/ less/ mixins.less admin/ user.less In user.less, I'm attempting…
JesseBuesking
  • 6,496
  • 4
  • 44
  • 89
51
votes
4 answers

How do I know what data is given in a Bundle?

I'm having a heck of a time figuring out what data is coming to my methods through Intent/Bundles. I've tried adding break points to inspect the data, but I don't see anything. Perhaps because it's a Parcelable I can't manually read it in Eclipse. …
user123321
  • 12,593
  • 11
  • 52
  • 63
51
votes
5 answers

Where can I download Eclipse Android bundle?

Where can I download Eclipse Android Bundle? Google now directed you to download Android Studio or to download Eclipse SDK integration but I want to find Eclipse Android bundle. I searched in Google and Eclipse web site but can't find any link. Do…
Kuvalya
  • 1,094
  • 1
  • 15
  • 26
51
votes
2 answers

MVC4 bundling CSS failed Unexpected token, found '@import'

I'm trying to use bundling to combine & minify some CSS files. In my Global.aspx.cs Application_Start I have the following: var jsBundle = new Bundle("~/JSBundle", new JsMinify()); jsBundle.AddDirectory("~/Scripts/", "*.js", false); …
Kyle
  • 17,317
  • 32
  • 140
  • 246
50
votes
2 answers

Subdirectories within an iOS application

Is there a way to have directories within an .app? At the moment if I add a file into Xcode, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle.
gak
  • 32,061
  • 28
  • 119
  • 154
48
votes
5 answers

Path to bundle of iOS framework

I am working on a framework for iOS, which comes with some datafiles. To load them into a Dictionary I do something like this: public func loadPListFromBundle(filename: String, type: String) -> [String : AnyObject]? { guard let bundle =…
koen
  • 5,383
  • 7
  • 50
  • 89
46
votes
4 answers

How to pass integer from one Activity to another?

I would like to pass a new value for an integer from one Activity to another. i.e.: Activity B contains an integer[] pics = { R.drawable.1, R.drawable.2, R.drawable.3} I would like activity A to pass a new value to activity B: integer[] pics = {…
benbeel
  • 1,532
  • 4
  • 24
  • 38
44
votes
1 answer

Adding Bundles to existing ASP.NET Webforms solution

I am trying to add Bundles to an existing ASP.NET Webforms solution but my bundles always render empty and I am unsure why. I have been following this blog post. So far I have: Added the Microsoft ASP.NET Web Optimization Framework NuGet…
Joe
  • 1,847
  • 2
  • 17
  • 26