[Android] TextView の文字を中央寄せ(センタリング)する方法

Android アプリ開発で TextView の文字を中央寄せ(センタリング)する方法をご紹介します。

Android

続きを読む

[iOS] Your Info.plist contains the UINewsstandIcon sub-property under CFBundleIcons, which is intended for use with Newstand feature. To include Newsstand features, the Info.plist must include the UINewstandApp=true Info.plist key.

iPhone アプリを Xcode 経由で申請しようとしたら、エラーが発生しました。

エラー内容

The following issues were found during validation

The following issues were found during validation:

Your Info.plist contains the UINewsstandIcon sub-property under CFBundleIcons, which is intended for use with Newstand feature.
To include Newsstand features, the Info.plist must include the UINewstandApp=true Info.plist key.

解決方法

NewstandIcon

ニューススタンド対応にしない場合は、Info.plist ファイルの Icon files (iOS5) の項目の Newsstand Icon の項目を削除すればOKです。

[iOS] エラー「No application records were found.」

Xcode から iOS アプリを iOS App Store へ登録しようとしたらエラーが発生しました。

xcode_Submit to the iOS App Store

xcode_No application records were found

「No application records were found.」というエラーが発生しました。

原因は、「Ready to Upload Binary」ボタンを押してない状態でした。

[Android] アクションバーを非表示にする方法

Android アプリ開発で、アクションバーを非表示にする方法をメモ。

getActionBar().hide();

[Android] Toast 風な通知ビューをカンタンに表示するライブラリ「Crouton」

Android アプリ開発で、Toast 風な通知ビューをカンタンに表示するライブラリ「Crouton」が便利だったので、ご紹介します。

GitHub:
keyboardsurfer/Crouton · GitHub

jar ファイルのダウンロードはこちらから:
Maven Repository: de.keyboardsurfer.android.widget » crouton

ブログ記事:
Useful Android Libraries: Crouton | Grokking Android

スライド資料:
Crouton DevFest Berlin 2012 // Speaker Deck

他にも、Android-AppMsg というライブラリがありました。

johnkil/Android-AppMsg · GitHub

The Making of Prixing #4: In-layout Notifications – Cyril Mottier

[Java] ArrayList#toArray を String[] にキャストする方法

Java で ArrayList#toArray を String[] にキャストする方法をご紹介します。

Java

続きを読む

[Android] アラートダイアログ(AlertDialog)のタイトルの設定方法

Android アプリ開発で、アラートダイアログ(AlertDialog)のタイトルを設定する方法をメモ。

final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
alertDialogBuilder.setTitle("タイトル!");

[参考]

UIコンポーネント/AlertDialogの使い方 – Android Wiki*

[Android] アクションバーで前のアクティビティに戻るボタンを表示させる設定方法

Android アプリで、アクションバーで前のアクティビティに「戻る」ボタンを表示させる設定で、参考になった情報をメモ。

親アクティビティを指定せずに作成したアクティビティに親を設定する – IKB: 雑記帖

Navigation with Back and Up | Android Developers

Y.A.M の 雑記帳: Android Up の振る舞いパターンを実装する

[Git] .gitignore ファイルをカンタンに生成するサービス gitignore.io が便利

.gitignore ファイルをカンタンに生成するサービス gitignore.io が便利なのでご紹介します。

Git

続きを読む

[Android] Parse.com を使った Push 通知機能の実装方法

Parse.com を使って Android アプリに Push 通知機能を実装したので参考になったリンクをメモ。

手順は、下記のページを参考にしました。

Get Started with Android | Parse

Quick Start | Parse

Android Push Notifications | Parse

Push Developer Guide | Parse