2012年6月25日月曜日



Want to use iCloud's key-value store, NSUbiquitousKeyValueStore, to synchronize data in your app between devices?
 
I've started using NSUbiquitousKeyValueStore in my game "Harigana" but noticed a flaw that I would like to share. Nothing much really, just a small tip.

The recommendation is that you early in your app start cycle call

[[NSUbiquitousKeyValueStore defaultStore] synchronize];

and then start listen to the notification NSUbiquitousKeyValueStoreDidChangeExternallyNotification.

This will call your app when the store is changed on other devices. However, this seems to be reliable only if the app is active at the time the other device changes a value. If the app is not running at the time the store is updated you might not get notification when you wake the app up. Sometimes it works, sometimes not, according to my experience.

Therefor, to be sure you have the latest value from iCloud, force a synchronization at app startup/wakeup. Simply iterate through all values in your NSUbiquitousKeyValueStore and overwrite the local value with the value from the store. Of course, this requires that when you store the values, always store the them in both iCloud's key-value store and the user defaults, otherwise you might overwrite users hard earned points with something that could be zero. iOS will take care of everything for you under the hood, whether the user has activated iCloud or not.

Remember, the truth is in the Cloud.

iCloud key-value store



Want to use iCloud's key-value store, NSUbiquitousKeyValueStore, to synchronize data in your app between devices?
 
I've started using NSUbiquitousKeyValueStore in my game "Harigana" but noticed a flaw that I would like to share. Nothing much really, just a small tip.

The recommendation is that you early in your app start cycle call

[[NSUbiquitousKeyValueStore defaultStore] synchronize];

and then start listen to the notification NSUbiquitousKeyValueStoreDidChangeExternallyNotification.

This will call your app when the store is changed on other devices. However, this seems to be reliable only if the app is active at the time the other device changes a value. If the app is not running at the time the store is updated you might not get notification when you wake the app up. Sometimes it works, sometimes not, according to my experience.

Therefor, to be sure you have the latest value from iCloud, force a synchronization at app startup/wakeup. Simply iterate through all values in your NSUbiquitousKeyValueStore and overwrite the local value with the value from the store. Of course, this requires that when you store the values, always store the them in both iCloud's key-value store and the user defaults, otherwise you might overwrite users hard earned points with something that could be zero. iOS will take care of everything for you under the hood, whether the user has activated iCloud or not.

Remember, the truth is in the Cloud.

2012年5月18日金曜日

f:id:bs-android:20120517162747j:image:w620

弊社が制作したNFC QUESTが、Googleのオフィシャルイベント「think with Google」のイベントシステムとして導入されました。

今回は、従来のスタンプラリー機能を拡張し、受付やセッション会場の入場チェックの機能を新たに追加しました。

まずはNFC QUESTがどういったサービスかを簡単にご紹介します。

既にご存知の方は読み飛ばしてください。

NFC QUESTとはICカードとスマホを使ったスタンプラリーです。

ICカードをサービスに登録することで職業が設定でき(例えば勇者、魔法使いなど)、

自分が勇者としてチェックポイントを回りながらレベル上げをします。

仲間を2人集めてパーティを組んだら、ラリーの最後に待ち受ける魔王と対戦ができる

参加型のRPGスタンプラリーなのです。


f:id:bs-android:20120517162748j:image:w360:left


今回のGoogleのイベントでは、参加者に事前にWebフォームからイベントへの申込を行っていただき、申込情報の登録されたICカードを参加証として発行、郵送をしました。

こうすることで、イベント当日参加証を持参し、受付でカードリーダーにかざすだけで受付ができるという仕組みです。

f:id:bs-android:20120517162749j:image:w360:left


受付にチェックインをするとスタッフのPC上に、参加者の情報(名前、所属など)が表示されるようになっています。

また同時に、参加者を担当する営業マンの携帯へメールを自動配信し、自分のクライアントの到着を知ることができます。

f:id:bs-android:20120517162750j:image:w360:left

各セッション会場の入口にも同じようにチェックポイントを立てておく事で、参加者のセッション参加確認を行えます。

主催者は管理画面から、どの参加者がどのセッション会場にいるのかをリアルタイムに確認する事ができます。

f:id:bs-android:20120517162751j:image:w360:left

そして最後に、お馴染みの魔王の登場です。

今回はGoogle仕様になっています。

