The Android compiling environment is complex, and unlike the normal compiling environment: Only Makefile files are available in the top-level directory, while each other component uses the unified standard Android. mk. android. the mk file itself is relatively simple, but it is not a familiar Makefile, but a lot of processing through the Android compilation system. Therefore, it is still complicated to unde
Dear friends, you may encounter problems such as the title.
I wrote an android project using Eclipse, but this project requires a hidden class of the SDK. All the classes that I want to compile under the source code will encounter errors after each mm, the prompt is that the corresponding class cannot be found.
The four jar packages that I need to add are as follows:
Org. apache. commons. codec-1.7.0.jar
Org. knopflerfish. bundle. kxml-LIB-2.3.0.jar
Osgi. cmpn-4.3.0.jar
Osgi. core-4.3.0.jar
I h
Command to package the so file into the apkUse the original code of the android SDK to develop the APK and package the so file into the apk. This can only provide the user with an apk.1. Meaning full-code so packaging.A) create a project and use local calls. The java file is as follows:Package test. jni;Import android. app. Activity;Import android. OS. Bundle;Import android. widget. TextView;Public class jnitest extends Activity {/** Called when the activity is first created .*/@ OverridePublic
Android-Control Factors for compiling and installing modules, androidmodule
In the previous article, Android-compiled system initialization settings had a resolution-compiledTARGET_BUILD_VARIANTConfiguration and basic differences,
Some of the compilation controls are correct, butLOCAL_MODULE_TAGSThe current version of android4.2 is not fully applicable to the control. Here we record the control process of the Module.
Not easy to write, reproduced please indicate the source: http://blog.csdn.net
(). inflate (R. menu. activity_main, menu );Return true;}}
(2) generate the. h header file and go to the bin/classes directory of the project under the windows command line to execute the command:
Javah-classpath.-d jni com. jun. jnitest. MainActivity
The required header file is generated under the jni directory in the current directory.
(3) create the Application. mk file in the project directory.
APP_PROJECT_PATH: = $ (call my-dir)
APP_MODULES:
I. The nature of inheritance1, in the C + + compiler's internal class can be understood as the structure body2. Subclasses are the new members of the parent class that are superimposed on the child class.Ii. The nature of polymorphism1. When a virtual function is declared in a class, the compiler generates a virtual function table in the class2. A virtual function table is a data structure that stores the address of a member function3, virtual function table is automatically generated and mainta
1. Environment: path of Windows XP SP1 ntddk (win2kddk) VC ++ 6.0ntddk: D:/ntddkddk: setenvcallbuild. bat builddriver. bat makefile. MK sourcesetenvcallbuild. bat is the command line (msdos) Execution file. The parameters are checked wxp or free wxp builddriver. bat is setenvcallbuild. files called by bat. Makefile. mk source is the file used by build-CZ. You do not need to modify makefile and makefile.
It took two weeks to compile the recovery recently. Now, let's take a look.
After the CM source code is synchronized, the built-in rwm recovery source code is available in the bootloader directory.
Bytes -----------------------------------------------------------------------------------------
Taking ZTE's v880 + as an example, compiling recovery requires the following files:
/Device/ZTE/blade/kernel(ZTE is the vendor directory, blade is the model name, and kernel is boot. IMG extraction)
/Device
------------------------> Branch integration
1) view the branch modification log
SVN log-stop-on-copy branch name
For example:
SVN log -- stop-on-copy SVN: // 192.168.10.4/alps_gb2_v2.10_mt6515_mt6626_nand_rgt/branches/jiayusheng/G101_jys_20120820_GYLYSW-40
2) branches of merge to the local trunk or branch
As shown in, the earliest version of the obtained branch is 1645
Then, you only need to select the earliest merge version number to the latest version number range.
The statement is as follows
How to preset Android APKThere are four premade APK cases:
1. How to preset the APK with source code into the system?2. How to preset the APK without source code into the system?3. How does one preset the APK so that users can uninstall it and cannot restore it when restoring the factory settings?4. How does one preset the APK so that users can unmount it and restore it when restoring the factory settings?
The method to implement the pre-fabricated APK is as follows;
I. How to preset the APK wi
directoryAndroid. mk
(2) compile C language code
A) write C language code
Create a C language file in the jni directory of the Android project and write the code that calls SDL2. Note that the main function name in the C language code is the same as that in the command line program. It is still "main (int argc, char * argv [])".
B) modify the Android. mk File
Append a piece of code behind the Android.
only used to provide users with complex Web interfaces, using native code through JNI may reduce the performance. There are no written rules on when to use and when not to use NDK. the preceding rules only provide some general principles and issues that need attention.
Obtain NDK
Developers can obtain the latest NDK version at http://developer.android.com/sdk/ndk/index.html. In the latest version of NDK r6b, NDK can be used to build native libraries based on ARM * and x86 (Intel Atom micro-arch
directory is used to store things related to C ++ code, obj stores the middleware generated during C ++ compilation. The generated library is written to the libs folder.The following file is generated in the jni Folder:. Cpp, an Android. mk, where. Cpp is automatically generated and used to write C ++, while Android. mk is similar to CMakeList in C ++. It is used to specify the file to be compiled and the
MAatkitis a set of open source toolkits forMySQLhelp with the daily management of the WhichMk-table-checksumcan be used to detectMasterand theslavethe table structure and data are consistent. At the same time, throughMk-table-synctool to repair unsynchronized data when the master-slave data is found to be inconsistent. Lab Environment:master:192.168.189.143:3306slave:192.168.189.144:33061: Installation Maatikit tools. installation Perl Environment:#wget http://packages.sw.be/perl-TermReadKey/pe
From: http://www.diybl.com/course/3_program/java/android/20110909/560268.html
Http://www.kandroid.org/online-pdk/guide/release_keys.html
Configure a new product
DetailsThe following steps describe how to configure makefile for new mobile devices and other devices running Android.
1. Create a company directory device/vendor
Mkdir vendor/
2. Create a products directory
Mkdir vendor/
3. Create a makefile dedicated to product configuration, which is named vendor/
$ (Call inherit-product, $ (src_targ
platforms)| -- Recovery (related to the recovery function of the target)'-- System (some underlying libraries of Android)
The bionic directory is displayed as follows:Bionic/| -- Android. mk| -- Libc| -- Libdl| -- Libm| -- Libstdc ++| -- Libthread_db'-- Linker
Two levels of bootloader directory expansion:Bootloader/'-- Legacy| -- Android. mk| -- Readme| -- Arch_armv6| -- Arch_msm7k| -- Fastboot_protocol.tx
HUM tactical set1. Wanjin Tactics
This tactic has been popular since the ROC era and has been sustained. After the weakening of version updates, there have been an endless stream of tactics for improvement.Basic force composition: MAGE (AM) Hill (MK) firegun (RM) priest witch (men and women)Suitable for Race Competition: orc ne ud (so called hichina oil)Suitable map: basically all SOLO maps
Advantage: With Alibaba Cloud mobile security-water elements
1. determine the language and country comparison table. The Persian comparison is as follows:
Fa_ir
2. Based on build \ target \ product \ SDK. mk
$ (Call inherit-product-if-exists, frameworks/base/data/fonts. mk) $ (call inherit-product-if-exists, frameworks/base/data/keyboards. mk) $ (call inherit-product, $ (src_target_dir)/product/core.
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.