Author Archives: admin

SVN command line usage sample

1.To checkout a verison in date 2017/12/25 svn co -r {2017-12-25} http://mydomin.com/svntree 2.To checkout a revision 168 in date 2017/12/25 svn co -r 168 http://mydomin.com/svntree  

Posted in Uncategorized | Leave a comment

iOS – Click view to dismiss the keyboard

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)];     tap.cancelsTouchesInView = FALSE;     tap.delegate = self;     [self.view addGestureRecognizer:tap];

Posted in iOS development | 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] -storekey [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

An App ID with Identifier is not available. Please enter a different string

invalid app id 在 adhoc build 時出現 Invalid app id 的錯誤訊息 奇怪的是很久之前可以,現在卻不行 解決方法是 將原來「由Xcode代為產生的 adhoc provision profile」全部刪掉 自己重新設定「adhoc provision profile」即可 app id 與原來的相同

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

終於 – iTunes Connect 改善了

以前上架 iOS app 時 都要上傳各尺寸的螢幕截圖 3.5″ 4″ 4.7″ 5.5.” 四種大小 如果每個 5 張,就得要 5×4=20 張 今天上架時 發現只要上傳最大的解析度即可 5.5″ (1242×2208) 其他較小的尺寸預設就會自動套用 (當然,如果要自己上傳各尺寸也是可以) 真是 iOS Developer 的一大福音…

Posted in iOS development | Leave a comment

簡單學日語 下架了

由於此書的版權擁有者要求此 app 下架 否則提出侵權告訴 所以此 app 已經下架了

Posted in 簡單學日語, Uncategorized | Leave a comment

OneSignal Push Notification with Android Studio practice log

It took me one night to make it work, so I’d like to write it down for next time. Main Flow as follow diagram: Green fields means “what values you can get” White fields means “what values you should set” … Continue reading

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

Facebook Signin Practice Log

Facebook signin ios Follow the official document procedure https://developers.facebook.com/docs/facebook-login/ios 1.Download SDK and setup the environment https://developers.facebook.com/docs/ios/getting-started Create new Facebook app 2.Configure the XCode project parameters Info.plist For AppTransportSecurity parameters, you can follow the Facebook direction, or you can just “allow … Continue reading

Posted in iOS development | Leave a comment

Google SignIn iOS practice log

Google Sign-in for iOS 1.Download GoogleSignIn SDK https://developers.google.com/identity/sign-in/ios/sdk/ There are two ways to get the SDK, CocoaPod or direct download, Personally I preferred the download way. Follow the official document procedure https://developers.google.com/identity/sign-in/ios/start 2.Get configuration file https://developers.google.com/mobile/add?platform=ios&cntapi=signin&cntapp=Default%20Demo%20App&cntpkg=com.google.samples.quickstart.SignInExample&cnturl=https:%2F%2Fdevelopers.google.com%2Fidentity%2Fsign-in%2Fios%2Fstart%3Fconfigured%3Dtrue&cntlbl=Continue%20with%20Try%20Sign-In   3.Copy to project … Continue reading

Posted in iOS development | Leave a comment