Summary of Android data persistence tools
Programmers are the lazy creature and never duplicate the wheel during development. In actual development, data eating is a problem that must be solved, I will summarize several tool classes in addition to processing sqlite, because sqlite Can Use orm directly, and persistent data can be stored in I/O, SharedPreference, and other methods.
External Storage card
Pack
.
-digestalg
Message digest algorithm, with SHA1 .
-storepass
The password to store the file.Mainly for security reasons, if not provided, Jarsigner will prompt you to enter. This password is not stored in your shell history.
-keypass
The password for the private key.Mainly for security reasons, if not provided, Jarsigner will prompt you to enter. This password is not stored in your shell history.
Jarsigner-verbose-sigalg sh
1, first configure the hosts and Permissions reference: http://blog.csdn.net/freewebsys/article/details/421247852, enter the installation interface3, select the installation directory this directory must have no SDK. Need to re-download a new one. Need to have enough disk spacesudo mkdir/library/androidsudo chmod 777 Android4, set the memory allocation size! Note that this is the Intel HAXM. The default is to use HAXM, fast.5, agree to the license agreement6. Start installation Note that Intel's
Debuggable Android program debugging tool
Highlights of the Code debugging tool provided by Google:TraceviewAndDmtracedump. With these two tools, we can easily Debug programs to analyze bugs. Traceview helps us analyze program performance. dmtracedump generates a function call diagram. Unfortunately, the dmtracedump provided by Google is a failed tool and cannot be drawn. This article will introduce the sol
object with Gson @Override protected responseDefine the request yourself. At least rewrite parsenetworkresponse () ,deliverresponse ()Other InstructionsThe disk cache folder is defined in the volley class.Request. Cancel (), the ability to cancel a demand.Request. Settag (String tag). Set a tagRequestqueue. Cancelall (String tag), cancels the request for the same tag identityRequestqueue. Cancelall (New Requestfilter () {}); Use Requestfilter to filter the request that needs to be canceledDemo
pattern reference diagram, classification is very detailed, if the design site or UI interface can go up to find some resources, very good. Patternry Official Address: Http://patternry.com/Patternry is the user interface design pattern library to help solve common interface design problems. Mephobox Official Address: Http://box.mepholio.com/UI Design interface resources to appreciate the reference site. Android Asset Studio Official address: http://
In Android development, ADB is a very useful and useful tool, but when used without modifying environment variables, every time you need to enter a full path is cumbersome, the solution is to add the path of the ADB tool in the environment variable.Windows platformUnder the Windows platform, it is easier to modify an environment variable by locating the path to the ADB tool, such as c://adt-bundle-mac-x86_64-20131030/sdk/platform-
From http://www.bangchui.org/read.php? Tid = 7792
In Android, SQLite data pants can be used to store data, but Google does not directly provide us with tools to manage data in the database.If you cannot directly view the database using a tool, copy the database from the mobile phone or simulator and use a tool to view the database. The following are the steps:1. Confirm the database location We can use t
Today, I went to work on the first day. I had a morning environment and was in a hurry. It is stuck in the upgraded SDK Tools version. It took four hours to solve the problem.
First, I made three steps to eclipse and Android-SDK-Windows. This version is crazy. When you create a new project, the system prompts SDK version 12.0. You must upgrade it to version 20.0 to create a new project.
Open SDK
When uploading an android app, you need to separate each channel. A channel id is usually changed in the configuration file. If there are multiple channels, manual modification and apk generation will be very troublesome and increase the error probability.
Here is a packaging tool class. The Internet is similar. I optimized it based on it, especially the so file packaging. A small command is useless.
The umeng used in our project is used as a statisti
Because the following operations are command operations, make sure that the environment variable android_home points to the correct path to the ANDROID SDK before doing the following:Launch Android SDK Manager:AndroidTo start Android Device Monitor:MonitorStart UI Automator Viewer:UiautomatorviewerSometimes when you start the UI Automator viewer fails, it will pr
Add the JAVAP command to external tools in Android Studio, which makes it easy to generate method signatures with one click for easy development.To add a step:1. Open Android Studio,file-->settings-->tools-->external Tools, For example, click 1 and then click the 2 plus sig
an expandable area where the contents of the expandable area are extended when the image needs to be stretched to fill larger areas than the image itself. 3 a nine-format picture allows the developer to define the content display area for displaying text or other content .4 the image in point nine format occupies a small resource, generally a few KB or dozens of KB of the picture will become hundreds of bytes, to save traffic and improve loading speed.1.7. Production of 2-point nine filesthe cr
Run Android Studio, always tip: Error running app:instant run requires ' Tools | Android | Enable ADB integration ' to is enabled.As you can see from this tip, this should be an "on-the-fly" problem, in order to be able to continue knocking on the code, find a temporary solution: in Android Studio: Preferences (corresp
(+); Connection.setrequestmethod ("GET");// The Get method submits the parameter Connection.setdooutput (TRUE);//settings can read and write to the server Connection.setdoinput (TRUE);//The request succeeds if ( Connection.getresponsecode () = = () {InputStream = Connection.getinputstream (); Reader reader = new InputStreamReader (InputStream, "UTF-8");//packaged into a character stream bufferedreader BufferedReader = new BufferedReader ( Reader); String str1 = NULL;SB = new StringBuffer (); wh
: Git clone Https://android.googlesource.com/platform/frameworks/volleyOr: Https://github.com/mcxiaoke/android-volleywhat can volley do?a network communication library published at the Google I/O conference. handle some network requests, such as data parsing, downloading display pictures.• Data processing : The processing of data obtained by a network request. · Image loading: Download and display of Web images.Use stepsUse Permissions uses-permissio
Android image processing tools,The image tool class can be used for Bitmap, byte array, and Drawable conversion and image scaling. Currently, the function is weak and will be enhanced later. For example:BitmapToDrawable (Bitmap B) bimap to drawableDrawableToBitmap (Drawable d) drawable to bitmapDrawableToByte (Drawable d) drawable to byte
ScaleImage (Bitmap org, float scaleWidth, float scaleHeight) Scaling
Basic Android tutorial -- 8.3.1 three graphic tools
In the last two sections, we learned about Drawable and Bitmap. They all load images. In this section, we will learn about drawing-relatedSome APIs are Canvas, Paint, and Path )! This section is very important andBasics of custom View ~ Okay. Let's talk about the content in this section ~Official API documentation: Canvas; Paint; Path;
1. Detailed descr
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.