File tree Expand file tree Collapse file tree 6 files changed +7
-4
lines changed
java/com/github/yutianzuo/myapplication Expand file tree Collapse file tree 6 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1515
1616 <application
1717 android : allowBackup =" true"
18- android : icon =" @mipmap/ic_launcher "
18+ android : icon =" @mipmap/trans_icon "
1919 android : label =" @string/app_name"
20- android : roundIcon =" @mipmap/ic_launcher_round"
2120 android : supportsRtl =" true"
2221 android : theme =" @style/AppTheme" >
2322
3130
3231 <activity android : name =" .DnsActivity" />
3332 <activity android : name =" .DnsReleaseActivity" />
34- <activity android : name =" .SendFileActivity" >
33+ <activity
34+ android : name =" .SendFileActivity"
35+ android : launchMode =" singleTask" >
3536 <intent-filter >
3637 <action android : name =" android.intent.action.SEND" />
3738
Original file line number Diff line number Diff line change 1616import android .text .TextUtils ;
1717import android .util .Log ;
1818import android .view .View ;
19+ import android .view .WindowManager ;
1920import android .widget .Button ;
2021import android .widget .EditText ;
2122import android .widget .TextView ;
@@ -92,6 +93,7 @@ else if (extras.containsKey(Intent.EXTRA_TEXT))
9293 protected void onCreate (@ Nullable Bundle savedInstanceState ) {
9394 super .onCreate (savedInstanceState );
9495 setContentView (R .layout .activity_send );
96+ getWindow ().addFlags (WindowManager .LayoutParams .FLAG_KEEP_SCREEN_ON );
9597 mFilePath = getShareFile ();
9698 if (TextUtils .isEmpty (mFilePath )) {
9799 ip = getIntent ().getStringExtra (IP_ADDR );
Original file line number Diff line number Diff line change 11<resources >
2- <string name =" app_name" >NativeSocket </string >
2+ <string name =" app_name" >DevNetTool </string >
33</resources >
You can’t perform that action at this time.
0 commit comments