목록Android (43)
에이치의 모바일 앱 개발
1. APK 파일 추출 adb devices adb shell pm list package -f adb shell pm list packages -f > test.txt C:\Users\lsh\AppData\Local\Android\sdk\platform-tools> adb pull /data/app/com.lsh.app.locationcomparative-2/base.apk 2. APK 파일 압축 해제.apk 를 .zip 변환하여 압축을 푼다. 1. https://github.com/pxb1988/dex2jar dex2jar-2.0.zip - dex를 jar 파일로 변환해주는 툴 2. http://jd.benow.ca/ - JD-GUI : 디컴파일 하는툴or jadxgui (디컴파일 실패 파일을 최소화..
그래들 파일 내 플러그인 변경apply plugin: 'com.android.library' applycationId, versionCode, versionName 항목 제거아래 소스 추가 //task to delete the old iar task deleteOldJar(type: Delete) { delete 'release/AndroidPlugin.jar' } //task to export contents as jar task exportJar(type: Copy) { from('build/intermediates/bundles/release/') into('release/') include('classes.jar') //Give whatever name you want to give rename(..
자바 코드에서 설정하기@Override protected void onCreate(Bundle savedInstaceState) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); super.onCreate(savedInstaceState); } manifest 에서 설정하기
/** * Create by lsh on 2016-08-26 * version 1.0.2 */ private void otherAppConnection() { Intent intent = new Intent(); intent = this.getPackageManager().getLaunchIntentForPackage("com.minibot119.otherapp"); intent.setAction("android.intent.action.applink"); startActivity(intent);} private void otherAppActivityConnection() { Intent intent = new Intent(); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_T..
/** * Created by lsh on 2016-08-04. * version 1.0.1 */ public class ReStartApp { // context
/** * Created by lsh on 2016-08-03. * version 1.0.1 */ public class ErrorMessageDialogActivity extends Activity { private Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; Init(); } private void Init() { requestWindowFeature(Window.FEATURE_NO_TITLE); this.setFinishOnTouchOutside(false); Intent intent = getIntent();..
manifast setting version 1.0.2 uncaughtexception application version 1.0.2 import android.app.Application; import android.content.Intent; import android.os.Looper; import android.widget.Toast; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import java.lang.Thread.UncaughtExceptionHandler; /** * Created by lsh on 2016-08-03. * version 1.0.2 */ public class UnCaugh..
[1]파일 접근 경로 종류입니다.getFileDir() : 앱 내부 디렉토리getCacheDir() : 앱 캐시 디렉토리 외부 저장소 접근시 WRITE_EXTERNAL_STORAGE 권한을 등록하고, Environment.getExternalStorageState() 함수를 호출하여 사용가능를 확인합니다.ex )Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); 참고로 getExternalFilesDir() 내 파일은 앱 삭제시 보존이 안되며, 유지를 원한다면 getExternalStoragePublickDirectory() 함수를 사용하면 됩니다.ex)new File(this.getExternalFilesDir(Environ..
/** * Created by lsh on 2016-06-29. * version 1.0.1 */ public class DBunzip extends AsyncTask { private String zipFile; //저장된 zip 파일 위치 private String localFolderPath; //압출을 풀 위치 private Context context; private int version; public DBunzip(Context context, int version, String zipFile, String localFolderPath) { this.context = context; this.version = version; this.zipFile = zipFile; this.localFold..
/** * Created by lsh on 2016-06-29. * version 1.0.1 */ public class DBFileDownload extends AsyncTask { private Context context; private String serverPath, localFolderPath, localFilePath; private int version; public DBFileDownload(Context context, int version, String serverPath, String localFolderPath, String localFilePath) { this.context = context; this.version = version; this.serverPath = serve..