将棋プログラミング

(将棋に関する)ソフトウェア開発のノウハウ等。

2018-07-01から1ヶ月間の記事一覧

iOS版 Twitter Kit: Attempt made to Log in or Like a Tweet without a valid Twitter Kit URL Scheme set up in the app settings.

iOS

iOS版アプリに Twitter Kit を組み込んだ。 インストール方法は、次に説明がある。 github.comまず、次のエラーが表示され、動作対象を iOS 9.0 以降にしないといけなかった。 error: "TwitterKit doesn't support iOS 8.x and lower. Please, change your m…

Twitter apps dashboard: Error You must add your mobile phone to your Twitter profile before creating an application.

Twitter を使うアプリを開発する際、Twitter apps dashboard にアプリを登録する。 今回、新しいアプリを登録しようとすると、次のエラーになった。 Error You must add your mobile phone to your Twitter profile before creating an application. Please …

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

Androidアプリ開発中に、次のコードを書き、 AlertDialog.Builder ad = new AlertDialog.Builder(getApplicationContext()); 次のエラーが発生した。 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appl…

java.lang.NumberFormatException: Invalid int:

最近、Androidアプリ開発中に、サーバから受信したデータを数値化するため、次のコードを書いた。 String str; // サーバから受信したデータ int int_value = Integer.parseInt(str); 実行すると、次の例外が発生した。 java.lang.NumberFormatException: In…