Skip to content

Commit 485e806

Browse files
authored
Load OboeTester application wide (#2364)
1 parent c389048 commit 485e806

3 files changed

Lines changed: 29 additions & 5 deletions

File tree

apps/OboeTester/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
3232

3333
<application
34+
android:name=".OboeTesterApplication"
3435
android:icon="@mipmap/ic_launcher"
3536
android:label="@string/app_name"
3637
android:supportsRtl="true"

apps/OboeTester/app/src/main/java/com/mobileer/oboetester/MainActivity.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ public class MainActivity extends BaseOboeTesterActivity {
5050
public static final String VALUE_TEST_NAME_INPUT = "input";
5151
public static final String VALUE_TEST_NAME_CPU_LOAD = "cpu_load";
5252

53-
static {
54-
// Must match name in CMakeLists.txt
55-
System.loadLibrary("oboetester");
56-
}
57-
5853
private Spinner mModeSpinner;
5954
private TextView mCallbackSizeEditor;
6055
protected TextView mDeviceView;
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2026 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.mobileer.oboetester;
18+
19+
import android.app.Application;
20+
21+
public class OboeTesterApplication extends Application {
22+
23+
@Override
24+
public void onCreate() {
25+
super.onCreate();
26+
System.loadLibrary("oboetester");
27+
}
28+
}

0 commit comments

Comments
 (0)