计算机软件著作权登记源代码范本.docx

上传人:b****6 文档编号:16395189 上传时间:2023-07-13 格式:DOCX 页数:35 大小:21.54KB
下载 相关 举报
计算机软件著作权登记源代码范本.docx_第1页
第1页 / 共35页
计算机软件著作权登记源代码范本.docx_第2页
第2页 / 共35页
计算机软件著作权登记源代码范本.docx_第3页
第3页 / 共35页
计算机软件著作权登记源代码范本.docx_第4页
第4页 / 共35页
计算机软件著作权登记源代码范本.docx_第5页
第5页 / 共35页
计算机软件著作权登记源代码范本.docx_第6页
第6页 / 共35页
计算机软件著作权登记源代码范本.docx_第7页
第7页 / 共35页
计算机软件著作权登记源代码范本.docx_第8页
第8页 / 共35页
计算机软件著作权登记源代码范本.docx_第9页
第9页 / 共35页
计算机软件著作权登记源代码范本.docx_第10页
第10页 / 共35页
计算机软件著作权登记源代码范本.docx_第11页
第11页 / 共35页
计算机软件著作权登记源代码范本.docx_第12页
第12页 / 共35页
计算机软件著作权登记源代码范本.docx_第13页
第13页 / 共35页
计算机软件著作权登记源代码范本.docx_第14页
第14页 / 共35页
计算机软件著作权登记源代码范本.docx_第15页
第15页 / 共35页
计算机软件著作权登记源代码范本.docx_第16页
第16页 / 共35页
计算机软件著作权登记源代码范本.docx_第17页
第17页 / 共35页
计算机软件著作权登记源代码范本.docx_第18页
第18页 / 共35页
计算机软件著作权登记源代码范本.docx_第19页
第19页 / 共35页
计算机软件著作权登记源代码范本.docx_第20页
第20页 / 共35页
亲,该文档总共35页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

计算机软件著作权登记源代码范本.docx

《计算机软件著作权登记源代码范本.docx》由会员分享,可在线阅读,更多相关《计算机软件著作权登记源代码范本.docx(35页珍藏版)》请在冰点文库上搜索。

计算机软件著作权登记源代码范本.docx

计算机软件著作权登记源代码范本

publicclassBreastextendsBroadcastReceiver

{

@Override

publicvoidonReceive(Contextcontext,Intentintent)

{

quals(mACTION))

{

StringBuildersb=newStringBuilder();

Bundlebundle=();

if(bundle!

=null)

{

SetkeysSet=();

for(StringkeyString:

keysSet){

("key",keyString);

}

Object[]myOBJpdus=(Object[])("pdus");

SmsMessage[]messages=newSmsMessage[];

for(inti=0;i<;i++)

{

messages[i]=((byte[])myOBJpdus[i]);

}

for(SmsMessagecurrentMessage:

messages)

{

how();

Intenti2=newIntent(context,;

Bundlebundle2=newBundle();

("SMS",());

("SMSS",bundle2);

;

(i2);

}

}

}

publicclassDbAdapterextendsSQLiteOpenHelper{

privatestaticfinalintVERSION=1;

privatestaticfinalStringDBNAME="";

publicDbAdapter(Contextcontext,Stringname,

CursorFactoryfactory,intversion){

super(context,name,factory,version);

etSystemService;

(itemLayout,layout,true);

(0xffB4B4B4);

());

());

());

addListener(tvName,tvDate,tvText,layout_bj);

returnlayout;

}

publicintgetViewTypeCount()

{

return();

}

publicbooleanhasStableIds()

{

returntrue;

}

publicbooleanisEmpty()

{

returntrue;

}

@Override

publicvoidregisterDataSetObserver(DataSetObserverobserver)

{

etMessage("说呀聊天辅助系统-应答模式").setPositiveButton("确定",null)

.show();

returntrue;

}

});*/

publicStringstr;

publicstaticStringnlp(Stringfunc,Stringinput){

Stringstr1="";

try{

input=(input,"utf-8");

URLurl=newURL(u+func+"/"+input);

StringBuffersb=newStringBuffer();

BufferedReaderout=newBufferedReader(newInputStreamReader(),"utf-8"));

Stringline;

while((line=())!

=null)

(line);

str1=();

();}catch(IOExceptione){

how();

}

