FAQ Database Discussion Community


Can't retrieve value from Bundle android

android,android-fragments,fragment,bundle,getstring
Inside my fragment in the onCreateView method, I retrieve the Bundle which was set for the fragment using the following code: Bundle args = getArguments(); String value = args.getString("fixedExpenseId"); But somehow the value is null when I run my code. When I debug my program I retrieve the following variables:...

How to change the working directory of a bundled Java program

java,netbeans,bundle,executable
I wrote a program in Java and packaged it up as a Mac App using Netbeans. It has the typical Java, MacOS, Resources, and Plugins folders and works just fine. The problem is that my program has a save feature which, whenever used, saves files to the computer's User directory...

Set a bundle start level programatically on embedded Apache Felix 5

osgi,bundle
I have embedded Apache Felix 5.0.0 in an application I'm building. When installing the bundles to the Felix framework object, I have no way of setting the bundles start level from code, and I read everywhere that people do it by hand using Gogo, but because I'm going to automatically...

Java: Getting object associated with enum

java,android,enums,bundle,value-of
I have an ArrayList full of custom objects. I need to save this ArrayList to a Bundle and then retrieve it later. Having failed with both Serializable and Parcelable, I'm now simply trying to somehow save the objects that are associated with the indexes in the ArrayList, then checking these...

Activity loads data twice

android,android-activity,bundle,android-lifecycle
There is one Activity - called MainActivity. There is one xml - called activity_main. It contains a menu layout and game layout. Menu layout - contains a "Start Match" Button Game layout - contains a Listview with 4 String items (4 words...) and a "Done" Button When the app launches,...

Bundling individual files

javascript,asp.net-mvc,bundle
I have a page in my MVC application with only one JavaScript file in it. Should I bundle this file or keep it as is? My current code @section scripts{ <script src="~/Scripts/Custom/Home/Index.js" type="text/javascript"></script> }...

Android: Should I pass in serializable or recreate the object from Bundle?

java,android,serialization,bundle
So I have a Calendar obj which implements serializable by default and I want to pass it in a bundle so the value of it is saved on screen rotation. Should I pass it as a serializable or extract the values and recreate the obj for efficiency? bundle.putSerializable("key", calendar); or...

CQ5 debug bundles using eclipse won't halt

eclipse,debugging,bundle,cq5,aem
I created a bundle that I already uploaded, but I would like to debug it. I started the server with debug mode: java -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -XX:MaxPermSize=256m -Xmx1024M -jar AEM_6.0_Quickstart.jar, and then I set to the project that packaged into the bundle its remote debugging configuration, but when I set the breakpoints...

Are all the resources of an App Bundle copied to memory (RAM) when an iOS App Launches?

ios,bundle,mainbundle
I was wondering if all the resources (images, audios, videos) of an App are copied to memory when an iOS App launches, because if it is so then it wouldn't be necessary loading all the resources at startup to avoid any lags later.

Android, pass a parcelable array or fetch data again from Content Provider?

android,android-fragments,bundle,android-contentprovider,parcelable
Bit of a performance question. I have a fragment that fetched some data from the content provider and built an object which implements Parcelable. MyObject object; In the scenario where such objects is required in another fragment, what would be more convenient: pass the object as args.putParcelable(ARG_KEY_OBJECT, object); or pass...

Does the ASP.net bundler automatically minify files?

c#,asp.net-mvc,bundle,bundling-and-minification
I'm using ASP.net MVC 4. Like the question states, if I put a bunch of JS files (or CSS, for that matter) into a bundle, will it automatically be minified? For example, should my bundle read: bundles.Add(new ScriptBundle("~/bundles/exampleBundle").Include( "~/Scripts/jquery-masked.js" "~/Scripts/jquery.idletimer.js" )); Or should it instead include the minified files initially:...

QT5: how to create .app bundle for macx