今回の参加者は広告代理店やスポンサー企業のマーケティング担当者などが多かったのですが、みなさん、QUESTの職業設定に非常にウケていました。勇者になりたがるひとが多く、僧侶は不評でした。

魔王との対戦映像を見ながら、まさに自分が勇者として戦っている心境になって楽しんでいました。

最後に、先日受賞したAndroid Application Award 2012のインタビュー記事が

本日ITproさんに掲載されました。よかったらこちらもご覧になってください。

http://itpro.nikkeibp.co.jp/article/COLUMN/20120502/394509/?ST=android-dev&mkjb&P=3

NFC QUESTの導入プランなどはこちらのサイトに載ってます。

http://www.brilliantservice.co.jp/nfcquest/

うちのイベントでもやってみたい、うちの店舗に置きたいという方はお気軽にお問い合わせください。

文責:営業部 藤田健介

『NFC QUEST』が『Google Quest』として、Googleの公式イベントに導入されました

f:id:bs-android:20120517162747j:image:w620

弊社が制作したNFC QUESTが、Googleのオフィシャルイベント「think with Google」のイベントシステムとして導入されました。

今回は、従来のスタンプラリー機能を拡張し、受付やセッション会場の入場チェックの機能を新たに追加しました。

まずはNFC QUESTがどういったサービスかを簡単にご紹介します。

既にご存知の方は読み飛ばしてください。

NFC QUESTとはICカードとスマホを使ったスタンプラリーです。

ICカードをサービスに登録することで職業が設定でき(例えば勇者、魔法使いなど)、

自分が勇者としてチェックポイントを回りながらレベル上げをします。

仲間を2人集めてパーティを組んだら、ラリーの最後に待ち受ける魔王と対戦ができる

参加型のRPGスタンプラリーなのです。


f:id:bs-android:20120517162748j:image:w360:left


今回のGoogleのイベントでは、参加者に事前にWebフォームからイベントへの申込を行っていただき、申込情報の登録されたICカードを参加証として発行、郵送をしました。

こうすることで、イベント当日参加証を持参し、受付でカードリーダーにかざすだけで受付ができるという仕組みです。

f:id:bs-android:20120517162749j:image:w360:left


受付にチェックインをするとスタッフのPC上に、参加者の情報(名前、所属など)が表示されるようになっています。

また同時に、参加者を担当する営業マンの携帯へメールを自動配信し、自分のクライアントの到着を知ることができます。

f:id:bs-android:20120517162750j:image:w360:left

各セッション会場の入口にも同じようにチェックポイントを立てておく事で、参加者のセッション参加確認を行えます。

主催者は管理画面から、どの参加者がどのセッション会場にいるのかをリアルタイムに確認する事ができます。

f:id:bs-android:20120517162751j:image:w360:left

そして最後に、お馴染みの魔王の登場です。

今回はGoogle仕様になっています。

今回の参加者は広告代理店やスポンサー企業のマーケティング担当者などが多かったのですが、みなさん、QUESTの職業設定に非常にウケていました。勇者になりたがるひとが多く、僧侶は不評でした。

魔王との対戦映像を見ながら、まさに自分が勇者として戦っている心境になって楽しんでいました。

最後に、先日受賞したAndroid Application Award 2012のインタビュー記事が

本日ITproさんに掲載されました。よかったらこちらもご覧になってください。

http://itpro.nikkeibp.co.jp/article/COLUMN/20120502/394509/?ST=android-dev&mkjb&P=3

NFC QUESTの導入プランなどはこちらのサイトに載ってます。

http://www.brilliantservice.co.jp/nfcquest/

うちのイベントでもやってみたい、うちの店舗に置きたいという方はお気軽にお問い合わせください。

文責:営業部 藤田健介

2012年5月15日火曜日


 

I was really surprised when one of my apps was rejected by Apple when all I did was update the icon and the app have past previous reviews with flying colors. It seems like there's a new rule about data you store in the /Documents folder.

All files in the Documents folder are backed up to iCloud and such files that can be re-downloaded or re-created should not be stored there. For obvious reasons, to not waste those precious 5 GB we have by default. However, if you put your data in Caches folder or tmp folder, it might be deleted in low storage situations so there is a new solution from iOS 5.0.1.

This allows you to put files that you generate, like a read-only database, to the Documents folder without having it backed up to iCloud.

Here's a snippet from iOS Developer Library

