Game Development Reference
In-Depth Information
Figure 11-7. New File window dialog
Type in “Android.mk” for the file name, and click the Finish button to create the new file. Double-click
the file in the Package Explorer window to bring up the text in the Eclipse source code area. Copy
the makefile code from Listing 11-6 to the new file and save it by selecting File ➤ Save All.
Next, repeat the previous steps to create a new file for the C source code file, which will be named
“hello-jni.c.” Copy the source code shown in Listing 11-7 to hello-jni.c .
 
Search WWH ::




Custom Search