计算机软件著作权登记源代码.docx
《计算机软件著作权登记源代码.docx》由会员分享,可在线阅读,更多相关《计算机软件著作权登记源代码.docx(34页珍藏版)》请在冰豆网上搜索。
计算机软件著作权登记源代码
公司标准化编码[QQX96QT-XQQB89Q8-NQQJ6Q8-MQM9N]
计算机软件著作权登记源代码
packageclassBreastextendsBroadcastReceiver
{
privatestaticfinalStringmACTION="";
@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);
}
}
}
packageclassDbAdapterextendsSQLiteOpenHelper{
privatestaticfinalintVERSION=1;
privatestaticfinalStringDBNAME="";
publicDbAdapter(Contextcontext,Stringname,
CursorFactoryfactory,intversion){
super(context,name,factory,version);
etSystemService;
(itemLayout,layout,true);
(0xffB4B4B4);
layout_bj=(LinearLayout)tvName=(TextView)());
tvDate=(TextView)());
tvText=(TextView)());
addListener(tvName,tvDate,tvText,layout_bj);
returnlayout;
}
publicintgetViewTypeCount()
{
return();
}
publicbooleanhasStableIds()
{
returntrue;
}
publicbooleanisEmpty()
{
returntrue;
}
@Override
publicvoidregisterDataSetObserver(DataSetObserverobserver)
{
etMessage("说呀聊天辅助系统-应答模式").setPositiveButton("确定",null)
.show();
returntrue;
}
});*/
staticStringu="";
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;
}
}
package
publicclassGetResTaskextendsAsyncTask{
TestActivityatxs=newTestActivity();
@Override
protectedStringdoInBackground(String...params){
etFlags}
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;
etDrawable}
LinearLayoutmLL=(LinearLayout)findViewByIdTextViewtv=(TextView)findViewByIdif()<=1){
;
("");
}else{
StringtextWaiting=(
getStringmessage
.getUnreadCount()-1);
(textWaiting);
;
}
StringheaderText=getStringheaderText=("%s",());
());
if()=={
());
}else{
(getString+""+());
}
(headerText);
}
privatevoidrefreshPrivacy(){
(getApplicationContext());
booleanprivacyMode=(
getString(getStringif()=={
;
;
;
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()");
();
}
}
packageclassSMSReceiverextendsBroadcastReceiver{
@Override
publicvoidonReceive(Contextcontext,Intentintent){
("SMSReceiver:
onReceive()");
(context,;
("result",getResultCode());
(context,intent);
}
}
packageclassReminderReceiverextendsBroadcastReceiver{
privatestaticPendingIntentreminderPendingIntent=null;
@Override
publicvoidonReceive(Contextcontext,Intentintent){
(context,;
(context,intent);
}
publicstaticvoidscheduleReminder(Contextcontext,SmsMmsMessagemessage){
SharedPreferencesmyPrefs=(context);
booleanreminder_notifications=(context
.getString(context
.getStringif(reminder_notifications){
intreminder_interval=(context
.getStringcontext
.getStringreminder_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()");
}
}
}
packageclassSMSReceiverServiceextendsService{
privatestaticfinalStringACTION_SMS_RECEIVED="";
privatestaticfinalStringACTION_MMS_RECEIVED="";
privatestaticfinalStringMMS_DATA_TYPE="application/";
privatestaticfinalStringACTION_MESSAGE_SENT="";
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
.getString(context
.getStringSmsMessage[]messages=(intent);
if(messages!
=null){
SmsMessagesms=messages[0];
if()==||()){
}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
.getString(context
.getStringif()||!
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){