Unlock instant, AI-driven research and patent intelligence for your innovation.

Android platform based application layout dynamic switching method and system

A technology for applying layout and switching systems, applied in the direction of program loading/starting, program control design, instruments, etc., which can solve the problems of different resolutions and inconvenient switching of layout files.

Active Publication Date: 2016-03-02
TCL CORPORATION
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method and system for dynamically switching application layouts based on the Android platform, aiming to solve the problem in the prior art that when the resolutions of the devices are different, the layout files must be redesigned, the layout files Inconvenient defect of switching

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
  • Android platform based application layout dynamic switching method and system
  • Android platform based application layout dynamic switching method and system
  • Android platform based application layout dynamic switching method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the object, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0046] Embodiments of the present invention involve OSGI, bundle layout files, and the like. Therefore, the OSGI service and bundle layout files are introduced.

[0047] OSGI (OpenService Gateway Initiative) is a dynamic model system for JAVA, and the OSGI service platform consists of two parts: OSGI framework and OSGI standard service. The OSGI framework is an operating environment that implements and provides OSGI functions. OSGI standard services define many reusable APIs for performing common tasks. The specification of the OSGi framework and standard services is managed by the OSGi Alliance. The OSGi framework plays a central role in creat...

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 an Android platform based application layout dynamic switching method and system. The method comprises: obtaining the resolution of an Android terminal device; downloading a default bundle layout file with corresponding resolution from a cloud end, and calling BundleContext to install the bundle layout file; and finally, updating a state in an application database. Through interaction of an application setting interface and a user, the user can perform selection in an alternative layout list; after the selection is determined, an application downloads the bundle layout file corresponding to the user selection from the cloud end and loads the bundle layout file, and a current bundle layout file is uninstalled; and finally the application database is updated. According to the Android platform based application layout dynamic switching method and system, the same application can adapt to Android terminal devices with different resolutions; for the same Android terminal device, various layouts are provided for the user to select; and the layouts are dynamically switched according to user selections.

Description

technical field [0001] The invention relates to the technical field of Android application development, in particular to a method and system for dynamically switching application layouts based on the Android platform. Background technique [0002] In order to better manage the various controls in the user interface of Android applications, Android provides a layout manager, so that each control can run well on the screen of different devices. Now Android has a total of linear layout (LinearLayout), table layout ( TableLayout), frame layout (FrameLayout), relative layout (RelativeLayout) and absolute layout (AbsoluteLayout) 5 layouts. [0003] However, the above five layout methods are pre-defined through the code or in the Layout directory of the software distribution package APK (AndroidPackage, that is, the Android installation package), and the layout methods of each interface are defined in the XML layout file and then displayed through code references. The layout direct...

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 Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44536G06F9/44578G06F9/44594
Inventor 孙向作
Owner TCL CORPORATION