/,pictures/,ringtone/. If you do not want the system's multimedia browser to be able to browse your multimedia files, you can add. nomedia files to your directory. The method of getting a public directory getextenrnalStoragepublicdirectory () will participate directory_music/directory_pictures/directory _ringtone incoming.to Add a brochure under the Public picture directory: Public FileGetalbumstoragedir(StringAlbumname) { //Get The directory for the user's public pictures directory. Filefile=
Analysis of Android source code design patterns Reading Notes-design patterns you should know in Android
On and off, I also read the Android source code design pattern parsing. Many design patterns are mentioned in the book, but some of them are very likely to be seen in development, so it does not have much impact i
(mcursor.movetonext ()) {//print log to view the value of the photo id long id = mcursor.getlong (mcurso R.getcolumnindex (mediastore.images.media._id)); LOG.I ("mediastore.images.media_id=", ID + ""); Filter out unwanted images, just get pictures of photos stored in the photo album after the picture String path = mcursor.getstring (Mcursor.getcolumnindex (MEDIASTORE.IMAGES.MEDIA.D ATA)); if (Path.startswi
oracle| Notes | Stored procedures using Oracle stored procedure notes in C #
1. Invoke stored procedures that contain out/in out type parameters
Stored procedures:
CREATE OR REPLACE PROCEDURE "Site_editsitedataexist"
(id_ n
Emplogin;Stored procedures:Create or Replace procedure Empdeptpro (username in varchar2,pwd in Varchar2,flag in Varchar2,Empitems out Empdeptpac.cur_emptype, deptitems off Empdeptpac.cur_depttype, empres out Emp%rowtype) isf Boolean;BeginF:=emplogin (USERNAME,PWD);If F ThenCase FlagWhen ' A ' then-- query all employee informationOpen Empitems for SELECT * from EMP;When the ' B ' then-- Query your department informationOpen Deptitems for select dept.*
to find out all order numbers through a cursor, calculate the sum of each order number by looping through each output, and then add the data to the new table OrderTotals. 9--TriggerIn MySQL, a trigger is a processing action that can be automatically responded to when a delete, INSERT, UPDATE statement is executed. For example, every time we order a product from the warehouse, the number of corresponding products in the warehouse will be one less. Create a Trigger Each trigger name must be uniqu
view the value of the photo ID longid= Mcursor.getlong (Mcursor.getcolumnindex (mediastOre. images.media._id)); NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;LOG.I ("mediastore.images.media_id=", id+ "");// filter out unwanted images, Only get pictures in albums that store photos after taking pictures stringpath=mcursor.getstring ( Mcursor.getcolumnindex (MediaStore.Images.Media.DATA));if ( Path.startswith (sdcardpath+ "/dcim/100media") | | path.startswith (sdcardpath+ "/dcim/camera/") | | path.startswith (sd
In Android, The Drawable resource ID is stored on the Sdcard, And the drawablesdcard
The process is divided into three steps:1. Convert resource ID to Drawable2. Convert Drawable to Bitmap3. Store Bitmap on Sdcard
The Code is as follows:
Public class MainActivity extends ActionBarActivity {@ Override protected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); setContentView (
Android gets multiple recent photos from the album (get the photos stored by the camera)
When you are working on a company project, you need to customize the grid view of the displayed photos to display the first 20 photos that you have taken with a recent camera.
I checked the API provided by the system and did not find the path constant pointing directly to storing photos after taking photos with a camer
1. Android Phone has cell phone memory RAM also has SD card, see where we install, if we installed in SD card if we find the Tencent directory to find the data directory, there will be a qq_database file, the file copied to the computer, Then use the QQ Chat record viewer can be viewed.
2. Installed in the mobile phone storage space, it is necessary to use the RE file manager, find/data/data/com.tencent.qq/databases/folder, which can see the Qq_datab
Sometimes the user name and password are saved in sharedpreference for easy login, but if the password is not processed it will be saved in clear text.The Java layer in Android provides the tool class: android.util.Base64; encode and decode the password with Base64.1 //Base64 Code:2 byte[] encode = Base64.encode ("Hello, World". GetBytes (), base64.default);3 4String enc =NewString (encode);5 6LOG.D ("", "base encode =" +enc);7 8 //Base64 decoding:9 b
Android obtains multiple recent photos from the album (obtains the photos stored by the camera ),
Reprinted please indicate the source: http://blog.csdn.net/android_ls/article/details/39928519
When you are working on a company project, you need to customize the grid view of the displayed photos to display the first 20 photos that you have taken with a recent camera.
I checked the API provided by the system
Android cainiao Study Notes 30 ---- use Baidu map API for Android (I) preparations and display maps in applications, and android Baidu map api
1. Preparations:
Baidu map API is open for free, but you need to apply for API Key:
1) register a Baidu developer account first
2) Enter Baidu open service platform http://devel
Content Provider
In data processing, Android usually uses the Content Provider method. Content Provider uses the Uri instance as the data encapsulation of the handle to conveniently add, delete, modify, and query data. Android does not provide data storage shared by all applications. Using content Provider, Android provides simple and convenient interfaces to mai
Android learning notes -- Sqlite database, android -- sqlite
I learned about data storage in Android a few days ago, including file storage, SharedPreferences storage, and the feature of Acndroid: SQLite database storage. I was surprised that a lightweight SQLite database was embedded in
Android Animation Study Notes
For the implementation of Animation, Android provides Animation and introduces two Animation modes in Android SDK:
1. Tween Animation: A gradient Animation is generated by constantly performing image transformations (translation, scaling, and rotation) on objects in the scenario;
2. Frame
(Stored procedure: (ForSQL programming, just know)1, stored procedures: similar to a function, is to encapsulate a piece of code. When you want to execute this piece of code, you can do so by calling the stored procedure. In the body of the statement in the package , you can use if/else, Case, while and so on to control the structure, SQL programming. 2. View
G where num > N to min; End$delimiter; The JDBC call stored procedure should use CallableStatement, and the following is a simple example:private static void PS () throws sqlexception{connection conn = null; CallableStatement cs = Null;try{conn = Jdbcutils.getconnection (); cs = Conn.preparecall ("Call P1 (?,?,?)"); Cs.registeroutparameter (2, types.double);//set out parameter Cs.registeroutparameter (3, Types.integer);//set out parameter Cs.setint
;
elseiftemp=600then SELECTendtime-300INTOstarttime; SELECTendtime+300INTOlasttime; ELSEIF
Temp=300then SELECTendtimeINTOstarttime;
SELECTendtime+600INTOlasttime;
ENDIF; selectavg (val) intosval FROMdata5_table where datatimeAttention:1, do not use "select A=b;" This way, you should use "Select B into A;" The error "Cannot return data set".2, do not say the variables in the stored procedure are defined as field names, compilation can pass, execution d
Label:Syntax structure: Create proc name
parameter list
as
Code Snippet Call: exec Stored procedure name parameter list Points: 1 . You can use the output
modifier parameter 2. You can use the default values, note that you need to set the last parameter to the default value Instance: 1 --easy to get started stored procedure procedure
2 Create procTri3 @str varchar(Ten)
4 as
5 Declare @
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.