Today we will introduce # afinal # To operate the android database sqlite.
# Afinal # is an android orm and ioc quick development framework, which includes four functions: Space id binding and event binding; display of network images (including a powerful cache framework), Database sqlite operations, and http data reading (supporting ajax READING );
This article mainly introduces the FinalDb component, one
Android development and learning-use EventBus, android-eventbus
EventBus is a tool that transfers messages between components by publishing and subscribing to events.
It aims to optimize the process of passing messages between components. Traditional methods for transmitting messages between components include broadcast and callback, which are complicated to
0, Common Properties first let's look at some of the common properties of the GridView
The number of columns for the 1.android:numcolumns= "Auto_fit"//gridview is set to Automatic 2.android:columnwidth= "90DP"//width of each column, which is the width of item, 3. Android:stretchmode= "columnWidth"//Zoom and column width size sync 4.android:verticalspacing= "10DP"//two margin between lines 5.android: horizontalspacing= the margin between "10D
!!!!! The android interface always displays the loading progress bar. Do not use ListFragment or android listfragment.
Recently, the android application is almost finished, but some interfaces are defective and cannot be modified. The problem is as follows:
On the interface, the data has been loaded, but there is still
Android personal learning notes-use myeclipse to quickly create a webservice and call it in Android
Web service is a platform-independent, low-coupling, self-contained, programmable web-based application that can use open XML (a subset of standard General Markup Language) standards are used to describe, publish, discov
Generally we are using android:xxx= "" ... The properties of such Android. But sometimes we need to use custom properties, especially when customizing the view.The following steps are generally required:1. define a attrs.xml file under the res/values file:2. Rewrite Our custom view construction method. is to useR.styleable.myview Get our custom properties. TypedArray usually last called . Recycle () method
if this file has been generated
LS Sdcard/love_world_.trace
Ctrl + C exits adb shell mode2 Exporting trace files
ADB pull Sdcard/love_world_.trace
Iv. Opening trace filesOpening the trace file requires Android to provide the Traceview.bat tool, the directory where the tool is located: Sdk\tools\traceview.bat, which is performed in two ways:1) switch to this directory on the command line2) Add this directory to the system e
Android-shape is simple to use, Android-shape
Shape
Let's take a look at the built-in EditText and Button shapes.
The following figure shows the effect after adding a shape.
To put it simply, a shape can add a background border to the component, and a rounded corner can be used with selector.
ShapeXXX. xml is defined in the drawable directory.
The
The b
The following content is original, welcome reprint, Reprint please specifyFrom every day blog: http://www.cnblogs.com/tiantianbyconan/p/4388175.htmlThis article is for open source enthusiasts.If you want someone else to use your Android Open Source Library, the first way is to provide your GitHub address, have someone clone it, and then let someone else import it into his project. Another simpler way is to
Android file storage-use SharedPreferences to save user preference setting parameters and read setting parameters
What file storage technologies does Android SDK support?
1. Use SharedPreferences to save key-value data
2. Stream file storage (using the openFileOutput and openFileInput methods, or FileInputStream and F
Use of SurfaceView in Android game development-android learning journey (5)SurfaceView and View
In the main ui thread, View directly responds to user operations and distributes tasks. However, complicated tasks may cause blocking.SurfaceView does not have this problem, so that it directly retrieves images from memory and so on. More importantly, SurfaceView can c
Use the LogPhoneUtil tool class to save APP running logs on Android phones, and android log tool class
Recently, the company's tests have always proposed such a bug. Of course, they also blame their code for poor writing. Therefore, the test will always crash the app, and there is no log printing when they crash, when I come back to reproduce it, sometimes it's
Logcat is a command-line tool in Android that can be used to get log information for a program . development debugging and testing positioning Bugs are very usefulThere are two ways to achieve The purpose of viewing log. An Eclipse integrated DDMS plugin1 Install Eclipse Environment, JDK, etc., note the version and number of digits match2 Installing DDMS3 Open Eclipse, start Ddms, as follows:4 found LogCat (Windows->show view->logcat), that is, you
Android-use socket communication to establish Network Chat Room 1, android-socket
First, create a server program:
1. MyServerSocket. java
package com.test.test;public class MyServerSocket {public static void main(String[] args) {new ServerListener().start();}}
2. ServerListener. java is used to listen for port connections
Package com. test. test; import java. io.
Note: You must use this feature to support NFC capabilities for both devices.
1. Under the Standby page, click "Application".
2. Click "Set".
3. Slide up the screen and choose NFC and pay.
4. Click "NFC".
5. Click on the slider on the right side of "off" to show that the "on" representative is open. (The mobile phone also needs to turn on this feature)
6. Click on "
When Android is developing, you need to call the Java API that does not exist in the Android SDK and consider introducing the JDK. Get the solution by researching JDK package files and SDK files. Did not do this work, so spent a day, just understand what is going on ~ ~ ~Harvesting: Find out the features of the directories in the JDK installation directory, and the Andr
Hello everyone, this section describes how to learn Android preferences. preferences are used in Android to record applications and user preferences. They can be used to save
Simple data types, such as int, double, and Boolean. The data stored in preferences can be understood as map type. We passPreferencemanagerAndGetdefasharsharedpreferences (context)For example, if we want to obtain an integer, we can us
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.