vm-tests: build a sample android app offline in the android-dev archetype
This commit is contained in:
parent
f7f8c208b3
commit
36a8b4fa1f
3 changed files with 235 additions and 10 deletions
11
nix/vm-tests/android-dev-sample/src/main/AndroidManifest.xml
Normal file
11
nix/vm-tests/android-dev-sample/src/main/AndroidManifest.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:label="@string/app_name">
|
||||
<activity android:name=".MainActivity" android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package test.hyperhive.sample;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
TextView view = new TextView(this);
|
||||
view.setText(R.string.app_name);
|
||||
setContentView(view);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">hyperhive sample</string>
|
||||
</resources>
|
||||
Loading…
Reference in a new issue