[Android] getCacheDir (), getFilesDir (), getExternalFilesDir (), getExternalCacheDir (), getfilesdir
The getCacheDir () method is used to obtain the/data//cache directory.
The getFilesDir () method is used to obtain the/data//files
Solve the Problem of starting a black screen of the Activity and setting the android: javaswistranslucent incompatible activity to switch the animation,
In the previous project, if you encounter a black screen problem after opening the Activity, you
Difference between Button ImageButton and ImageView, imageview
The functions of the ImageButton component are the same as those of the Button component.
The difference is that the ImageButton component displays images, while the Button component
All the UIS of the Android client, androidui
Click to download]
How to Design the android ui
There are many examples of ApiDemo In the SDK, which can provide you with a lot of inspiration.Android UI development, for dip and px Problems
Conversion between Json and Java objects through Gson learning, jsonjava object gson
Conversion between Json and Java objects through Gson Learning
Please respect the fruits of others' work, and repost them with the source:Conversion between Json
ListView optimizes new gameplay and creates a new ListView and listview gameplay that is easy to maintain, high-performance, and fast to developIntroduction
How do you design a complicated ListView as shown in?
(The red line is the ListView area,
[E-book download] Full version of Android Application Development and typical cases !!, Android ebook
Book introduction:
There are 23 chapters on android Application Development and typical cases, which contain two parts. The first part is the
Use the condition variables for inter-thread communication and the condition variables for thread CommunicationRecently, I used C ++ to write a communication program under Android and call it to java as a jni library. I encountered a problem using
Whether to disable the android Database
For more information about reading and writing android multi-threaded data, see the blog:
Read and Write android multi-threaded Databases
It is often entangled in obtaining whether to disable SQLiteDatabase
Android sends a Chinese name file to the SD card of the simulator
RT, android adb push command to solve the Chinese name file, import local computer files to the Android simulator avd sd card
1. Use the adb push command
PS: it is unstable in
General Demo of Android Socket and Server Communication
In Android, using Socket to connect to the server is a simple network connection method. Although it is not used much now, it is very convenient in some cases. Here we will summarize the basic
Android4.4 recent task list RecentsActivity and RecentTasksLoader
Android4.4 \ frameworks \ base \ packages \ SystemUI \ src \ com \ android \ systemui \ recent \ RecentsActivity. java
This function is used to open a recent application and jump to
Android KK flat, contact list # set to ~ Before ZModify the ContactLocaleUtils. java File(Path: packages/contactsprovider/src/com/android/providers/contacts)1. The end of the public ContactLocaleUtilsBase (Locale locale)
Android first matches 10 bits. If it cannot match, it is changed to 7 bits.For some overseas requirements, a 10-digit match is required for the number matching digits. If the number cannot be matched, a 7-digit match is required. Example:Case 1:If
Android: desktop tips for AppWidget
In Android development, many widgets are widgets, but we often say that widgets refer to appwidgets, that is, widgets that can be placed on the desktop.
Next we will use two instances to illustrate how to use this
Android Network Programming-data transfer to servers (2)
Android Network Programming-data transfer to servers (2)
Please respect others' labor achievements and repost the Source: transfer data from Android Network programming to the server (II)
I
Linear layout of the Android Learning Series (ii) layout manager and its custom implementation
LinearLayout is a linear layout control in the Android control. Its child controls are arranged horizontally or vertically, arrange all child controls
Android asynchronously updates the UI through broadcast
In the previous project, I had to perform an asynchronous UI update function, but ANR appeared, so I wanted to write a demo to test where the problem occurred, it turns out that the original
Fragment of Android series (iv) ---- use of ListFragment[Body] 1. Introduction to ListFragement: ListFragment inherits from Fragment. Therefore, it has the Fragment feature and can be used as a part of the activity to make the page design more
Android: Start auto-start and receive push messagesThe first step is to implement the auto-start function. The Code is as follows: 1. Add the following code to AndroidManifest. xml: Copy code 1 2 3 4 5 ..... 6 10 11 12 13 14 15 16 17 copy
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service