Perform the following operations:
Set-> application-> select an application-> application information
The following page is displayed:
The disk space occupied by the application is displayed.
First, let's talk about the results, which files (folders) will be calculated for these items ).
1. Application, Composed of three elements
/Data/com. myapp/lib, that is, the so library folder size/data/app/com.myapp-
you to localize your APP in different languages.For more information on the localization of this string resource in different languages, please refer to the compatibility of different devices.Add a button
In Android Studio, edit res/layout the file under content_my.xml .
Define a [
Set the width and height property values of the buttons "wrap_content" so that the
[RecyclerView and Glide] implements an Android e-book reading APP, gliderecyclerview
Http://www.cnblogs.com/xfangs/
You are welcome to comment at the bottom of this article. You must encourage your support !!!
This series of tutorials is only for learning and communication.
For the final effect of the novel reader, see the first blog
Preface
In the previous article, we implemented the basic functions of
well-performing value) so that the Android system can read the file using the Mmap () function (see the purpose of the function itself) to get higher performance on read resources ,Ps:1. Alignment on a 4-byte boundary means that, in general, the compiler bar 4 bytes are read as a unit, so that the CPU can access the variable efficiently and quickly (not before).2. The root cause of alignment: The Davlik virtual machine in the
the uncompressed data in the APK file to be aligned on a 4-byte boundary (4 bytes is a well-performing value) so that the Android system can read the file using the Mmap () function (see the purpose of the function itself) to get higher performance on read resources ,Ps:1. Alignment on a 4-byte boundary means that, in general, the compiler bar 4 bytes are read as a unit, so that the CPU can access the variable efficiently and quickly (not before).2.
Android Knowledge SummaryThis is a summary of knowledge, so there is no detailed explanation.I. ResolutionDP length in Android, SP font usage, px pixels, in Inch, pt inch 1/72, mm mmUnderstanding DP First know that density,density is an abstract unit, the density value represents the number of display points per inch, and the resolution is two conceptsQVGA screen
.
Get the wallpaper manager
wallpapermanager wallpapermanager = Wallpapermanager
. getinstance (this);
Get the current wallpaper
drawable wallpaperdrawable = wallpapermanager.getdrawable ();
Turn the drawable into Bitmap
Bitmap BM = ((bitmapdrawable) wallpaperdrawable). Getbitmap ();
Mrootview.setbackgrounddrawable (New bitmapdrawable (BM));
This way in the millet and other imitation iOS on a screen of the desktop is OK, but in the native An
Get Android AD Management Libraryto display ads in the mobile app, you need to add an ad management library in the app, the current version of the Keymob AD Management library is 20150801 downloads to see the Android project directory structure, most of the regular Android e
principle of technologyThe first way: Obfuscation strategyThe obfuscation strategy is a protection strategy that each application must add, and not only for protection, but also to reduce the size of the app installation package, so he is a feature that must be added before each app release, and now there are two common obfuscation strategies:1, the confusion of
Use a simple drawing app to illustrate Android's graphics-processing class with its own view-defining application.For example, there is an app for users to draw and doodle at their own discretion.It's not so fancy here, it's only available in black and white. But it can change the thickness of the nib.Essentially the eraser here is a white brush, without using the brush's Setxfermode method, to get a bunch
Power Management Powermanagerpowermanager is a power management class for Android that manages power operations such as sleep, wake, restart, and adjust screen brightness.The PowerManager object is obtained from the system service Power_service, and its main methods are as follows:Gotosleep: Sleep, that is, lock screen.WakeUp: Wake up, that is, unlock.Reboot: Restart.There are several other hidden methods:Getminimumscreenbrightnesssetting: Gets the mi
Because the H5 page in the mobile side of the compatibility and extensibility of the advantages, but also for the app to be implanted H5 page corresponding flexibility has greatly improved (such as activities, game updates, etc.). App development inevitably needs to be loaded into some H5 pages. But the Android client may have some unpredictable problems with the
well-performing value) so that the Android system can read the file using the Mmap () function (see the purpose of the function itself) to get higher performance on read resources ,Ps:1. Alignment on a 4-byte boundary means that, in general, the compiler bar 4 bytes are read as a unit, so that the CPU can access the variable efficiently and quickly (not before).2. The root cause of alignment: The Davlik virtual machine in the
(4 bytes is a well-performing value) so that the Android system can read the file using the Mmap () function (see the purpose of the function itself) to get higher performance on read resources ,Ps:1. Alignment on a 4-byte boundary means that, in general, the compiler bar 4 bytes are read as a unit, so that the CPU can access the variable efficiently and quickly (not before).2. The root cause of alignment: The Davlik virtual machine in the
/build.prop file to increase this value. As device hardware performance continues to improve, from the earliest 16M restrictions (G1 phones) to later 24m,32m,64m, all follow the Android framework's minimum memory size limit for each app, refer to http://source.android.com/ Compatibility/downloads.html 3.7 knots.View the maximum memory available to each process by
= =NULL) { return; } for(String filepath:filepath) {cleancustomcache (FilePath); } } /*** * Delete method will only delete the file under a folder, if the incoming directory is a file, will not do processing * * * *@paramDirectory*/ Private Static voiddeletefilesbydirectory (File directory) {if(Directory! =NULL directory.exists () directory.isdirectory ()) { for(File item:directory.listFiles ()) {item.delete (); } } } //Get File//Context.gete
, this because of the situation, generally mobile development, in order to reduce the size of the package, we will control the expansion of the common package, often common package only includes some of the most concise and classic things, and few things do not need to subcontract, but if your company developed hundreds of thousands of projects, every project uses behavioral analysis, Feedback and other common modules, it will be clearer to split the
, this because of the situation, generally mobile development, in order to reduce the size of the package, we will control the expansion of the common package, often common package only includes some of the most concise and classic things, and few things do not need to subcontract, but if your company developed hundreds of thousands of projects, every project uses behavioral analysis, Feedback and other common modules, it will be clearer to split the
Android Practice Note (3)---Fragment use app bag or V4 package parsing1) Problem briefBelieve that a lot of friends in the call fragment will encounter the following situation:watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy29kzxjfcgln/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">This time the problem comes ...Is the Android.app und
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.