CN105630461A - Managing method of android application interface - Google Patents

Managing method of android application interface Download PDF

Info

Publication number
CN105630461A
CN105630461A CN201410583901.8A CN201410583901A CN105630461A CN 105630461 A CN105630461 A CN 105630461A CN 201410583901 A CN201410583901 A CN 201410583901A CN 105630461 A CN105630461 A CN 105630461A
Authority
CN
China
Prior art keywords
page
view
activity
application interface
android application
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.)
Pending
Application number
CN201410583901.8A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201410583901.8A priority Critical patent/CN105630461A/en
Publication of CN105630461A publication Critical patent/CN105630461A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a managing method of an android application interface, belongs to the mobile terminal field. The method comprises following steps: using the same one activity on different pages; when a certain page needs to be used, searching whether the view of the page is in a page container list; if the view is not in the page container list, entering the next step; or, skipping to a step of a program dynamic loading page; creating a customized view; caching the newly generated view in the page container list; setting the program dynamic loading page in the activity for service logic processing; directly transmitting parameters to a to-be-displayed view; carrying out data updating by the view; and displaying the interface. According to the method disclosed by the invention, the system time consumed in repeatedly creating windows is avoided; the program response speed is improved; the user operation is responded timely; and the use experience of the user is promoted.

Description

