Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Galaxy S の マイクロSDカードマウントについて質問です。
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
福井登志也  
View profile   Translate to Translated (View Original)
 More options Feb 17 2011, 2:48 pm
From: 福井登志也 <dx7...@gmail.com>
Date: Fri, 18 Feb 2011 04:48:20 +0900
Local: Thurs, Feb 17 2011 2:48 pm
Subject: Galaxy S の マイクロSDカードマウントについて質問です。

ちょるちょるドットコムの福井と申します。

Galaxy s をターゲットに開発をされている方に質問させて頂きます。

Galaxy S では、SDカードの パスとして、以下の二つが用意されているとのことらしいのですが、実際にはどうなんでしょうか?

内臓SDカード: /sdcard
外部マイクロSD: /sdcard/external_sd

先日、SDメモリカードの内容をサーチするアプリを作成、公開したのですが、目的のファイルが見つからないとのことで、どうやら目的のファイルはマイクロSDに 納められていたようです。
私の手元にはこの実機が無いものですので、ちょっと困っています。

しかし、この場合、/sdcard というパスを起点にしてサーチを行えば、マイクロSDカードがマウントされている限り、ファイルが見つかる気がします。

また、二つのSDをマウントする状況において、

Environment.getExternalStorageState()

というコードがどのように振舞うかも疑問です。

以上、どなたか教えていただけると幸いです。

福井 登志也 < fu...@choruchoru.com >

国東半島ちょるちょる村発 ソフトウェアの町工場
ちょるちょるドットコム   http://choruchoru.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
飯塚康至  
View profile   Translate to Translated (View Original)
 More options Feb 17 2011, 6:59 pm
From: 飯塚康至 <iiz...@acl-inc.co.jp>
Date: Fri, 18 Feb 2011 08:59:28 +0900
Local: Thurs, Feb 17 2011 6:59 pm
Subject: Re: [android-group-japan: 9429] Galaxy S の マイクロSDカードマウントについて質問です。
こんにちは、飯塚です。

Y.A.Mさんのブログにまとまっています。参考になるかと。
http://y-anz-m.blogspot.com/2010/08/android_31.html

2011年2月18日4:48 福井登志也 <dx7...@gmail.com>:

--
以上、宜しくお願いします。

飯塚 康至


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Toru KIKUCHI  
View profile   Translate to Translated (View Original)
 More options Feb 17 2011, 6:19 pm
From: Toru KIKUCHI <torukichi...@gmail.com>
Date: Fri, 18 Feb 2011 08:19:39 +0900
Local: Thurs, Feb 17 2011 6:19 pm
Subject: Re: [android-group-japan: 9429] Galaxy S の マイクロSDカードマウントについて質問です。

福井樣

初めまして、菊地と申します。

手元にGalaxySがあったのでご回答いたします。

おっしゃるとおり両方のフォルダが存在し、外部マイクロSDはexternal_sd です。
確認のため抜き挿ししてみましたが、抜けばアンマウントされ、中身は見れなくなりました。

以上、参考になれば幸いです。
2011/02/18 6:23 "福井登志也" <dx7...@gmail.com>:

> ちょるちょるドットコムの福井と申します。

> Galaxy s をターゲットに開発をされている方に質問させて頂きます。

> Galaxy S では、SDカードの パスとして、以下の二つが用意されているとのことらしいのですが、実際にはどうなんでしょうか?

> 内臓SDカード: /sdcard
> 外部マイクロSD: /sdcard/external_sd

先日、SDメモリカードの内容をサーチするアプリを作成、公開したのですが、目的のファイルが見つからないとのことで、どうやら目的のファイルはマイクロSDに 納められていたようです。


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
福井登志也  
View profile   Translate to Translated (View Original)
 More options Feb 19 2011, 1:30 pm
From: 福井登志也 <dx7...@gmail.com>
Date: Sun, 20 Feb 2011 03:30:48 +0900
Local: Sat, Feb 19 2011 1:30 pm
Subject: Re: [android-group-japan: 9459] Galaxy S の マイクロSDカードマウントについて質問です。

菊地様

福井です。