deployment,bundle,qt5,.app
I need to create a .app from my qt project for macx. I've create a simple sample project console, with CONFIG += app_bundle in .pro file then I used macdeployqt. When double click on .app, the application start to blinking in the mac bottom bar for at least 1 minute,...

How to access Bundle from iOS static library

ios,core-data,bundle
I'm working on a static library using Core Data framework. Sadly, I'm unable to access my Bundle / .momd file generated. What I've done : Create my Data Model (Model.xcdatamodeld file) Create a new Bundle target (named sdkResources) where I've added my xcdatamodeld file in Compile Sources and linked CoreData.framework...

Symfony 2 - Class “Mingle\StandardBundle\Entity\Product” is not a valid entity or mapped superclass

php,symfony2,doctrine,entity,bundle
I created a Product.php file in my bundle Mingle\StandardBundle\Entity like this: <?php namespace Mingle\StandardBundle\Entity; use Doctrine\ORM\Mapping as ORM; /* * @ORM\Entity * @ORM\Table(name="product") */ class Product { /* * @ORM\Column(type="integer") * @ORM\ID * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /* * @ORM\Column(type="string",length=100) */ protected $name; /* * @ORM\Column(type="decimal",scale=2) */ protected $price; /*...

How to pass Arguments to Fragment from Activity

android,android-fragments,fragment,bundle
I have an activity which instantiates and populates a Fragment through a adopter class. I want to pass values/objects to this Fragment adopter class so that i can dictate layout etc. I have tried passing bundles using the setArgument method but my code bombs out and not sure why. As...

How to include more search items

ios,xcode,search,bundle
I created a project, settings its name, say: ABCXYZ. When I use iOS Search app (swipe down in the main menu), type XYZ, my app doesn't appear. What do I have to include in my XCode project in order to get more option in search? Like, type A, type X,...

Trying to handle event triggered by Service in the Activity

android,service,broadcastreceiver,bundle,android-pendingintent
I have a background Service that triggers events and builds notifications for my app. If clicked, a notification should open the MainActivity, and depending on the info sent, open one of my Fragments within this Activity. For that, the Notification contains a PendingIntent that saves data into the Intent's Bundle....

Defining CDN path for multiple files included in a bundle

c#,asp.net,bundle,bundling-and-minification
This is my first time that I want to use bundling and minification. And I found examples and explanations for almost everything but using a cdn path for a bunch of files included in a bundle. all examples that uses a cdn were like: var styleSheet = new StyleBundle("~/JQMstyle", "http://code.jquery.com/mobile/1.3.1/jquery.mobile.structure-1.3.1.min.css").Include("~/theme/jquery.mobile.structure-1.3.1.css");...

Rails server runs, but rails console is throwing error “not checked out yet”

ruby-on-rails,ruby,ruby-on-rails-4,bundle
Rails server runs ok, but rails console won't start... What could be wrong? [email protected]:~/Sites/refcms_test$ bundle install ...#installing Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. [email protected]:~/Sites/refcms_test$ bundle exec thin start Using rack adapter -- DEPRECATION WARNING -- The use of 'Refinery::Plugin#activity=' is...

saved instance bundle is null in onCreateView for DialogFragment

android,fragment,bundle
In this code snippet, I am saving a key value pair before displaying the warning dialog. However the onCreateDialog() for the dialog is called with a null bundle. Is there something extra I need to do to pass the bundle to the dialog? MyDialogFragment testFrag= new MyDialogFragment(); Bundle args =...

BundleTransformer: CSS not bundled through @import directive

css,asp.net-mvc,less,bundle
We are using the BundleTransformer in our ASP.NET MVC project to bundle our style files. This works great, but we noticed that some CSS files are not bundled with our LESS files when we important them in LESS with the @import CSS at-rule. Sample in our root LESS file: /*...

How to retrieve key/value array from Bundle on Android

android,bundle,push
I'm trying to retrieve data from "extra" key: Bundle[ {from=1058706545539, extra={ "ty":"msg", "d":"sec":1425242647,"usec":763000}, "iL":"86777e87a574c3f068f6525e", "tU":"7e0a9dbbd1d6ee1795d64fdf", "iP":"4f26e5f78d042e2224688ed7", "iM":"dd83db95e764b103b4fec99e"}, message=Oi , android.support.content.wakelockid=1, collapse_key=do_not_collapse }] If it was JSon I'd use JSONObject, I don't know how to retrieve the the whole "extra" on a HashMap structure. So that I can use something like...

execute bundle who cintains xml parser (SAX)

xml,osgi,bundle,sax,ipojo
i want to run bundle who contains code of parser xml(SAX) when i execute the commande start file:bundle's path i have a problem this is the error msg -> start file:C:\felix\bundles\home.analyser-1.0.0.jar org.osgi.framework.BundleException: Unresolved constraint in bundle home.analyse r [13]: package; (package=org.xml.sax.helpers) i try to search the jar file on the...

Bundle Install, Ruby on Rails, rubyinstaller

ruby-on-rails,ruby,install,bundle
I'm completely new to Ruby on Rails, and I'm a few difficulties creating a new rails project. Each time the 'bundle install' command runs I get the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe -r ./siteconf20150226-7776-brvf10.rb extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id...

how to passing list<> in bundle

java,android,android-intent,arraylist,bundle
I have the following code: List<ValueActivity> list = new ArrayList<ValueActivity>(); list = setList(); Intent intent = new Intent(NOTIFICATION); Bundle bundle = new Bundle(); bundle.put ????("list", list); intent.putExtra("bundle", bundle); sendBroadcast(intent); How to write line 5 and how getExtra in destination intent...

Bundling files in different directories?

c#,css,asp.net-mvc,bundle,bundling-and-minification
I recently came across an issue on a website where the styling on a page was really messed up but only in IE. My boss told me it is likely to be because the CSS Bundle being rendered contains CSS files from different directories, so I checked and it did....

Why is my bundle of data not being sent to my other activity?

java,android,android-intent,android-activity,bundle
I am trying to pass some data from one activity to the second activity once the user clicks on the "Place your order button". I want the data to show up on the second activity but is is giving me either null or zero values. Only explanation is that the...

Passing more than a Bundle to a fragment [Android]

android,fragment,bundle
Is it possible to combine two bundles into one before passing to a fragment on Android? So code snippet would be similar to : Bundle b1 = SomeClass1.getSomeBundle(); Bundle b2 = SomeClass2.getDifferentBundle(); // How to do I pass these two bundles to a fragment? fragment.setArgument(b1 + b2); // Illustrative only....

Convert JSON to Android Bundle

java,android,json,bundle,adt
I want to convert a JSON string to android Bundle. The requirement was like to pass parameters to an activity directly from server as JSON rather than bundle. How to convert a JSON string to Android Bundle? Please provide abstract code if possible.

Is there a pre-packed vanilla Apache Felix installation with Jetty 9?

jetty,osgi,bundle
Is there somewhere I can download a plain Apache Felix with all the bundles required for running the latest Jetty 9? I've been trying to do this by following the Jetty documentation to no avail, it's like trying to put together a puzzle where you don't know where the missing...

Set and Get multi dimensional arraylist to and from a bundle

android,arraylist,bundle
I have a multi dimensional arraylist and want to pass it to an activity. How do i do this? My code below is what i have so far... In my new activity i do stuff and pop the arraylist then bundle it. i then kill my activity and return to...

How to Import Javafx8 in a bundle in OSGI

osgi,bundle,javafx-8
I'm working on an OSGI application with Felix. Now I want to use some JavaFx8 classes in a bundle but I have the following error : Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (osgi.wiring.package=javafx.geometry How can I import JavaFx8 SDK packages in my bundle. Thanks in advance, ...

Passing Number[] array through Intent

android,arrays,android-intent,bundle,androidplot
i am struggling on passing an array from one activity to another. In my MainActivity i build an array similar to this: Number[] s1 = {1, 8, 5, 2, 7, 4}; The reason i need it in that format, is to graph those points using androidplot in the other activity....

How to add resource bundle into a xcode project using cmake?

xcode,cmake,bundle
I am trying to add a resource bundle into a generated xcode project with cmake. However I am having trouble getting this out. This is what i have so far? set(MACOSX_BUNDLE_RESOURCES "${CMAKE_SOURCE_DIR}/resource.bundle") set_source_files_properties(MACOSX_BUNDLE_RESOURCES PROPERTIES MACOSX_PACKAGE_LOCATION Resources) add_executable(project MACOSX_BUNDLE ${FILES_SRC} ${FILES_RSC}) It seems it doesn't see resource.bundle package at all. Any...

Manage translation fields in symfony form type generated with KnpLabs/DoctrineBehaviors and Translatable

php,symfony2,doctrine2,bundle,symfony-forms
I'm new to Symfony and I'm using version 2.6 I wanted to create a translation for my products following https://github.com/KnpLabs/DoctrineBehaviors#translatable I ended up with: <?php namespace KhaliBundle\Entity; use Gedmo\Mapping\Annotation as Gedmo; use Doctrine\ORM\Mapping as ORM; use Knp\DoctrineBehaviors\Model as ORMBehaviors; /** * Product * * @ORM\Table(name="products") * @ORM\Entity */ class Product...

Change Magento bundle product price type via database

mysql,database,magento,bundle
Is it possible to change an existing bundle product from dynamic to fixed price via the database rather than having to create a new product?

Location of CFBundleDisplayName in xCode

ios,xcode,bundle
I'm trying to find out where the CFBundleDisplayName is located so I can change the title of my Application in xCode when installed on a device. It's my understanding the CFBundleDisplayName holds the string value for the Title that is displayed underneath the icon on the iPhone screen. I thought...

Building multiple bundles with r.js

build,module,requirejs,bundle,r.js
Hopefully a low-ball conceptual question. I'm having trouble understanding the modules option of r.js build configs. I want to build multiple modules with nested dependencies with one r.js build config. Say I have the following project structure: +---build +---src +---moduleOne | +---moduleOne.js | \---dependecyForModuleOne.js +---moduleTwo | +---moduleOne.js | \---dependecyForModuleTwo.js |---buildConfig.js...

What is the purpose of tag “guzzle.client” in guzzle client bundle in symfony2 ?

symfony2,bundle,guzzle
I am using the guzzle client bundle in a symfony2 project and I checked the configuration provided here : https://github.com/misd-service-development/guzzle-bundle/blob/master/Resources/doc/clients.md // MyBundle/Resources/config/services.xml <service id="example.client" class="%guzzle.client.class%"> <tag name="guzzle.client"/> <argument>http://api.example.com/</argument> </service> It would be awesome if somebody can explain why we need the tag ....

Sounds from bundle still there after app update

ios,file,bundle
I have a list of sounds in my app main bundle, which are displayed in a list in the app. I decided to delete some of the bundle, and they're 100% removed from the bundle/folder. I can't find them anywhre on disk. But when I compile over my old app...

Android how to send objects to new fragment

android,android-fragments,bundle
I want to send some Data from a fragment to a new fragment. I know this can be done with a bundle but I don't know how to use them, especially not with my own objects. I replace my old fragment with a new one like this: Fragment newFragment =...

Are you allowed to create seperate ASP bundles for resources in the same directory?

css,asp.net,bundle
Suppose I have a directory with multiple css files. Is there a way to create and reference multiple ASP bundles for the same directory? Let's say you have a folder with several stylesheets. I know you can include specific files by their virtual paths like this: //Bundle1 bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css",...

Bundles for images

.net,asp.net-mvc-4,web-applications,bundle
I'm just wondering, is there a way which gives you an opportunity to gather your images into a single bundle like we can do with *.css and *.js files? I've tried to find information about it, but I didn't succeed. Loading of each image in my web application takes much...

How can i call service from another in OSGI

service,osgi,bundle
I started developping an OSGI bundle base application. I created a bundle A that consumes service from bundle B, wich in its turn must consume service from bundle C. But i dont see how get a service inside the code of another. The servicetracker needs the bundlecontext and i don't...

FOSUserBundle reset password: weird behaviour

symfony2,user,bundle,fosuserbundle
I'm trying to make my own form for allowing user to edit his profile. I success to add my field at the FosUserBundle original fields but I have a weird behaviour. My user can change his password only one time !! If I retry to change it from the form...

qt put multiple executables into one bundle on mac OSX

osx,qt,bundle,macdeployqt
We have 4 mac applications that form part of a 'suite', each for use with a different scientific instrument connected via USB. My colleagues on Windows have developed a splash screen app that lets you choose one of the four separate programs to run, depending on what instrument you are...

Git problems, 'git not installed'

ruby-on-rails,git,github,bundle,gitlab
I have set up my github account, configured it with SSH and now I am trying to retrieve group work from gitlab. I have managed to pull the work so that it is on my machine but when I go to bundle install I encounter an error. It says that...

The bundle currently has rails locked at 3.2.12. whats to do?

ruby-on-rails,ruby,gem,bundle
I've changed in my gemfile the rails version from 3.2.12 to 4.2.0 then I got this error: The bundle currently has rails locked at 3.2.12 so I tried bundle update / and bundle update rails ... but I got this: Bundler could not find compatible versions for gem "rails": In...

Embedded OSGi: accessing dynamically loaded bundle components

java,runtime,osgi,bundle
I'm getting a little lost when dealing with embedding OSGi into an application/library, loading a bundle at runtime and then using that bundle in the host application/library. This is code to load the bundle from my host: // framework is the embedded OSGi framework Bundle b = framework.getBundleContext().installBundle( "file:/project_dir/bundle/MyBundle.jar" );...

Sylius Fresh Installation: can't install “sensio/generator-bundle”?

php,symfony2,bundle,composer-php,sylius
I am new to Sylius and I have just installed a fresh Sylius project on my Mac, it is working fine. Then I realised that I need to create my own bundle under src to overwrite the Sylius bundles. Usually, I will use "php app/console generate:bundle" to generate a bundle...

Google Map APIs not working after adding bundle identifier - iOS

ios,bundle,google-places-api,identifier
I Google developer console I created an iOS key as below: I want to restrict this key to one app only, so I "Edit allowed iOS application" add my bundle Id to it. My bundle Id is easily found in General tab of my project target as following: I don't...

Multiple file upload with VlabsMediaBundle in Symfony2

php,symfony2,upload,bundle
i'm trying to make a multiple upload file on an entity with the vlabsmediaBundle. So i have an advert who can have many images but each can be linked with only one advert. I followed the tutorial(tuto) of the bundle but get an error. Here: Entity Image.php namespace MDB\PlatformBundle\Entity; use...

Pass data using Intent & bundle need to convert to int

android,android-intent,casting,integer,bundle
I'm trying to pass data to another activity, but after passing it I want to convert it to int is there a way to do that. This my code: Intent intent = getIntent(); Bundle bundle = intent.getExtras(); if(bundle != null) { checker.setText(bundle.getString("temperature")); String checkerHolder = checker.getText().toString(); int finder = Intent.parseIntent(checkerHolder);...

Parceling objects in android to transfer from one activity to another

android,bundle,parcelable
Recently an interviewer asked me a very tricky question. There are several parts of the question. Why (question is why and not how) do you need to parcel objects while sending from one activity to another and not send directly Answer I gave - Parcelable gives the capability to developers...