This next function will demonstrate the ability to not only return values, but to return an object, such as a String. Add the following function to native.c.
接下来的函数将不仅演示返回值的能力,还会演示返回例如字符串这样的对象的能力。
You can use this as a template for other roles you want to add to your model. To test this function, do the following.
可以使用此X ML作为您希望添加到模型的其他角色的模板。
Go back to the functions.php file and add a function called following , shown in Listing 12.
回到functions . php文件,添加一个名为following的函数,如清单12所示。
Expand libraries and use the Add function to make the following libraries available to our tests.
展开Libraries,并使用Add功能使以下库可用于我们的测试。
The Redbook shows how to add new menu options to the action bar using two examples. One adds a function for showing a Web page — in the case of the following example, the ITSO IBM Redbook Web page.
Redbook使用两个例子说明了如何向操作栏添加新的菜单选项。
Now, within the jni folder, create a file called native.c. Place the following C code in this file to start; we’ll add another function later
现在,在jni文件夹中,创建一个叫做native.c 的文件。
The following example shows a skeleton definition of a generic dictionary class, including a skeleton function to add a new entry to the dictionary.
下列范例会显示泛型字典类别的基本架构定义,包括将新项目加入至字典的基本架构函式。
The following example shows a skeleton definition of a generic dictionary class, including a skeleton function to add a new entry to the dictionary.
下列范例会显示泛型字典类别的基本架构定义,包括将新项目加入至字典的基本架构函式。
应用推荐