1.AndroidManifest.xmlに定義を追加します。 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="co.jp.millmo.android.sample" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <!-- デフォルトで記述する定義。この部分が消すと、メニューアイコンが消えます。その方が都合がいい時もありますが。 --> <activity android:label="@strin
暗黙的インテントがアプリ内部から発行されると、そのアクションに対応できるアクティビティをもつアプリが選択されて、それが一つの場合は起動、複数の場合は選択ダイアログが表示される。 ACTION_*の種類 ACTION_CALL ACTION_VIEW ACTION_SEND ACTION_SET_WALLPAPER ACTION_WEB_SEARCH など多数の種類がある。 http://developer.android.com/intl/ja/reference/android/content/Intent.html メーラを起動させる場合 Intent it = new Intent(); it.setAction(Intent.ACTION_SENDTO); it.setData(Uri.parse("mailto:hoge@hage.com")); it.putExtra(Inte
■アプリケーション概要 画面遷移にオブジェクトを渡す方法 Serializableインタフェースを実装することによって画面遷移でオブジェクトを渡すことが出来る ■手順 Intentの引数にオブジェクトを指定する オブジェクトはSerializableインタフェースを実装する必要がある putExtraにオブジェクトを指定する よばれ側はgetSerializableExtraメソッドでオブジェクトを取得する ■プロジェクト概要 プロジェクト名:SampleIntent メインActivity:SampleIntent サブActitvity:SampleIntentNext 渡すオブジェクト:StoreData ■ソース SampleIntent Intentの生成は第1引数に呼び出し元、第2引数に遷移先Activivtyを指定する putExtraは第1引数に任意のKey、第2引数に格納
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く