【正文】
e()。 (args)。 // Replace whatever is in the fragment_container view with this fragment. // and add the transaction to the back stack so the user can navigate back (, newFragment)。 22 // Commit the transaction ()。 231校園建設建言功能 232 建議輸入窗口 實現(xiàn)代碼如下所示: public void initializeRegistrationListener() { mRegistrationListener = new () { Override public void onServiceRegistered(NsdServiceInfo NsdServiceInfo) { // Save the service name. Android may have changed it in order to // resolve a conflict, so update the name you initially requested // with the name Android actually used mServiceName = ()。如下圖所示: 圖 233 OA系統(tǒng)主要功能界面 對這些模塊實現(xiàn)的具體功能說明如下: 郵件管理 24 234郵件列表 235查看郵件 236寫與發(fā)郵件 圖 2 郵件的各種操作 主要的實現(xiàn)關鍵代碼如下: public void initializeDiscoveryListener() { // Instantiate a new DiscoveryListener mDiscoveryListener = new () { // Called as soon as service discovery begins. Override public void onDiscoveryStarted(String regType) { (TAG, Service discovery started)。 if (!().equals(SERVICE_TYPE)) { // Service type is the string containing the protocol and // transport layer for this service. (TAG, Unknown Service Type: + ())。d be // connecting to. It could be Bob39。 } else if (().contains(NsdChat)){ 25 (service, mResolveListener)。 } Override public void onDiscoveryStopped(String serviceType) { (TAG, Discovery stopped: + serviceType)。 (this)。 (this)。如下圖所示: 26 圖 237待辦公文列表 圖 238已辦公文列表 與郵件不同,公文以文件的傳遞為主,處理選定公文后,服務 器將會把公文的狀態(tài)更改為 “處理中 ”狀態(tài),手機客戶端根據(jù)用戶的選擇從服務器下載相關的公文(權限允許的情況下),在當前用戶處理完公文前,其他用戶不允許下載處理該公文。 一是 “領導批示 ” 指的是使用客戶端的用戶角色為領導時,可以對公文進行批示,二是 “相關意見 ”可以填寫有關意見,改變公文的審批狀態(tài)。 239公文查看 240領導批示 241發(fā)送文件 公文處理的實現(xiàn)的主要代碼如下: public void initializeResolveListener() { 27 mResolveListener = new () { Override public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { // Called when the resolve fails. Use the error code to debug. (TAG, Resolve failed + errorCode)。 if (().equals(mServiceName)) { (TAG, Same IP.)。 } mService = serviceInfo。 IAddress host = ()。 } ()。 if (mNsdHelper != null) { (())。 } Override protected void onDestroy() { ()。 28 ()。s tearDown method public void tearDown() { (mRegistrationListener)。 } 公文查看 可以查看公文的詳細內容和公文的審批過程。 242公文詳細情況 243公文審批記錄 實現(xiàn)公文查詢的主要代碼如下: Override public void onReceive(Context context, Intent intent) { String action = ()。 if (state == ) { (true)。 } } else if ((action)) { // The peer list has changed! We should probably do something about // that. } else if ((action)) { // Connection state changed! We should probably do something about // that. } else if ((action)) { DeviceListFragment fragment = (DeviceListFragment) () .findFragmentById()。 } } 30 第 三 章 系統(tǒng)測試 本軟件的開發(fā)比預期中延遲了一個星期。這主要由于在某些技術上的問題在設計過程中沒有考慮到,導致在編碼過程中需要花一些時間去考慮所遇到技術的問題延遲了完成的時間。 完善軟件。 試 用例目標 測試登錄模塊是否正常運作 需求描述 正常登陸 步驟 操作 輸入數(shù)據(jù) 預期結果 輸入賬號密碼 賬號: 0840111139 密碼(不公開) 順利進入用戶選擇界面 用例目標 測試用戶選擇模塊是否正常運作 需求描述 正常顯示六大功能模塊并且能點擊進入 步驟 操作 輸入數(shù)據(jù) 預期結果 點擊 各 大功能模塊圖標 無 順利進入各個功能界面 31 通過用戶的點擊操作,一般在兩秒內能實現(xiàn)。 在引用本軟件時,能與其他軟件同時正常工作,不會引起兼容性問題。本文首先分析了 Android系統(tǒng)的研究背景,介紹了當前手機操作系統(tǒng)、入了軟件的發(fā)展現(xiàn)狀,從不同角度說明本文的研究目的和研究意義并介紹了本文的主要內容。最后是結論部分,總結了本文的主要研究內容和研究成果,分析了存在的問題,并對今后的發(fā)展方向進行了展望。但因個人能力有限,還有很多問題需要解決。系統(tǒng)的界面設計也不是很完善。相信隨著研究的進一步深入,這些問題會逐步得到解決。 34 致謝 本課題在選題及研究過程中得到 老師的指導。老師嚴謹?shù)闹螌W作風、認真的工作態(tài)度和勤奮的工作精神深深地影響著我,使我受益終身。 衷心感謝我 的同學 ,全靠大家同心合力,互相支持和鼓勵才使我能夠完成我 的 目標。s popularityand to some inconsistent user Spectrum, v 48, n 5, p 2224, May 2021 36 [19]Zhu, Junwu, Xu, Lijun。 Kuz,