Steps for cocos2dx to generate an Android APK File
The following figure shows the result of my operation steps (real machine display)
First, you need to prepare the software (with the java environment configured on your own). Below is a method,
1. ADT download
2. To download the NDK, You need to configure the environment variable NDK_ROOT value as the address where the NDK is located.
3. MinGW (used to run
"IIS6"1) Open IIS Service Manager, locate the server, right-click Properties, open IIS service properties;2) Click the MIME type button under MIME type to open the MIME Type Settings window; 3) Click "New" to create a new MIME type;4) Fill in ". apk" in the extension, and "application/vnd.android.package-archive" in MI
What is an APK file? What is the relationship between him and Android phones?
APK is the abbreviation of Android package, that is, the android installation package. APK is a file format similar to Symbian sis Or sisx. Directly upload the
-2.2.1\cocos2dx\platform\android\java\src under the Org folder toE:\COCOS2D-X-2.2.1\PROJECTS\2048_BOJIE\PROJ.ANDROID\SRC underThen refresh ADTfound that the error has not been, there may be some people's project, there will be a mistake, is the package error.is the first line of the picture below, modify the package name according to the ADT hintThen, this time, ADT will help you build the APK under the \bin\res f
writable); 4. there are two ways to load the sd image when the simulator starts: command line: emulator-avd avdname-sdcard filename. iso. In eclipse, you need to add the sdcard parameter to target in the running configuration folder dialog box. In the "run configuration" dialog box, enter "-sdcard filename" at the bottom of the target tag. iso is OK.] 5. [You can complete the above cmd operations in eclipse] 4. how to install the APK image
Machine. Do not disable it after startup, open a cd in the cmd window to the directory where you put the apk. Enter adb install xxx.apk. if you put the qq.apk on disk d, enter d: enter in the cmd window, enter adbinstall qq.apk and press Enter. After that, success will be installed. Now you can see if QQ has appeared in the virtual machine. Enjoy!
If you have already installed it, an error occurs.
There
I am also learning about the APK structure by referring to the materials on other websites. In this article, I will give a brief description. In the next article, I will refer to the detailed examples. The APK file is actually a zip package and can be unzipped. The following figure shows the content after the helloworld.apk f
we use HTML5 to develop applications and simply encapsulate them into APK files?1. webview in Android SDK1. instantiate the webview component in the activity: webview = new webview (this );2. Call the webview loadurl () method to set the web page to be displayed in wevview:For Internet: webview. loadurl ("http://www.31358.com ");Local file: webview. loadurl ("file
First, build the environment 1. Installing the JDK and Android SDK 2. Configure Environment variablesD:\android-sdk-windows\toolsC:\Program Files\java\jdk1.6.0_20\bin3. Example InformationProject directory: D:\ProjectDemoSDK Directory: D:\android-sdk-windows\platforms\android-8\Second, the command line to compile the Android project 1. Generate R file 2. Java code generation class file 3. class
You can encapsulate HTML5 into an android APK file by using the following methods,
More and more developers are keen to use html5 + JavaScript to develop mobile Web apps. However, it is still unknown whether HTML5 Web apps can replace mobile apps in the future. On the one hand, users do not like to enter complex URLs in their browsers. On the other hand, Html5 Web apps are stored on the server and data tran
first step to download something and put it in the appropriate folder. 3. To the anti-compilation of the apk file suffix to zip and unzip, get the Classes.dex, it is the Java file compilation and then through the DX tool packaging, the classes.dex copied to the 2nd step extracted by theDex2jar.batThe folder where you are located. 4. Position the command line toD
, contacts, sounds and vibrations, and PhoneGap has a rich plug-in, You can extend unlimited functionality with this. PhoneGap is free, but it requires additional software from a specific platform, such as the iphone sdk,android Android SDK for iphones, etc.For detailed methods, see: Http://phonegap.com/start#androidPros: Add SDK in Eclipse, programming freedom, perfect fit for different device screen size, suitable for master use.Cons: Without using layouts, loading pages directly and not addin
free, but it requires additional software from a specific platform, such as the iphone sdk,android Android SDK for iphones, etc.For detailed methods, see: Http://phonegap.com/start#androidPros: Add SDK in Eclipse, programming freedom, perfect fit for different device screen size, suitable for master use.Cons: Without using layouts, loading pages directly and not adding ads.Third, the use of Rexsee online generationRexsee is an open source Android dev
1. Run SDK Manager, select a simulator, and run the simulator.
SDK Manager Application
Open Simulator
2. Copy the apk file to the platform-tools directory (default: C: \ Program Files \ Android \ android-sdk-windows \ platform-tools ). To facilitate installation, name it game.apk.
3. Click Start → run. Enter cmd to open
APK File Analysis-AndroidAfter Android is packaged, an APK file is generated.The APK file is actually a zip file.For example, if you change the suffix of filecycler.apk to zip, it becomes filecycler.zip.The ultimate
In the recent use of MAVEN, encountered a problem, with Maven launched the APK has problems can not start, but the idea of packaging is normal.The problem with the log is that there is a problem with one of the resources in the Apklib form of a dependency package. Anti-compilation vs. maven package and idea package to find out where the problem lies.Assumption: The main module package is named Com.android.main apklib Dependency package named Com.andr
Fix IE apk into zip:android mobile app file download server configuration workaroundThe apk file is actually in the zip format, but the suffix name is modified to APK, after decompression through unzip, you can see the Dex file, D
preparatory work
Download the anti-compilation tool Apktool, Dex2jar
Jar View tool Jd-gui for Mac
: http://download.csdn.net/detail/linsen618/86682091. Decompile The resource file
Open the terminal CD to the directory that holds the Apktool (you can use LS to view the folders in the current directory, and then keep looking for CDs to APKTOOL)
Input chmod +x apktool
How to install the apk in the assets file in android
Install the apk file under the assets Directory in your app
Public class MainActivity extends Activity {Context mContext; @ Overrideprotected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); setContentView (R. layout. activity_main);
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.