bundle

android bundle wont carry over

a 夏天 提交于 2019-12-11 08:16:40
问题 Hello I am new to this site also kinda new to android programming... Every time I click the button to go to next activity I get a force close. I know the activity works because I commented out the bundles.. anyone know What I am doing wrong? // click button on 1st activity Intent iCreate = new Intent("silver.asw.charactersheet.CREATECHARACTER"); iCreate.putExtra("cname",item); startActivity(iCreate); // on item select item = spin.getItemAtPosition(position).toString(); // spinner is being

how to set rxtx with OSGi Equinox?

随声附和 提交于 2019-12-11 07:43:55
问题 I am looking for a solution to my problem. I am developing a bundle that has to read from the serial port by means of rxtx jar. When I launch the application, I get the following error java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source)

Android: How NOT to save instance state?

不问归期 提交于 2019-12-11 07:41:28
问题 My app has login, once the access is granted, it creates a new html file to the sdcard, the output or the appearance of that html file depends on the account of the logger. After writing, the app goes to the next activity Intent nextActivity = new Intent(MyMainAct.this, AppView.class); startActivity(nextActivity); the AppView class is the next activity in which the UI is a webview. It views the html created on login. When I click "login as different user" button, I go back to the Main

How to set value for textview of fragment received from another fragment?

China☆狼群 提交于 2019-12-11 07:20:05
问题 I don't know how to set in the textview of second fragment when received the value from another fragment. The data I received in the second fragment is the "value" object of StringList but I don't now how to set the data for it. StringList class: public class StringList { public String authorName; public String headline; public String publishedTime; public String newsDetail; } MainActivity: //only useful code pasted below for tranfering thre value from fragment to another fragment and i have

Forward bundle from one intent to another

喜欢而已 提交于 2019-12-11 06:13:21
问题 Is there a way to pass an intent bundle from one intent to another without having to extract the bundle and handle each extra individually? Example: intent2.setExtras(intent2.getExtras()); 回答1: There is a dedicated function Intent.putExtras(Bundle extras) Hope this helps Serge 回答2: Why not? Given that there exist 3 Activities: ActivityA, ActivityB, and ActivityC... Activity A Intent intentA = new Intent(this,ActivityB.class); intentA.putExtras(new Bundle()); Activity B Intent intentB = new

Android parcelable and Intent: redBundle: bad magic number

会有一股神秘感。 提交于 2019-12-11 04:51:27
问题 I have an array list of objects and I am using this example to get this arrayList from one activity to another activity: http://androidideasblog.blogspot.in/2010/02/passing-list-of-objects-between.html Here is a part of my code: Activity 1: Intent myIntent = new Intent(context, JournalArticles.class); Bundle b = new Bundle(); b.putParcelableArrayList("articles", articles); myIntent.putExtras(b); startActivityForResult(myIntent,0); Activity 2: Bundle b = this.getIntent().getExtras(); ArrayList

OSGi: programmatically add imports to a bundle

坚强是说给别人听的谎言 提交于 2019-12-11 04:42:49
问题 How can I add packages to a bundle's import from within code? I need it since I use libraries which rely on reflection and require other packages and I don't want to need to manually add those packages to MANIFEST.MF for each bundle I develop 回答1: You cannot. Import-Packages are evaluated in the Resolution phase. (Phases are Installed -> Resolved -> Active ). Your code is executed when the bundle is Active, therefore too late to add Import-Packages. You can do 2 things: Import-Package the

restore all refs from git bundle

不羁的心 提交于 2019-12-11 04:39:13
问题 How to restore all remote branches from backup (git bundle). Backup: $ git bundle create /tmp/dp --all $ git bundle list-heads /tmp/dp | head -n5 f37c9fc7f0ce121568f42fb01390b1862c67f308 refs/heads/master f37c9fc7f0ce121568f42fb01390b1862c67f308 refs/heads/show 9aabc2a4fb18181fee6d0e7e03170a976b6ed49b refs/remotes/origin/NewLayers aef1fc8a416413ee5b7f4370f255ab654b3407ee refs/remotes/origin/elevator bc4c78f94a67857fbd7210ecc5ebcd80ec736b1a refs/remotes/origin/elevator_1 $ git bundle verify

Accessing CDN bundles on different ASP.Net MVC site

筅森魡賤 提交于 2019-12-11 04:26:48
问题 This is a follow-up question to this: ASP.Net MVC 5 - Deploy separate CDN site with bundled JavaScipt and CSS I want to serve up my JavaScript and CSS bundles from a second ASP.Net website, so I have done the following. Main website (ASP.Net MVC website that has not JS or CSS resources) CDN website (ASP.Net MVC website that has all JS and CSS resources but not much else) CDN Website Web.config extract <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin"

MVC bundle with Azure CDN - how to enable caching

青春壹個敷衍的年華 提交于 2019-12-11 04:08:50
问题 I have a web site to be hosted in Azure that has a lot of javascript and CSS but very small pages. I would like to have the javascript and the CSS delivered via a CDN. Azure provides a really neat and convenient mechanism to allow this as described here https://azure.microsoft.com/en-us/documentation/articles/cdn-cloud-service-with-cdn/#integrate-aspnet-bundling-and-minification-with-azure-cdn In short, you add the following code to your BundleConfig.cs bundles.UseCdn = true; var version =