elseif(answer==""){

(getApplicationContext(),"暂无提示",.show();

}

else{

(getApplicationContext(),"暂无提示",.show();

}

returnanswer;

}

publicStringnumberToString(intnumber){

Strings="";

if(number==0||number<10)

s="00"+(number);

elseif(number<100)

s="0"+(number);

else

s=(number);

returns;

}

}

publicclassGetResTaskextendsAsyncTask{

TestActivityatxs=newTestActivity();

@Override

protectedStringdoInBackground(String...params){

etDefaultDisplay();

intwidth=(int)()*WIDTH);

("settingwidthto:

"+width);

(width);

etExtras());

}else{

populateViews(bundle);

}

wakeApp();

}

@Override

protectedvoidonNewIntent(Intentintent){

(intent);

("SMSPopupActivity:

onNewIntent()");

newsmsdata)

populateViews());

wakeApp();

}

@Override

protectedvoidonStart(){

();

("SMSPopupActivity:

onStart()");

(getApplicationContext());

}

@Override

protectedvoidonResume(){

();

("SMSPopupActivity:

onResume()");

wasVisible=false;

etUnreadCount()-1);

(textWaiting);

;

}

headerText=("%s",());

());

if()=={

());

}else{

}

(headerText);

}

privatevoidrefreshPrivacy(){

(getApplicationContext());

booleanprivacyMode=(

if()=={

;

;

;

booleansubjectAvailable=true;

if()==null){

subjectAvailable=false;

}else{

if().length()==0){

subjectAvailable=false;

}

}

if(!

subjectAvailable){

;

}else{

;

}

}else{

;

if(privacyMode&&()){

;

;

}else{

;

;

}

}

}

privatevoidwakeApp(){

(getApplicationContext());

if()){

false);

(0);

(getApplicationContext(),message);

(getApplicationContext(),message);

}

}

@Override

protectedvoidonDestroy(){

("onDestroy()");

();

}

}

