1 package com.android.tests.basicprojectwithjar; 2 3 import com.android.tests.basicjar.Foo; 4 5 import android.app.Activity; 6 import android.os.Bundle; 7 import android.widget.TextView; 8 9 public class Main extends Activity { 10 /** Called when the activity is first created. */ 11 @Override 12 public void onCreate(Bundle savedInstanceState) { 13 super.onCreate(savedInstanceState); 14 setContentView(R.layout.main); 15 16 Foo foo = new Foo(); 17 int a = foo.getRandomFoo(); 18 19 TextView tv = (TextView) findViewById(R.id.text); 20 tv.setText("BasicProjectWithJar: Value from Jar: " + a); 21 } 22 } 23