Watch
0
0
Fork
You've already forked hyperhive
0

vm-tests: build a sample android app offline in the android-dev archetype

This commit is contained in:
damocles 2026-11-22 11:58:59 +01:00 • committed by mara
commit 36a8b4fa1f
3 changed files with 235 additions and 10 deletions

View 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>

View file

@ -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);
}
}

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">hyperhive sample</string>
</resources>