collection of D2j-apk-sign to sign, if you have signed that use Jarsigner to sign.Signed command line: Jarsigner-verbose-keystore (keystore file)-signedjar a.apk (signature output apk name)-digestalg sha1-sigalg Md5withrsa game.apk (enter apk) alias (alias).PS: Pay special attention to the red part, if jdk7 need to ad
Here I'm using PHP's own ziparchive class.
A We just need to new a Ziparchive object, then use the open method to create a zip file, and then use the AddFile method to write the file to be packaged in the zip file you just created, and it's best to remember to close the obj
the main program and skin program sharing process to achieve the main program in the skin Program access to resources, in the program running through the code to display the specified skin resources, The disadvantage is that each activity in the main program increases the complexity of what kind of skin logic to useThis example achieves the following effect:
The following analysis of specific ideas:Android, the default is that each apk mutually
PHP compression and decompression class PclZip can be used to compress and decompress Zip files (WinZip and PKZIP). It can process ZIP files, this includes generating compressed files, listing compressed files, and extracting ZIP files. The latest version is the PclZip2.8.2PclZip class. How to create a ZIP
APK is an Android-launched engineering package, and many times we want to run it on a computer rather than on an Android phone. Here's how to run the next Android apk file on your computer.
First you configure the Android environment variable, and if it is configured, it will be easy to install.
You can append to the path of the system variable, or you can appe
After the android project is developed, it is necessary to package the android project file into an APK file and finally download it to the real machine for running. The following is a personal APK package process, which is recorded in text format. For more information, see http://www.cppblog.com/fwxjj/archive/2010/05/
Log on to developer and go to uploadProgramInterface
1. Upload APKFile,AndroidmarketError returned
I thought it was a problem with the APK name. Later I thought about it carefully. The package name in the middle of my program contains the above "invalid" keyword.
After the registration is changed and then the upload is OK.
2. When I resubmit the updated APK file
First, use the compression software to open the APK, get five files or folders1, Meta-inf2, Res3, Androidmanifest.xml4, Classes.dex5, RESOURCES.ARSCSecond, the XML file is compressed, you can use AXMLPrinter2 openThird, RESOURCES.ARSC saved is compiled binary files, many of the people who do Chinese software are modified by the file resources to achieve.Iv. for t
Nonsense not to say,on the Code Private voidInstall (String filePath) {log.i (TAG,"Start the installation:" +FilePath); File Apkfile=NewFile (FilePath); Intent Intent=NewIntent (Intent.action_view); Intent.setflags (Intent.flag_activity_new_task); if(Build.VERSION.SDK_INT >=Build.version_codes. N) {LOG.W (TAG,"Version greater than N, start installation with Fileprovider"); Intent.setflags (intent.flag_grant_read_uri_permission); U
This module uses the functions of the ZZIPlib library by Guido Draheim to transparently read ZIP compressed archives and the files inside them.This module uses the ZZIPlib Library (Guido Draheim) to read ZIP compressed files and files in it.Please note that ZZIPlib only provides a subset of functions provided in a full implementation of the ZIP compression algori
Commons-compress: For more information about zip files (compression and decompression), see.Apache Commons Compress is a class library for compressing and decompressing files.You can operate files in ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 formats with powerful functions.Here, we will write two methods to Compress files into zip files and decom
Commons-compress: For more information about zip files (compression and decompression), see.
Apache Commons Compress is a class library for compressing and decompressing files.
You can operate files in ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 formats with powerful functions.
Here, we will write two methods to Compress files into zip files and de
PhpZip File function
Introduction to PHP Zip FileThe zip file function allows you to read compressed files.
InstallationTo run the Zip File function on the server, you must install these libraries:
Guido Drahe
APK file itself is a compressed package, directly with the decompression tool can be opened, but the inside of the file has been encoded into a binary file format, can not directly see, such as the program description file Androidmanifest.xml. These files can be decoded and
1. Generate KeyStoreFollow the command line below in the C:\Program files\java\jdk1.6.0_10\bin> directory, enter Keytool-genkey-alias Android.keystore- Keyalg rsa-validity 100000-keystore Android.keystoreParameter meaning:-validity mainly is the validity of the certificate, write 100,000 days; spaces, backspace keys are counted.The android.keystore file is generated in the C:\Program files\java\jdk1.6.0_10\bin> directory after the command executes. -1
------Create this file Autoinstall.batThe contents are as follows:@ECHO off@REM Add Adb.exe to PathECHO initialization ...@SET path=%path%;%cd%\adb@REM SET PATH@REM an infinite loop of labels: LOOPECHO waits for you to insert your phone ...ADB wait-for-device@REM Loop Install apk file in this directoryFor%%i in (*.apk)
The steps for Eclipse to generate the Andoid installation file apk are as follows
1.) Generate KeyStore
Follow the command line below in the C:\Program files\java\jdk1.6.0_10\bin> directory, enter the Keytool-genkey-alias android.keystore-keyalg rsa-validity 100000-keystore Android.keystore
Parameter significance:-validity is mainly the validity period of the certificate, write 100,000 days, space, the B
1. smali-1.2.6.jar
Purpose: Convert the. smali file to the classes. Dex file.
Note: The. smali file, similar to the. Class file, can be viewed and modified in a common text editor.
Example: command line:Java-jar smali. Jar classout/-O classes. Dex
Download: http://code.google.com/p/smali/downloads/list
2. baksmali-1.2
Linux zip unzip file decompression command setZip is one of the common compression and compression commands in linux. After the file is compressed, it will generate another file ". zip "extension of the compressed file, because
Add the apk file to the Android simulator (AVD) for running,
Different exe and jar files of apk, apk needs to be run in Android. It is useless to run a single apk file and cannot be directly dragged into AVD (of course, it can be
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.