CN113254132B - Application display method and related device - Google Patents

Application display method and related device Download PDF

Info

Publication number
CN113254132B
CN113254132B CN202110566797.1A CN202110566797A CN113254132B CN 113254132 B CN113254132 B CN 113254132B CN 202110566797 A CN202110566797 A CN 202110566797A CN 113254132 B CN113254132 B CN 113254132B
Authority
CN
China
Prior art keywords
application
target
density
display
interface
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
Application number
CN202110566797.1A
Other languages
Chinese (zh)
Other versions
CN113254132A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110566797.1A priority Critical patent/CN113254132B/en
Publication of CN113254132A publication Critical patent/CN113254132A/en
Application granted granted Critical
Publication of CN113254132B publication Critical patent/CN113254132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an application display method and a related device. And when the target application is started, searching the specified application list, and if the target application is the application in the specified application list, acquiring the self-defined preset display density of the target application. Further, the application interface of the target application is displayed based on the preset display density. The application interface of the target application is displayed by adopting the preset display density of the target application in the process, so that the display effect of other application interfaces is not changed. Therefore, the problem that the display density of the third-party application cannot be configured independently by the android device in the related art is solved.

Description

Application display method and related device
Technical Field
The present application relates to the field of intelligent terminal technologies, and in particular, to an application display method and a related apparatus.
Background
Android (Android) devices on the market are various, and hardware differences exist among Android devices of different versions and models. The display density set by the application provider for the application interface cannot match each type of display screen, which may cause display problems for the application interface after the android device enables the third-party application. In the related art, the display density of the third-party application is adapted by modifying the native screen parameters of the android device. By adapting to a certain third-party application in the manner, the situation that the display density of other originally adapted applications is not matched can be caused. Based on the above problems, it is important to separately configure the display density of the third-party application for the android device.
Disclosure of Invention
The application display method and the related device are provided for solving the problem that in the related art, the android device cannot independently configure the display density of the third-party application.
In a first aspect, an embodiment of the present application provides an application display method, where the method includes:
retrieving a specified application list in response to an enabling indication of the target application;
if the target application is retrieved from the specified application list, acquiring a preset display density of the target application;
and displaying the interface of the target application based on the preset display density.
In some possible embodiments, the presenting the interface of the target application based on the preset display density includes:
starting a loading process control switch of the target application to generate a coverage configuration of the target application;
updating the screen display density parameter in the coverage configuration by adopting the preset display density;
and displaying the interface of the target application by adopting the updated screen display density parameter.
In some possible embodiments, the method further comprises:
and if the target application is not retrieved from the specified application list, displaying an interface of the target application based on the default display density of the target application.
In some possible embodiments, the method further comprises:
responding to an editing instruction of the specified application list, and displaying an application editing interface of the specified application list;
and updating the specified application list in response to a first user operation for updating the specified application list triggered at the application editing interface.
In some possible embodiments, after displaying the application editing interface of the specified application list, the method further includes:
and in response to a second user operation for acquiring the recommended density value of the selected application, which is triggered at the application editing interface, acquiring and outputting the recommended density value of the selected application.
In some possible embodiments, the updating the specified application list in response to a first user operation triggered at the application editing interface for updating the specified application list includes:
in response to a selection operation for the application identification in the application editing interface, displaying an application interface of the selected application in a floating window;
responding to the adjustment operation of the preset display density of the selected application, updating the preset display density of the selected application in the appointed application list, and updating the display effect of the application interface of the selected application in the floating window based on the adjusted preset display density.
In some possible embodiments, after the presenting the interface of the target application based on the preset display density, the method further includes:
responding to the triggering operation of the suspension control, and displaying a density editing interface of the target application;
and responding to the density adjustment operation in the density editing interface, and adjusting the display effect of the interface of the target application.
In a second aspect, an embodiment of the present application provides an electronic device, including: a display, a memory, and a controller, wherein:
the display is used for displaying information;
the memory for storing a computer program executable by the controller;
the controller is respectively connected with the display and the memory and is configured to:
retrieving a specified application list in response to an enabling indication of the target application;
if the target application is retrieved from the specified application list, acquiring a preset display density of the target application;
and displaying the interface of the target application based on the preset display density.
In some possible embodiments, the interface for presenting the target application based on the preset display density is executed, and the controller is configured to:
starting a loading process control switch of the target application to generate a coverage configuration of the target application;
updating the screen display density parameter in the coverage configuration by adopting the preset display density;
and displaying the interface of the target application by adopting the updated screen display density parameter.
In some possible embodiments, the method further comprises:
and if the target application is not retrieved from the specified application list, displaying an interface of the target application based on the default display density of the target application.
In some possible embodiments, the controller is further configured to:
responding to an editing instruction of the specified application list, and displaying an application editing interface of the specified application list;
updating the specified application list in response to a first user operation for updating the specified application list triggered at the application editing interface.
In some possible embodiments, after executing the application editing interface displaying the list of specified applications, the controller is further configured to:
and in response to a second user operation for acquiring the recommended density value of the selected application, which is triggered at the application editing interface, acquiring and outputting the recommended density value of the selected application.
In some possible embodiments, the updating the specified application list in response to the first user operation triggered at the application editing interface for updating the specified application list is performed, and the controller is configured to:
in response to a selection operation for the application identification in the application editing interface, displaying an application interface of the selected application in a floating window;
responding to the adjustment operation of the preset display density of the selected application, updating the preset display density of the selected application in the appointed application list, and updating the display effect of the application interface of the selected application in the floating window based on the adjusted preset display density.
In some possible embodiments, after executing the presenting the interface of the target application based on the preset display density, the controller is further configured to:
responding to the triggering operation of the suspension control, and displaying a density editing interface of the target application;
and responding to the density adjustment operation in the density editing interface, and adjusting the display effect of the interface of the target application.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the methods as provided in the first aspect of the present application.
In a fourth aspect, an embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements any of the methods as provided in the first aspect of the present application.
According to the embodiment of the application, the prestored appointed application list is retrieved after the enabling indication of the target citation is responded. And if the target application is searched to exist in the appointed application list, acquiring the preset dense display density corresponding to the target application in the appointed application list. Further, the acquired preset display density is used as the screen display density of the target application, so that the application interface of the target application is displayed. Through the process, the problem that the display density of the third-party application cannot be configured independently by the android device in the related technology is solved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a schematic diagram illustrating a difference in screen display density according to an embodiment of the present disclosure;
FIG. 1b is a diagram illustrating an effect of global adjustment of screen display density according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure;
FIG. 3 is a schematic software architecture diagram of the electronic device 100 in FIG. 2 according to an embodiment of the present application;
fig. 4 is an alternative flow diagram of an android system in the prior art provided in an embodiment of the present application;
fig. 5 is an overall flowchart of an application display method provided in an embodiment of the present application;
fig. 6a is another flowchart of an application display method according to an embodiment of the present application;
fig. 6b is a schematic diagram of a jump application editing interface of the general setting interface provided in the embodiment of the present application;
fig. 6c is a schematic diagram illustrating a change of a selected application interface in real-time viewing in an application editing interface provided in the embodiment of the present application;
fig. 6d is a schematic diagram of a jump setting interface through a floating control according to an embodiment of the present application;
fig. 6e is a schematic diagram illustrating adjustment of a preset display density by specifying a floating control according to an embodiment of the present application;
FIG. 6f is a schematic diagram illustrating recommended display density for viewing in an application editing interface according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of the electronic device 100 according to an embodiment of the present application.
Detailed Description
To further explain the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the accompanying drawings and the specific embodiments. Although the embodiments of the present application provide method operation steps as shown in the following embodiments or figures, more or fewer operation steps may be included in the method based on conventional or non-inventive labor. In steps where no necessary causal relationship exists logically, the order of execution of these steps is not limited to the order of execution provided by the embodiments of the present application. The method can be executed in the order of the embodiments or the method shown in the drawings or in parallel in the actual process or the control device.
It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application. The terms "first", "second" and "first" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, where features defined as "first", "second" may explicitly or implicitly include one or more of the features, in the description of embodiments of the present application, the term "plurality" refers to two or more, unless otherwise indicated, other terms and the like should be understood as being similar, the preferred embodiments described herein are for the purpose of illustration and explanation only and are not intended to limit the present application, and features in embodiments and examples of the present application may be combined with each other without conflict.
The display density set by the third-party application cannot be matched with each type of display screen, so that the display problem of the application interface may exist after the android device enables the third-party application. For example, the two electronic devices shown in fig. 1a have substantially the same screen size, but the resolution of the display screen and the display density of the display screen are different due to the different kinds of display screens. When the same third-party application is enabled in the two electronic devices, because the display density of the electronic device shown on the right side in fig. 1a and the application is not adapted, there is a problem that the display content of the application interface applied on the electronic device by the third-party application is deformed, for example, the apple displayed on the left side electronic device in fig. 1a is different from the apple displayed on the right side electronic device. The reason for this is that the screen display density (densityDpi) corresponding to the layout of the application interface is a high value, and when the application is displayed on a display screen with a low screen display density, the problems of deformation of the displayed content, incomplete display of the content, and the like occur.
In the related art, the display density of the third-party application is adapted by modifying the native screen parameters of the android device. Because the android system only supports the modification of the global screen display density of the electronic device, the modification mode of global uniform modification can cause the displayed content in the display screen to change, and further cause the display problem of other applications after the screen display density of a certain application program is adjusted. Specifically, as shown in fig. 1b, in the electronic device shown on the left side of fig. 1b, an apple picture is currently displayed in "area 1" in the display screen. The apple picture has the situation that the display density is not matched, and after the display density of the global screen is adjusted, although the apple picture in the area 1 is already matched to the normal size, the situation that the navigation bar displayed in the originally matched area 2 is not matched occurs. In order to solve the above problems, the inventive concept of the present application is: and constructing a specified application list, wherein at least one target application exists in the specified application list. And when the target application is started, searching the specified application list, and if the target application is the application in the specified application list, acquiring the self-defined preset display density of the target application. Further, the application interface of the target application is displayed based on the preset display density. The application interface of the target application is displayed by adopting the preset display density of the target application in the process, so that the display effect of other application interfaces is not changed. Therefore, the problem that the display density of the third-party application cannot be configured independently by the android device in the related art is solved.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Fig. 2 shows a schematic structural diagram of an electronic device 100.
The following describes an embodiment specifically by taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in fig. 2 is merely an example, and that the electronic device 100 may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A hardware configuration block diagram of the electronic apparatus 100 according to an exemplary embodiment is exemplarily shown in fig. 2. As shown in fig. 2, the electronic device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, and a power supply 190.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the electronic device 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 120 stores an operating system that enables the electronic device 100 to operate. The memory 120 may store an operating system and various application programs, and may also store program codes for executing the methods described in the embodiments of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the electronic device 100, and specifically, the display unit 130 may include a touch screen 131 disposed on the front of the electronic device 100 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 130 may also be used to display information input by or provided to the user and a Graphical User Interface (GUI) of various menus of the electronic apparatus 100. In particular, the display unit 130 may include a display screen 132 disposed on a front surface of the electronic device 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be configured to display a contact conversation interface or a short message list interface in the present application.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the electronic device 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The electronic device 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The electronic device 100 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, light sensors, motion sensors, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and the electronic device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The electronic device 100 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then output to the RF circuit 110 for transmission to, for example, another terminal or to the memory 120 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to short-range wireless transmission technology, and the electronic device 100 can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband Internet access for the user.
The processor 180 is a control center of the electronic device 100, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may run an operating system, an application program, a user interface display, and a touch response, and the processing method described in the embodiments of the present application. Further, the processor 180 is coupled to the display unit 130.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the electronic device 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module through the bluetooth module 181, so as to perform data interaction.
The electronic device 100 also includes a power supply 190 (e.g., a battery) to power the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The electronic device 100 may further be configured with a power button for powering on and off the terminal, and locking the screen.
Fig. 3 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer, from top to bottom, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, short messages, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying a picture.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application.
The notification manager allows the application to display notification information (e.g., message digest of short message, message content) in the status bar, can be used to convey notification-type messages, and can automatically disappear after a short dwell without user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, an indicator light flashes, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A 2D (an animation mode) graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the software and hardware of the electronic device 100 in connection with capturing a photo scene.
When the touch screen 131 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 140.
The electronic device 100 in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, a notebook computer, a television, and the like.
As described above, the electronic device of the android system only supports modification of native screen parameters, that is, modification of screen display density (density) of the whole device. To facilitate understanding of the application display method provided in the embodiment of the present application, first, an alternative procedure (overlay) for modifying a screen display density by an electronic device of an android system in the prior art is described, and is specifically shown in fig. 4.
After the third-party application is started on the electronic equipment of the android system, an ActivityRecord object corresponding to the application program can be automatically created. ActivinyRecordl-3, shown in dashed outline in FIG. 4, is three enabled applications. The native Configuration object is generated synchronously when the activiyrecord object is created. The Configuration object is a parameter set object that contains the default screen display density of the display screen.
When the user finds that the application interface displayed after the application program is started has a display problem, the user can modify the default screen display density of the display screen, and the modification operation is to modify the default screen display density of the Configuration object. After the modification, the screen display density parameter (i.e., the configdent dpi parameter shown in fig. 4) in the activtyrecordil-3 is synchronously updated by calling back the oncoconfigurationchange parameter, thereby completing the interface drawing of the application program.
The flow changes the default screen display density of the display screen of the electronic device, that is, the screen display density of all display interfaces in the display screen is changed. Because the screen display densities of the application providers adapted to different third-party applications are different, the adjustment process may cause a problem that the application interface is not adapted after the originally adapted third-party application modifies the screen display parameters. Based on this, the application display method is provided, and is used for relieving the problem that the display density of the third-party application cannot be configured independently by the android device in the related art.
Specifically, as shown in fig. 5, fig. 5 is an overall flowchart of an application display method provided in the embodiment of the present application, and the flowchart includes:
when the user enables the third-party application through the electronic device, the electronic device performs step 501: in response to an indication of enablement of the target application, a list of specified applications is retrieved. The appointed application list comprises target application information with preset display density, and the target application information comprises an application package name of the target application and the preset display density value of the target application.
In the retrieving process, if the target application is retrieved from the specified application list, step 502 is executed: and acquiring the preset display density of the target application. In implementation, the preset display density value of the target application may be obtained by analyzing the target application information stored in the specified application list, and step 503 is executed: and displaying the interface of the target application based on the preset display density. In the above process, the preset display density of the target application is used as the screen display density when the application interface is displayed, and only the screen display density of the target application is adjusted, so that the display effect of other application interfaces is not changed.
To facilitate understanding of the above flow, the present application provides another flow chart of the application display method, specifically as shown in fig. 6a, including the following steps:
when the target application is enabled, firstly, step 601 is executed: creating an ActivityRecord object corresponding to the application program, and executing step 602: a native Configuration object is generated. The above steps 601-602 are the existing process of starting the application program in the android system, which is already described in the foregoing, and are not described here again.
In order to realize that the android system can individually adjust the screen display density of the application program, in implementation, when a loading flow control switch (shouldusesizemomptmode) is added in advance in the activetecord object as an internal parameter loading flow control switch to be turned on (that is, a parameter value thereof is true), through step 602: when the Configuration object is generated, the overlay Configuration object is synchronously generated when the overlay mechanism is enabled. The overlay Configuration object generated at this time is the overlay Configuration corresponding to the target application, and the overlay mechanism is the aforementioned replacement process, which is a replacement process for the screen display density of the target application in the present application.
Since the overlay Configuration is copied from the original Configuration object in the default state. That is, the screen display parameters of the overlay configuration are the default screen display parameters of the display screen. To ensure that the target application uses the preset display density as its screen display density, the preset display density of the target application needs to be replaced into the overlay configuration. Specifically, by executing step 603: and searching the specified application list, and judging whether the currently enabled target application is in the specified application list. In implementation, the search result can be obtained by searching the application package name of the activiyrecord object of the current target application and the application package name (package) pre-stored in the specified application list.
Further, if the target application is an application in the specified application list, the preset display density of the target application is obtained by analyzing the target application information in the specified application list. After the preset display density of the target application is obtained, step 604 is executed: and starting an overlay mechanism of the android system to generate a coverage configuration corresponding to the target application. Therefore, the density value of the screen display density parameter in the overlay configuration is the preset display density value of the target application. And further, finishing the interface drawing of the target application.
If the target application is not retrieved from the specified application list in the step 603, step 605 is executed: and displaying the interface of the target application based on the default display density of the target application. Specifically, the overlay Configuration of the target application is created based on the original Configuration object. Therefore, the screen display density value in the overlay configuration is the default screen display density of the display screen.
In addition, the above-mentioned creation mode of the specified application list may be to set a list database in the android system, and set an application package name (package) and a preset display density field in the list database. Further, the roster database may be deployed into a "settings" interface of the electronic device. In implementation, as shown in fig. 6b, a "display density modification" option may be added to the setting interface, and the user may jump to the application editing interface of the specified application list by clicking the option. As shown in fig. 6b, the application editing interface includes a target application in the specified application list and a preset display density corresponding to the target application. When the user updates the data in the appointed application list on the interface, the electronic equipment responds to a first user operation which is triggered on the application editing interface and used for updating the appointed application list, and the appointed application list is updated.
Each application identifier in the specified application list may be included in the application editing interface, and the identifier may be an application icon or an application name. Specifically, as shown in fig. 6c, the user can select the target application by clicking the application identifier in the interface. And the electronic equipment responds to the selection operation of the application identification in the application editing interface and displays the application interface of the selected application in the floating window. At this time, when the user adjusts the preset display density of the selected application in the application editing interface in real time, the electronic device updates the display effect of the application interface of the selected application in the floating window according to the adjusted preset display density. Therefore, the user can adjust the preset display density of the selected application in real time and synchronously view the adjusting effect in the floating window.
In addition, as shown in fig. 6d, when the user launches the target application, if it is found that the application interface of the target application has a display problem, the user can jump to the "setting" interface by clicking the floating control, and enter the application editing interface through the "setting" interface in the floating window. And further, the display effect of the application interface of the current target application is changed in real time by adjusting the preset display density of the target application in the application editing interface.
In some possible embodiments, a designated hover control for jumping to the target application may be set. Specifically, as shown in fig. 6e, if the currently enabled target application is an application in the designated application list, the currently enabled target application may directly jump to the display density adjustment interface of the target application by clicking the designated floating control, and the application interface display effect of the current target application may be changed in real time by adjusting the preset display density of the target application in the interface.
In order to be suitable for more application scenes, a recommended density value option can be added in the application editing interface. The user may query the other electronic devices for a customized preset display density for the target application by triggering the option for easy reference. As shown in fig. 6f, when the user clicks the "view recommendation display density" option shown in the figure, the target application corresponding to the option is determined as the selected application. At this time, the electronic device acquires and outputs the recommended density value of the selected application in response to a second user operation for acquiring the recommended density value of the selected application. In implementation, the electronic device can query data from the cloud server based on the display screen information of the electronic device. The display screen information comprises the length and width pixel values of the display screen and the default screen display density, and the preset display density set by other electronic equipment with the same type of display screen for the selected application is inquired based on the display screen information and is used as reference. Specifically, as shown in the pop-up box in fig. 6f, other electronic devices that may contain the same display screen information within a period of time (e.g., approximately three months) set the number ordering of the preset display density for the target application a.
As shown in fig. 7, an embodiment of the present application provides an electronic device 100, which includes a display 701, a memory 702, and a controller 703;
the display 701 is used for displaying information;
the memory 702 for storing a computer program executable by the controller;
the controller 703, which is respectively connected to the display and the memory, is configured to:
retrieving a specified application list in response to an enabling indication of the target application;
if the target application is retrieved from the specified application list, acquiring a preset display density of the target application;
and displaying the interface of the target application based on the preset display density.
In some possible embodiments, the interface for presenting the target application based on the preset display density is executed, and the controller is configured to:
starting a loading process control switch of the target application to generate a coverage configuration of the target application;
updating the screen display density parameter in the coverage configuration by adopting the preset display density;
and displaying the interface of the target application by adopting the updated screen display density parameter.
In some possible embodiments, the method further comprises:
and if the target application is not retrieved from the specified application list, displaying an interface of the target application based on the default display density of the target application.
In some possible embodiments, the controller is further configured to:
responding to an editing instruction of the specified application list, and displaying an application editing interface of the specified application list;
and updating the specified application list in response to a first user operation for updating the specified application list triggered at the application editing interface.
In some possible embodiments, after executing the application editing interface displaying the list of specified applications, the controller is further configured to:
and responding to a second user operation which is triggered on the application editing interface and is used for obtaining the recommended density value of the selected application, obtaining the recommended density value of the selected application and outputting the recommended density value.
In some possible embodiments, the updating the specified application list in response to the first user operation triggered at the application editing interface for updating the specified application list is performed, and the controller is configured to:
in response to a selection operation aiming at the application identification in the application editing interface, displaying an application interface of a selected application in a floating window;
responding to the adjustment operation of the preset display density of the selected application, updating the preset display density of the selected application in the appointed application list, and updating the display effect of the application interface of the selected application in the floating window based on the adjusted preset display density.
In some possible embodiments, after executing the presenting the interface of the target application based on the preset display density, the controller is further configured to:
responding to the triggering operation of the suspension control, and displaying a density editing interface of the target application;
and responding to the density adjustment operation in the density editing interface, and adjusting the display effect of the interface of the target application.
Since the computer storage medium in the embodiment of the present application can be applied to the method, the technical effect obtained by the method can also refer to the embodiment of the method, and the embodiment of the present application is not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (7)