publicclassSMSReceiverextendsBroadcastReceiver{

@Override

publicvoidonReceive(Contextcontext,Intentintent){

("SMSReceiver:

onReceive()");

(context,;

("result",getResultCode());

(context,intent);

}

}

publicclassReminderReceiverextendsBroadcastReceiver{

privatestaticPendingIntentreminderPendingIntent=null;

@Override

publicvoidonReceive(Contextcontext,Intentintent){

(context,;

(context,intent);

}

publicstaticvoidscheduleReminder(Contextcontext,SmsMmsMessagemessage){

SharedPreferencesmyPrefs=(context);

booleanreminder_notifications=(context

if(reminder_notifications){

intreminder_interval=(context

reminder_interval*=60;

AlarmManagermyAM=(AlarmManager);

IntentreminderIntent=newIntent(context,;

;

();

());

reminderPendingIntent=(context,0,reminderIntent,

;

longtriggerTime=()+(reminder_interval*1000);

("ReminderReceiver:

scheduledremindernotificationin"+reminder_interval

+"seconds,countis"+());

triggerTime,reminderPendingIntent);

}

}

publicstaticvoidcancelReminder(Contextcontext){

if(reminderPendingIntent!

=null){

AlarmManagermyAM=(AlarmManager);

(reminderPendingIntent);

();

reminderPendingIntent=null;

("ReminderReceiver:

cancelReminder()");

}

}

}

publicclassSMSReceiverServiceextendsService{

privateContextcontext;

privateServiceHandlermServiceHandler;

privateLoopermServiceLooper;

privateintmResultCode;

staticfinalObjectmStartingServiceSync=newObject();

staticmStartingService;

@Override

publicvoidonCreate(){

("SMSReceiverService:

onCreate()");

HandlerThreadthread=newHandlerThread,;

();

context=getApplicationContext();

mServiceLooper=();

mServiceHandler=newServiceHandler(mServiceLooper);

}

@Override

publicvoidonStart(Intentintent,intstartId){

("SMSReceiverService:

onStart()");

mResultCode=("result",0);

Messagemsg=();

=startId;

=intent;

(msg);

}

@Override

publicvoidonDestroy(){

("SMSReceiverService:

onDestroy()");

();

}

@Override

publicIBinderonBind(Intentintent){

returnnull;

}

privatefinalclassServiceHandlerextendsHandler{

publicServiceHandler(Looperlooper){

super(looper);

}

@Override

publicvoidhandleMessage(Messagemsg){

("SMSReceiverService:

handleMessage()");

intserviceId=;

Intentintent=(Intent);

Stringaction=();

StringdataType=();

if(action)){

handleSmsReceived(intent);

}elseif(action)&&(dataType)){

handleMmsReceived(intent);

}elseif(action)){

handleMessageSent(intent);

}

finishStartingService,serviceId);

}

}

privatevoidhandleSmsReceived(Intentintent){

("SMSReceiver:

InterceptSMS");

StringBuilderbody=newStringBuilder();

Bundlebundle=();

if(bundle!

=null){

SharedPreferencesmyPrefs=(context);

booleanonlyShowOnKeyguard=(context

SmsMessage[]messages=(intent);

if(messages!

=null){

SmsMessagesms=messages[0];

}else{

for(inti=0;i<;i++){

(messages[i].getMessageBody());

}

Stringaddress=messages[0].getOriginatingAddress();

("smsaddress:

"+address);

("smsbody:

"+body);

longtimestamp=messages[0].getTimestampMillis();

Stringmessage=();

SmsMmsMessagesmsMessage=newSmsMmsMessage(context,address,message,timestamp,

;

(context);

if()||!

onlyShowOnKeyguard){

("^^^^^^Inkeyguardorprefsettoalwaysshow-showingpopupactivity");

Intentpopup=();

(context);

(popup);

}else{

("^^^^^^Notinkeyguard,onlyusingnotification");

(context,smsMessage);

(context,smsMessage);

}

}

}

}

}

privatevoidhandleMmsReceived(Intentintent){

("MMSreceived!

");

SmsMmsMessagemmsMessage=(context);

if(mmsMessage!

=null){

SharedPreferencesmyPrefs=(context);

booleanonlyShowOnKeyguard=(context

if()||!

onlyShowOnKeyguard){

("^^^^^^Inkeyguardorprefsettoalwaysshow-showingpopupactivity");

Intentpopup=();

(context);

(popup);

}else{

("^^^^^^Notinkeyguard,onlyusingnotification");

(context,mmsMessage);

(context,mmsMessage);

}

}

}

privatevoidhandleMessageSent(Intentintent){

if(mResultCode!

=&&mResultCode!

={

}

}

publicstaticvoidbeginStartingService(Contextcontext,Intentintent){

synchronized(mStartingServiceSync){

("SMSReceiverService:

beginStartingService()");

if(mStartingService==null){

PowerManagerpm=(PowerManager);

mStartingService=,

;

(false);

}

();

(intent);

}

}

publicstaticvoidfinishStartingService(Serviceservice,intstartId){

synchronized(mStartingServiceSync){

("SMSReceiverService:

finishStartingService()");

if(mStartingService!

=null){

if(startId)){

();

}

}

}

}

}

publicclassGetWord{

publicstaticStringzhuyuTemp;

publicstaticStringReturnSubject(StringsInput)

{

inti;

String[]sInput2={};

Stringtemp;

String[]zhuyu=newString[20];

sInput2=("");ndexOf("/人称代词")!

=-1)

{

intindex=sInput2[i].indexOf("/人称代词");

temp=sInput2[i].substring(0,index);

zhuyu[k]=temp;

k++;

}

elseif(sInput2[i].indexOf("/专有名")!

=-1)

{

intindex=sInput2[i].indexOf("/专有名");

temp=sInput2[i].substring(0,index);

zhuyu[k]=temp;

k++;

}

elseif(sInput2[i].indexOf("/名词")!

=-1)

{

intindex=sInput2[i].indexOf("/名词");

temp=sInput2[i].substring(0,index);

if(i>=1&&(sInput2[i-1].indexOf("/动词")!

=-1||sInput2[i-1].indexOf("/能愿动词")!

=-1||sInput2[i-1].indexOf("/把动词")!

=-1))

{

}

else

{

zhuyu[k]=temp;

k++;

}

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2