Rename net/hanshq/hello
to com/robust_image_source_identification_on_modern_smartphones/camera
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="net.hanshq.hello"
|
package="com.robust_image_source_identification_on_modern_smartphones.camera"
|
||||||
versionCode="1"
|
versionCode="1"
|
||||||
versionName="0.1">
|
versionName="0.1">
|
||||||
<uses-sdk android:minSdkVersion="33"/>
|
<uses-sdk android:minSdkVersion="33"/>
|
||||||
<application android:label="Hello">
|
<application android:label="Camera">
|
||||||
<activity android:name=".MainActivity" android:exported="true">
|
<activity android:name=".MainActivity" android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
@@ -2,8 +2,8 @@ SDK_FOLDER=/usr/lib/android-sdk
|
|||||||
PLATFORM=$SDK_FOLDER/platforms/android-33
|
PLATFORM=$SDK_FOLDER/platforms/android-33
|
||||||
BUILD_TOOLS=$SDK_FOLDER/build-tools/30.0.3
|
BUILD_TOOLS=$SDK_FOLDER/build-tools/30.0.3
|
||||||
|
|
||||||
SOURCE_FOLDER=net/hanshq/hello
|
SOURCE_FOLDER=com/robust_image_source_identification_on_modern_smartphones/camera
|
||||||
APP_NAME=Hello
|
APP_NAME=Camera
|
||||||
|
|
||||||
mkdir -p build/gen build/apk
|
mkdir -p build/gen build/apk
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package net.hanshq.hello;
|
package com.robust_image_source_identification_on_modern_smartphones.camera;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@@ -15,6 +15,6 @@ public class MainActivity extends Activity {
|
|||||||
TextView text = (TextView)findViewById(R.id.my_text);
|
TextView text = (TextView)findViewById(R.id.my_text);
|
||||||
Context context = getApplicationContext();
|
Context context = getApplicationContext();
|
||||||
BatteryManager batteryManager = (BatteryManager)context.getSystemService(Context.BATTERY_SERVICE);
|
BatteryManager batteryManager = (BatteryManager)context.getSystemService(Context.BATTERY_SERVICE);
|
||||||
text.setText("Hello, worldeee!" + batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CHARGE_COUNTER));
|
text.setText("Hello, worldg!" + batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CHARGE_COUNTER));
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user