首次提交

This commit is contained in:
2026-07-13 11:33:59 +08:00
commit 976c14cd65
105 changed files with 4498 additions and 0 deletions
@@ -0,0 +1,26 @@
package com.example.keeping_accounts;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.keeping_accounts", appContext.getPackageName());
}
}
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.keeping_accounts">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@drawable/arkuix"
android:label="@string/app_name"
android:extractNativeLibs="true"
android:supportsRtl="true"
android:theme="@android:style/Theme.Light.NoTitleBar">
<activity android:exported="true" android:name=".LodefusiLodefusiAbilityActivity"
android:windowSoftInputMode="adjustResize |stateHidden"
android:configChanges="orientation|keyboard|layoutDirection|screenSize|uiMode|smallestScreenSize|density"
>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
@@ -0,0 +1,24 @@
package com.example.keeping_accounts;
import android.os.Bundle;
import android.util.Log;
import ohos.stage.ability.adapter.StageActivity;
/**
* Example ace activity class, which will load ArkUI-X ability instance.
* StageActivity is provided by ArkUI-X
* @see <a href=
* "https://gitee.com/arkui-x/docs/blob/master/zh-cn/application-dev/tutorial/how-to-integrate-arkui-into-android.md">
* to build android library</a>
*/
public class LodefusiLodefusiAbilityActivity extends StageActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.e("HiHelloWorld", "LodefusiLodefusiAbilityActivity");
setInstanceName("com.example.keeping_accounts:lodefusi:LodefusiAbility:");
super.onCreate(savedInstanceState);
}
}
@@ -0,0 +1,25 @@
package com.example.keeping_accounts;
import android.util.Log;
import ohos.stage.ability.adapter.StageApplication;
/**
* Example ace application class, which will load ArkUI-X application instance.
* StageApplication is provided by ArkUI-X
* @see <a href=
* "https://gitee.com/arkui-x/docs/blob/master/zh-cn/application-dev/tutorial/how-to-integrate-arkui-into-android.md">
* to build android library</a>
*/
public class MyApplication extends StageApplication {
private static final String LOG_TAG = "HiHelloWorld";
private static final String RES_NAME = "res";
@Override
public void onCreate() {
Log.e(LOG_TAG, "MyApplication");
super.onCreate();
Log.e(LOG_TAG, "MyApplication onCreate");
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

@@ -0,0 +1,3 @@
<resources>
<string name="app_name">keeping_accounts</string>
</resources>
@@ -0,0 +1,17 @@
package com.example.keeping_accounts;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}