Q:  My app has a number of files that need to be stored on the device permanently for my app to function properly offline. However, those files do not contain user data and don't need to be backed up. How should I store those files in iOS 5?

A: Starting in iOS 5.0.1 a new "do not back up" file attribute has been introduced allowing developers to clearly specify which files should be backed up, which files are local caches only and subject to purge, and which files should not be backed up but should also not be purged. In addition, setting this attribute on a folder will prevent the folder and all of its contents from being backed up.

Important The new "do not back up" attribute will only be used by iOS 5.0.1 or later. On iOS 5.0 and earlier, applications will need to store their data in <Application_Home>/Library/Caches to avoid having it backed up. Since this attribute is ignored on older systems, you will need to insure your app complies with the iOS Data Storage Guidelines on all versions of iOS that your application supports.

How to set the attribute

#include <sys/xattr.h>

- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
    const char* filePath = [[URL path] fileSystemRepresentation];

    const char* attrName = "com.apple.MobileBackup";
    u_int8_t attrValue = 1;

    int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
    return result == 0;
}

Data in the Documents folder


 

I was really surprised when one of my apps was rejected by Apple when all I did was update the icon and the app have past previous reviews with flying colors. It seems like there's a new rule about data you store in the /Documents folder.

All files in the Documents folder are backed up to iCloud and such files that can be re-downloaded or re-created should not be stored there. For obvious reasons, to not waste those precious 5 GB we have by default. However, if you put your data in Caches folder or tmp folder, it might be deleted in low storage situations so there is a new solution from iOS 5.0.1.

This allows you to put files that you generate, like a read-only database, to the Documents folder without having it backed up to iCloud.

Here's a snippet from iOS Developer Library

Q:  My app has a number of files that need to be stored on the device permanently for my app to function properly offline. However, those files do not contain user data and don't need to be backed up. How should I store those files in iOS 5?

A: Starting in iOS 5.0.1 a new "do not back up" file attribute has been introduced allowing developers to clearly specify which files should be backed up, which files are local caches only and subject to purge, and which files should not be backed up but should also not be purged. In addition, setting this attribute on a folder will prevent the folder and all of its contents from being backed up.

Important The new "do not back up" attribute will only be used by iOS 5.0.1 or later. On iOS 5.0 and earlier, applications will need to store their data in <Application_Home>/Library/Caches to avoid having it backed up. Since this attribute is ignored on older systems, you will need to insure your app complies with the iOS Data Storage Guidelines on all versions of iOS that your application supports.

How to set the attribute

#include <sys/xattr.h>

- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
    const char* filePath = [[URL path] fileSystemRepresentation];

    const char* attrName = "com.apple.MobileBackup";
    u_int8_t attrValue = 1;

    int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
    return result == 0;
}

f:id:bs-android:20120512182037j:image

Androidアプリケーション、デザイナーとプログラマーのハッカソン vol3 が開催されました。

このハッカソンもついに3回目です。( Vol.1 , Vol.2 )

従来のハッカソンではプログラマーがメインとなるイベントですが、デザイナーさんも交えてAndroidアプリを作りました。

チーム分け

事前に用意したテーマもありましたが、今回は先にチームを決めてから作るものを考えました。

  • ライブウォールペーパー
  • 画像アップロードアプリ
  • TODOアプリ(2チーム)
  • キッチンタイマー
  • ウィジェット

ハッカソンの様子

各チーム何を作るか考えています。

f:id:bs-android:20120512105208j:image:w401:left

f:id:bs-android:20120512110428j:image:w401:left


f:id:bs-android:20120512105325j:image:w401:left

f:id:bs-android:20120512105316j:image:w401:left


f:id:bs-android:20120512132244j:image:w401:left

f:id:bs-android:20120512111551j:image:w401:left


f:id:bs-android:20120512110547j:image:w401:left


作るものが決まったので、もくもくとアプリを作ります。

f:id:bs-android:20120512145157j:image:w401:left

f:id:bs-android:20120512144813j:image:w401:left


f:id:bs-android:20120512141036j:image:w401:left

f:id:bs-android:20120512141109j:image:w401:left


f:id:bs-android:20120512141226j:image:w401:left

f:id:bs-android:20120512140942j:image:w401:left


f:id:bs-android:20120512140818j:image:w401:left

f:id:bs-android:20120512111929j:image:w401:left


発表

チーム:ビバップでありやす

