版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
河北河北师范大学本科生毕业论文(设计)文献综应用程序基AndroidDevelopers”文献综应用程序基AndroidDevelopers”文献综AndroidJava编程语言开发。aaptJava代码连同应用程序所需的其他数据和资源文件一起打包到一个Android包文件中,这个文件使们的设备的文件。单一.apk文件中的所有代码被认为是一个应用程序。从多个角度来看,每个AndroidLinux进程中。当应用程序中的任何代码需要被执行时,Android启动此进程,而当不再需要此进程并且其它应用程每个进程都有其独有的虚拟机(VM,所以应用程序代码与所有其它应用3默认情况下,每个应用程序均被赋予一个唯一的LinuxIDAndroid的一个核心特性就是一个应用程序可以使用其它应用程序的元素(service西并提供给需要这个运算结果的activity使用。每个service都继承自Servicebroadcastreceiver是一个与注于接收广播通知信息,并做出相应处理的组件。许多一个应用程序可以拥有任意数量的broadcastreceiver的信息,或者的信息,或者也可以使用NotificationManager来通知用户。通知可以用多种方式来吸ContentResolver对象,调用它的方法作为替代。ContentResolver可以与任何contentprovider参阅独立的ContentProviders文档以获得更多关于使用contentprovider的信息。每当出现一个需要被特定组件处理的请求时,Android会确保那个组件的应用程序——activity、servicebroadcastreceiver,被一种叫做intent的异步消息所激活。intent是一个保存着消息内容的Intentactivityservice来说,它指明了所请求的URI和其它一些信息。例如,它可以承载一个activity的请求,让它为用户显示一张图片,或者让用户编辑一些文本。而对于receiveractivity则不同,它提供了用户界面。只要会话依然持续,无论会话过程有无空闲,activity同用户进行长时间会话且可能一直处于活动状态。与此相似,service也会Android为关闭activityservice提供了一系列有序activity可以通过调用自身的finish()方法来关闭。一个activityactivity可以通过调用自身的finish()方法来关闭。一个activity可以通过调用finishActivity()方法来关闭另外一个activity(startActivityForResult()启动的servicestopSelf()Context.stopService()来停Androidmanifest用程序会在一个被打包到Androidmanifest文件中声明它的组件,.apk文件还将manifest文件是一个结构化的XML文件,而且对于所有应用程序,文件名总是Intent过滤Intent对象可以显式地指定一个目标组件。如果进行了返种指定,Android会找到这个组件(基于manifest文件中的声明)并激活它。但如果intent没有显式地指定一个目标,Android就必须找到最合适的组件来响应此intent这个过程是通过比较Intent对象和所有潜在目标的intent过滤器完成的。组件的intent过滤器会通知Android它所能处理intent类型。如同组件的其它必要信息一样,这些intent过滤器是manifest河北师范大河北师范大学本科生毕业论文(设计)翻译文章中文翻译应用程序AndroidAndroidJava中文翻译应用程序AndroidAndroidJava编程语言开发。aaptJava代码连同应Android包文件中,这个文件使们的设备的文件。单一.apk文件中的所有代码被认为是一个应用程序。从多个角度来看,每个Android1Linux的任何代码需要被执行时,AndroidM3默认情况下,每个应用程序均被赋予一个唯一的LinuxID1Android的一个核心特性就是一个应用程序可以使用其它应用程序的元素(如果那Java对象实例化。因此,不像其它大多数系统上的应用程序,Android应用程序并没有为应用程序提供一个单独的入口点(比如说,没有1activity是为用户操作而展示的可视化用户界面。例如,一个activity可以展示一个包括一个用于显示要发送消息到的联系人列表的activity,一个给选定的联系人写短信activity以及翻阅以前的短信或改变设置的其他activity。尽管它们一起组成了一个内activity包括一个用于显示要发送消息到的联系人列表的activity,一个给选定的联系人写短信activity以及翻阅以前的短信或改变设置的其他activity。尽管它们一起组成了一个内activity很多个。每个activity都被给予一个默认的窗口以进行绘制。一般情况下,这个窗口是满屏activity也可以使用附加窗口——activityviewviewview可以显示一个小图片,并在用户指点它的时候产生动作。Androidview供开发者使用——view层次结构是由Activity.setContentView()方法放入activity的窗口之中的。contentview是位于层次结构根位置的View对象。(参见独立的用户界面文档以获取关view及层次结构的更多信息。)2西并提供给需要这个运算结果的activity使用。每个service都继承自Service基类。activity来给用户选择歌曲并进行播放。然而,音乐播放这个任务本身丌应activity来处理,因为用户期望即使在他们离开播放器应用程序而开始做别的activityserviceactivity不再显示于屏幕乀后,仍维持音乐播放连接至(绑定到)service(service没有运行,则启动之)是可能的。连接之后,你可以通过那个service暴露出来的接口不service进行通讯。对于音乐service连接至(绑定到)service(service没有运行,则启动之)是可能的。连接之后,你可以通过那个service暴露出来的接口不service进行通讯。对于音乐service来说,这个接口可以允许用户暂停、回退、停止以及重新开始播放。3Broadcastbroadcastreceiver是一个与注于接收广播通知信息,并做出相应处理的组件。许多一个应用程序可以拥有任意数量的broadcastreceiver,以对所有它认为重要的通知信息予以响应。所有的receiver均继承自BroadcastReceiver基类。4ContentContentResolver对象,调用它的方法作为替代。ContentResolver可以与任何contentprovider参阅独立的ContentProviders文档以获得更多关于使用contentprovider的信息。每当出现一个需要被特定组件处理的请求时,Android会确保那个组件的应用程序1.1——activity——activity、servicebroadcastreceiver,被一种叫做intent的异步消息所激活。intent是一个保存着消息内容的Intent对象。对于activityservice来说,它指明了所请求的操作名称,并指定了用来操作的数据的URI和其它一些信息。例如,它可以承载一个activity的请求,让它为用户显示一张图片,或者让用户编辑一些文本。而对于1通过传递一IntentContext.startActivity()Activity.startActivityForResult(以启。相应的法来查看最刜激活它的intent。AndroidactivityonNewIntent()方法来传递给它随后的任何intent。activityactivityactivity迒回一个结果,它会调用startActivityForResult()而不是startActivity()。例如,如果它启动()intent可以被传递给Context.bindService()以建立一个处于调用组件和目标serviceservice会通过onBind方法的调用来获取此Intentservice的连接,这样它就可以提供给用户一些途径(用户界面)来控制回放。这个activity可以调用bindService()来建立此连接,然后调用service稍后的远程方法调用一节有关于如何绑定至一个service3应用程序可以通过传递一个Intent对象至Context.sendBroadcast(),ContextsendOrderedBroadcast()Context.sendStickyBroadcast()和其它类似方法来发起一个广播。Android会调用所有对此广播有兴趣的broadcastreceiveronReceive()方法,将此intent1.21.2receiveractivity则不同,它提供了用户界面。只要会话依然持续,无论会话过程有无空闲,activity同用户进行长时间会话且可能一直处于活动状态。与此相似,service也会Android为关闭activityservice提供了一系列有序activity可以通过调用自身的finish()方法来关闭。一个activity可以通过调用finishActivity()方法来关闭另外一个activity(startActivityForResult()启动的servicestopSelf()Context.stopService()来停Android1.3manifestAndroid启动一个应用程序组件之前,它必须知道那个组件是存在的。因此,应用程序会在一个被打包到Androidmanifest文件中声明它的组件,.apk文件还将manifest文件是一个结构化的XML文件,而且对于所有应用程序,文件名总是manifestAndroid<activity>name属性指定了实现此activityActivity<activity>name属性指定了实现此activityActivity子类。iconlabel属性指向包含展示给用户的此activity的图标和标签的资源文件。其它组件也以类似的方法声明——<service>元素用于声明service<receiver>元素用于声明broadcastreceiver,而<provider>元素用于声明contentprovider。未在manifestactivity、servicecontentprovider将不为系统所见,从而也就永不会被运行。然而,broadcastreceiver既可以在manifest文件中声明,也可以在代码中动态创建(BroadcastReceiver对象Context.registerReceiver()的1.4IntentIntent对象可以显式地指定一个目标组件。如果进行了返种指定,Android会找到这个组件(基于manifest文件中的声明)并激活它。但如果intent没有显式地指定就必须找到最合适的组件来响应此intent这个过程是通过比较Intent象和所有潜在目标的intent过滤器完成的。组件的intent过滤器会通知Android它所能处理的intent类型。如同组件的其它必要信息一样,这些intent过滤器是在manifest文件中进行声明的。返里有一个对先前例子的扩展,其中加入了针对activity的两个intentactivityactivity英文原文Application英文原文ApplicationAndroidapplicationsarewrittenintheJavaprogramminglanguage.ThecompiledJavacode—alongwithanydataandresourcefilesrequiredbytheapplication—isbundledbytheaapttoolintoanAndroidpackage,anarchivefilemarkedbyan.apksuffix.Thisfileisthevehiclefordistributingtheapplicationandinstallingitonmobiledevices;it'sthefileusersdownloadtotheirdevices.Allthecodeinasingle.apkfileisconsideredtobeoneInmanyways,eachAndroidapplicationlivesinitsownBydefault,everyapplicationrunsinitsownLinuxprocess.Androidstartstheprocesswhenanyoftheapplication'scodeneedstobeexecuted,andshutsdowntheprocesswhenit'snolongerneededandsystemresourcesarerequiredbyotherapplications.Eachprocesshasitsownvirtualmachine(VM),soapplicationcoderunsinisolationfromthecodeofallotherapplications.Bydefault,eachapplicationisassignedauniqueLinuxuserID.Permissionsaresetsothattheapplication'sfilesarevisibleonlytothatuserandonlytotheapplicationitself—althoughtherearewaystoexportthemtootherapplicationsaswell.It'spossibletoarrangefortwoapplicationstosharethesameuserID,inwhichcasetheywillbeabletoseeeachother'sfiles.Toconservesystemresources,applicationswiththesameIDcanalsoarrangetoruninthesameLinuxprocess,sharingthesameVM.ApplicationComponents:AcentralfeatureofAndroidisthatoneapplicationcanmakeuseofelementsofotherapplications(providedthoseapplicationspermitit).Forexample,ifyourapplicationneedstodisplayascrollinglistofimagesandanotherapplicationhasdevelopedasuitablescrollerandmadeitavailabletoothers,youcancalluponthatscrollertodothework,ratherthandevelopyourown.Yourapplicationdoesn'tincorporatethecodeoftheotherapplicationorlinktoit.Rather,itsimplystartsupthatpieceoftheotherapplicationwhentheneedarises.Forthistowork,thesystemmustbeabletostartanapplicationprocesswhenanypartofitisneeded,andinstantiatetheJavaobjectsforthatpart.Therefore,unlikeapplicationsonmostothersystems,Androidapplicationsdon'thaveasingleentrypointforeverythingintheapplication(nomain()function,forexample).Rather,theyhaveessentialcomponentsthatthesystemcaninstantiateandrunasneeded.Therearefourtypesofcomponents:Anactivitypresentsavisualuserinterfaceforonefocusedendeavortheuserundertake.Forexample,anundertake.Forexample,anactivitymightpresentalistofmenuitemsuserscanchoosefromoritmightdisplayphotographsalongwiththeircaptions.Atextmessagingapplicationmighthaveoneactivitythatshowsalistofcontactstosendmessagesto,asecondactivitytowritethemessagetothechosencontact,andotheractivitiestoreviewoldmessagesorchangesettings.Thoughtheyworktogethertoformacohesiveuserinterface,eachactivityisindependentoftheothers.EachoneisimplementedasasubclassoftheActivitybaseclass.Anapplicationmightconsistofjustoneactivityor,likethetextmessagingapplicationjustmentioned,itmaycontainseveral.Whattheactivitiesare,andhowmanytherearedepends,ofcourse,ontheapplicationanditsdesign.Typically,oneoftheactivitiesismarkedasthefirstonethatshouldbepresentedtotheuserwhentheapplicationislaunched.Movingfromoneactivitytoanotherisaccomplishedbyhavingthecurrentactivitystartthenextone.Eachactivityisgivenadefaultwindowtodrawin.Typically,thewindowfillsthescreen,butitmightbesmallerthanthescreenandfloatontopofotherwindows.Anactivitycanalsomakeuseofadditionalwindows—forexample,apop-updialogthatcallsforauserresponseinthemidstoftheactivity,orawindowthatpresentsuserswithvitalinformationwhentheyselectaparticularitemon-screen.Thevisualcontentofthewindowisprovidedbyahierarchyofviews—objectsderivedfromthebaseViewclass.Eachviewcontrolsaparticularrectangularspacewithinthewindow.Parentviewscontainandorganizethelayoutoftheirchildren.Leafviews(thoseatthebottomofthehierarchy)drawintherectanglestheycontrolandrespondtouseractionsdirectedatthatspace.Thus,viewsarewheretheactivity'sinteractionwiththeusertakesForexample,aviewmightdisplayasmallimageandinitiateanactionwhentheusertapsthatimage.Androidhasanumberofready-madeviewsthatyoucanuse—includingbuttons,textfields,scrollbars,menuitems,checkboxes,andmore.Aviewhierarchyisplacedwithinanactivity'swindowbytheActivity.setContentView()method.ThecontentviewistheViewobjectattherootofthehierarchy.(SeetheseparateUserInterfacedocumentformoreinformationonviewsandthehierarchy.)Aservicedoesn'thaveavisualuserinterface,butratherrunsinthebackgroundforanindefiniteperiodoftime.Forexample,aservicemightplaybackgroundmusicastheuserattendstoothermatters,oritmightfetchdataoverthenetworkorcalculatesomethingandprovidetheresulttoactivitiesthatneedit.EachserviceextendstheServicebaseclass.Aprimeexampleisamediaplayerplayingsongsfromaplaylist.Theplayerwouldprobablyhaveoneormoreactivitiesthatallowtheusertochoosesongsandstartplayingthem.However,themusicplaybackitselfwouldnotbehandledbyanactivitybecauseuserswillexpectthemusictokeepplayingevenaftertheyleavetheplayerandbeginsomethingdifferent.Tobecauseuserswillexpectthemusictokeepplayingevenaftertheyleavetheplayerandbeginsomethingdifferent.Tokeepthemusicgoing,themediaplayeractivitycouldstartaservicetoruninthebackground.Thesystemwouldthenkeepthemusicplaybackservicerunningevenaftertheactivitythatstarteditleavesthescreen.It'spossibletoconnectto(bindto)anongoingservice(andstarttheserviceifit'snotalreadyrunning).Whileconnected,youcancommunicatewiththeservicethroughaninterfacethattheserviceexposes.Forthemusicservice,thisinterfacemightallowuserstopause,rewind,stop,andrestarttheplayback.Likeactivitiesandtheothercomponents,servicesruninthemainthreadoftheapplicationprocess.Sothattheywon'tblockothercomponentsortheuserinterface,theyoftenspawnanotherthreadfortime-consumingtasks(likemusicplayback).SeeProcessesandThreads,BroadcastAbroadcastreceiverisacomponentthatdoesnothingbutreceiveandreacttobroadcastannouncements.Manybroadcastsoriginateinsystemcode—forexample,announcementsthatthetimezonehaschanged,thatthebatteryislow,thatapicturehasbeentaken,orthattheuserchangedalanguagepreference.Applicationscanalsoinitiatebroadcasts—forexample,toletotherapplicationsknowthatsomedatahasbeendownloadedtothedeviceandisavailableforthemtouse.Anapplicationcanhaveanynumberofbroadcastreceiverstorespondtoanyannouncementsitconsidersimportant.AllreceiversextendtheBroadcastReceiverbaseclass.Broadcastreceiversdonotdisplayauserinterface.However,theymaystartanactivityinresponsetotheinformationtheyreceive,ortheymayusetheNotificationManagertoalerttheuser.Notificationscangettheuser'sattentioninvariousways—flashingthebacklight,vibratingthedevice,playingasound,andsoon.Theytypicallyplaceapersistenticoninthestatusbar,whichuserscanopentogetthemessage.ContentAcontentprovidermakesaspecificsetoftheapplication'sdataavailabletootherapplications.Thedatacanbestoredinthefilesystem,inanSQLitedatabase,orinanyothermannerthatmakessense.ThecontentproviderextendstheContentProviderbaseclasstoimplementastandardsetofmethodsthatenableotherapplicationstoretrieveandstoredataofthetypeitcontrols.However,applicationsdonotcallthesemethodsdirectly.RathertheyuseaContentResolverobjectandcallitsmethodsinstead.AContentResolvercantalktoanycontentprovider;itcooperateswiththeprovidertomanageanyinterprocesscommunicationthat'sinvolved.SeetheseparateContentProvidersdocumentformoreinformationonusingWheneverthere'sarequestthatshouldbehandledbyaparticularcomponent,AndroidmakessurethattheapplicationWheneverthere'sarequestthatshouldbehandledbyaparticularcomponent,Androidmakessurethattheapplicationprocessofthecomponentisrunning,startingitifnecessary,andthatanappropriateinstanceofthecomponentisavailable,creatingtheinstanceifActivatingcomponents:Contentprovidersareactivatedwhenthey'retargetedbyarequestfromaTheotherthreecomponents—activities,services,andbroadcastreceivers—areactivatedbyasynchronousmessagescalledintents.AnintentisanIntentobjectthatholdsthecontentofthemessage.Foractivitiesandservices,itnamestheactionbeingrequestedandspecifiestheURIofthedatatoacton,amongotherthings.Forexample,itmightconveyarequestforanactivitytopresentanimagetotheuserorlettheusereditsometext.Forbroadcastreceivers,theIntentobjectnamestheactionbeingannounced.Forexample,itmightannouncetointerestedpartiesthatthecamerabuttonhasbeenpressed.Thereareseparatemethodsforactivatingeachtypeof1.Anactivityislaunched(orgivensomethingnewtodo)bypassinganIntentobjecttoContext.startActivity()orActivity.startActivityForResult().TherespondingactivitycanlookattheinitialintentthatcausedittobelaunchedbycallingitsgetIntent()Androidcallstheactivity's onNewIntent()methodtopassitanysubsequentintents.Oneactivityoftenstartsthenextone.Ifitexpectsaresultbackfromtheactivityit'sstarting,itstartActivityForResult()insteadstartActivity().Forexample,ifitstartsanthatletstheuserpickaphoto,itmightexpecttobereturnedthechosenphoto.TheresultisreturnedinanIntentobjectthat'spassedtothecallingactivity'sonActivityResult()method.Aserviceisstarted(ornewinstructionsaregiventoanongoingservice)bypassingIntentobjecttoContext.startService().Androidcallstheservice'sonStart()methodandpassesittheIntentobject.Similarly,anintentcanbepassedtoContext.bindService()toestablishanongoingconnectionbetweenthecallingcomponentandatargetservice.TheservicereceivestheIntentobjectinanonBind()call.(Iftheserviceisnotalreadyrunning,bindService()canoptionallystartit.)Forexample,anactivitymightestablishaconnectionwiththemusicplaybackservicementionedearliersothatitcanprovidetheuserwiththemeans(auserinterface)forcontrollingtheplayback.TheactivitywouldcallbindService()tosetupthatconnection,andthencallmethodsdefinedbytheservicetoaffecttheplayback.Alatersection,Remoteprocedurecalls,hasmoredetailsaboutbindingtoaservice.AnapplicationcaninitiateabroadcastbypassinganIntentobjecttomethodsContext.sendBroadcast(),Context.sendOrderedBroadcast(),Context.sendStickyBroadcast()inanyContext.sendStickyBroadcast()inanyoftheirAndroiddeliverstheintenttoallinterestedbroadcastreceiversbycallingtheironReceive()methods.Formoreonintentmessages,seetheseparatearticle,IntentsandIntentFilters.Shuttingdowncomponents:Acontentproviderisactiveonlywhileit'srespondingtoarequestfromaContentResolver.Andabroadcastreceiverisactiveonlywhileit'srespondingtoabroadcastmessage.Sothere'snoneedtoexplicitlyshutdownthesecomponents.Activities,ontheotherhand,providetheuserinterface.They'reinalong-runningconversationwiththeuserandmayremainactive,evenwhenidle,aslongastheconversationcontinues.Similarly,servicesmayalsoremainrunningforalongtime.SoAndroidhasmethodstoshutdownactivitiesandservicesinanorderlyway:Anactivitycanbeshutdownbycallingitsfinish()method.Oneactivitycanshutdownanotheractivity(oneitstartedwithstartActivityForResult())bycallingfinishActivity().AservicecanbestoppedbycallingitsstopSelf()method,orbycallingComponentsmightalsobeshutdownbythesystemwhentheyarenolongerbeingusedorwhenAndroidmustreclaimmemoryformoreactivecomponents.Alatersection,ComponentLifecycles,discussesthispossibilityanditsramificationsinmoredetail.ThemanifestBeforeAndroidcanstartanapplicationcomponent,itmustlearnthatthecomponentexists.Therefore,applicationsdeclaretheircomponentsinamanifestfilethat'sbundledintotheAndroidpackage,the.apkfilethatalsoholdstheapplication'scode,files,andresources.ThemanifestisastructuredXMLfileandisalwaysnamedAndroidManifest.xmlforallapplications.Itdoesanumberofthingsinadditiontodeclaringtheapplication'scomponents,suchasnaminganylibrariestheapplicationneedstobelinkedagainst(besidesthedefaultAndroidlibrary)andidentifyinganypermissionstheapplicationexpectstobegranted.ButtheprincipaltaskofthemanifestistoinformAndroidaboutthecomponents.Forexample,anactivitymightbedeclaredasThenameattributeofthe<activity>Thenameattributeofthe<activity>elementnamestheActivitysubclassthatimplementstheactivity.Theiconandlabelattributespointtoresourcefilescontaininganiconandlabelthatcanbedisplayedtouserstorepresenttheactivity.Theothercomponentsaredeclaredinasimilarway—<service>elementsfor<receiver>elementsforbroadcastreceivers,and<provider>elementsforcontentproviders.Activities,services,andcontentprovidersthatarenotdeclaredinthemanifestarenotvisibletothesystemandareconsequentlyneverrun.However,broadcastreceiverscaneitherbedeclaredinthemanifest,ortheycanbecreateddynamicallyincode(asBroadcastReceiverobjects)andregisteredwiththesystembycallingContext.registerReceiver().Formoreonhowtostructureamanifestfileforyourapplication,seeTheAndroidManifest.xmlFile.IntentAnIntentobjectcanexplicitlynameatargetcomponent.Ifitdoes,Androidfindsthatcomponent(basedonthedeclarationsinthemanifestfile)andactivatesit.Butifatargetisnotexplicitlynamed,Androidmustlocatethebestcomponenttorespondtotheintent.ItdoessobycomparingtheIntentobjecttotheintentfiltersofpotentialtargets.Acomponent'sintentfiltersinformAndroidofthekindsofintentsthecomponentisabletohandle.Likeotheressentialinformationaboutthecomponent,they'redeclaredinthemanifestfile.Here'sanextensionofthepreviousexamplethataddstwointentfilterstotheThefirstfilterinThefirstfilterintheexample—thecombinationoftheaction"ent.action.MAIN"andthecategory"ent.category.LAUNCHER"—isacommonone.Itmarkstheactivityasonethatshouldberepresentedintheapplicationlauncher,thescreenlistingapplicationsuserscanlaunchonthedevice.Inotherwords,theactivityistheentrypointfortheapplication,theinitialoneuserswouldseewhentheychoosetheapplicationinthelauncher.ThesecondfilterdeclaresanactionthattheactivitycanperformonaparticulartypeofAcomponentcanhaveanynumberofintentfilters,eachonedeclaringadifferentsetofcapabilities.Ifitdoesn'thaveanyfilters,itcanbeactivatedonlybyintentsthatexplicitlynamethecomponentasthetarget.Forabroadcastreceiverthat'screatedandregisteredincode,theintentfilterisinstantiateddirectlyasanIntentFilterobject.Allotherfiltersaresetupinthemanifest.Formoreonintentfilters,seeaseparatedocument,IntentsandIntent本科生毕业论文设医疗信息化移动端系统的设计和实现作者姓名:指导教师:所在学院:软本科生毕业论文设医疗信息化移动端系统的设计和实现作者姓名:指导教师:所在学院:软件专()件()2014届软件班班目录目录 1 研究背 研究现 研究目 论文的主要内容和结 2 引 命名标准和定 系统功能分 系统模型概 病人客户端模块架 医生客户端模块架 护士客户端模块架 数据无线传输模 系统功能结 非功能性需 3 开发与设计总体思 关键模块设计和实 病人客户端的设计和实 医生客户端的设计和实 护士客户端的设计和实 难点总结和不 难点总 系统的不足和发展目 4 系统整体介 系统测试和验 系统测试和验 致 Designandimplementationofmedicalinformationsystemsmobile 医疗信息化移动端系统的设计和实作者医疗信息化移动端系统的设计和实作者关键词:AndroidHttpClient1研究研究0.3%-0.5%,而发1研究研究0.3%-0.5%,而发2015研究Android系统目前比较流行的操作系统,所以研究Android(1)(2)(3)Android系统目前比较流行的操作系统,所以研究Android(1)(2)(3)Android1.4论文的主要内容和然后是系统实现和测试:使用Eclipse2需求命名标准和Android手持设备:基于命名标准和Android手持设备:基于Android系统的各类智能手机,平板电脑等移动终端;桌面设备:PC电脑;用户:使用基于AndroidAndroid手持设备通过无线网络与桌面设备或者Android2.3系统功能系统模型他系统联的人群(只人病人客户Android他系统联的人群(只人病人客户Android病人客模块系服务病人护士客户医院后台服务器医生客户医生客模块系医医生查看病人体征等信息,医生客模块系医医生查看病人体征等信息,下遗嘱,下护士客模块系医护系统后台服器护士系医护系统后台服器护士ID数据无线传输ftp协议将多种格式的数据,如文字,图片,音频,视屏,经过处理成格式化后的Java系统功能2.6系统功能2.6移动医疗系模块模块2.6展示了基于AndroidAndroid联模块模块2.6展示了基于AndroidAndroid联下存通载储其请上他求传系文文件执记查帐行录看号遗体信登嘱征息录模模模模编下查帐辑达看号病遗信登历嘱息录模模模模医医查智预注药院看能约册知简信导挂登识介息诊号录模模模模模模块块非功能性医疗系统需要外界提供连续稳定的httpftp服务或者WEB服务,保证文件的上传和下载;Android系统应用和优秀的第三方应用都有简单易用的特点,所以本系统的操作也应该买足如下特点;在兼容性上应该尽量保证系统在各种Android手持设备上保证正确运非功能性医疗系统需要外界提供连续稳定的httpftp服务或者WEB服务,保证文件的上传和下载;Android系统应用和优秀的第三方应用都有简单易用的特点,所以本系统的操作也应该买足如下特点;在兼容性上应该尽量保证系统在各种Android手持设备上保证正确运系统3开发与设计总体3.2关键模块设计和病人客户端的设计和实XMLReader类:publicXMLReader类:publicclassXMLReaderpublicstaticList<Map<String,String>>getXmlList(XmlResourceParserxrp,StringbodyCode){List<Map<String,String>>list=newArrayList<Map<String,String>>();try{////文件的内容的起始标签开始,注意这里的起始标签是test.xml文件if(xrp.getEventType()=={Stringtagname=xrp.getName();if(tagname.endsWith("State")){Map<String,String>map=newHashMap<String,String>();Stringname=xrp.getAttributeValue(0);Stringcode=Stringletter=map.put("Name",name);map.put("Code",code);Stringletter=map.put("Name",name);map.put("Code",code);}elseif{Stringcode=Map<String,String>map=newHashMap<String,String>();Stringname=xrp.getAttributeValue(0);map.put("Name",map.put("Code",}}//下面的两个elseifelseif(xrp.getEventType()==XmlResourceParser.END_TAG)}}}catch(IOException{}return}}ImageLoader类:public}ImageLoader类:publicclassImageLoaderprivatefinalstaticStringLOG_TAG="imageloader";privatestaticDrawablemDrawable;privateContentResolverpublicImageLoader(Context{this.cr=context.getContentResolver();mDrawable=context.getResources().getDrawable(}publicvoidload(Stringurl,ImageView{if(bitmap==null){forceLoad(url,}else}}classBitmapDownloaderTaskextendsAsyncTask<String,Void,Bitmap>}staticclassDownloadedDrawableextendsDrawable{return}{return}publicvoiddraw(Canvas{mDrawable.setBounds(getBounds());}publicintgetOpacity()return}publicvoidsetAlpha(int{}cf)}}privatevoid{purgeHandler.removeCallbacks(purger);purgeHandler.postDelayed(purger,DELAY_BEFORE_PURGE);}}医生客户端的设计和实publicclassSearchDepartDateListActivitypublicclassSearchDepartDateListActivityextends{List<Map<String,String>>listData=newArrayList<Map<String,SimpleAdapteradapter;EditTexteditText;protectedvoidonCreate(Bundle{super.onCreate(savedInstanceState);Intentintent=getIntent();StringsearchStr=//获得页面控件idTextViewtitle=(TextView)title.setText("科室列表ButtonbtnBack=(Button)findViewById(R.id.back);ButtonbtnSetting=(Button)editText=(EditText)findViewById(R.id.edit);ListViewlistview=(ListView)//获得数据(医生列表XmlResourceParserxmlRePa=listData//获得数据(医生列表XmlResourceParserxmlRePa=listData=XMLReader.getXmlList(xmlRePa,//MySearchsearch=new//adapter=newSimpleAdapter(this,resultList,R.mon_department_list_item,newString[]{"Name","Code"},newint[]{R.id.Name,R.id.Code显示医生数据到listview}}护士客户端的设计和SyncTasks类:publicclassSyncTasks//publicSyncTasks类:publicclassSyncTasks//publicstaticclassUploadTaskextendsAsyncTask<Void,Void,Void>//上传失败将失败任务文件添加到未完成任务publicvoidonFailure(Throwablearg0,Stringarg1)}}//publicstaticclassDownloadTaskextendsAsyncTask<Void,Void,List<Note>>}//publicstaticclassFileDownloadTaskextendsAsyncTask<String,Void,Void>}//publicstaticclassEntryDeleteTaskextendsAsyncTask<Void,Void,Void>}//}}3.3难点总结和难点系统的不足3.3难点总结和难点系统的不足和发展目本次系统实现了基于Android4系统的系统整体4.6面系统测试4.6面系统测试和参考参考.杨丰盛.Android应用开发揭秘[M].机械工业出版社民邮电出版社谢希仁.计算机网络(5版)[M].北京:电子工业出版社,2008:100-120.罗震.Android平台环境下应用程序架构的设计与实现[D].华中科技大学,2009郭宏志.Android应用开发详解[M].电子工业出版社,2010.6王向辉,张国印,赖明珠.Android应用程序开发[M].清华大学出版社EdBurnett,Hello,Android:IntroducingGoogle’sMobileDevelopmentPlatform[J].PRAGMATICBOOKSHELF,2010.7:10-11.刘建中等译.设计模式-可复用面向对象软件的基础[M].北京:机械工业出版社DesignandimplementationofmedicalinformationsystemsmobileAbstract:DesignandimplementationofmedicalinformationsystemsmobileAbstract:Withtherapiddevelopmentofmobileintelligentterminal,people'sandlifehasbeengreatlychanged.PeoplewanttoachievethesamefunctiononthePCsideinthesmartterminal,somobileoffice,mobilelifeandmobilecomputing.Currentintelligentterminalsalreadyonthemarket,includingsmartphones,tabletcomputers,smartphoneswhichisatriple-playproduct,userscanrealizetheu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年新技术新项目准入管理三基培训考核计划
- 2026年气管插管三基三严常态化培训方案
- 耐力训练知情同意书
- 学校消防安全教育主题班会课件(共23张幻灯片)
- 电气安全知识培训试卷(附答案)
- 地下管线挖断事故应急处置预案
- 道路桥梁施工实训指导
- 超声医学科主治医师专业实践能力(综合)-试卷2
- 财务大数据分析-试题及答案-客观题2024更新整篇版
- 残疾人康复训练与服务培训试题
- 高中美术鉴赏课教学设计:以作品为本位的四步鉴赏法实践
- 2025年城管协管员笔试考试试题(含答案)
- 医疗健康管理与慢病防控
- 2026年认证基础、管理体系认证基础主观题考试(附答案)解析
- 2026年急诊超声应用培训课件
- 正压送风口阀体损坏更换安装调试方案
- 新学期(2026年秋)小学二年级体育教学工作计划
- 浙江省杭州市2026届高三上学期教学质量检测数学试卷(杭州一模)(含答案)
- 第二届重庆市市场监管系统执法办案电子数据取证技能大竞赛赛完整试题
- 高中实验室生物安全培训课件
- GB/T 32741-2025肥料、土壤调理剂和有益物质分类
评论
0/150
提交评论