2012年12月2日 星期日

fix IMarketBillingService.aidl android sdk r21 error 解法

 Android 的 ADT 升級到 21.0.0 後,
編譯 IMarketBillingService.aidl 錯誤,

IMarketBillingService.Stub.Proxy must override a superclass method IMarketBillingService.java

The method asBinder() of type IMarketBillingService.Stub.Proxy must override a superclass method IMarketBillingService.java

The method asBinder() of type IMarketBillingService.Stub must override a superclass method IMarketBillingService.java


解法:
Project specific compiler settings have to be turned off. I have the fix in my fork:
將 Project 的 compiler 改成 預設 就好了~

2012年12月1日 星期六

action bar 教學 .1 開始就有問題


星期五去參加 google admob 合作夥伴日,

聽到了Action Bar 這私Object,
可以解決 android 最討人驗的 mutli-screen 問題。


但台灣,
居然沒有人寫教學,
只好來開頭槍了。


but Action Bar 是從 android 3.2 開始支援,
第一個問題就是
2.3.3-2.3.7 才是目前android主力,倒~

不過有
http://actionbarsherlock.com/index.html
這個套件,
但是bug還很多,
也不是官方的.....

下載完成
置入後,
跟本就不能 working...
http://stackoverflow.com/questions/11274599/actionbarsherlock-not-working

不過我還是弄出來了,
1.解壓後,連library加範例有6個專案
2.置入至workspace後,產生error
3.將範例改 properties => Java Complier => 用1.6版
4.clean,應該就可以run demo了



參考:

Make sure you have ADT 16.0.1 and are using the JDK 1.6 compiler level. That should solve the import and override errors, respectively.

https://groups.google.com/forum/#!topic/actionbarsherlock/4RcYSvW3D3g
Having same issue importing project into eclipse in Linux and Mac. I am sure the project is perfectly fine, I downloaded using git and zip still same problem.


However I have found a workaround.

  1. Add project to Eclipse by going to File >> New Project >> Android Project
  2. Select existing project from existing source, continue and hit Finish.
  3. You will get errors, missing Manifest and more ... 
  4. Now go to File >> Import and select import existing file system
  5. Select the same folder from step 1. Make sure your "into folder" is from Step 1
  6. Tick overwrite all files.
  7. That is it .... Thanks :P