週末壁紙ももいろドロイダーZ

f:id:bs-android:20120512171116j:image:w400

メンバー

f:id:bs-android:20120514135629p:image:h400

このチームは、ホーム画面上をドロイドくんが歩きまわるライブウォールペーパーを作りました。

ドロイドくんがひょこひょこ歩いてとてもかわいいです

さらにホーム上のどこかをタップするとドロイドくんがそこへダッシュします。

名前から分かるとおり、メンバーが某アイドルグループをモチーフに作っており

ドロイドくんは設定より5色から選ぶことができます


チーム:メガネ

UmbrellaWidget

f:id:bs-android:20120512172132j:image:w400

メンバー

f:id:bs-android:20120512172332j:image:w400

このチームは、今日傘が必要かどうか一目で分かるウィジェットを作りました。

お天気APIを叩き、降水確率によって表示するウィジェットの絵が変化します。

このアプリは以前より欲しいと思ってた、という事があり作られたそうです。

続けて開発し、リリースまでできるといいですね


チーム:あるふぉーと

HITODANOMI TO-DO

f:id:bs-android:20120512173041j:image:w400

メンバー

f:id:bs-android:20120512173212j:image:w400

f:id:bs-android:20120512173348j:image:w400

このチームは、TODOアプリを作りました。

ただのTODOアプリではなく、Twitterを使い他人に進捗を管理させるところが特徴です。

画面デザインをアプリに落としこむところまでいけなかったのは残念ですが

アプリのアイデアが光っています!


チーム:Tough Boyz

TODOクエスト

f:id:bs-android:20120512174116j:image:w400

メンバー

f:id:bs-android:20120512174326j:image:w400

このチームはTODOアプリを作りました。

通常のTODOアプリと違うのは、RPG風になっているところです。

クエストを登録し、モンスターを倒すことでゲームを楽しみながらTODOを消化できます。

ゲーム風な絵だけでなく、音を活用することで気持ちいTODOアプリとなっていました。


チーム:決めてないっす

ついったぐらむ

f:id:bs-android:20120512175522j:image:w400

メンバー

f:id:bs-android:20120512175721j:image:w400

このチームは、写真を加工しTwitpicにアップロードするアプリを作りました。

当初は一日では難しいのではないかと思ったのですが

Aviaryという写真加工ライブラリを使うことで、工数を低減していました。

残念ながら最後のアップロード処理まで完成しませんでしたが

ライブラリを使って工数を抑えた点や、コルクボードに写真を貼ったようなデザインは素晴らしかったです。


チーム:インスタント

ゆでどけい

f:id:bs-android:20120512180422j:image:w400

メンバー

f:id:bs-android:20120512180453j:image:w400

f:id:bs-android:20120512180714j:image:w400

このチームはカップラーメンに特化したキッチンタイマーを作りました。

時間が経つにつれ画面に表示されたカップラーメンの麺が増えていきます。

あまりに時間が経ちすぎると、カッパが現れて悲しみます。

実はナルトじゃなくてカッパだったんですね。

また、ゆでたまごの構想もあり

こちらは時間が経ちすぎるとタマゴが割れて、中でネコが踊っているそうです。

投票

全員に一人5票で投票してもらいました。

結果は…

順位 チーム名 票数
1位 Tough Boyz 33票
2位 インスタント 20票
3位 ビバップでありやす 19票
4位 メガネ 18票
5位 あるふぉーと 11票
6位 決めてないっす 8票

おめでとうございます!!

個人的な感想など

今回のハッカソンは初めてという方がほとんどで、最初はどうなることかと思いましたが

ほとんどのチームがアプリ完成までたどりつきました。

参加者の声を聞くと、「デザイナーとの連携はもちろん、チーム内での連携が思いのほか難しかった」

「デザイナーさんの普段接することがないので貴重な体験ができた」など

充実したイベントだったのではないかと思いました。

次回も開催できるよう努力いたしますので、ご期待ください!

その他

文責:技術部 山下 智樹

Androidアプリケーション、デザイナーとプログラマーのハッカソン vol3が開催されました。

f:id:bs-android:20120512182037j:image

Androidアプリケーション、デザイナーとプログラマーのハッカソン vol3 が開催されました。

このハッカソンもついに3回目です。( Vol.1 , Vol.2 )

従来のハッカソンではプログラマーがメインとなるイベントですが、デザイナーさんも交えてAndroidアプリを作りました。

