Optimizing method of Toast activeX in android system

An optimization method and Android system technology, applied in the multimedia field, can solve problems such as low user experience, increased workload, repeated code, and slow running speed, so as to improve user experience, reduce development workload, and increase running speed. Effect

Inactive Publication Date: 2015-04-29
SHANDONG UNIV
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this solution increases the workload of application developers and a large number of repetitive codes, slows down the running speed, and the user experience is not high

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
  • Optimizing method of Toast activeX in android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] An optimization method of the Toast control on an Android system, the monitoring function is set in the notification management service class NotificationManagerService of the INotificationManager interface, and the specific steps include:

[0024] (1) Call the static method makeText(Context context, CharSequence text, int duration) of the Toast class, and assign values ​​to the parameters context, text, and duration: the context context is assigned the current Activity display interface, and the text assignment is the Toast information prompt box display content, the duration assignment is the time T displayed in the Toast message prompt box;

[0025] (2) Call the show() method to display the Toast information prompt box on the current Activity display interface;

[0026] (3) Call the monitoring function to monitor whether there is an operation to switch the current Activity display interface within the time T on the current Activity display interface. If so, close the...

Embodiment 2

[0029] According to the optimization method described in Embodiment 1, the difference is that a monitoring function for monitoring ACTION_DOWN and KEYCODE_BACK actions on the current Activity display interface is added to the notification management service NotificationManagerService, and ACTION_DOWN indicates that there is an updated current Activity on the current Activity display interface The click action of displaying interface content, KEYCODE_BACK indicates the operation of clicking the back button on the current Activity display interface to enter the previous Activity display interface.

Embodiment 3

[0031] According to the optimization method described in embodiment 1, the difference is that in step (3), the closing of the Toast information prompt box specifically refers to: in the implementation object of the BroadcastReceiver class, call the hide () method of the Toast object to close the Toast Information prompt box.

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 relates to an optimizing method of a Toast activeX in an android system. The method comprises the steps of setting monitoring functions in notification manager service of an INotification manager interface; calling the monitoring functions; monitoring whether the operation is switched to the current Activity display interface at the time T in the current Activity display interface; if so, closing a Toast information prompt box; if not so, automatically closing the Toast information prompt box after reaching the time X. According to the optimizing method, the delay of the Toast information prompt box can be avoided during displaying in the application program through the optimized Toast active, and therefore, the user experience is increased; the workload in development and the repeated codes in the program can be decreased, and the operation speed is increased.

Description

technical field [0001] The invention relates to an optimization method of a Toast control on an Android system, belonging to the technical field of multimedia. technical background [0002] With the development of science and technology, various electronic devices have more and more functions, such as mobile phones, tablet computers, and smart TVs, bringing better experience to users. Among these smart electronic devices, 80% use the Android system. [0003] Toast is a very convenient message prompt box on the Android system. It will display a simple prompt message on the program interface. This message prompt box is used to generate simple prompt information to the user. Toast will not get the focus when prompting information, it will automatically disappear after a period of time after prompting the message (there are two static constants in the Toast class: LONG_DELAY=3.5S, SHORT_DELAY=2S, the user can choose these two constants when constructing a Toast object one of t...

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/44
Inventor 张海霞高凯袁东风杨春燕朱丽娜
Owner SHANDONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products