Listing 116 srccomcookbookadvancendkndkjava

package com.cookbook.advance.ndk;

import; import android.widget.TextView; import android.os.Bundle; public class ndk extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this);

tv.setText(" native calculation on factorial :"+factorial(30)); setContentView(tv);

public static native int factorial(int n); static {


SSDQ 12:30 AM

Hellojm native calculation on factorial :1409286144

Figure 11.2 Output of the NDK application.

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook

Post a comment