DHJJ [Hatsune's Journal Japan] blog

Hatsune's Journal Japan blog

目次

Blog 利用状況

ニュース

最新ツイート

運営サイト

Hatsune's Journal Japan
DHJJ

著作など

資格など

OCP
MCP

書庫

日記カテゴリ

わんくま同盟

HiraganaTwit 0.4の登録不合格の理由

HiranagaTwitは、HomeTimeline、MentionsTimeline、FavoritesTimelineを同一ページで切り替えながら使っています。

このような切り替え方法を使う事で例えばHome→Mentions→Homeと遷移したときにMentionsに移動する前のHomeの状態を維持するようにしています。

このような用途にはPanoramaが良いのかもしれませんがちょっとした意図しない左右フリックを検出してパノラマの横スクロールが発生してしまうのを避けたいためにあえてパノラマを用いていません。

しかし同一ページでタイトルを切り替えながら別用途に使用していた場合、Windows Phoneのハードウェアバックボタン(画面の下にある3ボタンの一番左にある[←]ボタンのこと)をタップしたときに同一ページで遷移しているので1つ前のTimelineに戻れません。

どうもこの動きが今回のMarketplace登録のテスターの方には動作不良とみなされたらしく登録審査に不合格になってしまいました。

この問題に対応するためには

  • パノラマにする
  • 同一ページだけれどNavigationService使ってページ遷移させる

のどちらかの対応をすればいいはず。でも前者はやりたくないし、後者はそのために取得済のTimelineをページ遷移時にロストしないようにWebアプリのSessionオブジェクトのように分離ストレージに保存してからNavigationServiceで遷移してという仕組みにしなければなりません。

分離ストレージをそんな感じで使う事にどうしても抵抗感があるため、ちょっと悩んでいたりするわけです。

投稿日時 : 2011年4月23日 20:26

Feedback

# re: HiraganaTwit 0.4の登録不合格の理由 2011/04/25 8:09 もり ひろゆき

既にご存じかもしれませんが、WP7ではTransient stateを保持するため用にPhoneApplicationServiceが持つStateに保存することができますよ。

StateはIDictionaryのプロパティなので、辞書構造でString型のキーでObject型のデータを保存できるプロパティなので、簡単に利用でうすことができます。

PhoneApplicationPageにも持っているプロパティですのでOnNavigateToメソッドをoverrideして以下のような感じで使えますよ。

if(State.ContainsKey("Text1"))
{
textBox1.Text = (string)State["Text1"];
}
else
{
textBox1.Text = string.Empty;
}

そして取り出しはOnNavigateFromメソッドで
State["Text1"] = textBox1.Text;
こんな感じにすればTombstorningできます。

既知でしたら申し訳ないです(^^;

# re: HiraganaTwit 0.4の登録不合格の理由 2011/04/25 8:12 もり ひろゆき

ちなみにこのプロパティはデータの永続化が必要なApplication Dataには利用できませんので、その場合は素直にIsolatedStorageを利用する必要があります(^^;

# re: HiraganaTwit 0.4の登録不合格の理由 2011/04/25 8:13 もり ひろゆき

何度もすみません。 保存と取り出しが逆でした。 失礼しましたm(__)m

# Windows Phone Marketplaceの今回の担当テスターさん、まぢ厳しい 2011/04/27 8:17 DHJJ [Hatsune's Journal Japan] blog

Windows Phone Marketplaceの今回の担当テスターさん、まぢ厳しい

# re: HiraganaTwit 0.4の登録不合格の理由 2011/04/27 8:19 はつね

もりさん:
それは知りませんでした。でも、それってメモリ上ですよね。揮発性だから分離ストレージよりいいんですが、モバイルデバイスでメモリ使い込んでいいのかとか悩みます。
貧乏性なんですかね。

# OqdShBtcGyWiB 2011/12/22 20:30 http://www.discreetpharmacist.com/

j4qIGc Not bad post, but a lot of extra !!...

# mulberry handbags 2012/11/17 15:47 http://www.mulberryoutletbagsaleuk.co.uk/

Even if a friend or relative doesn‘h accept you how want them to actually,doesn‘h convey that they get into‘h accept you of they offer.
mulberry handbags http://www.mulberryoutletbagsaleuk.co.uk/

# nike schuhe 2012/11/18 19:17 http://www.nikeschuhedamenherren.com/

Put on‘big t try so desperately, the optimal elements return during the time you typically be prepared the crooks to.
nike schuhe http://www.nikeschuhedamenherren.com/

# Pull Pas Cher Homme Femme 2012/11/25 18:21 http://www.fr-marque.com/

Health is definitely a aroma you can not dans le but de found on other individuals devoid of receiving a handful lowers found on one self.
Pull Pas Cher Homme Femme http://www.fr-marque.com/

# Sarenza lando 2013/01/11 23:08 http://www.robenuk.eu/

Even though any individual doesn‘tonne love you how to long for them in,doesn‘tonne show that they wear‘tonne love you boost they have.
Sarenza lando http://www.robenuk.eu/

# www.b66.fr 2013/03/03 6:00 http://www.b66.fr/

I really enjoy you not by virtue of yourself, yet somehow by virtue of what people I will be next time i i'm together with. www.b66.fr http://www.b66.fr/

# www.g77.fr 2013/03/03 6:01 http://www.g77.fr/

Little woman or man may be worth your main weeping, additionally , the person that will be North Korean won‘h enable you to vociferation. www.g77.fr http://www.g77.fr/

# Jordan Retro 12 5 6 2013/03/05 15:13 http://www.nikerow.com/

Take care not to speak of your main health to a single a reduced amount of blessed as compared with yourself. Jordan Retro 12 5 6 http://www.nikerow.com/

# casquette wati b 2013/03/14 8:42 http://www.a77.fr/

Peaceful home life you not considering whom you are, and yet considering whom So i am actually was for you. casquette wati b http://www.a77.fr/

# paristreet 2013/03/15 18:05 http://www.a88.fr/

Joy and happiness is really fragrance it is impossible storage containers . over other people without the need of receiving a couple lowers over your lifestyle. paristreet http://www.a88.fr/

# d33.fr 2013/03/22 6:26 http://d33.fr/

Each dad possibly friends, still friends will almost always be an absolute dad. d33.fr http://d33.fr/

# casquette supreme 2013/03/22 10:55 http://d99.fr/

Well-being rrs really a cologne it's hard to pour entirely on many more without having using a small number lowers entirely on you and your family. casquette supreme http://d99.fr/

# Laredoute 2013/04/05 2:39 http://ruezee.com/

Felicity is really aroma you can't swarm upon some others without need of purchasing a some loses upon your self. Laredoute http://ruezee.com/

# tati 2013/04/07 4:05 http://ruenee.com/

Seriously like will be the primarily rational and additionally great solution concerning staff presence. tati http://ruenee.com/

タイトル  
名前  
Url
コメント