The last few days is really a variety of significance of the busy, busy exams, but also busy with curriculum design, hand and outsourced projects, the other side of the school project to do, their own things still in the document stage, it is really let people want to die Ah!!
Nearly half a month, C # This aspect of coding more, Android and Java here completely shelved, so take time to write a small example.
This is a very small example of a folder
1 overviewWe all know that under Linux the editor often writes a makefile file, which can be used to interpret the makefile file as a compiled configuration file, which holds the configuration information about how the compiler compiles the program, and determines what the result of the compilation is. While the Android.mk fi
Release is 9.png:All the functions that can be used to perform the job. However, the framework-res.apk \ res \ drawable-hdpi directory contains many xxxxxx.9.png images.
Do not think that this 9 is only a distinction between the names of PNG images. In fact, it is a special format, with some hands and feet on the basis of PNG images, in addition, you will not be able to see the details below ).
9.png is a new feature created on the
An explanation of the Android file files operationThe Android file operation should have permission:Determine if the SD card is plugged inEnvironment.getexternalstoragestate (). Equals (Android.os.Environment.MEDIA_MOUNTED);Get the SD card root directoryFile skroot = Environment.getexternalstoragedirectory ();Get the p
Background introduction:MIME: Full name Multipurpose Internet Mail Extensions, multi-function Internet Message expansion service. It is a Multipurpose Internet Mail Expansion protocol that was first applied to the e-mail system in 1992, but was later applied to the browser. A MIME type is a type of file that sets an extension that is opened by an application, and the browser automatically opens with the specified application when the extension
Many people have added QQ to ask me to pack ant, and now I want to write another easy-to-understand
Http://www.stay4it.com /? P = 284
----------------------------------- I can't read the complicated ones. =
AntPackaging references:
Http://hi.baidu.com/%F5%CC%C4%A7/blog/item/3f9bc5ec2338ad3726979186.html
Http://www.diybl.com/course/3_program/java/javajs/20090201/154692.html
Android antPackaging:
Http://marshal.easymorse.com/archi
1. The file storage data uses Io operations in Java to store and read files, but Android encapsulates the methods for retrieving input and output streams in the context class.The created storage file is saved in the/data/
2. operation.Save the file content: Get the output stream through context. openfileoutput. The p
Android file operations should have permission:
Determine if the SD card is plugged in
Environment.getexternalstoragestate (). Equals (
Android.os.Environment.MEDIA_MOUNTED);
Get SD Card root directory
File skroot = Environment.getexternalstoragedirectory ();
Get the private root directory
File fileroot = Contex
Application Scenarios :1. Display the version number of the application in the interface;2, the user launches the application, the background to determine whether the application is the latest version.Each of these scenarios requires that the app's version number be automatically obtained in the program.Idea Introduction :In Android, The version number of the application is configured in the Androidmanifest.xml fi
. Referencing the project used for bind in our first created projectAfter the reference, double-click the reference name to see the namespace and the class and method names inside.Third, complete the demo1. Add the following code to the Main.axml file, Com.ant.liao.GifView represents the Gifview control that references Com.ant.liaoXML version= "1.0" encoding= "Utf-8"?>LinearLayoutxmlns:android= "Http://sche
Android initialization language (init. *. rc, init. conf file format)
The Android initialization language contains four types of statements: Actions (Action), Commands (command), Services (service), and Options (Options ).
All of these are in the unit of action, and various marks are separated by spaces. The C-style backslash can be used to insert spaces between
folder after the Dex2jar is unpacked. BAT file)Then enter: Dex2jar.bat classes.dex(There may be an error, if the error is a good look at the Java environment variables, the configuration of the right)C: If everything works, it will decode a *.jar file.D: Use the Jd-gui mentioned earlier to decode the *.jar file (Windows environment can be directly dragged up to)E: Many companies developed the source code a
Data storage method 1 in Android: File Format
Summary in Android, there are five data storage methods. Make a note today. How to store data in the form of files.
1. design the layout in activity_main.xml
2. In MainActivity. class, obtain the user-input file name and file inf
RFC1867 Protocol IntroductionThe RFC1867 protocol mainly adds the file attribute to the input tag on the basis of the HTTP protocol.At the same time, the method that defines the form must be POST, and the enctype must be multipart/form-data. Other property tags, name , can be used "size= wide, high" To specify the Size property .Multipart/form-dataMultipart/form-data 's media content complies with multipart data flow rules as defined in RFC 1521.It
This article was reproduced from: http://blog.csdn.net/u013308744/article/details/49274069First look at the KL file of touchscreen# Copyright (c), the Linux Foundation. All rights reserved.## redistribution and use in source and binary forms, with or without# modification, is permitted provided that the following conditions is# Met:# * Redistributions of source code must retain the above copyright# Notice, this list of conditions and the following dis
-injars Androidtest.jar "jar Package Address"-outjars out "Output address"The jar of the library referenced by-libraryjars ' D:\android-sdk-windows\platforms\android-9\android.jar ', used to parse the jar class specified by Injars "-optimizationpasses 5-dontusemixedcaseclassnames "does not produce a variety of class names when confused"-dontskipnonpubliclibrarycl
Shareitem.setlabel (Resolve.loadlabel (Pmanager). toString ());
Set Package Name
Shareitem.setpackagename (Resolve.activityInfo.packageName);
}
Summarize:Get the specific information method by PackageInfo:Package name Get method: Packageinfo.packagenameIcon Get Get Method: Packagemanager.getapplicationicon (ApplicationInfo)Application name Get method: Packagemanager.getapplicationlabel (ApplicationInfo)Access method using permissions: Packagemanager.getpackageinfo (packagenam
Android init. RC File Syntax
The android initialization script language contains four types of statements:
* Actions)* Command (commands)* Services)* Option (options)The syntax of this language includes the following conventions:* All types of statements are based on line-oriented. A statement contains several tokens, which are separated by space characters. if a
This text is mainly for Mac notebook anti-compilation apk tutorial, are the latest, the first need to list the tools:Apktool Dex2jar Jd-jui is the main 3 tools. Apktool function: Mainly used to decompile the XML file below Res. Dex2jar function: Mainly used to decompile apk view source code. Jd-jui function: View the Dex2jar back-compiled jar file. If the apk is confused, generally can only clear the view o
There is now a need to download many files, put in an open port (URL) directory, the files under this directory will change, that is, the file name is not fixed. Now you need to download the files in this directory to the Android device. I found a lot of information and found that I could not list all the files in a URL directory as file
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.