A kind of management method of android application interface
Technical field
The present invention relates to technical field of mobile terminals, be specifically related to the management method of a kind of android application interface.
Background technology
Android provides Intent mechanism and assists the mutual and communication between application, Intent is responsible for the action of once-through operation in application, action relates to data, additional data is described, Android then description according to this Intent, it is responsible for finding the assembly of correspondence, Intent is passed to the assembly called, and completes calling of assembly. Intent cannot be only used between application program, it is also possible to mutual between the Activity/Service within application program. Therefore, Intent here plays a part a media mediation, the special relevant information providing assembly to call mutually, it is achieved the decoupling between caller and callee.
Present almost all of android Application Design interface is all the interface management pattern using androidsdk Plays, and concrete operations mode is first to create homepage operation class (Activity), by using Intent Transfer Parameters; Then another one application interface class (Activity) is started, second page has used rear system release resource, return to an interface, when next time reuses, again create, so repeatedly create at needs, destroy and when loading data is very big, the good response speed of user cannot be supplied to; On the other hand, repeatedly creating window due to needs, then destroy, waste a lot of time, user operation fluency is experienced also very bad.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of management method of android application interface overcoming the problems referred to above or solving the problems referred to above at least in part, improve application response speed, enable an application to process the loading of big data, meet the demand that user responds in short-term.
According to one aspect of the present invention, it is provided that the management method of a kind of android application interface, comprise the following steps:
Step (1), activity control the android page, and the different pages uses same activity;
Step (2), when needs use a certain page, whether retrieved page surface vessel list exists this page view, if it does not exist, then enter next step, otherwise the step of jumping to (4);
Step (3), creating self-defined view, newly-generated rear buffer memory enters in described Page Container list;
Step (4), the program dynamic load page, use setContentView (view) to arrange and carry out business logic processing in described activity page controller;
Step (5), directly parameter is passed to view to be shown;
Step (6), described view show this interface after carrying out data renewal.
Further, described method also includes: described Page Container directly carries out the unified cleaning of internal memory after use completes, carries out resource release.
Further, described method also includes: application is carried out resource cleaning, logs off.
Further, the different pages uses different view, arranges corresponding function in self-defined view.
Android application interface management method provided by the invention, has evaded the system time repeatedly creating forms and expend, and improves program response speed, timely responds to user operation, improve user's experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding. Figure of description is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention. It should be evident that drawings discussed below is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings. And in whole accompanying drawing, it is denoted by the same reference numerals identical parts. In the accompanying drawings:
Fig. 1 illustrates the management method flow chart of the android application interface of according to embodiments of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings. Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here. On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
It should be noted that employ some vocabulary in the middle of description and claim to censure specific components. Those skilled in the art it would be appreciated that, hardware manufacturer may call same assembly with different nouns. This specification and claims are not used as distinguishing in the way of assembly by the difference of noun, but are used as the criterion distinguished with assembly difference functionally. " comprising " or " including " as mentioned in the middle of description and claim in the whole text is an open language, therefore should be construed to " comprise but be not limited to ". Description subsequent descriptions is implement the better embodiment of the present invention, and right described description is for the purpose of the rule of description, is not limited to the scope of the present invention. Protection scope of the present invention is when being as the criterion depending on the defined person of claims.
For ease of the understanding to the embodiment of the present invention, it is further explained explanation below in conjunction with accompanying drawing for several specific embodiments, and each accompanying drawing is not intended that the restriction to the embodiment of the present invention.
The main purpose of the present invention is to provide a kind of method improving application response speed when application interface redirects and load mass data, enables an application to process the loading of big data and improve application experience, meets user and use the demand responded in short-term during application.
Embodiment one, android application interface management method.
Below in conjunction with Fig. 1, the method for the present embodiment one is described in detail.
Fig. 1 is the management method flow chart of the android application interface of the embodiment of the present invention one, as it is shown in figure 1, the embodiment of the present invention comprises the following steps:
Step S101, activity control the android page, and the different pages uses same activity;
Step S102, when needs use a certain page, whether retrieved page surface vessel list exists this page view, if it does not exist, then enter next step, otherwise jumps to step S104;
Step S103, creating self-defined view, newly-generated rear buffer memory enters in described Page Container list;
Step S104, the program dynamic load page, use setContentView (view) to arrange and carry out business logic processing in described activity page controller;
Step S105, directly parameter is passed to view to be shown;
Step S106, described view show this interface after carrying out data renewal.
The present embodiment is preferred, and described method also includes: described Page Container directly carries out the unified cleaning of internal memory after use completes, carries out resource release.
The present embodiment is preferred, and described method also includes: application is carried out resource cleaning, logs off.
The present embodiment is preferred, and the different pages uses different view, arranges corresponding function in self-defined view. Such as, for the screen rectangle region storage layout specified and content in described view, processing size and layout, draw, focus changes, and turns over the functions such as screen, button.
Activity is the carrier of android application program, user is allowed to create a user interface thereon, and user is provided the API ((ApplicationProgrammingInterface processing event, application programming interface)), such as onKeyEvent, onTouchEvent etc., and the life cycle of maintenance applications. Activity itself is a huge carrier, it is possible to understand that one-tenth is the carrier of application program, will be unable to run without Activity, android application, it is understood that become the entrance of android application program. The instance objects of Acivity is by system maintenance. System service ActivityManager is responsible for safeguarding the instance objects of Activity, and safeguards its status information according to running status.
In time calling the setContentView method of acitivity, it is actually the setContentView method of the Window object called, activity actually gives what Window object did about drawing of the page. In the method, first creating DecorView, a DecorView is a class expanding FrameLayout, is the root View of all windows. The setConctentView that we call in activity is put into DecorView exactly and suffers.
The Android page is by activity control, and page view is loaded in system, in page map, switch different view and reach to switch the purpose of the different page, rather than carry out page jump with intent, Page Container list is buffered into after being created first by difference page view, when again needing this page, first in Page Container list, search whether there is this page, if existed, then directly display this page, without, then newly-generated rear buffer memory enters container, then show, when page Transfer Parameters, directly parameter is passed to view to be shown, view carries out data renewal, then the page is shown.
In the page, the different pages uses same activity, the different pages uses different view, self-defined view, self-defined view completes the function oneself wanting to realize, the programme-control dynamic load page, uses setContentView to arrange and carries out business logic processing in current activity page controller, removes the transmission of intent parameter and repeats to create activity.
Create self-defined view when needing, come in and go out in Page Container list. First in Page Container list, retrieve whether there is this view in use, if it does not, create this view, be then stored in Page Container list, re-use this view, so carry out view buffer memory, it is to avoid repeat to create.
Directly Page Container is carried out the unified cleaning of internal memory after use completes, carries out resource release, then application is carried out resource cleaning, log off.
The embodiment of the present invention is by putting the application interface created in application program running operation class into a container, the interface of application need not re-create page operation class when redirecting, if this page is absent from, then create this interface, improve the response speed of application; On the other hand, the page is carried out caching process, strengthen page interactivity, strengthen user's use sense and be subject to, make application operating get up the operation of faster response user.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, module or flow process in accompanying drawing are not necessarily implemented necessary to the present invention.
In description mentioned herein, describe a large amount of detail. It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details. In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art. So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (4)