チーム分け

事前に用意したテーマもありましたが、今回は先にチームを決めてから作るものを考えました。

  • ライブウォールペーパー
  • 画像アップロードアプリ
  • TODOアプリ(2チーム)
  • キッチンタイマー
  • ウィジェット

ハッカソンの様子

各チーム何を作るか考えています。

f:id:bs-android:20120512105208j:image:w401:left

f:id:bs-android:20120512110428j:image:w401:left


f:id:bs-android:20120512105325j:image:w401:left

f:id:bs-android:20120512105316j:image:w401:left


f:id:bs-android:20120512132244j:image:w401:left

f:id:bs-android:20120512111551j:image:w401:left


f:id:bs-android:20120512110547j:image:w401:left


作るものが決まったので、もくもくとアプリを作ります。

f:id:bs-android:20120512145157j:image:w401:left

f:id:bs-android:20120512144813j:image:w401:left


f:id:bs-android:20120512141036j:image:w401:left

f:id:bs-android:20120512141109j:image:w401:left


f:id:bs-android:20120512141226j:image:w401:left

f:id:bs-android:20120512140942j:image:w401:left


f:id:bs-android:20120512140818j:image:w401:left

f:id:bs-android:20120512111929j:image:w401:left


発表

チーム:ビバップでありやす

週末壁紙ももいろドロイダーZ

f:id:bs-android:20120512171116j:image:w400

メンバー

f:id:bs-android:20120514135629p:image:h400

このチームは、ホーム画面上をドロイドくんが歩きまわるライブウォールペーパーを作りました。

ドロイドくんがひょこひょこ歩いてとてもかわいいです

さらにホーム上のどこかをタップするとドロイドくんがそこへダッシュします。

名前から分かるとおり、メンバーが某アイドルグループをモチーフに作っており

ドロイドくんは設定より5色から選ぶことができます


チーム:メガネ

UmbrellaWidget

f:id:bs-android:20120512172132j:image:w400

メンバー

f:id:bs-android:20120512172332j:image:w400

このチームは、今日傘が必要かどうか一目で分かるウィジェットを作りました。

お天気APIを叩き、降水確率によって表示するウィジェットの絵が変化します。

このアプリは以前より欲しいと思ってた、という事があり作られたそうです。

続けて開発し、リリースまでできるといいですね


チーム:あるふぉーと

HITODANOMI TO-DO

f:id:bs-android:20120512173041j:image:w400

メンバー

f:id:bs-android:20120512173212j:image:w400

f:id:bs-android:20120512173348j:image:w400

このチームは、TODOアプリを作りました。

ただのTODOアプリではなく、Twitterを使い他人に進捗を管理させるところが特徴です。

画面デザインをアプリに落としこむところまでいけなかったのは残念ですが

アプリのアイデアが光っています!


チーム:Tough Boyz

TODOクエスト

f:id:bs-android:20120512174116j:image:w400

メンバー

f:id:bs-android:20120512174326j:image:w400

このチームはTODOアプリを作りました。

通常のTODOアプリと違うのは、RPG風になっているところです。

クエストを登録し、モンスターを倒すことでゲームを楽しみながらTODOを消化できます。

ゲーム風な絵だけでなく、音を活用することで気持ちいTODOアプリとなっていました。


チーム:決めてないっす

ついったぐらむ

f:id:bs-android:20120512175522j:image:w400

メンバー

f:id:bs-android:20120512175721j:image:w400

このチームは、写真を加工しTwitpicにアップロードするアプリを作りました。

当初は一日では難しいのではないかと思ったのですが

Aviaryという写真加工ライブラリを使うことで、工数を低減していました。

残念ながら最後のアップロード処理まで完成しませんでしたが

ライブラリを使って工数を抑えた点や、コルクボードに写真を貼ったようなデザインは素晴らしかったです。


チーム:インスタント

ゆでどけい

f:id:bs-android:20120512180422j:image:w400

メンバー

f:id:bs-android:20120512180453j:image:w400

f:id:bs-android:20120512180714j:image:w400

このチームはカップラーメンに特化したキッチンタイマーを作りました。

時間が経つにつれ画面に表示されたカップラーメンの麺が増えていきます。

あまりに時間が経ちすぎると、カッパが現れて悲しみます。

実はナルトじゃなくてカッパだったんですね。

また、ゆでたまごの構想もあり

