CN103106008B - A kind of method of playing pictures, device and Android device - Google Patents
A kind of method of playing pictures, device and Android device Download PDFInfo
- Publication number
- CN103106008B CN103106008B CN201310072039.XA CN201310072039A CN103106008B CN 103106008 B CN103106008 B CN 103106008B CN 201310072039 A CN201310072039 A CN 201310072039A CN 103106008 B CN103106008 B CN 103106008B
- Authority
- CN
- China
- Prior art keywords
- pictures
- playing
- picture
- android device
- media library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention is applicable to Computer Applied Technology field, it is provided that a kind of method of playing pictures, device and Android device, and described method includes: receive the lantern slide play instruction of input;Load and play all pictures of storage in Android device successively according to default playing sequence, these pictures are stored at least two difference file.The present invention, after receiving the lantern slide play instruction of user's input, Android device automatically can play the picture in all files folder in Android device with the form of lantern slide.Picture in pressing from both sides All Files, only need to input a lantern slide play instruction can all play, and simple operation brings more preferable Consumer's Experience.
Description
Technical field
The invention belongs to Computer Applied Technology field, particularly relate to a kind of method of playing pictures, device and
Android device.
Background technology
At present, the application of Android Android becomes increasingly abundant.Such as Android4.0 photograph album is exactly Android
One of them application.
Android4.0 photograph album can realize the broadcasting of picture in the way of lantern slide, but can only play current
Picture in file, after the picture playing of current file folder is over, can only repeat playing current file
Picture in folder or automatically exit from lantern slide and play.If user needs to play the picture in other file,
The most first need to exit the broadcasting of the lantern slide in current file folder, enter back into another file, then select
Lantern slide is play.This picture playing mode makes user operation the most loaded down with trivial details, user's experience extreme difference.
Summary of the invention
Embodiments provide a kind of method of playing pictures, device and Android device, it is intended to solve
When certainly prior art is with lantern slide mode playing pictures, user operation is loaded down with trivial details, the problem of experience extreme difference.
On the one hand, it is provided that a kind of method of playing pictures, described method includes:
Receive the lantern slide play instruction of input;
Load and play all pictures of storage in Android device successively according to default playing sequence, this
A little pictures are stored at least two difference file.
On the other hand, it is provided that the device of a kind of playing pictures, described device includes:
Play instruction receives unit, for receiving the lantern slide play instruction of input;
Broadcast unit, stores for loading successively according to default playing sequence and play in Android device
All pictures, these pictures are stored at least two difference file.
Another further aspect, it is provided that a kind of Android device, described Android device includes broadcasting as above
Put the device of picture.
In the embodiment of the present invention, after receiving the lantern slide play instruction of user's input, Android device
The picture in all files folder in Android device is automatically play with the form of lantern slide.To All Files
Picture in folder, only need to input a lantern slide play instruction can all play, and simple operation brings more
Good Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the flowchart of the method for the playing pictures that the embodiment of the present invention one provides;
Fig. 2 is the structured flowchart of the device of the playing pictures that the embodiment of the present invention two provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
In embodiments of the present invention, after receiving the lantern slide play instruction of user's input, Android device
Load and play all pictures of storage in media library successively according to default playing sequence, it is achieved that only need one
Secondary operation can complete the automatic broadcasting of the picture in the All Files folder in Android device.
Below in conjunction with specific embodiment, the realization of the present invention is described in detail:
Embodiment one
Fig. 1 shows the flow process that realizes of the method for the playing pictures that the embodiment of the present invention one provides, and describes in detail such as
Under:
In step S101, receive the lantern slide play instruction of input.
In the present embodiment, user first clicks on photograph album button and enters the photograph album of Android device, then selects
Selecting lantern slide to play, Android device can load successively according to default playing sequence and play Android
All pictures of storage in equipment, these pictures are stored at least two difference file.
It addition, before performing this step, it is also possible to including: all figures that will store in Android device
The information of sheet preserves to media library;And, under conditions of presetting, Android device triggers media library
Carry out the scanning of picture, update described media library according to scanning result simultaneously.
Wherein, the present embodiment is pre-conditioned: Android device start or picture increase or picture
Reduce, as long as meeting one of them, media library can be triggered and carry out the scanning of picture, by Android device
In the information of picture that newly increases add in media library or delete the information of the picture deleted.
Wherein, media library has in the All Files folder in Android device with the form storage of tables of data
The information of each picture, this information includes the ID of picture, the index of picture place file, the establishment of picture
Time, picture, it is also possible to include the store path of picture, the width of picture, the height of picture, picture
Coded format etc..
In step s 102, load successively according to default playing sequence and play storage in Android device
All pictures, these pictures are stored at least two difference file.
In the present embodiment, played data source is first created, by loading medium storehouse, described played data source
The information of all pictures to internal memory.Wherein, played data source is an object, the major function of this object
It is to realize each file in inquiry media library, and can the random any figure in loading medium storehouse
Sheet is to internal memory, and played data source really manages the information of each picture in each file in media library
An object or referred to as instrument.
When reality is applied, the querying condition that can arrange this played data source is the index of file
BUCKET_ID, thus can inquire the All Files of storage in media library in the way of the index of file
The information of all pictures under Jia, concrete execution statement is as follows:
mWhereClause=ImageColumns.BUCKET_ID。
Secondly, the information of all pictures being loaded onto internal memory is ranked up according to predetermined playing sequence.Its
In, during actual application, the establishment time according to picture can be set, carry out in the way of ascending order or descending
Sequence, it is also possible to be otherwise ranked up, such as, below with establishment time and the rope of picture of picture
Drawing and be the mode of descending and be ranked up, concrete execution statement is as follows:
mOrderClause=ImageColumns.DATE_TAKEN+"DESC,"+BaseColumns._ID+
" DESC ", wherein, the establishment time of DATE_TAKEN representative picture, BaseColumns._ID represent
The index of picture.
Finally, all pictures are play successively according to the pictorial information after sequence.Wherein, the letter to all pictures
After breath arranges order, Android device i.e. can be with the form of lantern slide in first picture commences play out
All pictures in depositing, until terminating.During concrete playing pictures, it is necessary first to this picture is decoded,
Obtain the thumbnail of this picture, then carry out the broadcasting of this picture according to this thumbnail.As for the most how
The lantern slide realizing picture is play with prior art is identical, does not repeats them here.
The present embodiment, after receiving the lantern slide play instruction of user's input, Android device is according to presetting
Playing sequence load and play in media library all pictures of storage successively, it is achieved that only need once-through operation i.e.
Can automatically play the picture in the All Files folder in Android device, and need not be entered each by user
File, selects picture to carry out lantern slide broadcasting, and user operation is simple.
One of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method
The program that can be by completes to instruct relevant hardware, and corresponding program can be stored in a computer can
Reading in storage medium, described storage medium, such as ROM/RAM, disk or CD etc..
Embodiment two
Fig. 2 shows the concrete structure block diagram of the device of the playing pictures that the embodiment of the present invention two provides, in order to
It is easy to explanation, illustrate only the part relevant to the embodiment of the present invention.The device of this playing pictures can be interior
A software unit, hardware cell or the unit of software and hardware combining being placed in Android device, should
Android device can be mobile terminal, it is also possible to be panel computer.In the present embodiment, this broadcasting figure
The device 2 of sheet includes: play instruction receives unit 21 and broadcast unit 22.
Wherein, play instruction receives unit 21, for receiving the lantern slide play instruction of input;
Broadcast unit 22, deposits for loading successively according to default playing sequence and play in Android device
All pictures of storage, these pictures are stored at least two difference file.
Further, described device also includes:
Pictorial information memory element, the information of all pictures for storing in Android device preserves extremely
In media library;
Media library updating block, under conditions of presetting, triggers media library and carries out the scanning of picture, with
Time according to scanning result update described media library.
Further, described default condition is: Android device start or picture increase or picture
Reduce.
Concrete, described broadcast unit 22 includes:
Data source creation module, is used for creating played data source, by loading medium storehouse, described played data source
In the information of all pictures to internal memory;
Order module, for carrying out according to predetermined playing sequence the information of all pictures being loaded onto internal memory
Sequence;
Playing module, for playing all pictures successively according to the pictorial information after sequence.
The device of the playing pictures that the embodiment of the present invention provides can apply the embodiment of the method one in aforementioned correspondence
In, details see the description of above-described embodiment one, do not repeat them here.
It should be noted that in said system embodiment, included unit is according to function logic
Carry out dividing, but be not limited to above-mentioned division, as long as being capable of corresponding function;Separately
Outward, the specific name of each functional unit also only to facilitate mutually distinguish, is not limited to the present invention's
Protection domain.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.
Claims (5)
1. the method for a playing pictures, it is characterised in that described method includes:
Receive the lantern slide play instruction of input;
Load and play all pictures of storage in Android device successively according to default playing sequence, this
A little pictures are stored at least two difference file;
Before the described lantern slide play instruction receiving input, also include:
The information of all pictures stored in Android device is preserved to media library;
Under conditions of presetting, trigger media library and carry out the scanning of picture, update institute according to scanning result simultaneously
State media library;
The described all pictures loading and playing in Android device storage according to default playing sequence successively
Including:
Create played data source, by the information of all pictures in loading medium storehouse, described played data source extremely
Internal memory;
The information of all pictures being loaded onto internal memory is ranked up according to predetermined playing sequence;
All pictures are play successively according to the pictorial information after sequence;
Described played data source is an object, the major function of this object be realize inquiry media library in each
Individual file.
2. the method for claim 1, it is characterised in that described default condition is: Android
Device power-up or picture increase or picture reduces.
3. the device of a playing pictures, it is characterised in that described device includes:
Play instruction receives unit, for receiving the lantern slide play instruction of input;
Broadcast unit, stores for loading successively according to default playing sequence and play in Android device
All pictures, these pictures are stored at least two difference file;
Described device also includes:
Pictorial information memory element, the information of all pictures for storing in Android device preserves extremely
In media library;
Media library updating block, under conditions of presetting, triggers media library and carries out the scanning of picture, with
Time according to scanning result update described media library;
Described broadcast unit includes:
Data source creation module, is used for creating played data source, by loading medium storehouse, described played data source
In the information of all pictures to internal memory;
Order module, for carrying out according to predetermined playing sequence the information of all pictures being loaded onto internal memory
Sequence;
Playing module, for playing all pictures successively according to the pictorial information after sequence;
Described played data source is an object, the major function of this object be realize inquiry media library in each
Individual file.
4. device as claimed in claim 3, it is characterised in that described default condition is: Android
Device power-up or picture increase or picture reduces.
5. an Android device, it is characterised in that described Android device include claim 3 to
The device of the playing pictures described in 4 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310072039.XA CN103106008B (en) | 2013-03-06 | 2013-03-06 | A kind of method of playing pictures, device and Android device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310072039.XA CN103106008B (en) | 2013-03-06 | 2013-03-06 | A kind of method of playing pictures, device and Android device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103106008A CN103106008A (en) | 2013-05-15 |
CN103106008B true CN103106008B (en) | 2016-08-17 |
Family
ID=48313916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310072039.XA Active CN103106008B (en) | 2013-03-06 | 2013-03-06 | A kind of method of playing pictures, device and Android device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103106008B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731834B (en) * | 2013-12-24 | 2019-04-16 | 安凯(广州)微电子技术有限公司 | A kind of document order playback method and device |
CN104731880B (en) * | 2015-03-09 | 2018-09-25 | 小米科技有限责任公司 | Picture sort method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111653A (en) * | 2009-12-25 | 2011-06-29 | 康佳集团股份有限公司 | Method for realizing digital photo frame by using STB, and STB thereof |
CN102455890A (en) * | 2010-10-20 | 2012-05-16 | 鸿富锦精密工业(深圳)有限公司 | Filmstrip projection system and method |
CN102467546A (en) * | 2010-11-16 | 2012-05-23 | 鸿富锦精密工业(深圳)有限公司 | Method for generating media file list |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040047588A1 (en) * | 2002-03-27 | 2004-03-11 | Tomoyuki Okada | Package medium, reproduction apparatus, and reproduction method |
CN102289481A (en) * | 2011-08-02 | 2011-12-21 | Tcl集团股份有限公司 | Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment |
-
2013
- 2013-03-06 CN CN201310072039.XA patent/CN103106008B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111653A (en) * | 2009-12-25 | 2011-06-29 | 康佳集团股份有限公司 | Method for realizing digital photo frame by using STB, and STB thereof |
CN102455890A (en) * | 2010-10-20 | 2012-05-16 | 鸿富锦精密工业(深圳)有限公司 | Filmstrip projection system and method |
CN102467546A (en) * | 2010-11-16 | 2012-05-23 | 鸿富锦精密工业(深圳)有限公司 | Method for generating media file list |
Also Published As
Publication number | Publication date |
---|---|
CN103106008A (en) | 2013-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9396572B2 (en) | Image correlation method and electronic device thereof | |
CN103955536A (en) | Classification method and device of applications | |
JP5863800B2 (en) | Contact management method and apparatus for portable terminal | |
CN102821140A (en) | Information sharing method and information sharing terminal | |
US20180046472A1 (en) | Method and system for customizing desktop launcher of mobile terminal | |
CN104219561A (en) | Method and user equipment for cleaning offline videos | |
CN103442299B (en) | A kind of display methods for playing record and electronic equipment | |
CN102141926A (en) | Application program management method, device and digital television set top box | |
CN106033407A (en) | Data paste method and device | |
CN106201218A (en) | Method and device for clearing picture files in chat records and mobile device | |
CN104350455A (en) | Causing elements to be displayed | |
CN104219356A (en) | Method and device for displaying and searching contact man information and mobile terminal | |
CN103106008B (en) | A kind of method of playing pictures, device and Android device | |
CN105630757A (en) | Data editing method and apparatus | |
CN106557570A (en) | File management method and device under a kind of Android system | |
CN105843940A (en) | Folder combination method and device | |
CN101986662A (en) | Widget instance operation method and system | |
Hight | Shoot, edit, share: Cultural software and user-generated documentary practice | |
CN106066874A (en) | Object processing method and terminal | |
CN108874495B (en) | Theme resource conversion method and device and electronic equipment | |
CN105808677A (en) | Picture deleting method and device and electronic equipment | |
CN111104777A (en) | Document editing method and device, computer storage medium and terminal | |
CN105808586A (en) | Picture data processing method and apparatus | |
CN108089904A (en) | A kind of displayed page extended method and equipment | |
CN111142741B (en) | File sorting method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |