the ways to get screenshots and thumbnails of video files, and you may also need to save bitmap as a file:
/**
* Bitmap Save As File
* *
* @param bitmap input bitmap
* @param name output file ' s name
* @return String o Utput file ' s path
/public static String Bitmap2file (Bitmap Bitmap, String name) {
file F = new file (environm Ent.getexternalstoragedirectory () + name + ". jpg");
if (f.exists ()) F.delete ();
FileOutputStream fout = null;
The recent development of the micro-credit enterprise number, found that the micro-andriod version of the built-in browser to open the file problem, but the iOS version is not a problem, because the iOS version using the Safari browser support document directly open, but the andriod version using the Tencent browser X5 kernel, Don't know why not support, may be the integration of problems, here provide solutions, this method is also suitable for mobile phone browser or
, so is the Volume amplification key +9.
Auto-fill path: For example, the path is/usr/bin/autostart.sh
Then the input/usr/bin/aut press TAB to be able to complement all/usr/bin/autostart.sh
This will make it impossible to enter the garbled characters automatically fill up .
Step Poly:
1, open the terminal with ls command to see the file name to be deleted
Ls-a file path
-A indicates that hidden files are displayed
Eg:ls-a/etc/
2 . Delete
Android reads and writes files in external storage and android reads and writes
This article mainly introduces how to read and write data through external storage in androidSD card path
Sdcard: SD card path before 2.3
Mnt/sdcard: SD card path before 4.3
Storage/sdcard: SD card path after 4.3
Open file explorer
You can see that sdcard is an empty folder, because
The Dex file is a Java binary file running on delvik on Android. If you are interested in the content and the developer has not published the source code, you can decompile the DEX file using the following method:
1. Decompress system. img
Use xyaffs2 to decompress system. IMG and the imgfile you want to decompress:
Xyaffs2 img_file output_dir
Xyaffs2 can be downloaded from the following address:
Http://limodev.cn/download/xyaffs.tar.gz
2. Find the AP
Android is very easy to upload files. It is the same as uploading in java. It is basically familiar with the operation output stream and input stream! Another important thing is to configure the content-type parameters! If all these are done, the upload will be simple! The following is an upload tool class I wrote:
Package com. spring. sky. image. upload. network;Import java. io. DataOutputStream;Import ja
Please kindly advise:
Email: weimingweicom@sina.com
Use PULL to parse and generate XML files:
On the Android platform, you can use Simple API for XML (SAX), Document Object Model (DOM), and the pull parser that comes with Android to parse XML files. The XML file to be parsed in this example is as follows:
File Name: cs
The types of files in Android engineering include the following:A. Jar Package: is to solve the software compatibility problem. If you are developing an application on a low-version Android platform, and the application wants to use a feature that is later, you need to use the support library. Android private libraries
classes. dex.(2) Use the android-reverse-trinea \ dex2jar-0.0.9.13 in the Toolkit or download the latest dex2jar and unzip it and run
Dex2jar classes. dex path
1
Dex2jarClasses. Dex path
As follows:
As follows:
Classes_dex2jar.jarwill be generated in the classes.dex directory. Open this file with jd-gui.exe (use jd-gui in the Toolkit or download the latest version), as shown below:We can
1. Structure of the android File System
After the android source code is compiled, the system. IMG, ramdisk. IMG, and userdata. IMG image files are obtained. Ramdisk. IMG is the file system of emulator. IMG includes the main packages, libraries, and other files, userdata. IMG includes some user data. After the emulator
With the progress of the processor manufacturing process, and the continuous development of the Android system, recently out of the ARM64-V8A architecture, because the project uses the Speex of the third-party speech codec Dynamic library, the other architecture of the processor temporarily needless to say, all normal, Only to arm64-v8a here problem, in Android5.0 arm64 bit of mobile phone use voice will error, about other architectures. So file compi
Preface: The previous article wrote the use of Sharedpreferences in Android to save data, sharedpreferences when saving data is mainly to save some application settings information or a small amount of user information, And it is the information of the string class saved in the form of Key-value, which is more limited.For example, you need to save images from the network to local as cached data, and the number is larger. Sharedpreferences will not be
friend of the Chinese version of Android APK, you should be familiar with these tools:
The first tool is Android-apktool, a tool for reengineering Android APK files. This tool is the core of APK crack. It is used to decompile and repackage APK files. It is a well-known open
-------------------- Reprint Please specify:http://blog.csdn.net/feiduclear_up/article/details/42499409ProfileHow to quickly develop an Android app with JSON. It is a chore to define JSON-specific Java beans and parse JSON with the JSON library that comes with Android. So here I introduce a tool and a library.
Jsonschema2pojo: Can be more JSON automatically generated corresponding javaclasses (http
[Android development experience] What Should cached files of an APP exist? After reading this article, you should be clear about it. androidapp
Reprinted please indicate the source: http://blog.csdn.net/zhaokaiqiang1992
As long as it is an APP that requires online data retrieval, cache files will be generated locally, regardless of version update or image cache.
Android Developer: merge list files
Android Studio is built based on Gradle. Each App can contain configuration files in multiple locations, such as productFlavor, library, and Android ARchive (AAR) in the src/main folder) bundles of And
Import Android. App. activity;
Import Android. content. intent;
Import android.net. Uri;
Import android.net. Uri. Builder;
Import java. Io. file;
Import Android. content. intent;
// Customize the android intent class,
// You can obtain the intent used to open the following
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.