| | |
| | | android:value="1075838976.000000" /> |
| | | <meta-data |
| | | android:name="com.samsung.android.keepalive.density" |
| | | android:value="true" /> |
| | | <meta-data |
| | | android:name="android.notch_support" |
| | | android:value="true" /> |
| | | android:value="true" /> <!-- <meta-data --> |
| | | <!-- android:name="android.notch_support" --> |
| | | <!-- android:value="true" /> --> |
| | | <meta-data |
| | | android:name="notch.config" |
| | | android:value="portrait|landscape" /> |
| | | android:value="none" /> |
| | | <meta-data |
| | | android:name="android.vendor.full_screen" |
| | | android:value="true" /> |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | * 外部存储根目录地址 |
| | | */ |
| | | public static final int ExteneralStorage = 11; |
| | | |
| | | public static final int CopyOneAsset = 12; |
| | | /** |
| | | * -------------------------------------------------------------------------------------------- |
| | | * 以下为各自项目SDK相关 |
| | |
| | | }).start(); |
| | | } |
| | | |
| | | public static void copy(Context context, String fileName) |
| | | { |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | | FileOutputStream _fos = new FileOutputStream(new File(_destPath)); |
| | | byte[] _buffer = new byte[1024]; |
| | | int _byteCount; |
| | | while ((_byteCount = _is.read(_buffer)) != -1) |
| | | { |
| | | _fos.write(_buffer, 0, _byteCount); |
| | | } |
| | | _fos.flush(); |
| | | _is.close(); |
| | | _fos.close(); |
| | | LogUtil.i("FileUtil", "单独拷贝 => 文件: " + _originalPath + " 已拷贝至: " + _destPath); |
| | | } catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public static void copy(Context context, String original, String dest) |
| | | { |
| | | try |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity, _json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | * 外部存储根目录地址 |
| | | */ |
| | | public static final int ExteneralStorage = 11; |
| | | |
| | | public static final int CopyOneAsset = 12; |
| | | /** |
| | | * -------------------------------------------------------------------------------------------- |
| | | * 以下为各自项目SDK相关 |
| | |
| | | }).start(); |
| | | } |
| | | |
| | | public static void copy(Context context, String fileName) |
| | | { |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | | FileOutputStream _fos = new FileOutputStream(new File(_destPath)); |
| | | byte[] _buffer = new byte[1024]; |
| | | int _byteCount; |
| | | while ((_byteCount = _is.read(_buffer)) != -1) |
| | | { |
| | | _fos.write(_buffer, 0, _byteCount); |
| | | } |
| | | _fos.flush(); |
| | | _is.close(); |
| | | _fos.close(); |
| | | LogUtil.i("FileUtil", "单独拷贝 => 文件: " + _originalPath + " 已拷贝至: " + _destPath); |
| | | } catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public static void copy(Context context, String original, String dest) |
| | | { |
| | | try |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity,_json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | * 外部存储根目录地址 |
| | | */ |
| | | public static final int ExteneralStorage = 11; |
| | | |
| | | public static final int CopyOneAsset = 12; |
| | | /** |
| | | * -------------------------------------------------------------------------------------------- |
| | | * 以下为各自项目SDK相关 |
| | |
| | | }).start(); |
| | | } |
| | | |
| | | public static void copy(Context context, String fileName) |
| | | { |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | | FileOutputStream _fos = new FileOutputStream(new File(_destPath)); |
| | | byte[] _buffer = new byte[1024]; |
| | | int _byteCount; |
| | | while ((_byteCount = _is.read(_buffer)) != -1) |
| | | { |
| | | _fos.write(_buffer, 0, _byteCount); |
| | | } |
| | | _fos.flush(); |
| | | _is.close(); |
| | | _fos.close(); |
| | | LogUtil.i("FileUtil", "单独拷贝 => 文件: " + _originalPath + " 已拷贝至: " + _destPath); |
| | | } catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public static void copy(Context context, String original, String dest) |
| | | { |
| | | try |
| | |
| | | case CodeU2A.AssetCopy: |
| | | FileUtil.copyAssets(_activity); |
| | | break; |
| | | case CodeU2A.CopyOneAsset: |
| | | FileUtil.copy(_activity,_json.getString("fileName")); |
| | | break; |
| | | case CodeU2A.BatteryListenStart: |
| | | BatteryUtil.getInstance().start(_activity); |
| | | break; |
| | |
| | | * 外部存储根目录地址 |
| | | */ |
| | | public static final int ExteneralStorage = 11; |
| | | |
| | | /** |
| | | * 拷贝单一Asset文件 |
| | | */ |
| | | public static final int CopyOneAsset = 12; |
| | | /** |
| | | * -------------------------------------------------------------------------------------------- |
| | | * 以下为各自项目SDK相关 |
| | |
| | | }).start(); |
| | | } |
| | | |
| | | public static void copy(Context context, String fileName) |
| | | { |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | | FileOutputStream _fos = new FileOutputStream(new File(_destPath)); |
| | | byte[] _buffer = new byte[1024]; |
| | | int _byteCount; |
| | | while ((_byteCount = _is.read(_buffer)) != -1) |
| | | { |
| | | _fos.write(_buffer, 0, _byteCount); |
| | | } |
| | | _fos.flush(); |
| | | _is.close(); |
| | | _fos.close(); |
| | | LogUtil.i("FileUtil", "单独拷贝 => 文件: " + _originalPath + " 已拷贝至: " + _destPath); |
| | | } catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public static void copy(Context context, String original, String dest) |
| | | { |
| | | try |