Android OS(技術者向け)

全93件中81~93件表示
  • アンドロイドOS提供のグーグル社がC的言語を

    使わなくてもいいようにした理由はなんかあるのでしょうか? 素人にちがいので、ご存じの方はなるべく簡単におしえていただくとありがたく存じます。 何卒よろしくお願いします。

  • Android開発(Listview)について

    Androidアプリ開発における listviewについて質問させてください。 以下で、東京都,神奈川県,千葉県,埼玉県,茨城県,栃木県,群馬県と表示されています。 東京をクリックしたら、新宿、上野、秋葉原 千葉をクリックしたら、千葉、市川、船橋 といったように、さらに地域を絞っていきたいと考えています。 どのような方法で、実現できるか アドバイスして頂けると助かります。 ■searchActivity.java import android.app.Activity; import android.os.Bundle; import android.widget.*; public class searchActivity extends Activity { private ListView list; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); String[] arr = {"東京都","神奈川県","千葉県","埼玉県","茨城県","栃木県","群馬県"}; // コンポーネントの設定 list = (ListView)this.findViewById(R.id.list); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list, arr); list.setAdapter(adapter); } } ■main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="20sp" android:background="#ffffff" > <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> ■list.xml <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="20sp" android:paddingTop="50.0px" android:paddingLeft="20.0px" android:background="#ffffff" android:textColor="#000000" /> 以上、宜しくお願いいたします。

  • Androidコンパイル時のエラーについて

    Androidの開発中に下記エラーが出ます。 対処の解る方がおりましたらば教えていただけますでしょう 宜しくお願いいたします。 詳細内容及びソース、XML エラー 2011-05-11 16:09:27 - BMICalculator2] res\layout\main.out.xml:0: Originally defined here. [2011-05-11 16:09:27 - BMICalculator2] C:\workspace\BMICalculator2\res\values\strings.out.xml:1: エラー: Error parsing XML: no element found [2011-05-11 16:09:27 - BMICalculator2] C:\workspace\BMICalculator2\res\layout\main.out.xml:1: エラー: Error parsing XML: no element found [2011-05-11 16:09:27 - BMICalculator2] C:\workspace\BMICalculator2\res\layout\main.xml:38: エラー: エラー: No resource found that matches the given name (at 'id' with value '@id+/button_calculate'). [2011-05-11 16:09:28 - BMICalculator2] res\layout\main.xml:0: エラー: Resource entry main is already defined. [2011-05-11 16:09:28 - BMICalculator2] res\layout\main.out.xml:0: Originally defined here. [2011-05-11 16:09:28 - BMICalculator2] C:\workspace\BMICalculator2\res\values\strings.out.xml:1: エラー: Error parsing XML: no element found [2011-05-11 16:09:28 - BMICalculator2] C:\workspace\BMICalculator2\res\layout\main.out.xml:1: エラー: Error parsing XML: no element found [2011-05-11 16:09:28 - BMICalculator2] C:\workspace\BMICalculator2\res\layout\main.xml:38: エラー: エラー: No resource found that matches the given name (at 'id' with value '@id+/button_calculate'). ソース package com.mamezou.android.bmi.alc; import android.app.Activity; import android.os.Bundle; public class BMICalculatorActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } string.XML <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello.Wopld.BMICalculatorActivity</string> <string name="app_name">BMI Calculator</string> <string name="label_description">BMIを計算します</string> <string name="label_height">身長(cm)</string> <string name="label_weight">体重(kg)</string> <string name="button_calculate">計算</string> </resources> main.XML <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/label_description" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/label_height" /> <EditText android:id="@+id/text_height" android:layout_width="fill_parent" android:layout_height="wrap_content" android:numeric="integer" android:maxLength="3" android:text="160" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/label_weight" /> <EditText android:id="@+id/text_weight" android:layout_width="fill_parent" android:layout_height="wrap_content" android:numeric="integer" android:maxLength="3" android:text="50" /> <Button android:id="@+id/button_calculate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_calculate" /> </LinearLayout>

  • Androidアプリの開発について

    アンドロイドアプリ開発の勉強をしておりますが 全くの素人のためご教授願います。 以下で、氏名1を選択すると、勤務表が表示されるのですが スクロールされずに悩んでおります。 自分なりに調べてみると XMLでScrollViewの中にTextViewを入れれば スクロールされるようなのですが、うまくスクロールされません。 どのように記述すれば、スクロールされるのでしょうか? 以上、宜しくお願いいたします。 package test.kintai; /**import java.nio.charset.Charset; */ import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.widget.TextView; public class kintai extends Activity implements DialogInterface.OnClickListener{ /** Called when the activity is first created. */ public AlertDialog _alertDialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } public void onResume(){ super.onResume(); CharSequence[] _char = {"氏名1","氏名2","氏名3","氏名4","氏名5","氏名6","氏名7"}; _alertDialog = new AlertDialog.Builder(this) .setTitle("勤務表") .setCancelable(false) .setItems(_char, this).show(); } @Override public void onClick(DialogInterface dialog, int which) { setContentView(R.layout.main); if(_alertDialog == dialog){ TextView display = new TextView(this); switch(which){ case 0: display.setText("氏名1\n" + "\n" + "2011年4月\n" + "\n" + " 1日(日) 休\n" + " 2日(月) 夜勤\n" + " 3日(火) 休\n" + " 4日(水) 休\n" + " 5日(木) 休\n" + " 6日(金) 夜勤\n" + " 7日(土) 休\n" + " 8日(日) 休\n" + " 9日(月) 日勤\n" + "10日(火) 日勤\n" + "11日(水) 日勤\n" + "12日(木) 日勤\n" + "13日(金) 夜勤\n" + "14日(土) 休\n" + "15日(日) 休\n" + "16日(月) 日勤\n" + "17日(火) 日勤\n" + "18日(水) 日勤\n" + "19日(木) 日勤\n" + "20日(金) 夜勤\n" + "21日(土) 休\n" + "22日(日) 休\n" + "23日(月) 日勤\n" + "24日(火) 日勤\n" + "25日(水) 日勤\n" + "26日(木) 日勤\n" + "27日(金) 夜勤\n" + "28日(土) 休\n" + "29日(日) 休\n" + "30日(月) 日勤\n" + "31日(火) 日勤\n"); break; case 1: display.setText("氏名2"); break; case 2: display.setText("氏名3"); break; case 3: display.setText("氏名4"); break; case 4: display.setText("氏名5"); break; case 5: display.setText("氏名6"); break; case 6: display.setText("氏名7"); break; } setContentView(display); } } } --------------- ■main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/display" android:layout_width="fill_parent" android:layout_height="wrap_content"/> </ScrollView> </LinearLayout>

  • andopoid開発HelloWorld

    andopoidをインストールしてHelloWorldを表示させようとしました。 emulatorは起動できましたが、待っていてもHelloWorldが実行されません。 他のサイトで結構時間がかかると書いてあったので、一時間放置していてもHelloWorldは 実行されず、menuボタンや他のボタンも実行できません。 下記がソースになりますが、何か足りない部分とかありますでしょうか? スイマセン、詳しい方教えて下さい。 package com.android.example; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Hello, World"); setContentView(tv); } }

  • 何故AndroidOSを使うのですか?

    以下を読んでも、 http://www.act21.co.jp/shibata/report.html なぜ、日本の携帯メーカーはこぞって、AndroidOSを使用するのですか? 他にもOSはいっぱいあるし、作るという選択肢もあるはず。。。 そんなに、Googleの作ったOSを使うことの利点はなんですか?

  • ANDROID OSがモバイル向きな理由

    最近よく聞くANDOROIDですが、特徴として消費電力が少ないことが挙げられるようです。 LINUXが土台にあることは知っていますが、電力についてはどうして低消費電力になるのでしょうか。 通常のOSは高負荷時とアイドル状態、そしてサスペンド等ほぼ停止している状態があるかと思います。 それと比べると、使用していない状態の電力消費がアイドルよりもサスペンドに近いのでしょうか、それともアイドル時の電力消費自体が少ないのでしょうか。 バックグラウンドジョブの処理が少なければ消費は少ない気がしますが、それだけでは無い気がします。 最近のCPUが状態に合わせて電圧などの変更のも知っていますが、それの管理が違うのでしょうか。 それとも、ハードウェアに近いレイヤーでの制御を作り込んだりしているのでしょうか。 電力的なところでの特徴を教えていただくと共に、他のOSも同様に消費電力を抑える方法があれば教えてください。

  • androidでは何ができるのか。

    昨今のスマートフォンには各社android OSを搭載しています。 そして本日androidを搭載した自転車(pioneer開発)というのを youtube動画で見ました。 このようにスマートフォンに限らず、ほかの製品に対しても androidを搭載するようになっています。 ここで質問なのですが、androidを搭載することで何ができるように なるのでしょうか??それともwindowsなどと同じ、一OSにすぎないのでしょうか?? もしよろしければ(1)androidのメリットや(2)androidを仮に搭載した製品(androidプリンタとか) があった場合、どのようなものになるのかを、教えていただきたいです。

  • android-sdkのインストール

    こちらのサイトhttp://www.javadrive.jp/android/install/index3.html を参考にandroid sdkのインストールをしていますが上手くいきません。 どなたか教えてください。 android sdkはcドライブ直下に「android」フォルダを作り、その中に「android-sdk-windows」を入れました。その中の「tools」にパスを通せということだと思うのですが システム環境変数(S)の「Path」の「システム変数の編集」で「;c:¥android-sdk-windows¥tools」と入力して サイトで紹介されている通りコマンドプロントで「adb help」と入力しても 「’adb’は内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルとして認識されていません。」 とエラーが出ます。 「C:\Path」でも「;c:¥android-sdk-windows¥tools」は表示されません。 どうすればいいでしょうか? OSはXPでダウンロードしたのはandroid-sdk_r08-windows.zipです。 よろしくお願いします。

  • Android OS

    携帯やタブレットPCなどAndroid OSが採用されているようですが、 Android OSはSilverlightに対応されていますか?

  • いま Android OSが人気みたいです

    いま Android OSが人気みたいです x86にAndroid OS入れるって記事をみてDSiにはいらないものかなー?と考えました X86にAndroid OS 入れる記事 http://itpro.nikkeibp.co.jp/article/COLUMN/20090219/325052/ 実際DSiにいれられないものですかね?

  • android sdkについてのサンプルアプリ一つすらおぼつかない初心

    android sdkについてのサンプルアプリ一つすらおぼつかない初心者ですが 質問させていただきます ネットで調べて見つけたソースコードのHelloWorldを手打ちで入力してデバッグした上で実行したのですが エミュレータが Android_ という文字だけを表示してとまってしまいます 実行後エミュレータを閉じたときに出るログは [2010-11-02 10:48:36 - helloworld] ------------------------------ [2010-11-02 10:48:36 - helloworld] Android Launch! [2010-11-02 10:48:36 - helloworld] adb is running normally. [2010-11-02 10:48:36 - helloworld] Performing jp.android.helloworld.HelloWorld activity launch [2010-11-02 10:48:36 - helloworld] Automatic Target Mode: launching new emulator with compatible AVD 'test' [2010-11-02 10:48:36 - helloworld] Launching a new emulator with Virtual Device 'test' [2010-11-02 10:48:41 - helloworld] New emulator found: emulator-5554 [2010-11-02 10:48:41 - helloworld] Waiting for HOME ('android.process.acore') to be launched... [2010-11-02 10:49:32 - helloworld] emulator-5554 disconnected! Cancelling 'jp.android.helloworld.HelloWorld activity launch'! 使っている環境は Eclipse : Galileo Version: 3.5.1 Build id: I20090611-1540 Java Beans 製品バージョン: NetBeans IDE 6.9.1 (Build 201007282301) Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b17 システム: x86 上で動作する Windows XP バージョン 5.1; MS932; ja_JP (nb) ユーザーディレクトリ: C:\Documents and Settings\User\.netbeans\6.9 です 参考にしたページはこれです http://firespeed.org/diary2/read/read.php?diary=kenz-1096 どなたかご教授お願いします

  • Android(アンドロイド)アプリ開発時 OSやメーカーの互換性につ

    Android(アンドロイド)アプリ開発時 OSやメーカーの互換性について Android(アンドロイド)アプリの開発を進めるにあたり OSやメーカごとの互換性について教えてください。 自分が調べた限りでは OSはバージョンが異なると(1.6や2.1)使用できるAPIが異なるので 互換性はなく、例えば「Ver1.6で開発したものは、基本2.1など他のバージョンのOSでは動かない」と 認識してます。 このような認識でよろしいでしょうか? また特にお伺いしたい点として、メーカーごとにも差異の互換性はどうでしょうか。 例えばDocomoのエクスペリア(OS 1.6)に動作するアプリを開発した場合 同一バイナリのアプリでソフトバンクのIS01(OS 1.6)で動作するものなのでしょうか。 自分が調べた限りでは 「端末実機(メーカー)ごとの差異による、サスペンド、レジューム周りの起動に関わる処理の違いによる影響がある」 との事で、やはり同一バイナリで動作できないように認識してます。 このような認識でよろしいでしょうか? 繰り返しの質問ですが OS メーカー(端末実機)ごと こちらのアプリの互換性について、差異がどのようなものか 特定のOS、端末で開発したアプリが 他OS、他メーカーの端末で動作させようとした場合 どこがどのような差異があるものなのか、ご教授ください。 できましたら、その情報が記載されているようなソース情報も併せていただけると 非常に助かります。 どうぞよろしくお願いします。