CN114237526A - Method for adapting Android mobile charging terminal to various printers - Google Patents
Method for adapting Android mobile charging terminal to various printers Download PDFInfo
- Publication number
- CN114237526A CN114237526A CN202111536656.1A CN202111536656A CN114237526A CN 114237526 A CN114237526 A CN 114237526A CN 202111536656 A CN202111536656 A CN 202111536656A CN 114237526 A CN114237526 A CN 114237526A
- Authority
- CN
- China
- Prior art keywords
- under
- printer
- city
- subfolder
- adapting
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 239000000796 flavoring agent Substances 0.000 claims abstract description 4
- 235000019634 flavors Nutrition 0.000 claims abstract description 4
- 238000004806 packaging method and process Methods 0.000 claims abstract description 4
- 230000004069 differentiation Effects 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1229—Printer resources management or printer maintenance, e.g. device status, power levels
- G06F3/1231—Device related settings, e.g. IP address, Name, Identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1204—Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0018—Constructional details, e.g. of drawer, printing means, input means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses a method for adapting an Android mobile charging terminal to various printers, which comprises the following steps: (1) adding a new printer module under the src directory of the item, namely creating a subfolder named printer _ city, and creating a java and res subfolder under the module; (2) adding a printing class of PrintActivity. (3) Adding a network configuration class IPConfig. java under the primary _ city \ java subfolder; (4) creating subfolder values under the printer _ city \ res subfolder, and adding strings.xml files under the values; (5) creating an android manifest. (6) Modify build.handle under the item root directory, add printer _ city module under the product flavors, select a certain printer module during packaging, and all other comments. The method adopts a multi-module mode to achieve the effect of multi-branch, simultaneously reduces the workload and improves the working efficiency.
Description
Technical Field
The invention relates to the technical field of intelligent parking, in particular to a method for adapting an Android mobile charging terminal to various printers.
Background
With the development of science and technology, the situation that the roadside parking lot gradually uses the intelligent mobile charging system to replace the traditional manual charging system is more and more. As the project is expanded, the facing customer groups are larger and larger, different customer requirements are different, and customized requirements are more and more, for example, the used printing terminal devices or charging tickets have different styles, and the style is few, and the style is dozens. Aiming at differentiated receipt styles such as font size, typesetting, layout and the like, different service codes need to be compiled for realization; the interface libraries used by the printing functions may also vary from printing device to printing device. With the increase of the printing requirements and the customization requirements of printing equipment, a system and a method which can adapt to different printing terminal equipment are imperative.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for adapting an Android mobile charging terminal to various printers. The method adopts a multi-module mode to achieve the effect of multi-branch, simultaneously reduces the workload and improves the working efficiency.
In order to achieve the technical effects, the invention provides the following technical scheme:
a method for adapting an Android mobile charging terminal to various printers comprises the following steps: (1) adding a new printer module under the src directory of the item, namely creating a subfolder named printer _ city, and creating a java and res subfolder under the module; (2) adding a printing class of PrintActivity. (3) Adding a network configuration class IPConfig. java under the primary _ city \ java subfolder; (4) creating subfolder values under the printer _ city \ res subfolder, and adding strings.xml files under the values; (5) creating an android manifest. (6) Modify build.handle under the item root directory, add printer _ city module under the product flavors, select a certain printer module during packaging, and all other comments.
The further technical scheme is that the printer is the name and model of the printer, and the city is the name of the city.
The printing type PrintActivity.
The technical scheme is that the network configuration class IPConfig.java is mainly used for configuring an interface address and pushing information related to network connection.
A further technical scheme is that a differentiation field is added under the strings.
The method further comprises the technical scheme that the android manifest xml file is used for configuring the high-resolution map information.
The present invention adapts to the customized requirements of different printers/print tickets by adding multiple modules. One printer corresponds to one module, and the printing class, the network environment class, the Application sub class, the android manufacture. The printing class mainly realizes the function of printing the receipt and calls a dependency library of a corresponding printer; the network environment mainly configures interfaces, push addresses and other information; the Application subclass mainly defines the different demand attributes of different environments.
Compared with the prior art, the invention has the following beneficial effects: the method of the invention can be adapted to different printers, achieves the effect of multi-branch in a multi-module mode, reduces the workload, realizes the customized requirement and improves the working efficiency.
Drawings
FIG. 1 is a diagram of a module architecture according to the present invention.
Detailed Description
The invention will be further explained and explained with reference to the drawings and the embodiments.
Example 1
As shown in fig. 1, the invention provides a method for adapting an Android mobile charging terminal to multiple printers, which comprises the following steps: the method comprises the following steps: a new printer module is added under the src directory of the item, i.e., a subfolder is created, named printer _ city (printer may be the name + model of the printer, city name). Creating sub-folders of java and res under the module;
step two: adding a printing type PrintActivity. java under a printer _ city \ java folder, wherein the printing type PrintActivity. java mainly realizes the functions of starting/closing a printer and printing tickets;
step three: adding a network configuration class IPConfig. java under a printer _ city \ java folder, wherein the class is mainly used for configuring information related to network connection, such as interface addresses, pushing and the like;
step four: creating subfolder values under the printer _ city \ res folder, adding strings.xml files under the values, and adding differentiation fields such as 'application name, advertisement words' under the folder;
step five: creating an android manifest (xml) file under a module folder, wherein the xml file is mainly used for configuring information such as a high-resolution map;
step six: modify build under the root directory of the item, add the above printer _ city module under the product flavors, select one printer module during packaging, and make all other comments.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.
Claims (6)
1. A method for adapting an Android mobile charging terminal to various printers is characterized by comprising the following steps: (1) adding a new printer module under the src directory of the item, namely creating a subfolder named printer _ city, and creating a java and res subfolder under the module; (2) adding a printing class of PrintActivity. (3) Adding a network configuration class IPConfig. java under the primary _ city \ java subfolder; (4) creating subfolder values under the printer _ city \ res subfolder, and adding strings.xml files under the values; (5) creating an android manifest. (6) Modify build.handle under the item root directory, add printer _ city module under the product flavors, select a certain printer module during packaging, and all other comments.
2. The method for adapting to multiple printers of the Android mobile charging terminal of claim 1, wherein the printer is a name and a model of a printer, and the city is a city name.
3. The method for adapting to multiple printers by the Android mobile charging terminal according to claim 1, wherein the printing type PrintActivity.
4. The method for adapting to multiple printers by the Android mobile charging terminal according to claim 1, wherein the network configuration class IPConfig.
5. The method for adapting to multiple printers by the Android mobile charging terminal according to claim 1, wherein a differentiation field is added below the strings.
6. The method for adapting to multiple printers of the Android mobile charging terminal according to claim 1, wherein the Android Manifest xml file is used for configuring the Goodpast map information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111536656.1A CN114237526A (en) | 2021-12-15 | 2021-12-15 | Method for adapting Android mobile charging terminal to various printers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111536656.1A CN114237526A (en) | 2021-12-15 | 2021-12-15 | Method for adapting Android mobile charging terminal to various printers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114237526A true CN114237526A (en) | 2022-03-25 |
Family
ID=80756500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111536656.1A Pending CN114237526A (en) | 2021-12-15 | 2021-12-15 | Method for adapting Android mobile charging terminal to various printers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237526A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722370A (en) * | 2012-05-24 | 2012-10-10 | 南京华设科技股份有限公司 | Modular development method for Android |
CN109828778A (en) * | 2018-12-07 | 2019-05-31 | 海南新软软件有限公司 | A kind of mobile terminal Android cloud configures packaging method and device |
-
2021
- 2021-12-15 CN CN202111536656.1A patent/CN114237526A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722370A (en) * | 2012-05-24 | 2012-10-10 | 南京华设科技股份有限公司 | Modular development method for Android |
CN109828778A (en) * | 2018-12-07 | 2019-05-31 | 海南新软软件有限公司 | A kind of mobile terminal Android cloud configures packaging method and device |
Non-Patent Citations (2)
Title |
---|
六_六: ""productFlavors的全部用法"" * |
樱红蕉绿: ""java web 蓝牙打印_android 蓝牙打印机示例"" * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101122899B (en) | Report generation method and device | |
CN103593456B (en) | Worksheet self-defining method for designing and device | |
CN101110703B (en) | Made-to-order command line implementing method and system | |
CN108664239A (en) | A kind of across technology stack web front-end development system and method based on micro services | |
CN109240654A (en) | Development approach and system based on template | |
CN100546254C (en) | The method and apparatus that is used for the configuration of management cluster computer | |
US20200359094A1 (en) | Screen parameter configuration system | |
CN101673199A (en) | Terminal parameter configuration server and automatic generating method of software interface thereof | |
CN103020064A (en) | Method and configuration for generating query condition in annotation way | |
CN106502715A (en) | A kind of application program collocation method and device by all kinds of means | |
CN109684609B (en) | ASP (active Server Page) and NET (Internet vehicle networking) MVC (model view controller) based Excel template generation and data conversion and import method | |
CN110113196A (en) | A kind of protocol configuration method, device, equipment and medium | |
CN100498787C (en) | Report generating method, equipment and system | |
CN100517229C (en) | Data version upgrading method | |
CN104111994A (en) | Label data screening method and device based on mixed data source | |
CN101470601A (en) | Zero-code generation method of application software and generation platform thereof | |
CN100449484C (en) | Method and system for generating artificial equipment panel | |
CN101986282B (en) | Topology adaptation method and device | |
CN103500099B (en) | A kind of method that the quick secondary development of software is realized by extension point and extension | |
CN101415170B (en) | Method, apparatus and system for processing call ticket customization | |
CN114237526A (en) | Method for adapting Android mobile charging terminal to various printers | |
CN103501341A (en) | Method and device for establishing Web service | |
CN1838665B (en) | Adapting method between different byte sequence styles in network communication | |
CN101179444A (en) | Configuration take-effective method, configuration system and configuration gateway | |
CN116185988A (en) | Data modular transfer method based on Spark technology, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220325 |