そんなわけで昨日と今日で「IS03」と「Galaxy S SC-02B」が発表されましたので,最新タッチスマートフォンとして「Galaxy S」「IS03」「Xperia」「iPhone 4」の4機種をスペック比較してみました。まー,またーりとヽ(*´∀`)ノ あ,Desire X06HT/X06HT IIあたりも入れておけばよかった_| ̄|○ 後で追加するかも。ひとまず~ SAMSUNG mobile | 製品情報 | SC-02B IS03 Xperia™ | ソニー・エリクソン HTC Desire HD SoftBank 001HT | ソフトバンクモバイル HTC – 製品 – SoftBank X06HT – 概要 アップル – iPhone – 携帯電話、iPod、インターネットデバイスがひとつに。
2地点を指定して、移動ルートを地図上に表示させるサンプルです。今回はサッポロビール園からJR札幌駅まで。行きは早く飲みたいからバスかタクシーで、帰りは酔い覚ましに歩き…ですよね!? <script type='text/javascript" src="//maps.google.com/maps/api/js?sensor=false"></script> <div id="map" style="width:740px; height:400px;"><br /></div> <script type="text/javascript"> var From = "北海道札幌市東区北七条東9-2-10"; var To = "札幌駅"; var myMap = new google.maps.Map(document.getElementById("map"), { mapTypeId:
■iOS(iPhone OS) iOS(3.0以前は「iPhone OS」)は、アップルがiPhoneなどの小型端末用に開発した専用OSです。初代iPhoneに1.0が搭載されたあと、新モデルの発表に合わせてバージョンを重ねています(iPhone 4にはiOS 4が搭載)。iPhone 3G以降はOSのバージョンアップができるようになり、最新版のiOS4にも対応しています。 ■iPhone標準ブラウザー「Safari」 iPhoneには標準ブラウザーとして「Safari」が搭載されています。SafariはもともとアップルがMac OS X向けに開発したWebブラウザーで、Windows版も無償で配布されています。基本的な表示能力はiPhone版もデスクトップ版もほぼ同じですが、iPhone版にはいくつの制限があるため、「Mobile Safari」などと呼んで区別することもあります。 Sa
Google Maps API Premier Same great maps plus a SLA, support, and control over ads Google Maps Javascript API V3 Reference Note: The Google Maps Javascript API Version 3 documented within these pages is now the official Javascript API. Version 2 of this API has been officially deprecated as per our deprecation policy. We encourage you to migrate your code to this newly updated and enhanced version!
書籍でみかけたりはしてた。 が、頭の中で整理できてない気がするので、すっきりしようと。 1. webkit上にHTMLを表示 WebView webView = new WebView(this); webView.loadData("<h1>まずはHTMLを表示</h1>", "text/html", "utf-8"); setContentView(webView); 2. javascriptも表示 String html = "<script type='text/javascript'>alert('jsですよー');</script>\n" + "<h1>まずはHTMLを表示</h1>"; WebView webView = new WebView(this); // JavaScriptを有効にする webView.getSettings().setJavaScriptEna
2つの地点間のルート案内をGoogle Maps上に表示させる方法です。経由地点を指定したり移動手段を指定することもできます。 GDirectionsクラスのオブジェクトを作成 2点間のルート案内 (loadメソッド) ルート案内のクリア (clearメソッド) 経由地点を指定してルート案内 (loadFromWaypointsメソッド) ロケールの指定 (localeプロパティ) 交通手段の指定 (travelModeプロパティ) 高速道路の使用の有無 (avoidHighwaysプロパティ) ポリライン及びステップの情報の取得 (getPolyline, getStepsプロパティ) イベント(load, addoverlay, error)の利用 全ルートの合計距離と合計時間を取得 (getDistance, getDuration, getSummaryHtmlメソッド) 各地点の
最後に紹介するのは、プログラムが実行されている位置の情報を取得することができるGeolocation APIだ。 Geolocation APIは、window.navigatorオブジェクトに新しく追加された「geolocation」プロパティにアクセスすることで利用できる。同プロパティを通じて呼び出せるメソッドは以下の3つしかない。 void getCurrentPosition(onSuccess, onError, options) … 現在位置を取得する int watchPosition(onSuccess, onError, options) … 位置情報を継続して監視する void clearWatch(watchId) … 位置情報の監視をやめる。引数はwatchPosition()を呼び出した際に得られる戻り値 getCurrentPosition()とwatchPos
Androidアプリのデータ保存方法の「プリファレンス」の使い方は? Androidアプリでは、いくつかのデータ保存方法が用意されていますが、最も簡単に扱える方法が、この「プリファレンス(Preference)」であると思います。 プリファレンスは、データを、キー名と値の組み合わせで保存する形をとります。 JavaでいうHashTableや、VB等のDictionaryのような感じですね。 データの量や保存したい形にもよりますが、数個の設定値を保持させておきたいぐらいであれば、このプリファレンスで事足りると思います。 それでは、サンプルコードとともに、プリファレンスの使い方をみていきましょう。 プリファレンスの保存方法 まずは保存時の処理の説明です。 保存するデータの型は、boolean型、float型、int型、long型、String型が使えます。 String型のデータを保存するとき
Android NDKでJNIを使用してアプリを高速化するには:Androidで動く携帯Javaアプリ作成入門(15)(1/3 ページ) Android NDK最新版でOpenGL ES 2.0をサポート 今回のテーマは「AndroidでJNI(Java Native Interface)を使用したアプリの高速化」です。C/C++やOpenGL ES(※)といったネイティブコードを使うツールなどのセットは、Android NDK(Native Development Kit)として提供されていて、JNIを使用した高速化に欠かせません。 ※OpenGL ES(OpenGL for Embedded Systems)OpenGL ES(OpenGL for Embedded Systems)携帯情報端末や組み込み向けのOpenGLのサブセット。OpenGLは、一般的に普及しているグラフィックス
ワーキンググループ/ハンズオンセッション Android Native Development Toolkit † Android Native Development Toolkit(NDK)の概要について解説します。 ↑ NDKとは † Android Native Development Tools(NDK)とは、Androidアプリケーション内にC言語やC++言語でモジュールを開発するためのツールキットです。 このツールキットは、Java言語用のAndroid SDKの補完的なモジュールを作成するために使用されます。このため、このSDKだけで、Androidのアプリケーションを作成することはできません。 アプリケーションのパッケージの中には、CPUアーキテクチャ毎のモジュールが含まれます。 NDKの用途と注意事項 † NDKは、通常、以下のような用途のために使用します。 既存のC言
Android携帯でブラウザから緯度経度情報を取得する方法です。 以前紹介したiPhone3.0のときと結構似ているので簡単にできます。 ページはこちら http://moeten.info/flex/20090713_androidGPS/test.php AndroidかiPhoneからアクセスしてね! こんな感じにブラウザのJavaScriptから簡単に取得できますよー。 簡単な説明 Androidではgearsを使用することによってGPS情報が扱えるようになります。 まずは、 gears_init.js をインクルード <script type="text/javascript" src="gears_init.js"></script> javascript部分 //緯度経度取得 function getGPS(){ var gps = google.gears.factory.
Google Maps JavaScript API V2 Reference Note: The Google Maps Javascript API Version 2 has been officially deprecated as of May 19, 2010. The V2 API will continue to work as per our deprecation policy, but we encourage you to migrate your code to version 3 of the Maps Javascript API. The Google Maps API is now integrated with the Google AJAX API loader, which creates a common namespace for loadin
連載第3回目の今回は、JavaScriptを利用した位置情報の取得方法を解説します。 Geolocation APIを利用する Geolocation APIとは、JavaScriptで位置情報を取得するAPIのことで、現在W3Cで仕様を策定中ではありますが、Firefox 3.5やGoogle Chrome 5、Safari 5など、いくつかのモダンなブラウザではすでに利用できます。 ただし、プラグインや設定などによって利用できるかどうかは変わってくるため、コードの中で利用可否の判定を行う場合は、ブラウザ名とバージョンで判定するのではなく、geolocationオブジェクトが利用可能かどうかで判定するのが一般的です。 位置情報を取り扱うgeolocationオブジェクトは、window.navigatorから取得することができます。window.navigator.geolocation
(2011/04/15 追記) 広義の HTML5、狭義の HTML5 について追記しました もりやまです。 最近比較的余裕があるので色々調べたりしているのですが、今回はブラウザの位置情報取得機能(Geolocation API)について調べてみました。 携帯端末では昔から結構使われていましたが、今回調べてみたところ、ほとんどのモダンブラウザが対応していることがわかりました。 というわけで、ここにまとめてみます。 Geolocation API とは ホストデバイスに関連する地理的な位置情報へのスクリプトによるアクセスを提供する API です。 ザックリ言ってしまうと、ブラウザ上で動く JavaScript から現在の位置情報を取得するためのAPI の仕様、ということです。 W3C で策定中の規格で、現在は最終草案(Last Call Working Draft)の段階です。 よく「HTM
Google Maps API Premier Same great maps plus a SLA, support, and control over ads The Google Maps Javascript API V3 - Basics Note: The Google Maps Javascript API Version 3 documented within these pages is now the official Javascript API. Version 2 of this API has been officially deprecated as per our deprecation policy. We encourage you to migrate your code to this newly updated and enhanced versi
Geolocation API と Google Map API を使って現在地の位置情報と住所を取得するサンプルを作成してみた。なお、動作確認は Firefox 3.6.3 を使用し、localhost の Web サーバーを使って実施した。 Geolocation API を使って現在地を取得するには navigator.geolocation.getCurrentPosition() に位置情報の取得結果を引数に取る関数を渡すだけと非常に簡単。 また、Googel Map API を使って位置情報から住所を取得(逆ジオコーディング)するには google.maps.ClientGeocoder の getLocations を使用する。 geo_sample.html <html> <head> <title>Geolocation API を使った現在地の取得サンプル</title
はじめまして。鈴木です。 今回から2回に分けて「クラウドなアプリケーションの構築」と題して Androidの特性を生かしたサーバーサイドアプリケーションの構築を 実践していこうと思います。 これまでのモバイルアプリケーション開発とは一線を画して なんでもできちゃうAndroidですが、Googleケータイというからには、 やっぱりクラウドなアプリケーションを開発したいですよね。 実際、これまでWEBブラウザに頼らざるを得なかったクラウドの世界も、 Androidケータイというフロントエンドを得ることで より強力なサーバサイドアプリケーションを提供することができます。 今回はその礎として、「WebView」を使ってサーバーサイドから アプリ上の画面制御をしてみたいと思います。 HTMLファイルの表示 WebViewは、HTMLファイルを表示するコンポーネントです。 この
プログラミングメモJavaJava-tipseclipseのインストール(Eclipse 3.7 Indigo編)JavaのリフレクションJavaとSQLiteデータベース参照型変数と値が未定義の変数とnullと空文字==とequalsメソッドの違い。イニシャライザ(initializer) ― staticイニシャライザとインスタンスイニシャライザネストした型-内部クラス(インナークラス)(1)ネストした型-内部クラス(インナークラス)(2)ネストした型-内部クラス(インナークラス)(3)-内部クラス,外部クラスへのアクセス匿名クラス(無名クラス)とイベントリスナー定数と初期化配列の初期化SAStrutseclipseにSAStrutsのプラグインをインストールチュートリアルのセットアップSAStrutsの新しいプロジェクトを作成する最初に起動されるアクションIndexActionクラス
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く