5383
|
1 |
package org.xeli.dataapk;
|
|
2 |
|
|
3 |
import android.app.Activity;
|
|
4 |
import android.os.Bundle;
|
|
5 |
import android.view.View;
|
|
6 |
import android.view.View.OnClickListener;
|
|
7 |
import android.widget.Button;
|
|
8 |
|
|
9 |
public class MainActivity extends Activity {
|
|
10 |
|
|
11 |
private MainActivity thisActivity = this;
|
|
12 |
|
|
13 |
public void onCreate(Bundle savedInstanceState) {
|
|
14 |
super.onCreate(savedInstanceState);
|
|
15 |
setContentView(R.layout.main);
|
|
16 |
|
|
17 |
Button b = (Button)findViewById(R.id.startCopy);
|
|
18 |
b.setOnClickListener(startCopyClicker);
|
|
19 |
}
|
|
20 |
|
|
21 |
private OnClickListener startCopyClicker = new OnClickListener(){
|
|
22 |
public void onClick(View arg0) {
|
|
23 |
AssetsToSDCard runnable = new AssetsToSDCard(thisActivity, false, "/sdcard");
|
|
24 |
Thread t = new Thread(runnable, "Assets2SDCard - Thread");
|
|
25 |
t.start();
|
|
26 |
}
|
|
27 |
|
|
28 |
};
|
|
29 |
|
|
30 |
} |