修改package id为: com.xypower.mpapp

serial
Matthew 2 years ago
parent 87b84172d0
commit 05b0199819

@ -6,11 +6,11 @@ def AppVersionName = "1.0.14"
def AppVersionCode = ((1 * 100 + 1) * 100 + 0) * 10 + 14 def AppVersionCode = ((1 * 100 + 1) * 100 + 0) * 10 + 14
android { android {
namespace 'com.xinyingpower.microphoto' namespace 'com.xypower.mpapp'
compileSdk 33 compileSdk 33
defaultConfig { defaultConfig {
applicationId "com.xinyingpower.microphoto" applicationId "com.xypower.mpapp"
minSdk 28 minSdk 28
//noinspection ExpiredTargetSdkVersion //noinspection ExpiredTargetSdkVersion
targetSdk 28 targetSdk 28

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.content.Context; import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.platform.app.InstrumentationRegistry;

@ -42,7 +42,7 @@ bool GetJniEnv(JavaVM *vm, JNIEnv **env, bool& didAttachThread)
// #include "client/linux/handler/minidump_descriptor.h" // #include "client/linux/handler/minidump_descriptor.h"
extern "C" JNIEXPORT jstring JNICALL extern "C" JNIEXPORT jstring JNICALL
Java_com_xinyingpower_microphoto_MainActivity_stringFromJNI( Java_com_xypower_microphoto_MainActivity_stringFromJNI(
JNIEnv* env, JNIEnv* env,
jobject /* this */) { jobject /* this */) {
std::string hello = "Hello from C++"; std::string hello = "Hello from C++";
@ -50,7 +50,7 @@ Java_com_xinyingpower_microphoto_MainActivity_stringFromJNI(
} }
extern "C" JNIEXPORT jboolean JNICALL extern "C" JNIEXPORT jboolean JNICALL
Java_com_xinyingpower_microphoto_MainActivity_takePhoto( Java_com_xypower_microphoto_MainActivity_takePhoto(
JNIEnv* env, JNIEnv* env,
jobject pThis, jint channel, jint preset, jstring path, jstring fileName) { jobject pThis, jint channel, jint preset, jstring path, jstring fileName) {
@ -88,7 +88,7 @@ Java_com_xinyingpower_microphoto_MainActivity_takePhoto(
} }
extern "C" JNIEXPORT jlong JNICALL extern "C" JNIEXPORT jlong JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_init( Java_com_xypower_microphoto_MicroPhotoService_init(
JNIEnv* env, JNIEnv* env,
jobject pThis, jstring appPath, jstring ip, jint port, jstring cmdid, jint protocol, jint networkProtocol) { jobject pThis, jstring appPath, jstring ip, jint port, jstring cmdid, jint protocol, jint networkProtocol) {
@ -134,7 +134,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_init(
} }
extern "C" JNIEXPORT jboolean JNICALL extern "C" JNIEXPORT jboolean JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_notifyToTakePhoto( Java_com_xypower_microphoto_MicroPhotoService_notifyToTakePhoto(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler, jint channel, jint preset, jlong scheduleTime, jstring path, jstring fileName, jboolean sendToCma) { jobject pThis, jlong handler, jint channel, jint preset, jlong scheduleTime, jstring path, jstring fileName, jboolean sendToCma) {
@ -154,7 +154,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_notifyToTakePhoto(
} }
extern "C" JNIEXPORT jboolean JNICALL extern "C" JNIEXPORT jboolean JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_sendHeartbeat( Java_com_xypower_microphoto_MicroPhotoService_sendHeartbeat(
JNIEnv* env, JNIEnv* env,
jobject pThis, jobject pThis,
jlong handler) { jlong handler) {
@ -171,7 +171,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_sendHeartbeat(
} }
extern "C" JNIEXPORT jboolean JNICALL extern "C" JNIEXPORT jboolean JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_fireTimeout( Java_com_xypower_microphoto_MicroPhotoService_fireTimeout(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler, jlong uid, jlong times) { jobject pThis, jlong handler, jlong uid, jlong times) {
@ -187,7 +187,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_fireTimeout(
} }
extern "C" JNIEXPORT void JNICALL extern "C" JNIEXPORT void JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_updatePosition( Java_com_xypower_microphoto_MicroPhotoService_updatePosition(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler, jdouble lon, jdouble lat, jlong ts) { jobject pThis, jlong handler, jdouble lon, jdouble lat, jlong ts) {
@ -203,7 +203,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_updatePosition(
} }
extern "C" JNIEXPORT jboolean JNICALL extern "C" JNIEXPORT jboolean JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_uninit( Java_com_xypower_microphoto_MicroPhotoService_uninit(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler) { jobject pThis, jlong handler) {
@ -222,7 +222,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_uninit(
} }
extern "C" JNIEXPORT jlong JNICALL extern "C" JNIEXPORT jlong JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_getHeartbeatDuration( Java_com_xypower_microphoto_MicroPhotoService_getHeartbeatDuration(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler) { jobject pThis, jlong handler) {
@ -236,7 +236,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_getHeartbeatDuration(
} }
extern "C" JNIEXPORT jlongArray JNICALL extern "C" JNIEXPORT jlongArray JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_getPhotoTimeData( Java_com_xypower_microphoto_MicroPhotoService_getPhotoTimeData(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler) { jobject pThis, jlong handler) {
@ -302,7 +302,7 @@ Java_com_xinyingpower_microphoto_MicroPhotoService_getPhotoTimeData(
/* /*
extern "C" JNIEXPORT jlongArray JNICALL extern "C" JNIEXPORT jlongArray JNICALL
Java_com_xinyingpower_microphoto_MicroPhotoService_getNextScheduleItem( Java_com_xypower_microphoto_MicroPhotoService_getNextScheduleItem(
JNIEnv* env, JNIEnv* env,
jobject pThis, jlong handler) { jobject pThis, jlong handler) {

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.app.AlarmManager; import android.app.AlarmManager;
import android.content.Context; import android.content.Context;

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;

@ -1,19 +1,14 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.app.Service; import android.app.Service;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.graphics.PixelFormat;
import android.graphics.Rect; import android.graphics.Rect;
import android.os.Build;
import android.os.IBinder; import android.os.IBinder;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.util.DisplayMetrics;
import android.util.Log; import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View; import android.view.View;
import android.view.WindowManager; import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodManager;

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.Manifest; import android.Manifest;
import android.content.Context; import android.content.Context;

@ -1,21 +1,17 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.Manifest; import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.graphics.Path;
import android.graphics.SurfaceTexture; import android.graphics.SurfaceTexture;
import android.hardware.Camera; import android.hardware.Camera;
import android.location.Location; import android.location.Location;
import android.location.LocationListener; import android.location.LocationListener;
import android.location.LocationManager; import android.location.LocationManager;
import android.media.MediaRecorder;
import android.os.Build; import android.os.Build;
import android.os.Environment; import android.os.Environment;
import android.os.Handler; import android.os.Handler;
import android.os.PowerManager;
import android.os.SystemClock; import android.os.SystemClock;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
@ -33,7 +29,7 @@ import android.view.WindowManager;
import android.widget.Toast; import android.widget.Toast;
import com.dowse.camera.client.DSCameraManager; import com.dowse.camera.client.DSCameraManager;
import com.xinyingpower.microphoto.databinding.ActivityMainBinding; import com.xypower.mpapp.databinding.ActivityMainBinding;
//import com.xinyingpower.microphoto.request.INettyMessageListener; //import com.xinyingpower.microphoto.request.INettyMessageListener;
//import com.xinyingpower.microphoto.request.NettyChatClient; //import com.xinyingpower.microphoto.request.NettyChatClient;
@ -49,9 +45,6 @@ import java.lang.reflect.Method;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import android.content.SharedPreferences;
import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -687,6 +680,7 @@ public class MainActivity extends AppCompatActivity {
} }
} }
public static String getVersionName(Context context) {
String verName = ""; String verName = "";
try { try {
verName = context.getPackageManager(). verName = context.getPackageManager().

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.app.AlarmManager; import android.app.AlarmManager;
import android.app.Notification; import android.app.Notification;

@ -1,11 +1,7 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.content.Context; import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager; import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
public class PositionManager { public class PositionManager {
private static final String GPS_LOCATION_NAME = android.location.LocationManager.GPS_PROVIDER; private static final String GPS_LOCATION_NAME = android.location.LocationManager.GPS_PROVIDER;

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;

@ -1,14 +1,11 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.telephony.SmsMessage; import android.telephony.SmsMessage;
import android.util.Log; import android.util.Log;
import android.widget.Toast;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;

@ -1,4 +1,4 @@
package com.xinyingpower.microphoto; package com.xypower.mpapp;
import org.junit.Test; import org.junit.Test;
Loading…
Cancel
Save