こちらは時間が経ちすぎるとタマゴが割れて、中でネコが踊っているそうです。

投票

全員に一人5票で投票してもらいました。

結果は…

順位 チーム名 票数
1位 Tough Boyz 33票
2位 インスタント 20票
3位 ビバップでありやす 19票
4位 メガネ 18票
5位 あるふぉーと 11票
6位 決めてないっす 8票

おめでとうございます!!

個人的な感想など

今回のハッカソンは初めてという方がほとんどで、最初はどうなることかと思いましたが

ほとんどのチームがアプリ完成までたどりつきました。

参加者の声を聞くと、「デザイナーとの連携はもちろん、チーム内での連携が思いのほか難しかった」

「デザイナーさんの普段接することがないので貴重な体験ができた」など

充実したイベントだったのではないかと思いました。

次回も開催できるよう努力いたしますので、ご期待ください!

その他

文責:技術部 山下 智樹

2012年5月7日月曜日

f:id:bs-android:20120426093800j:image:w620

弊社が制作したNFC QUESTが、Android Application Award(A3)2012にてBeyond Android賞を受賞しました。
f:id:bs-android:20120426093801j:image:w360:left

Beyond Android賞は、NTTコミュケーションズ様が運営するアプリレビューサイト「アプリコ」からの特別賞で、携帯電話のOSとしての、Androidの発想の枠を超えた新しいコンセプトのアプリケーションに贈られる賞です。

NFC QUESTは、AndroidとICカードを組み合わせることで、スタンプラリーやカードバトルができたりなど、そのサービスの幅広さから、将来の広がりを感じられたということで、高く評価を頂きました。

f:id:bs-android:20120425232738j:image:w360:left

当日は大賞を選ぶための「決勝プレゼン」というものがあり、ノミネート作品9組がそれぞれ3分間のプレゼンを行いました。

弊社は山下がプレゼンターを務め、3分間でNFC QUESTの特徴を伝えきりました。

f:id:bs-android:20120426093802j:image:w360:left

大賞は逃してしまいましたが、今後も引き続き、携帯電話の枠を超えた企画やサービスを創りだしていきたいと思います。

関連サイト:


文責:技術部 梶井祐介

A3 2012でBeyond Android賞を受賞しました!

f:id:bs-android:20120426093800j:image:w620

弊社が制作したNFC QUESTが、Android Application Award(A3)2012にてBeyond Android賞を受賞しました。
f:id:bs-android:20120426093801j:image:w360:left

Beyond Android賞は、NTTコミュケーションズ様が運営するアプリレビューサイト「アプリコ」からの特別賞で、携帯電話のOSとしての、Androidの発想の枠を超えた新しいコンセプトのアプリケーションに贈られる賞です。

NFC QUESTは、AndroidとICカードを組み合わせることで、スタンプラリーやカードバトルができたりなど、そのサービスの幅広さから、将来の広がりを感じられたということで、高く評価を頂きました。

f:id:bs-android:20120425232738j:image:w360:left

当日は大賞を選ぶための「決勝プレゼン」というものがあり、ノミネート作品9組がそれぞれ3分間のプレゼンを行いました。

弊社は山下がプレゼンターを務め、3分間でNFC QUESTの特徴を伝えきりました。

f:id:bs-android:20120426093802j:image:w360:left

大賞は逃してしまいましたが、今後も引き続き、携帯電話の枠を超えた企画やサービスを創りだしていきたいと思います。

関連サイト:


文責:技術部 梶井祐介

2012年4月17日火曜日




f:id:bs-android:20120416161159j:image:w620



弊社の「NFC QUEST」がA3の最終ノミネート作品に選出されました!


http://itpro.nikkeibp.co.jp/android/aaa2012/nominate.html


最終選考の結果は4/24の授賞式で発表されるようです。


皆さん、応援よろしくお願いします!


f:id:bs-android:20120416173817j:image:w620





日経BP社主催 Android Application Award 2012 にノミネートされました!




f:id:bs-android:20120416161159j:image:w620



弊社の「NFC QUEST」がA3の最終ノミネート作品に選出されました!


http://itpro.nikkeibp.co.jp/android/aaa2012/nominate.html


最終選考の結果は4/24の授賞式で発表されるようです。


皆さん、応援よろしくお願いします!


f:id:bs-android:20120416173817j:image:w620





2012年4月3日火曜日