1. the management method of an android application interface, it is characterised in that comprise the following steps:
Step (1), activity control the android page, and the different pages uses same activity;
Step (2), when needs use a certain page, whether retrieved page surface vessel list exists this page view, if it does not exist, then enter next step, otherwise the step of jumping to (4);
Step (3), creating self-defined view, newly-generated rear buffer memory enters in described Page Container list;
Step (4), the program dynamic load page, use setContentView (view) to arrange and carry out business logic processing in described activity page controller;
Step (5), directly parameter is passed to view to be shown;
Step (6), described view show this interface after carrying out data renewal.
2. the management method of android application interface according to claim 1, it is characterised in that: described method also includes: described Page Container directly carries out the unified cleaning of internal memory after use completes, carries out resource release.
3. the management method of android application interface according to claim 2, it is characterised in that: described method also includes: application is carried out resource cleaning, logs off.
4. the management method according to the arbitrary described android application interface of claims 1 to 3, it is characterised in that: the different pages uses different view, arranges corresponding function in self-defined view.
CN201410583901.8A 2014-10-27 2014-10-27 Managing method of android application interface Pending CN105630461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410583901.8A CN105630461A (en) 2014-10-27 2014-10-27 Managing method of android application interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410583901.8A CN105630461A (en) 2014-10-27 2014-10-27 Managing method of android application interface

Publications (1)

Publication Number Publication Date
CN105630461A true CN105630461A (en) 2016-06-01

Family

ID=56045453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410583901.8A Pending CN105630461A (en) 2014-10-27 2014-10-27 Managing method of android application interface

Country Status (1)

