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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com