The other day I was preparing our new game for release and while tests using the debug build worked beautifully the game suddenly starting crashing in a weird situation that was difficult to discover when run using the release build.

Narrowing it down to the fact that it worked without optimization but crashed with any level of optimization I figured some object that should be released hadn't been released, or released to soon, or maybe not released at all.

This introduced me to the great feature "Zombie objects" for the first time. Zombie objects are not enabled by default so you have to enable this in the scheme configuration of your project. Zombie objects keep released objects in memory so instead of getting an error like "EXC_BAD_ACCESS" you can see what kind of object your code is trying to access. Great, isn't it?

So now I could see what object my code was trying to access when it crashed and also where in the code the crash happened instead of seeing just a block of assembler code.

ARC, Automatic Reference Counting, is great new feature of Objective-C that manages the pointers for you and releases the objects when they are not longer referenced to. However, it is different from Garbage Collection and apparently we need to take care in certain situations otherwise error likes this might happen.

Maybe this is only because my lack of knowledge, or maybe unknown "feature" of ARC. Anyhow, I want to share this with whoever finds their way to this blog.

I the code causing trouble I have  a matrix of pointers, like this:

__strong Tile  *_board[13][13];

Actually you don't need the keyword __strong because it is default but I put it there for clarity. This means that this matrix will strongly hold on to whatever Tile pointers I put there. Good, now we want to do something with these pointers. Like finding out where row of tiles start vertically.

while (row > 0) {
    Tile *t = _board[row-1][column];
    if(t == nil) break;
    row--;
}

This work great in debug mode (no optimization) but crashes in release mode with code optimization. Well, it doesn't crash the first time it is run but the second time, after it's gone out of scope. Apparently all the Tile objects iterated over is released when the method goes out of scope.

Changing the code to this solved the problem.

while (row > 0) {
    if(_board[row-1][column] == nil) break;
    row--;
}

However, this seem to only apply to while loops. For loops does not cause the same behavior using ARC. I think I will head over to Apple's documentation and see if I can find a reason for why this is the case...

Debug Build OK - Release Build CRASH - ARC?

The other day I was preparing our new game for release and while tests using the debug build worked beautifully the game suddenly starting crashing in a weird situation that was difficult to discover when run using the release build.

Narrowing it down to the fact that it worked without optimization but crashed with any level of optimization I figured some object that should be released hadn't been released, or released to soon, or maybe not released at all.

This introduced me to the great feature "Zombie objects" for the first time. Zombie objects are not enabled by default so you have to enable this in the scheme configuration of your project. Zombie objects keep released objects in memory so instead of getting an error like "EXC_BAD_ACCESS" you can see what kind of object your code is trying to access. Great, isn't it?

So now I could see what object my code was trying to access when it crashed and also where in the code the crash happened instead of seeing just a block of assembler code.

ARC, Automatic Reference Counting, is great new feature of Objective-C that manages the pointers for you and releases the objects when they are not longer referenced to. However, it is different from Garbage Collection and apparently we need to take care in certain situations otherwise error likes this might happen.

Maybe this is only because my lack of knowledge, or maybe unknown "feature" of ARC. Anyhow, I want to share this with whoever finds their way to this blog.

I the code causing trouble I have  a matrix of pointers, like this:

__strong Tile  *_board[13][13];

Actually you don't need the keyword __strong because it is default but I put it there for clarity. This means that this matrix will strongly hold on to whatever Tile pointers I put there. Good, now we want to do something with these pointers. Like finding out where row of tiles start vertically.

while (row > 0) {
    Tile *t = _board[row-1][column];
    if(t == nil) break;
    row--;
}

This work great in debug mode (no optimization) but crashes in release mode with code optimization. Well, it doesn't crash the first time it is run but the second time, after it's gone out of scope. Apparently all the Tile objects iterated over is released when the method goes out of scope.

Changing the code to this solved the problem.

while (row > 0) {
    if(_board[row-1][column] == nil) break;
    row--;
}

However, this seem to only apply to while loops. For loops does not cause the same behavior using ARC. I think I will head over to Apple's documentation and see if I can find a reason for why this is the case...

2012年3月26日月曜日



f:id:bs-android:20120326141348g:image:w301:left

f:id:bs-android:20120326102939p:image:w300

はじめに