1. An application display method, comprising:
retrieving a specified application list in response to the enabling indication of the target application;
if the target application is retrieved from the specified application list, acquiring a preset display density of the target application;
starting a loading process control switch of the target application to generate a coverage configuration of the target application;
updating the screen display density parameter in the coverage configuration by adopting the preset display density;
displaying the interface of the target application by adopting the updated screen display density parameter;
responding to an editing instruction of the specified application list, and displaying an application editing interface of the specified application list;
updating the specified application list in response to a first user operation for updating the specified application list, which is triggered at the application editing interface;
in response to a second user operation triggered on the application editing interface and used for obtaining the recommended density value of the selected application, controlling a target device to send a recommended density query request to a cloud server, so that the cloud server determines the recommended display density according to the preset display density set by a reference device for the selected application in a preset time period, and sending the recommended display density to the target device; the target device is an electronic device which enables the target application, and the reference device is an electronic device with the same display screen model as that of the target device;
and acquiring and outputting the recommended density value of the selected application.
2. The method of claim 1, further comprising:
and if the target application is not retrieved from the specified application list, displaying an interface of the target application based on the default display density of the target application.
3. The method of claim 1, wherein updating the list of specified applications in response to a first user action triggered at the application editing interface to update the list of specified applications comprises:
in response to a selection operation for the application identification in the application editing interface, displaying an application interface of the selected application in a floating window;
responding to the adjustment operation of the preset display density of the selected application, updating the preset display density of the selected application in the appointed application list, and updating the display effect of the application interface of the selected application in the floating window based on the adjusted preset display density.
4. The method of claim 1, wherein after the base exposes the interface of the target application with the updated screen display density parameter, the method further comprises:
responding to the triggering operation of the suspension control, and displaying a density editing interface of the target application;
and responding to the density adjustment operation in the density editing interface, and adjusting the display effect of the interface of the target application.
5. An electronic device, comprising: a display, a memory, and a controller, wherein:
the display is used for displaying information;
the memory for storing a computer program executable by the controller;
the controller is respectively connected with the display and the memory and is configured to:
retrieving a specified application list in response to an enabling indication of the target application;
if the target application is retrieved from the specified application list, acquiring a preset display density of the target application;
starting a loading process control switch of the target application to generate a coverage configuration of the target application;
updating the screen display density parameter in the coverage configuration by adopting the preset display density;
displaying the interface of the target application by adopting the updated screen display density parameter;
the controller is further configured to: responding to an editing instruction of the specified application list, and displaying an application editing interface of the specified application list;
updating the specified application list in response to a first user operation for updating the specified application list, which is triggered at the application editing interface; the controller is further configured to:
in response to a second user operation triggered on the application editing interface and used for obtaining the recommended density value of the selected application, controlling a target device to send a recommended density query request to a cloud server, so that the cloud server determines the recommended display density according to the preset display density set by a reference device for the selected application in a preset time period, and sending the recommended display density to the target device; the target device is an electronic device which enables the target application, and the reference device is an electronic device with the same display screen model as that of the target device;
and acquiring and outputting the recommended density value of the selected application.
6. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the application display method of any of claims 1 to 4.
7. A computer program, characterized in that the computer program comprises computer instructions for executing the application display method according to any one of claims 1-4.
CN202110566797.1A 2021-05-24 2021-05-24 Application display method and related device Active CN113254132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566797.1A CN113254132B (en) 2021-05-24 2021-05-24 Application display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566797.1A CN113254132B (en) 2021-05-24 2021-05-24 Application display method and related device

