Category Archives: Android development

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Usually we’re familiar with error message, but things became weird when app works in all phone except only one failed. I saw this error message in an Asus cellphone (Android 5.0.2) on 2020/08/14 when my app tried to connect to … Continue reading

Posted in Android, Android development | Tagged , , | Leave a comment

Android Error type 3 : Activity Class {} does not exist

I used Android Studio 3.5.3 to execute(install) an application on a Sony cellphone and it kept displayed Error Type 3 : xxxx.xxx.xxx.MainActivity does not exist. After Googled a few document, here’s what solved this problem. Just adb unstall the package … Continue reading

Posted in Android, Android development | Tagged , , , , , | Leave a comment

keytool usage sample script for Android keystore

1.Generate keystore keytool -genkey -v -keystore [keystore filename] -alias Release -keysize 2048 -validity 10000 -keyalg RSA -dname “CN=[CNName], OU=Mobile Development, O=[AuthorName], L=[CityName], ST=[StateName], C=[CountryName]” -keypass [password] -storepass [Storekey] 2.List keys information in keystore keytool -list -v -keystore [keystore filename] -storepass … Continue reading

Posted in Android development | Leave a comment

Android Studio 加 Admob 步驟(2016/12/09)

官網文件連結 https://firebase.google.com/docs/admob/android/quick-start 1.在Firebase建立新project https://firebase.google.com/docs/android/setup 1.1設定 此處的 app id 要和 Android Studio 裡的 package name 完全相同 否則會錯 例: 1.2下載 google-services.json 1.3修改 專案層級 的 build.gradle buildscript { dependencies { // Add this line classpath ‘com.google.gms:google-services:3.0.0’ } } 1.4修改 app 層級的 build.gradle //Add … Continue reading

Posted in Android development | Leave a comment