Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for realizing the separation of UI and data in an android application

A data separation and application-side technology, applied in database update, database management system, structured data retrieval, etc., can solve the problems of heavy repetitive workload of developers and duplication of application resources, so as to improve development efficiency and iteration efficiency, and avoid progress The effect of inconsistency, reducing resource redundancy and duplication of workload

Active Publication Date: 2022-02-01
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for realizing the separation of UI and data in an Android application, which is used to solve the problems of duplication of application resources and heavy workload of developers in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for realizing the separation of UI and data in an android application
  • A method for realizing the separation of UI and data in an android application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] combined with figure 1 As shown, the present invention discloses a method for realizing separation of UI and data in an Android application, comprising the following steps:

[0024] Step 1. The UIService side defines various menu UIs, and determines various control types and styles. Each control type defines a different DataType type, such as: jump to the lower level, jump to the lower level and select the option display (only applicable to the lower level The menu is a single-selection list), a single control for single-selection and multi-selection lists, single-selection plus jump to the next level, Button (function button), Button with selection state, switch, progress bar that can be adjusted left and right, plain text, prompt full-screen interface , select to confirm the full screen interface, the program search interface, etc. The application side sets the DataType value of the data data according to the needs, and if it is successfully matched with the UIServic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for realizing the separation of UI and data in an Android application, including an application end and a UIservice end, creating an AIDL file of the UIService end, adding SrvInterface and ITaskCallback; the application end calls the implementation method in the UIService end; the UIService end starts the application When calling bindService or unbindService, the app registers a callback to respond to the data request from the UIService side; when the data is updated, the app side calls the registerCallback or unregisterCallback method; at the end, the app is unbound from the UIService side. Adopt the method of separating application UI and data, reduce resource redundancy and workload duplication, and improve development efficiency and iteration efficiency.

Description

technical field [0001] The invention relates to the technical field of Android application development, specifically, a method for realizing the separation of UI and data in an Android application. Background technique [0002] In recent years, with the development and popularization of informatization and intelligence, embedded platforms such as smartphones, smart TVs, digital cameras, smart watches, and game consoles have begun to use the Android system to customize various system applications. In general customization, the implementation of application functions requires separate customization of menu application-related resources, which is not conducive to code modification and sustainable use; moreover, it will lead to duplicate application resources among different applications in the same system, and developers will have a lot of repetitive work. Contents of the invention [0003] The purpose of the present invention is to provide a method for realizing the separati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/20G06F8/38G06F16/23G06F16/25
CPCG06F8/20G06F8/38G06F16/23G06F16/252
Inventor 武彩红徐馨雨
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products