アクティビティ間の連携は、必ず使うことになるので。 明示的 起動したいアクティビティをパッケージ名とクラス名で直接指定する。 Intent intent = new Intent(helloworld.this,XXXXX.class); intent.setAction(Intent.ACTION_VIEW); startActivity(intent); コマンドラインから $ am start -n パッケージ名/.アクティビティクラス(com.suddenAngerSystem/.BroadCastIntentの様な) 暗黙的 起動したいアクティビティをインテントフィルタの属性とパラメータURIで指定する。 コマンドラインから $ am start -a アクション名(android.intent.action.EDIT等) -d content://xxxxx(file:/xxや
今回からはAndroidアプリについて、実際の構造や動きなどについて詳しく見ていきます。 アクティビティから構成される Androidのアプリケーション AndroidのアプリケーションはJavaで記述されますが、実体としてはアクティビティ(Activity)と呼ばれる画面を構成するオブジェクトになります。このアクティビティはAndroid上では1つの画面に相当し、表示されるボタンや入力欄などを管理します。 プログラミング上では、Activityクラスを継承するクラスを定義し、これがアプリケーションの本体となります。ただしアクティビティ自体は画面そのものではないので、この中で表示させるボタンなどを作ってやらねばなりません。 Android内では、ユーザーがアプリケーション画面からアイコンをタップしてアプリケーションを起動すると、内部で必要な準備を 行なったのち、アクティビティオブジェクトが
iPad Summit会場となったSouth San Francisco Conference Center。サンフランシスコ国際空港の近くに位置する iPadが米国で発売されてから3カ月半、日本での販売開始から1カ月半が経過したが、みなさんの手にはすでに行き渡っただろうか? Appleによれば、6月22日の時点で世界でのiPad販売台数が300万台を突破し、現在もその数字は順調に伸び続けているようだ。業界アナリストやAppleにiPad向け部品を提供するサプライヤらの意見を総合すれば、2010年内にも累計販売台数が800~1000万台に到達する可能性があるという。 このようにプラットフォームが拡大するメリットとしては、ユーザーが増加することでプラットフォームが盛り上がり、そこにアプリや周辺機器、各種ソリューションを提供するサードパーティが多数参加し、さらにプラットフォームが拡大しつつ盛り
日経BP社から『不具合連鎖-「プリウス」リコールからの警鐘』が出たので早速注文して読んでみた。プリウスのブレーキ制御に関して新たに分かったことがあるのでそれについて考察してみようと思う。 【回生ブレーキと回生協調ブレーキについて】 ハイブリッド車や電気自動車には回生ブレーキがある。回生ブレーキとは減速時にモーターを発電機として回すことで運動エネルギーを電気エネルギーに変えてバッテリに貯める。ガソリンエンジンにはモーターがないからこのエコ機能は使えない。回生ブレーキを搭載することによって燃費が伸びる。 回生ブレーキがエコという価値の一部を担っているということだ。消費者が望むエコの価値を回生ブレーキという機能・性能が実現している。エコの価値を実現する回生ブレーキサブシステムはハイブリッド車にとって再利用可能なコア資産である。 そしてプリウスのブレーキは単なる回生ブレーキではなく、回生ブレーキと
企業の明日を変える エグゼクティブのためのコミュニティー 「ITmedia エグゼクティブ」 上場企業および上場相当企業の課長職以上の方が約 6000人参加している会員制サービスです。無料で参加いただけるセミナーや勉強会などを通じた会員間の交流から「企業のあるべき姿」「企業の変革をつかさどるリーダーとしての役割」などを多角的に探っていきます。 入会の申し込みはこちら
目覚まし時計を作る方法はごくシンプルだ。自分のニックネームと、好みの目覚ましサウンドを指定して、「目覚まし時計アプリ」を作成する。作成したアプリは、自分で使うだけでなく、贈り物としてメールに添付して送信することができる。 その基盤には、先に説明したように「Androidアプリが、Androidアプリを生成する」仕掛けがある。開発の経緯も、まず「そのようことが可能だろうか」との試みから始まり、その後に「目覚まし時計を作って配る」というアイデアが生まれた。 作成したアプリがAndroid端末上で正常にインストールできるかどうかなど、開発過程では多くの試行錯誤があったという。開発元のタオソフトウェア 代表取締役の谷口岳氏は、受賞式の場で「大賞の受賞はまったく予想していなかったが、狙いを理解してもらえて嬉しい」と語った。 審査員長の丸山不二夫氏は「すでに有名な作品、完成していると思われる作品よりも
WindowsおよびMac向けソフトウェアの開発者に対し、Skypeのソフトウェア開発キット(SDK)の提供が開始された。これを使うと、ほぼすべてのアプリにSkypeのVoIP通話機能を搭載することが可能になる。 ルクセンブルクを本拠とするSkypeは現地時間7月14日、招待ユーザー限定のベータ版リリースとして、「SkypeKit」SDKの提供を開始した(利用には申請が必要)。SkypeKitのベータ版は、x86版Windowsと「Mac OS X」に対応している。 有名なVoIPサービス企業のSkypeが初めてSkypeKitを発表したのは6月23日のことで、まずはLinux開発者向けに第1ベータ版をリリースしていた。 無料のVoIP通話やビデオチャットといったSkypeモジュールのアプリへの追加は、Skypeのビジネスモデルにとって大きなメリットがあるが、Skype用のアプリを別に起動
This page presents a variety of calculations for latitude/longitude points, with the formulas and code fragments for implementing them. All these formulas are for calculations on the basis of a spherical earth (ignoring ellipsoidal effects) – which is accurate enough* for most purposes… [In fact, the earth is very slightly ellipsoidal; using a spherical model gives errors typically up to 0.3%1 –
米Googleが、プログラミングの知識がなくても簡単にAndroidアプリが開発できるツール「App Inventor for Android」をβ公開した。Webサイトで利用希望者の登録を受け付けている。 このツールでは、コードを書く代わりに、ボタンなどのデザイン要素や、「アクションを繰り返す」「情報を保存する」といったアプリの動作を指定するための「ブロック」をドラッグ&ドロップしてアプリを設計できる。 App Inventorでは、GPS情報を活用したアプリや、Androidの機能(メール機能やテキスト読み上げ機能など)を利用したアプリなどを開発できる。例えば、GPS情報を使って駐車場所を記録しておくアプリや、定期的に恋人に「さみしいよ」というメールを送るアプリなどを作れる。Webアプリの書き方を知っていれば、TwitterやAmazonなどのサイトと連係するアプリも作れる。ユーザーが
最後の二つが今回から追加された状態であり、状態の変化はNotificationで取得することが可能。また、同時にUIApplicationDelegateのメソッドもコールされる。 状態遷移やそのときにポストされる通知については iPhone Application Programming Guide が詳しいのでそちらを参照のこと。 これらの状態を踏まえて、マルチタスク化をする際に”最低限”やっておくことを順にまとめる。 ※なお、どうしても以下の処理ができないのであれば、必ずinfo.plistにUIApplicationExitsOnSuspendを追加して値をYESにしておこう。 終了処理 終了時に通るパス アプリケーションが"Active"の状態から"Not running"の状態に遷移する過程で、必ず通るパスがある。そこでデータや設定などを保存しているアプリが多いと思うのだが、こ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く