Research Article
Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
Algorithm 3
Programming with HPO.
FooBarClient.java | package com.elastos.hpo.foobar; | import com.elastos.hpo.R; | import com.elastos.hpo.foobar.FooBar; | | public class foobarclient extends Activity { | private final FooBar fb = new FooBar(); | private TextView txt1; | private TextView txt2; | public void onCreate(Bundle savedInstanceState) { | | int value = fb.foo(2, 3); | this.txt1.setText(Integer.toString(value)); | String str = fb.bar(); | this.txt2.setText(str); | } | } |
|