カヤックandroidアプリ第9弾、LifeAroundをリリースしました。LifeAroundは自分の生活圏の情報を集めるアプリです。 これまでのその場所の周囲で検索するような情報を取りに行くような感覚ではなく、 身の周りの情報はいつも自分の手の届く場所にあって、いつでもひきだせるもの だという感覚を目指しました。基本機能は自分の周りの写真の収集です。 自分の行動範囲の周囲の写真を自動的に収集していきます。スライドショーで再生 すると知っている場所や知らない風景(すぐ近くを通っているはずなのに)、いつもの 場所のちがう季節の風景など、いつも意識することもなく通り過ぎていたものを発見 できるでしょう。 自分の今いる場所ではなく生活圏をターゲットにすることで、まったく意識していな かったエリアからも新しい身近な発見ができることと思います。LifeAroundには、収集したい情報を後から追加す
画面をONの状態を維持する方法はこちらの記事のpowermanagerを使う方法で実装できますがアラームアプリのようにalarmmanagerを使って画面がスタンバイしている状態からアプリを起動した場合などは、画面ロックがかかてちる場合があります。そのため、アプリを表示しようとしたときに画面ロックがかかってしまいますが、アラームアプリ等では停止できる画面を表示したいので、画面ロックをアプリ側から解除する方法です。 KeyguardManager keyguardManager= (KeyguardManager)this.getSystemService(KEYGUARD_SERVICE); KeyguardLock kgb = keyguardManager.newKeyguardLock("key"); kgb.disableKeyguard();あと、manifestのほうに<u
メモ録音・通話録音アプリ、RECOROIDリリースしました。 通話画面・ホーム画面のウィジェット・アプリ画面にて録音できて、ウィジェットからも最新の録音を確認できるようにしました。 通話画面は誤操作防止のためスライド式スイッチにしています。止める時も同様にスライド。 ウィジェットは録音開始と停止をひとつにして、直近の再生機能のみ別ウィジェットの1アプリ2ウィジェットの構成にしてあります。アプリ画面で録音開始して他のことをしても、ウィジェット画面も同時に録音状態になるためウィジェットで録音停止することができます。再生専用ウィジェットに過去ログ画面を持たせなかったのは音声メモの性質上一番最近の録音の利用頻度が他のメモに比べて高いだろうと考えたためです。保存しておくよりも使い切りといった用途ですね。 ウィジェットについては一般的にガジェット的なもの、トグル的なものがありますが、アプリの機能ランチ
音声の録音の際、MediaRecorderクラスを使えばすぐに3gpで保存できたり 開きやすかったりと便利ですが、音声入力の音量をとりたいなど、リアルタイム に扱いたい時に使うAudioTrackとAudioRecordというクラスがあります。 バイトデータで取得できるのでいろいろとデータの利用価値が上がるのですが、 これで記録されるフォーマットはPCMになります。wavで知られてたりするほぼ 生の音声データです。 これが曲者でMediaPlayerクラスで再生できなかったりAudioTrackクラスで 再生しようとするとファイルのバイトデータ呼んで書き込んでとまた手間になり ます。でもMediaRecorderではできないようなのでこちらを使います。int bufferReadResultTEST = audioRecordTEST.read(bufferTEST, 0,bufferSi
アプリ作成の際、リソースとしてデータベースを含めたいことがあり、アプリの初期化でやってもいいんですが件数が多くなると初回起動が遅くなるしバージョンアップ対応がめんどくさくなりそうだし、というわけでSQLite形式のdbファイル自体をapkに含めてしまう方法です。 主な流れは、 1.初回にassetフォルダからアプリのdatabasesフォルダに移動 2.通常通りDBにアクセス 流れと言おうとしたら2つで終わりました。調べてる時は面倒だったのにわかってしまえばこれだけですね。 以下コード。 public void copyFile(String srcFilePath) { File dstFile; String dst; dst= "/data/data/" + this.getPackageName() + "/databases/"; dstFile=new File(dst); d
eclipseで制作していて、上の図のようにLogCatがエラーを起こし表示できなく なることがありました。 この解決方法はworkspaceにある .metadata\.plugins\org.eclipse.core.runtime\.settingsフォルダ 内、 com.android.ide.eclipse.ddms.prefsをエディタで開きます。 com.android.ide.eclipse.ddms.logcat.filters=??という行があり、 「|」区切りでフィルタの設定が記述されていて、 1データは「aaaaa\:2\: aaaaa\:」のように「\:」で3つに区切られていますが、 エラーを起こす場合、「aaaaa\:\:2\: aaaaa\:」のように区切りが多い部分が あると思います。ここを削除。 (\はバックスラッシュ) この後、eclipseを再起動する
########## REQUIRED: INSERT DESCRIPTION ##########「ブラウザから一歩先ってそれデスクトップじゃ…」 断固YES! もちろん AIR もブラウザから一歩出た可能性満ち溢れる環境です。 Web Designing に連載させていただいた記事が単行本になります!しかも大幅な加筆と書き下ろし、インタビューが大量に追加されます (担当編集のI様、わがままを言って大変申し分かりません…)。 現在絶賛執筆中なのですが、Linux 版も出た AIR はフィジカルコンピューティングや「ブラウザ一歩プラットフォーム」としてかなり優れた環境です。 そんな可能性を示しながらも、とにかく手に取ってみた方に「AIR を作ってみたい!」と思わせるようなコンテンツにするべく書いております。 お楽しみに!(出版予定は入学シーズンの3月末?4月頭を予定しております)
久しぶりにFlash触ってまだAS書ける気がしたhidakaです。 先日からbluetoothですれ違い通信が盛り上がってきていますので、ここらで 非公式bluetoothAPIについて調べてみました。 まずは以下の2つを確認。 (unofficial) Bluetooth API v. 0.2 Android developers Gooleグループ android-bluetooth google code使い方ですが、まずはサンプルがあるのでそちらに沿って確認します。 google codeからSVNでダウンロード。忘れずにAndroidBluetoothAPI_0.2.jarも ダウンロード。 サンプルだけおとして、あれ?APIどこだ?とちょっとあせりました。最初なのでまずは基本的な「自分の情報を取得する」と「周りの機器を探す」を 試してみます。 まずは自分の情報の取得。Loca
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く