CN104717075A - Equipment with Android system and scanning method of equipment - Google Patents

Equipment with Android system and scanning method of equipment Download PDF

Info

Publication number
CN104717075A
CN104717075A CN201310689356.6A CN201310689356A CN104717075A CN 104717075 A CN104717075 A CN 104717075A CN 201310689356 A CN201310689356 A CN 201310689356A CN 104717075 A CN104717075 A CN 104717075A
Authority
CN
China
Prior art keywords
equipment
scan
data
radio receiver
main thread
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.)
Granted
Application number
CN201310689356.6A
Other languages
Chinese (zh)
Other versions
CN104717075B (en
Inventor
唐日升
陈皓
杨彦青
张帅
高硕�
展中华
杨为琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201310689356.6A priority Critical patent/CN104717075B/en
Publication of CN104717075A publication Critical patent/CN104717075A/en
Application granted granted Critical
Publication of CN104717075B publication Critical patent/CN104717075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to equipment with the Android system and a scanning method of the equipment. The method includes the steps that a main thread of a current activity is started, and a broadcast receiver is logged in the main thread; the equipment scans an external barcode of the equipment and sends scanning data to the broadcast receiver in a broadcasting form; the broadcast receiver receives the scanning data and sends the scanning data into an edit box of the current activity to be displayed; the broadcast receiver is closed, so that the main thread of the current activity is paused. The equipment and method can be used for directly scanning barcodes without application software.

Description

A kind of equipment and scan method thereof applying android system
Technical field
The present invention relates to the device scan technical field of application android system, particularly relate to a kind of equipment and the scan method thereof of applying android system.
Background technology
The equipment (as smart mobile phone etc.) of existing application android system, its scan function be all be based upon application software basis on realize, if this equipment does not install scanning specialized application software, or do not start this application software, equipment just cannot realize scan function.This brings larger inconvenience to equipment use.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of equipment and the scan method thereof of applying android system, can depart from application software and realize the direct scanning to bar code.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of scan method applying the equipment of android system, and the method comprises:
Start the main thread of current active, and in this main thread, registration radio receiver;
The bar code of described equipment to its outside scans, and scan-data is sent to described radio receiver with the forms of broadcasting;
Described radio receiver receives described scan-data, and the interior display of the edit box being sent to described current active;
Close described radio receiver, and then suspend the main thread of described current active.
The invention has the beneficial effects as follows: in the present invention, after starting current active main thread, namely radio receiver is registered, like this, when equipment scans outside bar code, and after the scan-data of acquisition is sent to radio receiver with the forms of broadcasting, the radio receiver in current active main thread can obtain scan-data, and then show in the edit box being sent to current active, thus realize by the cognition of scanning barcode.Before the main thread suspending current active, first close this radio receiver, can system resource be saved again.As can be seen here, the present invention utilizes broadcast to transmit scan-data, achieves the direct scanning to bar code under the prerequisite departing from application software.
On the basis of technique scheme, the present invention can also do following improvement:
Further, the bar code of described equipment to its outside scans, and sends to the method for described radio receiver to be scan-data with the forms of broadcasting:
The bar code of described equipment to its outside scans, and obtains view data;
Described image data analyzing is scan-data by described equipment, and described scan-data is sent to described radio receiver with the forms of broadcasting.
In addition, present invention also offers a kind of equipment applying android system, this equipment comprises: processor, scanning means, display unit; Described processor is connected with described display unit with described scanning means respectively;
Described processor is used for, and runs all activities; Start the main thread of current active, and in this main thread, registration radio receiver; The described scan-data sent here by described scanning means sends to described radio receiver with the forms of broadcasting; Utilize described radio receiver to receive described scan-data, and be sent to described display unit; Close described radio receiver, and then suspend the main thread of described current active;
Described scanning means is used for, and scans the bar code of outside, and scan-data is sent to described processor;
Described display unit is used for, and shows the edit box of described current active, and display is received from the scan-data of described processor in this edit box.
Further, described scanning means is camera, or is probe.
Further, described processor is connected by serial ports with described scanning means.
Accompanying drawing explanation
Fig. 1 is the flow chart of the scan method of the equipment of the application android system of the embodiment that the present invention proposes;
Fig. 2 is the structure chart of the equipment of the application android system of the embodiment that the present invention proposes.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
The present invention proposes a kind of scan method applying the equipment of android system.Fig. 1 is the flow chart of the method specific embodiment.As shown in Figure 1, the method comprises:
Step 101: the main thread starting current active, and in this main thread, registration radio receiver.
In the equipment of application Android system, with user interface interaction be movable (activity).When an activity is in foreground, this activity can be carried out mutual with equipment user, and namely this activity can receive the instruction (as received the action command etc. that user is sent by touch-screen) of user, and then makes certain reaction according to this instruction.The activity being in foreground is called current active in the present invention, and the thread of current active, also referred to as the main thread of current active, only in the main thread of current active, the operation relevant with current active could be performed.
In this step, the main thread of device start current active, and in this main thread, registration radio receiver (BroadcastReceiver).Broadcast is a kind of mechanism of transmission information, and radio receiver then filters broadcast, receive and respond.
Step 102: the bar code of equipment to its outside scans, and scan-data is sent to radio receiver with the forms of broadcasting.
The bar code of equipment to its outside scans, and can obtain scan-data, and this scan-data by the data of this recognition of devices, can be the form of analog signal or digital signal.
Scan-data is sent to radio receiver with the form of broadcast by equipment, when departing from special scanning application software, can realize the transmission of scan-data.
Step 103: radio receiver receives scan-data, and the interior display of the edit box being sent to current active.
Scan-data is sent to radio receiver by step 102, foreground is in owing to only there being current active, thus only have in the main thread of current active and have registered radio receiver, like this, the scan-data also just only having the radio receiver of current active just can receive step 102 to send.
The edit box of current active can identify scan-data and show it.
Step 104: close radio receiver, and then suspend the main thread of current active.
Before the main thread needing time-out current active, first radio receiver will be closed, to save system resource.
Suspend the main thread of current active, namely current active has departed from foreground.
As can be seen here, in the present invention, after starting current active main thread, namely radio receiver is registered, like this, when equipment scans outside bar code, and after the scan-data of acquisition is sent to radio receiver with the forms of broadcasting, radio receiver in current active main thread can obtain scan-data, and then shows in the edit box being sent to current active, thus realizes by the cognition of scanning barcode.Before the main thread suspending current active, first close this radio receiver, can system resource be saved again.As can be seen here, the present invention utilizes broadcast to transmit scan-data, achieves the direct scanning to bar code under the prerequisite departing from application software.
In step 102, the bar code of equipment to its outside scans, and sends to the method for radio receiver to be scan-data: the bar code of equipment to its outside scans, and obtains view data with the forms of broadcasting, this view data can be analog signal, also can be digital signal; This image data analyzing is scan-data by equipment, and scan-data is sent to radio receiver with the forms of broadcasting.
The invention allows for a kind of equipment applying android system, Fig. 2 is the structure chart of this equipment specific embodiment.As shown in Figure 2, this equipment comprises: processor 201, scanning means 202, display unit 203.As shown in Figure 2, processor 201 is connected with display unit 203 with scanning means 202 respectively.
Processor 201 for, run all activities; Start the main thread of current active, and in this main thread, registration radio receiver; The scan-data that scanning means 202 is sent here is sent to radio receiver with the forms of broadcasting; Utilize radio receiver to receive scan-data, and be sent to display unit 203; Close radio receiver, and then suspend the main thread of current active;
Scanning means 202 for, the bar code of outside is scanned, and scan-data is sent to processor 201;
Display unit 203 is for, the edit box of display current active, and display is received from the scan-data of processor 201 in this edit box.
Scanning means 202 in the present invention can realize with camera, also can realize with probe.Here probe can be common scanner, can be also special probe, as bar code scan head.
Processor 201 can be connected by various interface with scanning means 202, as being connected by serial ports, is connected by parallel port, or is connected by various wave point.
Bar code in the present invention can for arbitrarily can by the bar code scanned, as bar code, image etc.Here bar code can be the bar code of any type, as one-dimension code, Quick Response Code etc., all within protection scope of the present invention.
As can be seen here, the present invention has the following advantages:
(1) in the present invention, after starting current active main thread, namely radio receiver is registered, like this, when equipment scans outside bar code, and after the scan-data of acquisition is sent to radio receiver with the forms of broadcasting, the radio receiver in current active main thread can obtain scan-data, and then show in the edit box being sent to current active, thus realize by the cognition of scanning barcode.Before the main thread suspending current active, first close this radio receiver, can system resource be saved again.As can be seen here, the present invention utilizes broadcast to transmit scan-data, achieves the direct scanning to bar code under the prerequisite departing from application software.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. apply a scan method for the equipment of android system, it is characterized in that, the method comprises:
Start the main thread of current active, and in this main thread, registration radio receiver;
The bar code of described equipment to its outside scans, and scan-data is sent to described radio receiver with the forms of broadcasting;
Described radio receiver receives described scan-data, and the interior display of the edit box being sent to described current active;
Close described radio receiver, and then suspend the main thread of described current active.
2. method according to claim 1, is characterized in that, the bar code of described equipment to its outside scans, and sends to the method for described radio receiver to be scan-data with the forms of broadcasting:
The bar code of described equipment to its outside scans, and obtains view data;
Described image data analyzing is scan-data by described equipment, and described scan-data is sent to described radio receiver with the forms of broadcasting.
3. apply an equipment for android system, it is characterized in that, this equipment comprises: processor, scanning means, display unit; Described processor is connected with described display unit with described scanning means respectively;
Described processor is used for, and runs all activities; Start the main thread of current active, and in this main thread, registration radio receiver; The described scan-data sent here by described scanning means sends to described radio receiver with the forms of broadcasting; Utilize described radio receiver to receive described scan-data, and be sent to described display unit; Close described radio receiver, and then suspend the main thread of described current active;
Described scanning means is used for, and scans the bar code of outside, and scan-data is sent to described processor;
Described display unit is used for, and shows the edit box of described current active, and display is received from the scan-data of described processor in this edit box.
4. equipment according to claim 3, is characterized in that, described scanning means is camera, or is probe.
5. equipment according to claim 3, is characterized in that, described processor is connected by serial ports with described scanning means.
CN201310689356.6A 2013-12-16 2013-12-16 A kind of equipment and its scan method using android system Active CN104717075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310689356.6A CN104717075B (en) 2013-12-16 2013-12-16 A kind of equipment and its scan method using android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310689356.6A CN104717075B (en) 2013-12-16 2013-12-16 A kind of equipment and its scan method using android system

Publications (2)

Publication Number Publication Date
CN104717075A true CN104717075A (en) 2015-06-17
CN104717075B CN104717075B (en) 2019-01-08

Family

ID=53416071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310689356.6A Active CN104717075B (en) 2013-12-16 2013-12-16 A kind of equipment and its scan method using android system

Country Status (1)

Country Link
CN (1) CN104717075B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951237A (en) * 2017-03-09 2017-07-14 江苏智联天地科技有限公司 A kind of bar code scan transmission method based on Android frameworks
TWI677789B (en) * 2018-07-06 2019-11-21 英研智能移動股份有限公司 Peripheral hardware operating method and system
CN110688161A (en) * 2018-07-06 2020-01-14 英研智能移动股份有限公司 Peripheral hardware operation method and system
CN116204200A (en) * 2023-02-03 2023-06-02 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694707A (en) * 2012-05-31 2012-09-26 李英祥 Bluetooth and android technology-based household information system and monitoring control method
US8577053B1 (en) * 2007-02-02 2013-11-05 Jeffrey Franklin Simon Ticketing and/or authorizing the receiving, reproducing and controlling of program transmissions by a wireless device that time aligns program data with natural sound at locations distant from the program source

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577053B1 (en) * 2007-02-02 2013-11-05 Jeffrey Franklin Simon Ticketing and/or authorizing the receiving, reproducing and controlling of program transmissions by a wireless device that time aligns program data with natural sound at locations distant from the program source
CN102694707A (en) * 2012-05-31 2012-09-26 李英祥 Bluetooth and android technology-based household information system and monitoring control method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘常亮: "《基于Android手机的条码识别系统研究》", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
张嘉宾: "《Android应用的恶意代码注入》", 《软件》 *
王亦然 等: "《基于Android的二维码扫描系统设计与实现》", 《数字技术与应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951237A (en) * 2017-03-09 2017-07-14 江苏智联天地科技有限公司 A kind of bar code scan transmission method based on Android frameworks
TWI677789B (en) * 2018-07-06 2019-11-21 英研智能移動股份有限公司 Peripheral hardware operating method and system
CN110688161A (en) * 2018-07-06 2020-01-14 英研智能移动股份有限公司 Peripheral hardware operation method and system
CN116204200A (en) * 2023-02-03 2023-06-02 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment
CN116204200B (en) * 2023-02-03 2024-02-09 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment

Also Published As

Publication number Publication date
CN104717075B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN109446309B (en) Question feedback method and device
US8769030B2 (en) Device event notification registration through direct interaction with mobile device
CN105681885B (en) Mobile terminal record screen live broadcast device and method
CN111240620A (en) Intelligent terminal screen projection processing method and device, computer equipment and medium
US20190051147A1 (en) Remote control method, apparatus, terminal device, and computer readable storage medium
CN104717075A (en) Equipment with Android system and scanning method of equipment
US20150163734A1 (en) Access point connection method and electronic device thereof
CN105590349A (en) Mobile attendance system based on Wi-Fi Aware and Wi-Fi Direct
CN109699019B (en) Broadcast scanning method, device, electronic equipment and storage medium
CN109587823B (en) Method for accessing WiFi camera to Internet by intelligent code scanning
US10631345B2 (en) Communication control device, communication control method, program, and communication control system
CN203182889U (en) Skin detection terminal
CN110895459A (en) Information processing system, information processing apparatus, information processing method, and storage medium
US9948732B2 (en) Method for providing status messaging service in electronic device and the electronic device thereof
CN103957376A (en) Infrared thermal-image probe controlling system and method based on mobile intelligent terminal
CN107483729B (en) Method and system for selecting captured image by multi-image display
CN204791080U (en) Terminal and system of patrolling and examining patrol and examine
CN114055468B (en) Track reproduction method, track reproduction system and terminal equipment
CN107291427A (en) The optimization method of game engine, device and system
CN103248789B (en) A kind of image capture device for full-filling class file and image-pickup method thereof
CN203825669U (en) Multipurpose attendance checking service platform
JP6451337B2 (en) Information processing system and communication method
US20150269188A1 (en) Method and device for providing information using barcode
KR101247387B1 (en) Method, apparatus and system for processing command using qr code
CN109756679B (en) Imaging control method and device of split type electronic equipment and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant