计算机软件著作权登记源代码范本.docx
- 文档编号:25492244
- 上传时间:2023-06-09
- 格式:DOCX
- 页数:35
- 大小:21.53KB
计算机软件著作权登记源代码范本.docx
《计算机软件著作权登记源代码范本.docx》由会员分享,可在线阅读,更多相关《计算机软件著作权登记源代码范本.docx(35页珍藏版)》请在冰豆网上搜索。
计算机软件著作权登记源代码范本
publicclassBreastextendsBroadcastReceiver
{
@Override
publicvoidonReceive(Contextcontext,Intentintent)
{
quals(mACTION))
{
StringBuildersb=newStringBuilder();
Bundlebundle=();
if(bundle!
=null)
{
Set
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++;
}
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机软件 著作权 登记 源代码 范本
![提示](https://static.bdocx.com/images/bang_tan.gif)