Publications (2)

Publication Number Publication Date
CN113254132A CN113254132A (en) 2021-08-13
CN113254132B true CN113254132B (en) 2023-01-20

Family

ID=77184080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110566797.1A Active CN113254132B (en) 2021-05-24 2021-05-24 Application display method and related device

Country Status (1)

Country Link
CN (1) CN113254132B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117076017A (en) * 2023-07-11 2023-11-17 荣耀终端有限公司 Scroll bar display method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020849A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Multi-program simultaneous display method and system based on windows CE

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150277682A1 (en) * 2014-04-01 2015-10-01 Microsoft Corporation Scalable user interface display
CN104503655B (en) * 2014-11-28 2017-12-08 晨星半导体股份有限公司 application program interface display control method and device
CN105282321A (en) * 2015-08-28 2016-01-27 上海健保科技有限公司 Adaption method of application software user interface and display device
CN105389101A (en) * 2015-10-20 2016-03-09 联想(北京)有限公司 Information processing method and electronic equipment
CN109375979B (en) * 2018-10-22 2022-12-27 联洋国融(北京)科技有限公司 Flow control method, terminal and readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020849A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Multi-program simultaneous display method and system based on windows CE

Also Published As

Publication number Publication date
CN113254132A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN111597000B (en) Small window management method and terminal
CN111367456A (en) Communication terminal and display method in multi-window mode
CN111225108A (en) Communication terminal and card display method of negative screen interface
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
CN111506237A (en) Terminal and method for starting operation function in application
CN111246299A (en) Communication terminal and application management method
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111176766A (en) Communication terminal and component display method
CN113254132B (en) Application display method and related device
CN113055585B (en) Thumbnail display method of shooting interface and mobile terminal
CN111158735B (en) Hot patch file processing method and communication terminal
CN112099892A (en) Communication terminal and method for rapidly scanning two-dimensional code
CN113253905B (en) Touch method based on multi-finger operation and intelligent terminal
CN114449171B (en) Method for controlling camera, terminal device, storage medium and program product
CN113014614A (en) Equipment control method, control equipment and controlled equipment
CN112799557B (en) Ink screen display control method, terminal and computer readable storage medium
CN111324255B (en) Application processing method based on double-screen terminal and communication terminal
CN114356559A (en) Multithreading control method and terminal equipment
CN113900740A (en) Method and device for loading multiple list data
CN113507614A (en) Video playing progress adjusting method and display equipment
CN111225113A (en) Communication terminal and starting method thereof
CN111988530B (en) Mobile terminal and photographing method thereof
CN114661310A (en) Application installation method based on dual systems, terminal device and storage medium
CN111479075B (en) Photographing terminal and image processing method thereof
CN113641533B (en) Terminal and short message processing method

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.