Country Link
CN (1) CN105630461A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526594A (en) * 2017-08-28 2017-12-29 深圳市华傲数据技术有限公司 The management method and device of the RN pages
WO2018103550A1 (en) * 2016-12-05 2018-06-14 腾讯科技(深圳)有限公司 Application program page processing method and apparatus
CN108255564A (en) * 2018-01-18 2018-07-06 北京摩拜科技有限公司 The methods of exhibiting and electronic equipment of five application page
CN109542563A (en) * 2018-11-09 2019-03-29 优信数享(北京)信息技术有限公司 One kind integrating multi-mode Android page management method, apparatus and system
CN109814941A (en) * 2018-11-27 2019-05-28 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN110362355A (en) * 2018-04-02 2019-10-22 青岛海信移动通信技术股份有限公司 A kind of application interface display methods and device
CN110413368A (en) * 2019-08-07 2019-11-05 上海千杉网络技术发展有限公司 Page switching method, device, electronic equipment and machine readable storage medium
CN110515674A (en) * 2019-08-27 2019-11-29 海信电子科技(深圳)有限公司 Using loading method with device
CN110704767A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page opening method and device, electronic equipment and storage medium
CN111240757A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Fast application control method, device and storage medium
CN111625290A (en) * 2020-05-06 2020-09-04 小船出海教育科技(北京)有限公司 Layout file preloading method and device under Android platform and electronic equipment
CN111782209A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Page management method and device, electronic equipment and computer storage medium
CN114116075A (en) * 2021-11-16 2022-03-01 北京达佳互联信息技术有限公司 Page parameter acquisition method and device, electronic equipment and storage medium
CN114489898A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Processing method of floating window, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103970526A (en) * 2013-11-21 2014-08-06 成都力淼科技有限公司 Android based single-activity view switching technology
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103970526A (en) * 2013-11-21 2014-08-06 成都力淼科技有限公司 Android based single-activity view switching technology
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103550A1 (en) * 2016-12-05 2018-06-14 腾讯科技(深圳)有限公司 Application program page processing method and apparatus
US11868785B2 (en) 2016-12-05 2024-01-09 Tencent Technology (Shenzhen) Company Limited Application program page processing method and device
CN107526594B (en) * 2017-08-28 2021-03-30 深圳市华傲数据技术有限公司 Management method and device of RN (Relay node) page
CN107526594A (en) * 2017-08-28 2017-12-29 深圳市华傲数据技术有限公司 The management method and device of the RN pages
CN108255564A (en) * 2018-01-18 2018-07-06 北京摩拜科技有限公司 The methods of exhibiting and electronic equipment of five application page
CN110362355B (en) * 2018-04-02 2022-06-28 青岛海信移动通信技术股份有限公司 Application interface display method and device
CN110362355A (en) * 2018-04-02 2019-10-22 青岛海信移动通信技术股份有限公司 A kind of application interface display methods and device
CN109542563B (en) * 2018-11-09 2022-06-07 优信数享(北京)信息技术有限公司 Multi-state integrated android page management method, device and system
CN109542563A (en) * 2018-11-09 2019-03-29 优信数享(北京)信息技术有限公司 One kind integrating multi-mode Android page management method, apparatus and system
CN109814941A (en) * 2018-11-27 2019-05-28 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN111782209B (en) * 2019-04-04 2024-07-12 阿里巴巴集团控股有限公司 Page management method and device, electronic equipment and computer storage medium
CN111782209A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Page management method and device, electronic equipment and computer storage medium
CN110413368B (en) * 2019-08-07 2023-07-18 上海视云网络科技有限公司 Page switching method and device, electronic equipment and machine-readable storage medium
CN110413368A (en) * 2019-08-07 2019-11-05 上海千杉网络技术发展有限公司 Page switching method, device, electronic equipment and machine readable storage medium
CN110515674A (en) * 2019-08-27 2019-11-29 海信电子科技(深圳)有限公司 Using loading method with device
CN110515674B (en) * 2019-08-27 2023-10-27 Vidaa(荷兰)国际控股有限公司 Application loading method and device
CN110704767A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page opening method and device, electronic equipment and storage medium
CN111240757A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Fast application control method, device and storage medium
CN111625290B (en) * 2020-05-06 2023-03-24 小船出海教育科技(北京)有限公司 Layout file preloading method and device under Android platform and electronic equipment
CN111625290A (en) * 2020-05-06 2020-09-04 小船出海教育科技(北京)有限公司 Layout file preloading method and device under Android platform and electronic equipment
CN114116075A (en) * 2021-11-16 2022-03-01 北京达佳互联信息技术有限公司 Page parameter acquisition method and device, electronic equipment and storage medium
CN114489898A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Processing method of floating window, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105630461A (en) Managing method of android application interface
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
US10911565B2 (en) Method, device and system for associating a service account
US10191608B2 (en) Method for providing message function and electronic device thereof
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
CN110300328B (en) Video playing control method and device and readable storage medium
CN107656768B (en) Method and system for controlling page jump
CN105930467A (en) Information processing method and electronic device
CN107450928B (en) Hybrid development method based on cache technology
CN102323887B (en) Browser engine-based method for dynamically loading Widget and mobile terminal
CN105389173A (en) Interface switching display method and device based on long connection tasks
CN104092763B (en) A kind of application program installation kit method for pushing and device
CN104142966A (en) Web page displaying method and client
CN110442819A (en) Data processing method, device, storage medium and terminal
CN105955743A (en) Resource data transfer request generating method, device and system
CN107391274A (en) The processing method and processing device of deferred information
CN102402455A (en) Method and device for calling dynamic link library (DLL)
US11630688B2 (en) Method and apparatus for managing content across applications
CN105094776A (en) List processing method and device
CN103164122B (en) A kind of method and device calling address list content
US8867707B2 (en) Automatically updating meeting information
CN109522507B (en) Method for uniformly managing webpage components
CN103902727A (en) Network search method and device
CN103914289A (en) Desktop application access method and device
CN110309454A (en) A kind of interface display method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication