更新类库,去掉主窗口启动时的吐司提示。
This commit is contained in:
		@@ -1,36 +0,0 @@
 | 
				
			|||||||
package cc.winboll.studio.apputils;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * @Author ZhanGSKen@QQ.COM
 | 
					 | 
				
			||||||
 * @Date 2025/01/17 19:50:46
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
import android.app.Activity;
 | 
					 | 
				
			||||||
import android.os.Bundle;
 | 
					 | 
				
			||||||
import android.widget.Toolbar;
 | 
					 | 
				
			||||||
import cc.winboll.studio.apputils.R;
 | 
					 | 
				
			||||||
import cc.winboll.studio.libapputils.views.StringToQrCodeView;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
public class TestStringToQRCodeViewActivity extends Activity {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    public static final String TAG = "TestStringToQrCodeViewActivity";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    StringToQrCodeView mStringToQrCodeView;
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//    @Override
 | 
					 | 
				
			||||||
//    public Activity getActivity() {
 | 
					 | 
				
			||||||
//        return this;
 | 
					 | 
				
			||||||
//    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    @Override
 | 
					 | 
				
			||||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
					 | 
				
			||||||
        super.onCreate(savedInstanceState);
 | 
					 | 
				
			||||||
        setContentView(R.layout.activity_teststringtoqrcodeview);
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        // 初始化工具栏
 | 
					 | 
				
			||||||
        Toolbar mToolbar = findViewById(R.id.toolbar);
 | 
					 | 
				
			||||||
        mToolbar.setSubtitle(TAG);
 | 
					 | 
				
			||||||
        setActionBar(mToolbar);
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        mStringToQrCodeView = findViewById(R.id.activityteststringtoqrcodeviewStringToQrCodeView1);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -45,6 +45,29 @@ android {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
    api fileTree(dir: 'libs', include: ['*.jar'])
 | 
					    api fileTree(dir: 'libs', include: ['*.jar'])
 | 
				
			||||||
    implementation 'cc.winboll.studio:libappbase:15.0.2'
 | 
					    
 | 
				
			||||||
    implementation 'androidx.appcompat:appcompat:1.1.0'
 | 
					    // SSH
 | 
				
			||||||
 | 
					    api 'com.jcraft:jsch:0.1.55'
 | 
				
			||||||
 | 
					    // Html 解析
 | 
				
			||||||
 | 
					    api 'org.jsoup:jsoup:1.13.1'
 | 
				
			||||||
 | 
					    // 二维码类库
 | 
				
			||||||
 | 
					    api 'com.google.zxing:core:3.4.1'
 | 
				
			||||||
 | 
					    api 'com.journeyapps:zxing-android-embedded:3.6.0'
 | 
				
			||||||
 | 
					    // 应用介绍页类库
 | 
				
			||||||
 | 
					    api 'io.github.medyo:android-about-page:2.0.0'
 | 
				
			||||||
 | 
					    // 吐司类库
 | 
				
			||||||
 | 
					    api 'com.github.getActivity:ToastUtils:10.5'
 | 
				
			||||||
 | 
					    // 网络连接类库
 | 
				
			||||||
 | 
					    api 'com.squareup.okhttp3:okhttp:4.4.1'
 | 
				
			||||||
 | 
					    // AndroidX 类库
 | 
				
			||||||
 | 
					    api 'androidx.appcompat:appcompat:1.1.0'
 | 
				
			||||||
 | 
					    api 'com.google.android.material:material:1.4.0'
 | 
				
			||||||
 | 
					    //api 'androidx.viewpager:viewpager:1.0.0'
 | 
				
			||||||
 | 
					    //api 'androidx.vectordrawable:vectordrawable:1.1.0'
 | 
				
			||||||
 | 
					    //api 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
 | 
				
			||||||
 | 
					    //api 'androidx.fragment:fragment:1.1.0'
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    api 'cc.winboll.studio:libaes:15.2.5'
 | 
				
			||||||
 | 
					    api 'cc.winboll.studio:libapputils:15.2.1'
 | 
				
			||||||
 | 
					    api 'cc.winboll.studio:libappbase:15.2.2'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
#Created by .winboll/winboll_app_build.gradle
 | 
					#Created by .winboll/winboll_app_build.gradle
 | 
				
			||||||
#Sat Mar 15 15:38:45 HKT 2025
 | 
					#Wed Apr 02 12:38:03 GMT 2025
 | 
				
			||||||
stageCount=1
 | 
					stageCount=1
 | 
				
			||||||
libraryProject=
 | 
					libraryProject=
 | 
				
			||||||
baseVersion=15.0
 | 
					baseVersion=15.0
 | 
				
			||||||
publishVersion=15.0.0
 | 
					publishVersion=15.0.0
 | 
				
			||||||
buildCount=0
 | 
					buildCount=3
 | 
				
			||||||
baseBetaVersion=15.0.1
 | 
					baseBetaVersion=15.0.1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,10 +5,10 @@ package cc.winboll.studio.autoinstaller;
 | 
				
			|||||||
 * @Date 2024/04/28 02:39:58
 | 
					 * @Date 2024/04/28 02:39:58
 | 
				
			||||||
 * @Describe 全局应用类
 | 
					 * @Describe 全局应用类
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					import android.view.Gravity;
 | 
				
			||||||
 | 
					import cc.winboll.studio.autoinstaller.R;
 | 
				
			||||||
import cc.winboll.studio.libappbase.GlobalApplication;
 | 
					import cc.winboll.studio.libappbase.GlobalApplication;
 | 
				
			||||||
import cc.winboll.studio.libappbase.utils.ToastUtils;
 | 
					import com.hjq.toast.ToastUtils;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class App extends GlobalApplication {
 | 
					public class App extends GlobalApplication {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
@@ -17,13 +17,13 @@ public class App extends GlobalApplication {
 | 
				
			|||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void onCreate() {
 | 
					    public void onCreate() {
 | 
				
			||||||
        super.onCreate();
 | 
					        super.onCreate();
 | 
				
			||||||
        setIsDebuging(this, BuildConfig.DEBUG);
 | 
					        
 | 
				
			||||||
        // 初始化 Toast 框架
 | 
					        // 初始化 Toast 框架
 | 
				
			||||||
        ToastUtils.init(this);
 | 
					        ToastUtils.init(this);
 | 
				
			||||||
        // 设置 Toast 布局样式
 | 
					        // 设置 Toast 布局样式
 | 
				
			||||||
        //ToastUtils.setView(R.layout.toast_custom_view);
 | 
					        ToastUtils.setView(R.layout.view_toast);
 | 
				
			||||||
        //ToastUtils.setStyle(new WhiteToastStyle());
 | 
					        //ToastUtils.setStyle(new WhiteToastStyle());
 | 
				
			||||||
        //ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
 | 
					        ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -140,7 +140,7 @@ public class MainActivity extends Activity {
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        Intent intent = getPackageManager().getLaunchIntentForPackage(mszInstalledPackageName);
 | 
					        Intent intent = getPackageManager().getLaunchIntentForPackage(mszInstalledPackageName);
 | 
				
			||||||
        if (intent != null) {
 | 
					        if (intent != null) {
 | 
				
			||||||
            ToastUtils.show("startActivity");
 | 
					            //ToastUtils.show("startActivity");
 | 
				
			||||||
            startActivity(intent);
 | 
					            startActivity(intent);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            // 若没能获取到启动意图,可进行相应提示等操作,比如跳转到应用商店让用户下载该应用(示例)
 | 
					            // 若没能获取到启动意图,可进行相应提示等操作,比如跳转到应用商店让用户下载该应用(示例)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user