• Android development
  • Record the usual development experience, share exchange.
  • subscribe

Updated articles

[mobile development] Android client using Http protocol Post request and server data interaction

This example takes Servlet as an example to demonstrate the communication between Android and Servlet. As we all know, Android and server communication is usually used HTTP communication and Socket communication, and HTTP communication is divided into get and post two ways. As for the Socket communications will be introduced in the future.   Brief introduction of HTTP protocol: HTTP (Transfer Protocol Hypertext), is the basis of Web networking, but also mobile networking...

Android Http Post

[mobile development] Mobile phone capture method in practice

Move in reverse analysis and app development, always need testing and monitoring of the network behavior, this paper summarizes some capture ideas and the usage of practice The author thinks that in the ethereal world, Wireshark should count is the first comprehensive ranking tools (in fact, Wireshark comes with a command line tool known tshark Niubi) This paper recorded 5 species capture, one can grasp the practice, welcome everyone to share 0x01 based on Wireshark Experiment step...

Android Mobile phone capture

[mobile development] Generation and parsing of XML files in Android

First of all, I put the Person entity class Net.loonggg.test package; Class Person public { Int ID private; String age private; String name private; String sex private; String address private;...

Android XML file parsing XmlSerializer

[mobile development] Android SharedPreferences. recommend

SharedPreferences is Android is easiest to understand data storage technology actually SharedPreferences processing is a key value (key) SharedPreferences used to store some lightweight data. 1, the use of SharedPreferences to save the data method is as follows: / / instantiate a SharedPreferences object (first step) MySh SharedPreferences...

Android SharedPreferences Internal file storage

[mobile development] Android access to the SD card path and determine whether the existence of SD card

Android get SD card path method: Not recommended to write directly to the path of the dead SD Android card. Public String (getSDPath) { SdDir File = null; SdCardExist Boolean = Environment.getExternalStorageState () .equals (android.os.Environment.MEDIA_MOUNTED...

Android SD card

[mobile development] Android internal file read recommend

Android file management method Android is based on the Linux file system, the file access and management is restricted by the permissions settings. In the Linux system, the file permissions are described by the author, the same group of users and other users of the operating restrictions on the document. X that can be executed, R said to be readable, w said to be written, D said directory, - said the ordinary file. Generate such file permissions and procedures set by the staff Type of Android storage file (internal storage) program developers can build and access the program from...

Android Internal file storage

[mobile development] SQLite database constraint Xiangjie

First, the constraints of Constraints When storing data in the SQLite database, there are some obvious constraints on the data. For example, a school teacher's data sheet, in which the field column may have the following constraints: Age - at least 20 years old. If you want to enter a teacher who is less than 20 years old, the system will be in error. Nationality - default china. By default, if you do not fill in, the system will automatically fill in the default value. Name cannot be empty. Everyone has a name. Employee number - unique. This can...

SQLite Android data base

[mobile development] Android import external database

When we want to use a lot of data in the software, we will choose to store the data into a database, and then through the database query modification operations to manage these data. In most cases we are only in the program established using the database, but there are also we in the program just using the database does not in the program establish their, because such databases are often relatively large amount of data, we in the established if you do not use the multi thread and after service provided, can easily lead to stagnation of the front desk interface blocking, and so tend to affect the user experience, resulting in bad effect. At this time, we can not directly build the database and input...

Android SQLite External database

[mobile development] Android SQLite service creation, CRUD

Android.content.Context import; Android.database.sqlite.SQLiteDatabase import; Android.database.sqlite.SQLiteOpenHelper import; Android.util.Log import; / * * * create 4 tables in the database by default * * * / Class DB public...

Android SQLite

[database] SQLite syntax

A, SQLite3 long for the lightweight data storage, such as single chip, but now the SQLite3, has been very advanced, can not be underestimated Two, SQLite3 common commands Under the current directory to create or open the test.db database files, and enter the SQLite command terminal, sqlite> prefix logo: #sqlite3 test.db   View the database file information command (command attention before the characters'. '): Sqlite>.database ...

SQLite Android

[mobile development] Android ContentProvider detailed component

Four major components of a.Android Android four components are Activity, Service, Provider Content, Receiver Broadcast. Activity as a program interface, direct interaction with the user Service running in the background, there is no interface to complete a specific function ContentProvider maintenance application data, to facilitate the application itself or other applications to access Receiver Broadcast provides asynchronous broadcast message reception...

Android ContentProvider

[mobile development] SQLite explain the application of Android

Last time I introduced to you the basic information and the use of SQLite process, I believe that friends have been aware of SQLite, and that today, I would like to share with you how to use SQLite in Android. Now the mainstream mobile devices like Android, iPhone use SQLite as complex data storage engine, in our mobile devices are developed for applications that, maybe you should use to SQLite to store our a lot of data, so we need to grasp the mobile devices of SQLite development skills. For Andr...

Android SQLite

[mobile development] Android program to read the use of existing SQLite database

One method: At first Add permissions to Manifest: The first step in the first to determine whether the specified in the presence of the king, does not exist on the creation. The second step will be to copy the Android resources under the specified path below the database. Third step is according to the specified path to open or create the database, then get object database operations, database operations, of course, you can in the database table crud and operation. DB SQLiteDatabase; Final String DA private...

Android Sqlite SD card reader

[mobile development] Android create and use database

Relational database SQLIte Each application using data, Android applications are no exception, the use of open source Android, an operating system independent SQL database SQLite. SQLite first Alpha version was born in May 2000, it is a lightweight database, its design goal is embedded, the occupation of resources is very low, only a few hundred K of memory is enough. SQLite has been the use of a variety of software and products, FireFox Mozilla is the use of SQ...

Android SQLite

[mobile development] Studio Android development tool shortcut keys

Commonly used shortcuts are as follows: Ctrl+N: lookup class Ctrl+Shift+N: search file Ctrl+Alt+L: formatting code Ctrl+Alt+O: optimized import class and package Ctrl+/ notes: code format: / / code block Ctrl+Shift+/ notes: multiple lines of code format: / * * / block code Ctrl+Alt+Space (space): automatic code completion Ctrl+ spaces: Code induction tips The Ctrl+Alt+Space: class and interface name...

Studio Android development tools

[mobile development] Android sixteen band color value

Color and opacity (alpha) values expressed in sixteen decimal notation. The values of any color range are from 0 to 255 (00 to FF). For alpha, 00 is completely transparent, FF is completely opaque. The order of expression is "aabbggrr", where "aa=alpha" (00 (to FF); "bb=blue" (00 to FF); "gg=green" (00 to FF); "rr=red" (00 to FF). Reference 1:http://b...

[mobile development] Android Shape custom solid round button

In the development of Android, in response to the effect of landscaping applications, the use of Shape to define the graphics effects, you can solve the problem of too many images. First look at the effect chart: The entire page layout is: [html] Plaincopy view XML version= "1" encoding= "UTF-8" >? "Http://schemas.a xmlns:android= RelativeLayout...

[mobile development] Replace Android application icon

Folder you project below the "res folder" - drawable-hdpi/drawable-ldpi/drawable-mdpi etc. is your icon (different resolution so several files are is hdpi is a high resolution, and LDPI is medium resolution, MDPI is low resolution, the establishment of the project choice), then it's in the manifest file that specifies the icon <application True "android:allowBackup=" ...

[mobile development] Android development learning route

The first stage: Java object-oriented programming 1.Java basic data types and expressions, branch cycle.   The use of StringBuffer and 2.String, regular expressions.   3. Object oriented abstraction, encapsulation, inheritance, polymorphism, class and object, object initialization and recovery; constructors, and the this keyword, the method and the method of parameter transfer process, the static keyword, inner classes, Java rubbish recycling mechanism, Javadoc.   4 object to the process of the process, the method of coverage, final keyword, pumping...

[mobile development] Android text input box EditText method description and properties

1, EditText input text for the password in the form of settings (1) set through.Xml: The EditText set: android:password= "true" / / "." to display text (2) set in the code: By setting the setTransformationMethod EditText () method to achieve the hidden password or the display password. EditText.setTransformationMethod (Passwo...

  • Columnist:Chaoyu168
  • Creation time: 2015-12-22
  • Article number: 36
  • Browse volume: 52575 times

Latest comments