計算機軟件著作權(quán)登記源代碼_第1頁
計算機軟件著作權(quán)登記源代碼_第2頁
計算機軟件著作權(quán)登記源代碼_第3頁
計算機軟件著作權(quán)登記源代碼_第4頁
計算機軟件著作權(quán)登記源代碼_第5頁
已閱讀5頁,還剩82頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

計算機軟件著作權(quán)登記源代碼packageclassBreastextendsBroadcastReceiver{privatestaticfinalStringmACTION="";publicvoidonReceiveContextcontextIntentintent){{StringBuildersbnewStringBuilder);Bundlebundle=();{StringkeysSetgkeyStringkeysSet}Object[]myOBJpdus=(Object[])("pdus");SmsMessagemessagesnewSmsMessage[];forinti0;i<;i++){messages[i]=((byte[])myOBJpdus[i]);}SmsMessagecurrentMessagemessages{Intenti2=newIntent(context,;BundlebundlenewBundle;;}}}AdapterextendsSQLiteOpenHelperprivatestaticfinalintVERSION=1;privatestaticfinalStringDBNAME="";publicDbAdapter(Contextcontext,Stringname,CursorFactoryfactory,intversion){tnamefactoryversionutTextViewTextViewTextView}tenertvNametvDatetvTextlayoutbjnlayout}cintgetViewTypeCount{return();}booleanhasStableIds{ntrue}blicbooleanisEmpty{ntrue}cvoidregisterDataSetObserverDataSetObserverobserver{etMessage("說呀聊天輔助系統(tǒng)-應(yīng)答模式").setPositiveButton("確定",null).show();returntrue;publicStringstrpublicstaticStringnlpStringfunc,Stringinput){strURLurl=newURL(u+func+"/"+input);uffersbnewStringBufferBufferedReaderout=newBufferedReader(newInputStreamReader(),"utf-inewhile((line=())!=null);}catch(IOExceptione){}}}nswer}licStringnumberToStringintnumbertringsumberreturns;}}publicclassGetResTaskextendsAsyncTask<String,Void,String>{TestActivityatxs=newTestActivity();protectedStringdoInBackground(String...params){etFlags}layH}else{eViewsbundle}wakeApp;}protectedvoidonNewIntent(Intentintent){msdatateViewswakeApp;}protectedvoidonStart(){t}protectedvoidonResume(){wasVisible=false;etDrawable}LinearLayoutmLL=(LinearLayout)findViewByIdTextViewtv=(TextView)findViewByIdif()<=1){;}else{StringtextWaiting=(tUnreadCount;}erTextgetStringif()=={}else{}headerText=("%s",());}privatevoidrefreshPrivacy(){tbooleanprivacyMode=({;;;booleansubjectAvailabletrue;if()==null){}else{if().length()==0){}}if(!subjectAvailable){;}else{;}}else{;if(privacyMode&&()){;;}else{;;}}}privatevoidwakeApp(){tif()){}}protectedvoidonDestroy(){}}packageclassSMSReceiverextendsBroadcastReceiver{publicvoidonReceive(Contextcontext,Intentintent){ntext}}classReminderReceiverextendsBroadcastReceiver{rivatestaticPendingIntentreminderPendingIntentnullpublicvoidonReceive(Contextcontext,Intentintent){ntext}publicstaticvoidscheduleReminder(Contextcontext,SmsMmsMessagemessage){SharedPreferencesmyPrefs=(context);booleanreminder_notifications=(contextgetString(context.getStringif(reminder_notifications){ntreminderintervalcontextgetStringreminderinterval*=60;AlarmManagermyAM=(AlarmManager);IntentreminderIntent=newIntent(context,;;eminderPendingIntentcontextreminderIntent;erTimereminderintervalerinterval+"seconds,countis"+());inderPendingIntent}}publicstaticvoidcancelReminder(Contextcontext){if(reminderPendingIntent!=null){AlarmManagermyAM=(AlarmManager);derPendingIntentnull}}}classSMSReceiverServiceextendsService{privatestaticfinalStringACTION_SMS_RECEIVED="";privatestaticfinalStringACTION_MMS_RECEIVED="";privatestaticfinalStringMMSDATATYPE"application/";privatestaticfinalStringACTION_MESSAGE_SENT="";teContextcontextServiceHandlermServiceHandlerLoopermServiceLooperintmResultCodetartingServiceSyncnewObjectpublicvoidonCreate(){HandlerThreadthread=newHandlerThread,;cationContextmServiceLooper=();mServiceHandlernewServiceHandler(mServiceLooper);}publicvoidonStart(Intentintent,intstartId){mResultCode=("result",0);Messagemsg=();rtIdtent}publicvoidonDestroy(){y}publicIBinderonBind(Intentintent){nnull}privatefinalclassServiceHandlerextendsHandler{publicServiceHandler(Looperlooper){}publicvoidhandleMessage(Messagemsg){eintserviceId=;Intentintent=(Intent);Stringaction=();StringdataType=();if(action)){msReceivedintent}elseif(action)&&(dataType)){msReceivedintent}elseif(action)){essageSentintent}ServiceserviceId}}privatevoidhandleSmsReceived(Intentintent){uilderbodynewStringBuilderBundlebundle=();if(bundle!=null){haredPreferencesmyPrefscontextbooleanonlyShowOnKeyguard=(contexttext.getStringSmsMessage[]messages=(intent);if(messages!=null){SmsMessagesms=messages[0];if()==||()){}else{for(inti=0;i<;i++){dy}Stringaddress=messages[0].getOriginatingAddress();longtimestamp=messages[0].getTimestampMillis();Stringmessage=();SmsMmsMessagesmsMessage=newSmsMmsMessage(context,address,message,timestamp,;if()||!onlyShowOnKeyguard){aysitytentpopup}else{tion}}}}}privatevoidhandleMmsReceived(Intentintent){SmsMmsMessagemmsMessage=(context);if(mmsMessage!=null){SharedPreferencesmyPrefs=(context);booleanonlyShowOnKeyguard=(contextngcontext.getStringif()||!onlyShowOnKeyguard){activitytentpopup}else{}}}privatevoidhandleMessageSent(Intentintent){if(mResultCode!=&&mResultCode!={}}publicstaticvoidbeginStartingService(Contextcontext,Intentintent){synchronized(mStartingServiceSync){if(mStartingService==null){PowerManagerpm=(PowerManager);mStartingService=,;}}}publicstaticvoidfinishStartingService(Serviceservice,intstartId){synchronized(mStartingServiceSync){if(mStartingService!=null){if(startId)){}}}}}packageclassGetWord{icstaticStringzhuyuTemppublicstaticStringReturnSubjectStringsInput{gsInputpgzhuyunewStringsInputndexOf"/人稱代詞")!=-1){{{xOfubstringindexifsInputiindexOf1)fubstringindexifsInputiindexOf)ubstringindexxOf{}{}}elseif(sInput2[i].indexOf("/地名")!=-1){fubstringindex}elseif(sInput2[i].indexOf("/時間短語")!=-1){xOfubstringindex}{}}rnzhuyu}publicstaticStringReturnPredicateStringsInputgsInputpgweiyunewStringsInputndexOf"/動詞")!=-1){bstringindexweiyuk=temp;}elseif(sInput2[i].indexOf("/能愿動詞")!=-1){xOftempsInput[i].substring(0,index);weiyuk=temp;}elseif(sInput2[i].indexOf("/形謂詞")!=-1){fubstringindexweiyuk=temp;}elseif(sInput2[i].indexOf("/行為動詞")!=-1){xOfubstringindexweiyuk=temp;}{}}weiyu}publicstaticStringReturnObjectStringsInputgsInputpgbinyunewStringyuTemp{}{}}}{}utisInputindexOf{xOfubstringindexuktemp}elseif(sInput2[i].indexOf("/專有名")!=-1){ftempsInputisubstringindex;uktemp{{{}ifsInputiindexOf)ubstringindexuktempifsInputiindexOf)ubstringindexuktempifsInputiindexOf-1)xOfubstringindexuktempifsInputiindexOf){{{}}ubstringindexuktempifsInputiindexOf1)fubstringindexuktempbinyu}}extends}icvoidonCreateBundlesavedInstanceState{dowFeaturesetContentView}}packageclassMainActivityextendsActivity{publicvoidonCreate(BundlesavedInstanceState){dowFeatureeSdcardDatabaseButtonfuzhuBtn=(Button)findViewById(newOnClickListener(){publicvoidonClick(Viewv){show;}ButtonfstBtn=(Button)findViewById(newOnClickListener(){publicvoidonClick(Viewv){t}ButtonsecBtn=(Button)findViewById(newOnClickListener(){publicvoidonClick(Viewv){t}ButtonthirdBtn=(Button)findViewById(newOnClickListener(){publicvoidonClick(Viewv){t}ButtonforthBtn=(Button)findViewById(newOnClickListener(){publicvoidonClick(Viewv){t}}publicbooleanonKeyDown(intkeyCode,KeyEventevent){{exitTime=();}{}ntrue}ntrue}cvoidCreateSdcardDatabaseingDBPATHdatadataStringDBNAMEif((newFile(DB_PATH+DB_NAME)).exists()==false){FilefnewFileDBPATHif(!()){}try{ContextgetAssetsopenDBNAMEOutputStreamosnewFileOutputStreamDBPATHDBNAMEullrnewViewHolder}holder=(ViewHolder)();}nvertView}staticclassViewHolder{ewgroupItem}}yextendsActivity{teListViewtalkViewprivateListDetailEntitylistnull{show}{DetailEntityd=newDetailEntity("我",(),et,}}}idthgetHeight}newOnItemClickListener(){publicvoidonItemClickAdapterViewadapterViewViewviewintposition,longid){{tansition}}{tansition}}{newsetMessage錄").setPositiveButton("刪除",new(){blicvoidonClickDialogInterfacedialogintwhich){tiveButtonnullshow}{tansition}itle").setPositiveButton("退出",new(){blicvoidonClickDialogInterfacedialogintwhich){tiveButtonnullshow}if(popupWindow!=null){}}}publicvoidgetResponceStringet){wwvWebViewfindViewByIdWebSettingswebSettings=();StringURLet&cl=3";}}newWebViewClient(){blicbooleanshouldOverrideUrlLoadingfinalWebViewviewfinalStringurl){ntrue}xists()==false){MEicvoidonCreateBundlesavedInstanceState{textViewTextViewfindViewByIdmTextView1=(TextView)findViewByIdBundlebundlegetIntentgetBundleExtra("SMSS");msStringSMS}}}packageclassStartActivityextendsActivity{HandlerhandlernewHandlericvoidonCreateBundlesavedInstanceState{dowFeatureblerunnablenewRunnablepublicvoidrun(){tntversionifversionansition}}}}classStudyActivityextendsActivity{EditTextmyQuestionEditTextmyAnswerateButtonsubmitstudyBackprivateintsubidpreidobjid;privateStringinsertID;oString();show}outcome=("pos",str);}}}publicvoidinsertQuestionToDBStringsubstrStringpre_str,StringDbAdapterdbHelpernewDbAdapter");}d}}leanisAnsfalseDbAdapterdbHelpernewDbAdapter");SQLiteDatabasedb=();CursoranscursoranswersheetnewString[]{"id"},"id=",newtringcheckidnullnullnull{show}{DetailEntitydnewDetailEntity我",(),et,}newOnItemClickListener(){publicvoidonItemClickAdapterViewadapterViewViewviewintposition,longid){{tansition}}{tansition}}{newsetMessage錄").setPositiveButton("刪除",new(){blicvoidonClickDialogInterfacedialogintwhich){tiveButtonnullshow}{tansition}itle").setPositiveButton("退出",new(){blicvoidonClickDialogInterfacedialogintwhich){tiveButtonnullshow}if(popupWindow!=null){}}}publicStringgetResponceStringet){werFenciposetStringmySubjectmyPredicatemyObjectetStringcontext.getString

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論