The problem was discovered by chance when this compilation was published in the previous period:
Zip error:invalid Command Arguments (cannot repeat names in zip file) Make: * * * [out/target/product/k200_hdmiin/system/etc /recovery-resource.dat] Error 16make: * * * waiting for unfinished jobs ....
Background Introduction
Bo Master is currently engaged
Objective:
Recently received the ZIP interaction prototype, open to view a bunch of garbled Chinese. Mainly products are tall Ah, with the Mac, I am cool with the windows, say Android app, what do you do with the Mac AH. Hateful compression is zip, not rar, and so on. For our use of Windows development and testing of the cock wire, share the next solutio
This paper illustrates the method of compressing and decompressing the zip file with Android. Share to everyone for your reference. Specifically as follows:
Dirtraversal.java is as follows:
Package com.once;
Import Java.io.File;
Import java.util.ArrayList;
Import java.util.LinkedList; /** * Folder Traversal * @author Once * * */public class Dirtraversal {//
The development process used a ZIP compression package, wrote a tool class, the class can be implemented to compress the string directly into the ZIP format, eliminating the need to write to the file to compress the steps:/** * * @author shx * Compression and Decompression tool * */public class Ziputil {/** * compression method * @param str to compress the string
Decompression on the phone on a Windows compressed file, found that Chinese is garbled, the solution is as follows: Find the System.zip.pas file will e: = tencoding.getencoding (437);Instead of E: = tencoding.getencoding (936); After saving the new multiplatform project, adding this file and recompiling, compiling this project, SYSTEM.ZIP.DCU and System.zip.so tw
1 /**2 * Unzip the file to the specified directory.3 * 4 * @paramUnzipfilename5 * files that need to be decompressed (with path)6 * @paramMdestpath7 * The path to be stored after decompression8 **/9 Public Static voidUnZip (String unzipfilename, String mdestpath) {Ten if(!mdestpath.endswith ("/")) { OneMdestpath = Mdestpath + "/"; A } -FileOutputStream fileout =NULL; -Zipinputstream Zipin =NULL; theZipEntry Zip
an offline installation of the Android SDK file pathReprinted from: http://www.oschina.net/code/snippet_1539302_45940Google TV Addon, Android API13, revision 1https://dl-ssl.google.com/android/repository/google_tv-13_r01.zip Android
Like native Android File Manager and Android File Manager
Developed based on the File Manager that comes with Android native. Here is a simple demo, which can be easily implemented based on the existing code, as shown below:
BAT file content
For/F "delims =" % A in (sdk.txt) Do (Curl-o %)
* Download curl: http://curl.haxx.se/download.html
Sdk.txt content
Http://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zipHttp://dl-ssl.google.com/android/repository/android
We have been using Android Studio for more than half a year to adapt to the trend!
Adding. jar files and. so files from the Eclipse migration project to Android Studio is undoubtedly a very important and headache!
In the latest version, all. jar files under libs are automatically packaged by default, so you don't need to talk about jar.
Add. SO (this depends on your project Gradle Version)
Tip: both build.
slightly lower the new point version can be used, high version compatible with the lower version.3.google is no longer supportive of updating ADT and is ready to devote its energies to its own Android Studio. Of course, if it is for learning, then use the lower version, it will be more comfortable to use eclipse.4. About the Download:1) VPN, go to the next, register a, almost every day free. My is green (afraid some people will ask what VPN), in fact
APK.Jarsigner -.....--digestalg SHA1 ...JDK1.7 because the default signature algorithm changes, you need to specify the signature algorithm and the key algorithm. It's supposed to correspond to Keytool.-sigalg -keyalg Two parameters.===============Also about the SF RSA file name in the signed Meta-infoHowever, the default APK's meta-info name is CERT after the signature. SF and CERT. Rsa. I use Jarsigner signature is that This cert should not be Key
Devlik Intermediate Code5. Platform-tools Directory: Development and debugging tools that contain platform dependencies for developing apps. including ADB, fastboot, etc.Including:Adb:android Debugging ToolsFastboot:boot Tools6, platforms/7. System-images Directory: Compiled system image. The simulator can be loaded directly.8. Sources directory: The source directory of the Android SDK9. Samples Directory: SDK Example10. Add-ons directory:11. Docs Di
Today, when I write a project, I import a jar file that I wrote, and I can't find the jar file error when I debug it:08-06 21:42:10.744:e/androidruntime (2578): java.lang.RuntimeException:Unable to instantiate activity componentinfo{ Com.example.iotlife/com.example.iotlife.mainactivity}: Java.lang.ClassNotFoundException:Didn ' t find class " Com.example.iotlife.MainActivity "on Path:dexpathlist[[
For example, when you open a text file in the document viewer, a list of software that can be opened is displayed;How can I make my software appear in this list? You can set the androidmanifest. xml file:
The first
Note that you need to change mimetype to the type you need. The text file is of course text/plain.
Ther
Summary of some less commonly used XML file attributes in AndroidPreface
Some attributes that may not be frequently used in recent projects are used in XML, which may involve AndroidManifest. xml, Layout file Layout, or specific controls!AndroidManifest. xml
①Add tags in the AndroidManifest. xml file
,Xxx. xxx. xxx is the third-party library package name. If mu
ringtone environment#directory_pictures PicturesEnvironment#directory_movies VideoMethod:GetdatabasepathExplanation: Saving a database file created through Context.openorcreatedatabaseMethod:GetpackagecodepathExplanation: returns the full path to the Android installation package, which is a zip archive that contains the application code and the assets file.Metho
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.