| Nowadays,business procedures are outdated and complicated in certification and detection field of industrial market.Besides,users are incapable of communicating with institutions effectively or taking trace of detection processes.All of these restrict the further development of certification and detection.As the versions,types and resolution of users'mobiles are quite different in current market,traditional developing ways depending on mobile systems respectively cost extra time and resources.In order to enhance developing efficiency and reduce project cost,this paper combines Android with HTML5 to design and develop detection and certification platform.However,due to the complexity of work flow in detection field,and browser-alike webview in android has restriction itself,there are still many problems unsolved.In Server side,popular detection websites possess a single way for access in the market and functionalities are complicatedly designed,causing difficulties in use,therefore convenient and effective detection platform is in demand.In Mobile side,webview used to load pages in Android works just like browser,and there can be only one running at the same time.Different webviews cannot share data,and it is difficult for pages to adapt to devices and browsers of different resolution,causing difficulties in implementation of multi windows browser pattern,cross domain data interaction and self adaption of pages.Considering problems above,this paper researched and designed "Detecting By Me"certification and detection platform through server-side and mobile-side aspects based on Android and HTML5.Major tasks are included as follows:In Server side:Considering the complexity of detection service,the system designed concise detection work flow and adopted three-layer structure design based on SSH.Also,it designed the database for system entities and implemented complete detection functionalities,providing multiple ways of access and bringing users great convenience.In Mobile side:Considering multi-window browser problem,the running mechanism of Activity was used,and webiews of main modules were managed through Fragment stacks cleverly,in order to control the switch among different modules;Considering cross-domain data interaction problem,localStorage was overrided based on HTML5 storage technics,and local sqlite was used to maintain data so as to realize cross-domain data interaction;Considering self-adaption of pages,the system combined the ideas of progressive enhancement and embracing flow layout,and digged into personalitites of mobile facilities viewports,thus realizing self-adaption of resolution and devices.This paper designed and implemented mobile-side business modules of "Detecting By Me"certification and detection platform,as well as its mobile-side multi windows browser pattern,cross domain data interaction and self adaption of pages modules,and developed mobile APP for detection field.Through series of functional tests,validity of server-side business modules and mobile-side functional modules was verified,and great convenience was brought to users and institutions. |