先日、NTTドコモ様から「しゃべってコンシェル」という、Android+音声認識によるマルチ検索・端末操作アプリケーションがリリースされました。弊社はこの「しゃべってコンシェル」及びその前身となるアプリの開発でご協力させて頂きました。

しゃべってコンシェル開発秘話



f:id:bs-android:20120326141348g:image:w301:left

f:id:bs-android:20120326102939p:image:w300

はじめに


先日、NTTドコモ様から「しゃべってコンシェル」という、Android+音声認識によるマルチ検索・端末操作アプリケーションがリリースされました。弊社はこの「しゃべってコンシェル」及びその前身となるアプリの開発でご協力させて頂きました。



f:id:bs-android:20120325145931p:image

はじめに


前回の記事では、ADT8で標準搭載されたProGuardの適用方法について解説しました。今回、ADT17でProGuardのいくつかの改善が行われたため、これら改善点について解説します。尚、本記事はProGuard Improvementsを元に翻訳したものです。

Androidに統合されたProGuardに関する改善点(ADT17)



f:id:bs-android:20120325145931p:image

はじめに


前回の記事では、ADT8で標準搭載されたProGuardの適用方法について解説しました。今回、ADT17でProGuardのいくつかの改善が行われたため、これら改善点について解説します。尚、本記事はProGuard Improvementsを元に翻訳したものです。

2012年3月17日土曜日






f:id:bs-android:20120314174132j:image:w620





3月14日に日本橋にて Google Japan 主催で Creative Sandbox という、広告代理店やクリエイター向けのイベントが開催されました。

http://www.google.co.jp/events/creativesandbox2012/

「テクノロジーとインターネットがコミュニケーションにどのような影響を与え、貢献ができるのかということを考える場」

というコンセプトのもと、広告代理店などの、制作営業担当、デザイナー、クリエーターをターゲットとし、Googleのテクノロジーを使って新たなコミュニケーションを創造するツールやアイディアをシェアするイベントです。

3月14日に開催されたGoogle Creative Sandboxに参加しました。






f:id:bs-android:20120314174132j:image:w620





3月14日に日本橋にて Google Japan 主催で Creative Sandbox という、広告代理店やクリエイター向けのイベントが開催されました。

http://www.google.co.jp/events/creativesandbox2012/

「テクノロジーとインターネットがコミュニケーションにどのような影響を与え、貢献ができるのかということを考える場」

というコンセプトのもと、広告代理店などの、制作営業担当、デザイナー、クリエーターをターゲットとし、Googleのテクノロジーを使って新たなコミュニケーションを創造するツールやアイディアをシェアするイベントです。

f:id:bs-android:20120315154949j:image:w620

3月6日から9日までの4日間、東京ビックサイトで開催された第1回「NFC & Smart WORLD 2012」でNFC QUESTが実施されました。

今回は「NFC & Smart WORLD」のリニューアルを象徴する特別企画として、主催者の日経新聞社さんと一緒にブリリアントサービスが企画/開発を行いました。

NFC & Smart WORLD 2012でNFC QUESTが実施されました

f:id:bs-android:20120315154949j:image:w620

3月6日から9日までの4日間、東京ビックサイトで開催された第1回「NFC & Smart WORLD 2012」でNFC QUESTが実施されました。

今回は「NFC & Smart WORLD」のリニューアルを象徴する特別企画として、主催者の日経新聞社さんと一緒にブリリアントサービスが企画/開発を行いました。

2012年3月15日木曜日



Twitter




ブログ


@tunakko_ さん






@muo_jpさん



@shogoggさん



@cattaka_netさん



@tryalさん



@youten_redoさん






@patorashさん



@eaglesakuraさん



@vvakameさん



@zamojojoさん



@shigepon7さん



@kame0_0さん



@tommmmyさん






リンクまとめ



Twitter




ブログ


@tunakko_ さん






@muo_jpさん



@shogoggさん



@cattaka_netさん



@tryalさん



@youten_redoさん






@patorashさん



@eaglesakuraさん



@vvakameさん



@zamojojoさん



@shigepon7さん



@kame0_0さん



@tommmmyさん








f:id:bs-android:20120310234432j:image:w400

9:00 開発の様子


ハッカソン2日目

会場に入り次第開発が始まります。

2日目



f:id:bs-android:20120310234432j:image:w400

9:00 開発の様子


ハッカソン2日目

会場に入り次第開発が始まります。

Related Posts Plugin for WordPress, Blogger...