Guest User

Untitled

a guest
Mar 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.46 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. package="com.example.photo">
  4.  
  5. <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
  6. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  7. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  8. <uses-permission android:name="android.permission.INTERNET" />
  9.  
  10. <application
  11. android:allowBackup="true"
  12. android:icon="@mipmap/ic_launcher"
  13. android:label="@string/app_name"
  14. android:roundIcon="@mipmap/ic_launcher_round"
  15. android:supportsRtl="true"
  16. android:theme="@style/AppTheme">
  17. <activity android:name=".MainActivity">
  18. <intent-filter>
  19. <action android:name="android.intent.action.MAIN" />
  20.  
  21. <category android:name="android.intent.category.LAUNCHER" />
  22. </intent-filter>
  23. </activity>
  24.  
  25. <provider
  26. android:name="android.support.v4.content.FileProvider"
  27. android:authorities="@string/file_provider_authority"
  28. android:exported="false"
  29. android:grantUriPermissions="true">
  30. <meta-data
  31. android:name="android.support.FILE_PROVIDER_PATHS"
  32. android:resource="@xml/file_provider_paths" />
  33. </provider>
  34.  
  35. </application>
  36.  
  37. </manifest>
  38.  
  39. package com.example.photo;
  40.  
  41. import android.content.Intent;
  42. import android.content.pm.PackageManager;
  43. import android.net.Uri;
  44. import android.os.AsyncTask;
  45. import android.os.Environment;
  46. import android.provider.MediaStore;
  47. import android.support.annotation.NonNull;
  48. import android.support.v4.content.FileProvider;
  49. import android.support.v7.app.AppCompatActivity;
  50. import android.os.Bundle;
  51. import android.util.Log;
  52. import android.view.View;
  53. import android.widget.ImageView;
  54.  
  55. import java.io.DataOutputStream;
  56. import java.io.File;
  57. import java.io.FileInputStream;
  58. import java.io.IOException;
  59. import java.net.HttpURLConnection;
  60. import java.net.URL;
  61.  
  62.  
  63. public class MainActivity extends AppCompatActivity {
  64. public interface ApplicationConstant {
  65. String UPLOAD_IMAGE_URL = "http://www.example.com/upload.php";
  66. String TAG = "DEBUG1";
  67. }
  68. String Barcode="9999";
  69.  
  70. int permsRequestCode;
  71. int RC_PERMISSIONS;
  72.  
  73. final int CAMERA_REQUEST = 1;
  74. private Uri photoUri;
  75. ImageView mImg;
  76.  
  77. @Override
  78. protected void onCreate(Bundle savedInstanceState) {
  79. super.onCreate(savedInstanceState);
  80. setContentView(R.layout.activity_main);
  81.  
  82. mImg = (ImageView) findViewById(R.id.imageView);
  83.  
  84. mImg.setOnClickListener(new View.OnClickListener() {
  85. //@Override
  86. public void onClick(View v) {
  87. Log.i(ApplicationConstant.TAG," " + "click");
  88. showCamera();
  89. }
  90. });
  91. }
  92.  
  93. private class uploadFileToServerTask extends AsyncTask<String, String, Object> {
  94. @Override
  95. protected String doInBackground(String... args) {
  96. try {
  97. String lineEnd = "rn";
  98. String twoHyphens = "--";
  99. String boundary = "*****";
  100. int bytesRead, bytesAvailable, bufferSize;
  101. byte[] buffer;
  102. @SuppressWarnings("PointlessArithmeticExpression")
  103. int maxBufferSize = 1 * 1024 * 1024;
  104.  
  105.  
  106. java.net.URL url = new URL((ApplicationConstant.UPLOAD_IMAGE_URL));
  107. Log.i(ApplicationConstant.TAG, "url " + url);
  108. HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  109.  
  110. // Allow Inputs & Outputs.
  111. connection.setDoInput(true);
  112. connection.setDoOutput(true);
  113. connection.setUseCaches(false);
  114.  
  115. // Set HTTP method to POST.
  116. connection.setRequestMethod("POST");
  117.  
  118. connection.setRequestProperty("Connection", "Keep-Alive");
  119. connection.setRequestProperty("Content-Type", "multipart/form-data;boundary=" + boundary);
  120.  
  121. FileInputStream fileInputStream;
  122. DataOutputStream outputStream;
  123. {
  124. outputStream = new DataOutputStream(connection.getOutputStream());
  125.  
  126. outputStream.writeBytes(twoHyphens + boundary + lineEnd);
  127. String filename = args[0];
  128. outputStream.writeBytes("Content-Disposition: form-data; name="file";filename="" + filename + """ + lineEnd);
  129. outputStream.writeBytes(lineEnd);
  130. Log.i(ApplicationConstant.TAG, "filename: " + filename);
  131.  
  132. fileInputStream = new FileInputStream(filename);
  133.  
  134. bytesAvailable = fileInputStream.available();
  135. bufferSize = Math.min(bytesAvailable, maxBufferSize);
  136.  
  137. buffer = new byte[bufferSize];
  138.  
  139. // Read file
  140. bytesRead = fileInputStream.read(buffer, 0, bufferSize);
  141.  
  142. while (bytesRead > 0) {
  143. outputStream.write(buffer, 0, bufferSize);
  144. bytesAvailable = fileInputStream.available();
  145. bufferSize = Math.min(bytesAvailable, maxBufferSize);
  146. bytesRead = fileInputStream.read(buffer, 0, bufferSize);
  147. }
  148. outputStream.writeBytes(lineEnd);
  149. outputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);
  150. }
  151.  
  152. int serverResponseCode = connection.getResponseCode();
  153. String serverResponseMessage = connection.getResponseMessage();
  154. Log.i(ApplicationConstant.TAG, "serverResponseCode: " + serverResponseCode);
  155. Log.i(ApplicationConstant.TAG, "serverResponseMessage: " + serverResponseMessage);
  156.  
  157. fileInputStream.close();
  158. outputStream.flush();
  159. outputStream.close();
  160.  
  161. if (serverResponseCode == 200) {
  162. return "true";
  163. }
  164. } catch (Exception e) {
  165. e.printStackTrace();
  166. }
  167. return "false";
  168. }
  169.  
  170. @Override
  171. protected void onPostExecute(Object result) {
  172.  
  173. }
  174. }
  175. @Override
  176. public void onActivityResult(int requestCode, int resultCode, Intent data) {
  177. super.onActivityResult(requestCode, resultCode, data);
  178.  
  179. if (requestCode == CAMERA_REQUEST) {
  180. if (resultCode == RESULT_OK) {
  181. if (photoUri != null) {
  182. mImg.setImageURI(photoUri);
  183. Log.i(ApplicationConstant.TAG,"photo_Uri: " + photoUri);
  184. new uploadFileToServerTask().execute(photoUri.toString());
  185. }
  186. }
  187. }
  188. }
  189.  
  190. private void showCamera() {
  191. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  192. if (intent.resolveActivity(this.getPackageManager()) != null) {
  193. File file = null;
  194. try {
  195. file = createImageFile();
  196. } catch (IOException e) {
  197. e.printStackTrace();
  198. }
  199. photoUri = null;
  200. if (file != null) {
  201. photoUri = FileProvider.getUriForFile(MainActivity.this,
  202. getString(R.string.file_provider_authority),
  203. file);
  204. //photoUri = Uri.fromFile(file);
  205. intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);
  206. startActivityForResult(intent, CAMERA_REQUEST);
  207. }
  208. }
  209. }
  210.  
  211. private File createImageFile() throws IOException {
  212. // Create an image file name
  213. File storageDir = new File(this.getExternalFilesDir(Environment.DIRECTORY_PICTURES),Barcode + ".jpg");
  214. // File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
  215. return storageDir;
  216. }
  217. }
  218.  
  219. <resources>
  220. <string name="app_name">Photo</string>
  221. <string name="file_provider_authority" translatable="false">com.example.photo.fileprovider</string>
  222. </resources>
  223.  
  224. <?xml version="1.0" encoding="utf-8"?>
  225. <paths>
  226. <external-path
  227. name="external_files" path="." />
  228. </paths>
  229.  
  230. <?php
  231. $target_dir = "";
  232. $target_file = $target_dir . basename($_FILES["file"]["name"]);
  233. $uploadOk = 1;
  234. $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
  235. // Check if image file is a actual image or fake image
  236. if(isset($_POST["submit"])) {
  237. $check = getimagesize($_FILES["file"]["tmp_name"]);
  238. if($check !== false) {
  239. echo "File is an image - " . $check["mime"] . ".";
  240. $uploadOk = 1;
  241. } else {
  242. echo "File is not an image.";
  243. $uploadOk = 0;
  244. }
  245. }
  246. // Check if file already exists
  247. if (file_exists($target_file)) {
  248. echo "Sorry, file already exists.";
  249. $uploadOk = 0;
  250. }
  251. // Check file size
  252. if ($_FILES["file"]["size"] > 500000) {
  253. echo "Sorry, your file is too large.";
  254. $uploadOk = 0;
  255. }
  256. // Allow certain file formats
  257. if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
  258. && $imageFileType != "gif" ) {
  259. echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
  260. $uploadOk = 0;
  261. }
  262. // Check if $uploadOk is set to 0 by an error
  263. if ($uploadOk == 0) {
  264. echo "Sorry, your file was not uploaded.";
  265. // if everything is ok, try to upload file
  266. } else {
  267. if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
  268. echo "The file ". basename( $_FILES["file"]["name"]). " has been uploaded.";
  269. } else {
  270. echo "Sorry, there was an error uploading your file.";
  271. }
  272. }
  273. ?>
  274.  
  275. 03-20 02:33:39.234 32312-32312/? E/Zygote: v2
  276. 03-20 02:33:39.235 32312-32312/? I/libpersona: KNOX_SDCARD checking this for 10276
  277. 03-20 02:33:39.235 32312-32312/? I/libpersona: KNOX_SDCARD not a persona
  278. 03-20 02:33:39.235 32312-32312/? E/Zygote: accessInfo : 0
  279. 03-20 02:33:39.236 32312-32312/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.1.1_0004, [-1 -1 -1 -1 0 1]
  280. 03-20 02:33:39.236 32312-32312/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.example.photo
  281. 03-20 02:33:39.241 32312-32312/? I/art: Late-enabling -Xcheck:jni
  282. 03-20 02:33:39.452 32312-32312/com.example.photo I/InstantRun: starting instant run server: is main process
  283. 03-20 02:33:39.510 32312-32312/com.example.photo V/ActivityThread: performLaunchActivity: mActivityCurrentConfig={0 1.0 themeSeq = 0 showBtnBg = 0 310mcc260mnc [en_US,ja_JP] ldltr sw411dp w411dp h773dp 560dpi nrml long port ?dc finger -keyb/v/h -nav/h mkbd/h desktop/d s.112}
  284. 03-20 02:33:39.522 32312-32312/com.example.photo W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
  285. 03-20 02:33:39.611 32312-32312/com.example.photo D/TextView: setTypeface with style : 0
  286. 03-20 02:33:39.612 32312-32312/com.example.photo D/TextView: setTypeface with style : 0
  287. 03-20 02:33:39.649 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: ThreadedRenderer.create() translucent=false
  288. 03-20 02:33:39.653 32312-32312/com.example.photo D/InputTransport: Input channel constructed: fd=87
  289. 03-20 02:33:39.654 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: setView = DecorView@94b80fc[MainActivity] touchMode=true
  290. 03-20 02:33:39.663 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: dispatchAttachedToWindow
  291. 03-20 02:33:39.688 32312-32312/com.example.photo V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
  292. 03-20 02:33:39.688 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2960] result=0x27 surface={isValid=true 548279813120} surfaceGenerationChanged=true
  293. 03-20 02:33:39.688 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 548279813120} hwInitialized=true
  294. 03-20 02:33:39.691 32312-32379/com.example.photo D/libEGL: loaded /vendor/lib64/egl/libEGL_adreno.so
  295. 03-20 02:33:39.703 32312-32379/com.example.photo D/libEGL: loaded /vendor/lib64/egl/libGLESv1_CM_adreno.so
  296. 03-20 02:33:39.709 32312-32312/com.example.photo W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
  297. 03-20 02:33:39.711 32312-32379/com.example.photo D/libEGL: loaded /vendor/lib64/egl/libGLESv2_adreno.so
  298. 03-20 02:33:39.715 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1440, 2960) ci=Rect(0, 84 - 0, 168) vi=Rect(0, 84 - 0, 168) or=1
  299. 03-20 02:33:39.715 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
  300. 03-20 02:33:39.715 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 548279813120}
  301. 03-20 02:33:39.716 32312-32312/com.example.photo V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@72b6a0b nm : com.example.photo ic=null
  302. 03-20 02:33:39.716 32312-32312/com.example.photo I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
  303. 03-20 02:33:39.721 32312-32324/com.example.photo D/InputTransport: Input channel constructed: fd=95
  304. 03-20 02:33:39.725 32312-32379/com.example.photo I/Adreno: QUALCOMM build : 33f9106, Ia8660bee96
  305. Build Date : 08/09/17
  306. OpenGL ES Shader Compiler Version: XE031.14.00.01
  307. Local Branch :
  308. Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.5.7.C2.07.01.01.292.070
  309. Remote Branch : NONE
  310. Reconstruct Branch : NOTHING
  311. 03-20 02:33:39.726 32312-32379/com.example.photo I/Adreno: PFP: 0x005ff104, ME: 0x005ff063
  312. 03-20 02:33:39.727 32312-32379/com.example.photo I/OpenGLRenderer: Initialized EGL, version 1.4
  313. 03-20 02:33:39.727 32312-32379/com.example.photo D/OpenGLRenderer: Swap behavior 1
  314. 03-20 02:33:39.745 32312-32312/com.example.photo V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@b83b500 nm : com.example.photo ic=null
  315. 03-20 02:33:42.813 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: ViewPostImeInputStage processPointer 0
  316. 03-20 02:33:42.888 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: ViewPostImeInputStage processPointer 1
  317. 03-20 02:33:42.891 32312-32312/com.example.photo I/DEBUG1: click
  318. 03-20 02:33:42.915 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0
  319. 03-20 02:33:43.165 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.destroy()#1
  320. 03-20 02:33:43.173 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2960] newFrame=[0,0][1440,2960] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
  321. 03-20 02:33:43.173 32312-32312/com.example.photo D/InputTransport: Input channel destroyed: fd=95
  322. 03-20 02:33:49.502 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.destroy()#1
  323. 03-20 02:33:49.508 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2960] newFrame=[0,0][1440,2960] result=0x1 surface={isValid=false 0} surfaceGenerationChanged=false
  324. 03-20 02:33:49.531 32312-32312/com.example.photo V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
  325. 03-20 02:33:49.532 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2960] newFrame=[0,0][1440,2960] result=0x7 surface={isValid=true 548279813120} surfaceGenerationChanged=true
  326. 03-20 02:33:49.532 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 548279813120} hwInitialized=true
  327. 03-20 02:33:49.545 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
  328. 03-20 02:33:49.545 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 548279813120}
  329. 03-20 02:33:49.545 32312-32312/com.example.photo V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@4c32418 nm : com.example.photo ic=null
  330. 03-20 02:33:49.545 32312-32312/com.example.photo I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
  331. 03-20 02:33:49.547 32312-32312/com.example.photo D/InputTransport: Input channel constructed: fd=91
  332. 03-20 02:33:49.797 32312-32312/com.example.photo I/DEBUG1: photo_Uri: content://com.example.photo.fileprovider/external_files/Android/data/com.example.photo/files/Pictures/9999.jpg
  333. 03-20 02:33:49.799 32312-2026/com.example.photo I/DEBUG1: url http://www.example.com/upload.php
  334. 03-20 02:33:49.802 32312-2026/com.example.photo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
  335. 03-20 02:33:49.803 32312-2026/com.example.photo I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
  336. 03-20 02:33:49.803 32312-2026/com.example.photo I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
  337. 03-20 02:33:49.903 32312-2026/com.example.photo D/TcpOptimizer: TcpOptimizer-ON
  338. 03-20 02:33:49.983 32312-2026/com.example.photo I/DEBUG1: filename: content://com.example.photo.fileprovider/external_files/Android/data/com.example.photo/files/Pictures/9999.jpg
  339. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: java.io.FileNotFoundException: content:/com.example.photo.fileprovider/external_files/Android/data/com.example.photo/files/Pictures/9999.jpg (No such file or directory)
  340. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.io.FileInputStream.open(Native Method)
  341. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:146)
  342. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:99)
  343. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at com.example.photo.MainActivity$uploadFileToServerTask.doInBackground(MainActivity.java:94)
  344. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at com.example.photo.MainActivity$uploadFileToServerTask.doInBackground(MainActivity.java:55)
  345. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
  346. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  347. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
  348. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
  349. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
  350. 03-20 02:33:49.983 32312-2026/com.example.photo W/System.err: at java.lang.Thread.run(Thread.java:762)
  351. 03-20 02:33:52.113 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: mHardwareRenderer.destroy()#4
  352. 03-20 02:33:52.113 32312-32312/com.example.photo D/ViewRootImpl@4c4ddef[MainActivity]: dispatchDetachedFromWindow
  353. 03-20 02:33:52.117 32312-32312/com.example.photo D/InputTransport: Input channel destroyed: fd=87
  354. 03-20 02:33:52.117 32312-32312/com.example.photo W/SemDesktopModeManager: unregisterListener: Listener is null
  355. 03-20 02:33:52.120 32312-32312/com.example.photo V/ActivityThread: performLaunchActivity: mActivityCurrentConfig={0 1.0 themeSeq = 0 showBtnBg = 0 310mcc260mnc [en_US,ja_JP] ldltr sw411dp w797dp h387dp 560dpi nrml long land ?dc finger -keyb/v/h -nav/h mkbd/h desktop/d s.113}
  356. 03-20 02:33:52.134 32312-32312/com.example.photo D/TextView: setTypeface with style : 0
  357. 03-20 02:33:52.134 32312-32312/com.example.photo D/TextView: setTypeface with style : 0
  358. 03-20 02:33:52.141 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: ThreadedRenderer.create() translucent=false
  359. 03-20 02:33:52.179 32312-32312/com.example.photo D/InputTransport: Input channel constructed: fd=93
  360. 03-20 02:33:52.179 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: setView = DecorView@8545f1d[MainActivity] touchMode=true
  361. 03-20 02:33:52.183 32312-32312/com.example.photo E/ViewRootImpl: sendUserActionEvent() returned.
  362. 03-20 02:33:52.183 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: dispatchAttachedToWindow
  363. 03-20 02:33:52.210 32312-32312/com.example.photo V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
  364. 03-20 02:33:52.211 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][2960,1440] result=0x27 surface={isValid=true 548279813120} surfaceGenerationChanged=true
  365. 03-20 02:33:52.211 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 548279813120} hwInitialized=true
  366. 03-20 02:33:52.220 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 2960, 1440) ci=Rect(168, 84 - 0, 0) vi=Rect(168, 84 - 0, 0) or=2
  367. 03-20 02:33:52.231 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
  368. 03-20 02:33:52.231 32312-32312/com.example.photo D/ViewRootImpl@b05cbf4[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 548279813120}
  369. 03-20 02:33:52.232 32312-32312/com.example.photo V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@e558592 nm : com.example.photo ic=null
  370. 03-20 02:33:52.232 32312-32312/com.example.photo I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
  371. 03-20 02:33:52.236 32312-32312/com.example.photo D/InputTransport: Input channel constructed: fd=95
  372. 03-20 02:33:52.236 32312-32312/com.example.photo D/InputTransport: Input channel destroyed: fd=91
Add Comment
Please, Sign In to add comment