http://alpha.wallhaven.cc/wallpaper/33246
In the first part of this article, I talked about what modules are, why developers use them, and how to implement modules in your program in different ways.
In this second part, you will answer what the bundle means: why bundle, bundle different methods, and the future development of modules in web development. 1. What is
Attribute Property DescriptionThe Activator class name of the Bundle-activator Bundle.Example:Bundle-activator:org.riawork.demo.activatorDescription of the taxonomy attribute of the Bundle-category Bundle.Example:Bundle-category:opendoc,osgiBundle-classpath Bundle's Classpath.Example:Bundle-classpath:/bin,/lib/log4j.jarBundle-contactaddress provides the contact address of the
Today I found that I didn't even know the bundle, so I took the time to study it.According to Google's official documentation (HTTP://DEVELOPER.ANDROID.COM/REFERENCE/ANDROID/OS/BUNDLE.HTML)The bundle class is a key-value pair, "a mapping from String values to various parcelable types."Class inheritance Relationships:Java.lang.ObjectAndroid.os.BundleThe bundle cla
The bundle mentioned here is in the software library category. I define it as a series of compatible software libraries. For a relatively small project, there are not many libraries used and the upgrade process is not fast. This is not a problem, but bundle is very useful for large projects-of course, this requires the support of build system. (But adding such a function is quite simple) the
How to Use bundle to transmit data? Recently, when I was learning Android, I don't know how to use bunndle to transfer objects? We can implement this through serizlizable. The essence is to convert a custom object into a serizliable object. And then obtain it when it is used. Stored data void putserializable (string key, serializble value); Data: serializanle getserizlizble (string key );
Code: mianactivity. Java
Package COM. example. serilizaldemo;
In Android development, the activity between intent using bundle,fragment between and activityty through the setarguments using bundles, for some simple parameter transfer is relatively simple, and there are many ways, This is not introduced. Here is a description of complex parameter passing, such as passing set ArrayList, Object arraylistThe bundle is basically the same, whether it is the parameter passin
Bundle is just a carrier of information the internal content is organized in key-value pairs, and intent isresponsible for the interaction between the activity itself with a bundle. Intent.putextras (Bundle bundle) directly sets the Intent's internal bundle to the
Recently, I started to invest time in osgi learning. I bought Lin Hao's osgi principles and practices and sorted out my knowledge by referring to articles on 51cto and other materials.
The dynamic and disruptive development of osgi lies largely in the design scheme of dependency between bundle in osgi. I personally think this is a valuable part of osgi,
In our daily web development, although it is called disruptive development, the dependency design
Updated to the latest version of ADT actually did not find the NDK directory settings, which is inconvenient for the development of the NDK. Method is also very simple.To Http://developer.android.com/sdk/installing/installing-adt.html#TroubleshootingDownload the latest ADT update here.It's Google's original text.If you have trouble downloading the ADT plugin afte
Preparation conditionsOperating system: Win7 64-bitRequired resources: JDK, Eclipse, SDK, ADTStep Introduction:First step: Download and install the latest version of the JDKStep two: Download and install eclipseStep three: Download the installation SDKFourth step: Installing the ADT Tools componentHere is a detailed description of the installation processFirst step: Download and install the JDKRecommended to the official Oracle website to download the
Eclipse uses the 4.3 version, the SDK uses 24.3.2, here is a full-scale package, that is, from 24.3.2 below the version is included in the, and ADT only found up to 23.06 can be used at the beginning, but because the version is not called, always have to reduce the SDK version , very troublesome, just want to run the SDK Manager directly in eclipse to delete the 24.3.2 version file, leaving 23.0.2 of those, but, after the deletion of 24.3.2, then went
Tags: ADT avd adb IDE SDKA:SDK (software development Kit): A collection of development tools needed to develop Android apps, including library files and tools.B:adt (Android Developer tools): The Upgrade download tool for development tools under Eclipse. ADT is just an Eclipse plug-in that can be setThe SDK path.C:ide: Integrated development environment. The IDE typically includes a programming language edi
I believe many students will encounter this problem from eclipse to as, because it is convenient to share an SDK directory, but as will actively update the SDK, but the hands of the cheap with a new night, and then open eclipse when the moment is sluggish, this night what happened. First eclipse boot will have two bullet box error, a about system-img about cant find ADT (probably meaning), but in the online related question and answer very little, so
The bundle class is a key-value pair, "a mapping from String values to various parcelable types."Class inheritance Relationships:Java.lang.ObjectAndroid.os.BundleThe bundle class is a final class:Public final classBundleExtends Objectimplements parcelable cloneableCommunication between the two activity can be achieved through the bundle class, which is:(1) Create
ProgramThe effect is that activity a redirects to B and sends a string while Activity B reads the string.
Define a new activity in androidmanifest. XML, target: XML
Code
XMLVersion="1.0"Encoding="UTF-8"?>
ManifestXmlns: Android=Http://schemas.android.com/apk/res/android"
Package="Com. Ray. test"
Android: versioncode="1"
Android: versionname="1.0">
ApplicationAndroid: icon="@ Drawable/icon"Android: Label="@ String/app_name">
ActivityAndroid: Name=". Testbundle"
Android:
The format of unity3d asset bundle is not public. However, we still want to know the packaging format for better differential updates. In this way, a special difference comparison and merge tool can be created, which is much better than the binary difference. Because the data in asset bundle can be split into independent units, only the changed units can be compared.
The information available on the Interne
Packaging (bundling) and compression (minification) refers to the practice of packaging multiple JS files or CSS files into a single file and compressing, so as to reduce the need for the browser to download multiple files in order to complete the page display delay sense, while removing the js/css file in the case of Blank, Annotation and modification of JavaScript internal function, variable name compression method, can effectively reduce file size, improve transmission efficiency, provide use
Bundle's Understanding:
A container class that holds the map type of the string and parcelable type data, obtains the corresponding values of various types by holding the Data key (key), and must be obtained by key.
Usage of bundle:
Bundle is equivalent to the map class, is a mapping, with bundle binding data for easy data processing
It mainly acts on the data
Document directory
1 JDK Installation
2. SDK Installation
3 install eclipse + ADT
1 JDK Installation
Http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-windows-i586.exe2. SDK Installation
Http://dl.google.com/android/android-sdk_r08-windows.zip
Step 1: Install packageDecompress the package and double-click the SDK manager.exe to install the package. By default, the package is installed for a long time.An error occurs: a folder failed t
I have been using sdk1.5 since I came into contact with Android in July. I know that the SDK has been updated and the ADT has to be updated. I guess the process is troublesome, so I have been too reluctant to change it. I downloaded a piece of code this evening. sdk1.6 is required when I open it, so I had to update it. As a result, some problems are encountered during the installation process. I think some of these problems may also occur. Record them
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.