Wednesday, December 28, 2016

[Android Studio] 建立及使用 AAR



Note:
引用  AAR  有  2 種方式:

    1. 引入編譯好的  AAR.
                 
                會將  .aar  檔案複製到目前的專案資料夾,並新建一個資料夾放 .aar。

    2. 引入AAR的模組(module).

               會將原本  AAR module 資料夾的內容複製到目前專案的資料夾 。



所以,
         1. 無論是引入編譯好的 AAR , 或是引入  AAR  Module, 都是把 .aar 或是資料庫的程式碼複製一份到目前的專案, 而不是連結到原來的資料庫程式碼,和大部分的 C++ 的 IDE 不同。

     2. 引入編譯好的 AAR 可以看到原始碼,但不能修改。 引入AAR模組可以修改程式碼, 但因為原始碼已經複製到目前的專案,所以只會修改目前專案程式碼,不會更動原始的程式碼。

Friday, December 16, 2016

Android Studio USB device not found??!!

[Reference] Android Studio關於USB device not found
  • Run Android SDK Manager as Administrator
  • Download Google USB Driver
  • Open Device Manager of the Computer
  • Update Driver Software of your device

 

Sunday, July 3, 2016

[C++ Builder] CoreFoundation.h file not found.

http://stackoverflow.com/questions/35302518/c-builder-10-corefondation-h12-stdarg-h-file-not-found

Xcode 7.3 and iOS 9.3 are not supported. I had to uninstall XCode 7.3 and reinstall XCode 7.2.1 (actual official version). Then the supported iOS 9.2 SDK will be created and it worked

Thursday, March 17, 2016

[C++ Builder] Embarcadero C++ XE10 Builder make Android App prompts error message: [Idandroid error] "Id" exited with code 1


This happened when using NDK r10e.

After replaced NDK to  r9c as Embarcadero recommanded, the problem solved.

BTW, NDK r9d also works.

But, compiler prompts other error messages when using NDK r11

Tuesday, March 15, 2016

[Open StreetMap] Folder of offline map tiles for OSMDroid

/mnt/sdcard/osmdroid/tiles/MapquestOSM/

[Reference] http://www.haakseth.com/?p=30

Note: This folder ([MapquestOSM]) is created automatically to store cache map tiles download from the Internet by OSMDroid app. It is different from the corresponding folder name mentioned at the reference above, but it works.  

Saturday, March 12, 2016

[Embarcadero RAD XE10 Seattle] Installation Notes - Disk space requirement

[2016.07.20 Edit] Install XE10.1 Berlin at D:.

C: > 26.9 GB
D: > 30 GB



Install main program at D:, and others at C:, download file at removable disk.

C:  > 27 GB
D:  > 30 GB
T:  > 30 GB

Boost for XE10 requires additional disk space

[Reference] http://docwiki.embarcadero.com/RADStudio/Seattle/en/Installation_Notes

[Qt] 執行檔需要哪些 Dll?

 1. 使用 Qt  的 windeployqt.exe 工具 (在 C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\)。   a. 把執行檔 myProgram.exe 放在某個資料夾。   b. 在檔案總管這個資料夾按 Shift 和滑鼠右鍵,開啟 Po...