Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Androidアプリで作ったファイルがPCで見えない。(OS 3.xで)
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
  8 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
 
crazycircuit7  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 1:45 am
From: crazycircuit7 <crazycircu...@gmail.com>
Date: Wed, 22 Feb 2012 22:45:18 -0800 (PST)
Local: Thurs, Feb 23 2012 1:45 am
Subject: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
PCにファイルをUSB経由で渡したくて、アプリからzip保存しているのですがPCから見えません。
/mnt/sdcard/Export/0000.zip
(txtファイルも同じだったのでファイルの種類は関係なさそうです。)
アストロファイルマネージャでリネームするとPCから見えます。
ファイルパーミッションを疑いましたが、アストロファイルマネージャでリネームしてもパーミッションは変化なかったです。

索引を更新する等必要な操作があるのでしょうか?
ご存知の方いらっしゃいましたら情報お願い致します。

環境
AndroidOS 3.2   XOOM         PCからファイルが見えない。
AndroidOS 2.3.3 Xperia X10i  問題なし


 
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.
tkc pub  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 2:39 am
From: tkc pub <tkc....@gmail.com>
Date: Thu, 23 Feb 2012 16:39:35 +0900
Local: Thurs, Feb 23 2012 2:39 am
Subject: Re: [android-group-japan: 16953] Androidアプリで作ったファイルがPCで見えない。(OS3.xで)

MTPとかそのあたりの接続方式の問題ではないでしょうか?
XoomはUSBファイルシステムとしては
マウントできなかったと記憶しています。
 2012/02/23 15:45 "crazycircuit7" <crazycircu...@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.
crazycircuit7  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 3:00 am
From: crazycircuit7 <crazycircu...@gmail.com>
Date: Thu, 23 Feb 2012 00:00:52 -0800 (PST)
Local: Thurs, Feb 23 2012 3:00 am
Subject: Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
返信ありがとうございます。
はい、XOOMはMTPで接続しか選択肢がないようです。
ほかの機種はMSCとMTPが選べる機種もあるようです。OptimusPadは確か選べたとおもいます。
http://pc.nikkeibp.co.jp/article/column/20110427/1031549/

android.mtpパッケージを発見してdocを見ましたが、空き容量とか取得するもので更新方法はよくわかりませんでした。
http://developer.android.com/reference/android/mtp/package-summary.html

普通にファイルを追加してMTPのindex的な物が更新されないようです。
もう少し調べてみます。

MTPの正しい作法がわかるページなどご存知ないでしょうか?


 
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.
tkc pub  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 3:37 am
From: tkc pub <tkc....@gmail.com>
Date: Thu, 23 Feb 2012 17:37:16 +0900
Local: Thurs, Feb 23 2012 3:37 am
Subject: Re: [android-group-japan: 16956] Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)

MTPはメディアトランスファープロトコルといって
mp3などをやり取りするためにあります。
zipの拡張子が認識できない場合
拡張子をmp3に変えると見えたりしませんでしょうか?
 2012/02/23 17:02 "crazycircuit7" <crazycircu...@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.
crazycircuit7  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 4:02 am
From: crazycircuit7 <crazycircu...@gmail.com>
Date: Thu, 23 Feb 2012 01:02:38 -0800 (PST)
Local: Thurs, Feb 23 2012 4:02 am
Subject: Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
自己解決できました。
2.xも3.xも大丈夫です。
対象パスを限定した方が早いかもしれませんが、SD全体でも十分早いようなのでそのままにします。

http://stackoverflow.com/questions/3300137/how-can-i-refresh-mediasto...

        /**
         * (MTP接続の場合)ファイルリスト更新の為、SDカード内をスキャンする。
         */
        public void rescanSdcard(){
                sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
                                Uri.parse("file://" +
Environment.getExternalStorageDirectory())));
        }


 
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.
Nikolay Elenkov  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 4:05 am
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Thu, 23 Feb 2012 18:05:34 +0900
Local: Thurs, Feb 23 2012 4:05 am
Subject: Re: [android-group-japan: 16956] Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
2012/2/23 crazycircuit7 <crazycircu...@gmail.com>:

> 返信ありがとうございます。
> はい、XOOMはMTPで接続しか選択肢がないようです。
> ほかの機種はMSCとMTPが選べる機種もあるようです。OptimusPadは確か選べたとおもいます。
> http://pc.nikkeibp.co.jp/article/column/20110427/1031549/

> android.mtpパッケージを発見してdocを見ましたが、空き容量とか取得するもので更新方法はよくわかりませんでした。
> http://developer.android.com/reference/android/mtp/package-summary.html

> 普通にファイルを追加してMTPのindex的な物が更新されないようです。
> もう少し調べてみます。

Indexを更新するには、MediaScannerConnection.scanFile()を呼び出す
必要があります。External storageのサンプルコードは参考になる
と思います。

http://developer.android.com/resources/samples/ApiDemos/src/com/examp...


 
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.
crazycircuit7  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 4:20 am
From: crazycircuit7 <crazycircu...@gmail.com>
Date: Thu, 23 Feb 2012 01:20:47 -0800 (PST)
Local: Thurs, Feb 23 2012 4:20 am
Subject: Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
>nikolayさん
Intentが使えない時は、
「MediaScannerConnection.scanFile」も使えると覚えておきます。
情報ありがとうございます!

 
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.
Nikolay Elenkov  
View profile   Translate to Translated (View Original)
 More options Feb 23 2012, 4:47 am
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Thu, 23 Feb 2012 18:47:23 +0900
Local: Thurs, Feb 23 2012 4:47 am
Subject: Re: [android-group-japan: 16962] Re: Androidアプリで作ったファイルがPCで見えない。(OS3.xで)
2012/2/23 crazycircuit7 <crazycircu...@gmail.com>:

> >nikolayさん
> Intentが使えない時は、
> 「MediaScannerConnection.scanFile」も使えると覚えておきます。
> 情報ありがとうございます!

そのIntentは、メディアがマウントされたのを示しているので、おそらく、
そんな使い方は想定していないでしょう。システムのMediaScannerReceiver
がそのブロードキャストを拾って、代わりにスキャンしてくれているので、
結果的に同じになります。ただ、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.
End of messages
« Back to Discussions « Newer topic     Older topic »