Wednesday, April 18, 2012

Microsoft Translator appid invalid

appidに前(2日前まで)はbing developerで登録したアプリケーションのidを登録すればよかったが、access_tokenの指定が必須になったようです。
全てのクエリが appidがおかしいと返ってきます。

以下のページを参考に自分の使っている言語でaccess_tokenをとると正常に動作しました。
http://msdn.microsoft.com/en-us/library/hh454950.aspx

Friday, April 13, 2012

Air for iOS iAd

Use this library. It's very easy to use it.
http://code.google.com/p/iad-air-ios/

Initialize iAd
AdBanner.adView.startShowingAds(AdBannerPosition.BOTTOM,false);

Show iAd
AdBanner.adView.visible = true;

Hide iAd
AdBanner.adView.visible = false;


Thursday, April 12, 2012

Microsoft Translator API

一ヶ月200万文字まで無料 

参照
http://msdn.microsoft.com/en-us/library/ff512401.aspx

使用可能言語取得

http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguagesForTranslate?appid=[ApplicationID


実行結果
["ar","bg","ca","zh-CHS","zh-CHT","cs","da","nl","en","et","fi","fr","de","el","ht","he","hi","mww","hu","id","it","ja","ko","lv","lt","no","pl","pt","ro","ru","sk","sl","es","sv","th","tr","uk","vi"]

翻訳

URL 
 http://api.microsofttranslator.com/V2/Ajax.svc/Translate
Parameter
 appid   bingで登録したアプリケーションID   access_tokenの指定が必須になったようです(04/17)
            パラメータに指定しても動作しなかったのでヘッダに指定すると動作しました。
 text 翻訳対象文字列
 from 翻訳元言語コード en
 to 翻訳先言語コード ja
contentType text/plain又はtext/html text/plainでいいと思う


Monday, April 9, 2012

Air アップグレード時のSharedObjectのデータ永続性

SharedObjectのデータ永続性

Air

  • バージョンアップ時OK
  • IOSアップグレード時 バックアップリストア (未検証)
Android
  • バージョンアップ時(未検証)
  • IOSアップグレード時 バックアップリストア (未検証)

Friday, March 30, 2012

Air ADTパッケージコマンド


Air for iOS向けのオプションの詳細がよくわからなかったがここにありました。
http://help.adobe.com/ja_JP/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html

ipa-app-store でitune sote
ipa-test でテスト
ipa-debug でデバッグ

ディレクトリごとパッケージング指定できたのか。一ずつやってました。

Thursday, March 29, 2012

Icon AppIconsForPublish/I512_512.png is missing from package

Remove description of image from app.xml
app.xml include both settings Android and iOS.

Flash CS5.5 is very bad tool about this specific to create multi platform.

Adobe air support devices

Adobe publish list

http://www.adobe.com/flashplatform/certified_devices/

but we can install AIR to some devices that are not shown in this list.

  • Lenovo Ideapad A07(Confirmed I have it)
  • Sumsung Galaxy S(Maybe)