貴重な情報、ありがとうございます。 大変、参考になりました。

恐縮ですが、更に突っ込んだ内容を申し上げますと、

私の所有する XPERIA は、一つのボリュームしかないので、

Environment.getExternalStorageDirectory().toString();

を実行すると、文字列 "/sdcard" を返してくれるのですが、Garaxy S
の場合はどうなのかが気になるところです。(おそらく、ここはXPERIAと同様に 内部 SDカードのマウントポイントを返してくれると思っていますが。)

また、実機をPCにUSB接続して、SDメモリの内容をPCで閲覧している時の実機側から見たSDメモリの状態がGaraxy S
だとどうなるのかを知りたいのです。

これを取得するためのAPI は、
Environment.getExternalStorageState() なのですが、

XPERIAの場合は、以下を返します。

・PCとの接続時(実機をUSBマウント) → Environment.MEDIA_UNMOUNTED
・PCから実機を切り離したとき → Environment.MEDIA_MOUNTED

と、いうワケでおそらく、複数のボリュームを持つ Garaxy S の場合は

Environment.getExternalStorageState() で、

内部SDカードをマウントしているかどうかは判断できても、外部マイクロSDカードのマウント状態は分らないのではないかと思っています。

多分、 /sdcard/external_sd の下に ファイルやフォルダが無くなったら microSD
をアンマウントしたと判断するしかないのかと...。

きっと想像ではこんな感じだと思っています。

実機が無いってのは困ったモンです。 それでも、ケータイアプリを書く場合に比べたらラクになったと思いますが...(^-^;)

// ちょるちょるドットコム 福井 登志也

2011年2月18日8:19 Toru KIKUCHI <torukichi...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yusuke Hirano  
View profile   Translate to Translated (View Original)
 More options Feb 20 2011, 8:40 am
From: Yusuke Hirano <u-s...@tenshodo.org>
Date: Sun, 20 Feb 2011 22:40:37 +0900
Local: Sun, Feb 20 2011 8:40 am
Subject: Re: [android-group-japan: 9463] Galaxy S の マイクロSDカードマウントについて質問です。
福井様

平野@u_s_kです。
疑問の解決になるかどうかわかりませんが、似たような事が私も気になり、
外部メモリの取り扱いに関してしらべてみました。

http://www.tenshodo.org/tdiary/?date=20101211#p02

GalaxySの場合、内部メモリのパスが返されるようなので、なかなか面倒そうです。

2011年2月20日3:30 福井登志也 <dx7...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
福井登志也  
View profile   Translate to Translated (View Original)
 More options Feb 20 2011, 9:54 am
From: 福井登志也 <dx7...@gmail.com>
Date: Sun, 20 Feb 2011 23:54:18 +0900
Local: Sun, Feb 20 2011 9:54 am
Subject: Re: [android-group-japan: 9489] Galaxy S の マイクロSDカードマウントについて質問です。

u_s_k 平野様

福井@ちょるちょるドットコムです。

ブログ、拝読させて頂きました。 大変参考になり、なんとなく状況も分ってきました。

どうやら、Nexsus One は 内部フラッシュメモリと SDカードメモリは別物として扱ってるみたいですね。

Xperia ユーザーの私としては、こちらも知らない事実でした。 正直、驚いています。

で、Xperia と、Garaxy S の場合は、もともと内部メモリとして、SDカードメモリを使用していて、デバイスをPCから切り離した通常状態で

MEDIA_MOUNTED = true

 となるのかと思います。 (Nexsus One は内臓フラッシュが SDではないので、 false なのかと。)

ブログの結論の通り、Garaxy S ではやはり、外部 microSD カードメモリのマウント状態もパスも返す関数も存在しないみたいですね。

尚、Environment.getExternalStorageDirectory().getPath()

で、返すパスも

Xperia : /sdcard
Galaxy S : /mnt/sdcard/

と、違いがあるみたいですね。 これも知りませんでした。

本当に、色々な情報、ありがとうございました。 感謝感謝です!!

// ちょるちょるドットコム 福井登志也

2011年2月20日22:40 Yusuke Hirano <u-s...@tenshodo.org>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »