PCからコピーしたHTMLファイルを開くにはどうすればいいですか?
HTMLビューアであるデフォルトのアプリケーションで開いてみましたが、「Webページは利用できません」システムページが表示されます。 ブラウザが表示するURLは次のとおりです。
<コード> content://com.android.htmlfileprovider/mnt/sdcard/Documents/To%20Read.html?text/html
任意のアイデア?
ありがとう。
PCからコピーしたHTMLファイルを開くにはどうすればいいですか?
HTMLビューアであるデフォルトのアプリケーションで開いてみましたが、「Webページは利用できません」システムページが表示されます。 ブラウザが表示するURLは次のとおりです。
<コード> content://com.android.htmlfileprovider/mnt/sdcard/Documents/To%20Read.html?text/html
任意のアイデア?
ありがとう。
How can I open an HTML file I have copied from PC to SD Card of Phone?
I've tried opening it with the default application which is HTML Viewer but I get a "Web page not available" system page. The URL that the browser shows is:
content://com.android.htmlfileprovider/mnt/sdcard/Documents/To%20Read.html?text/html
Any ideas?
Thanks.
998877666544331
のURLを使用して、ブラウザをフォーマットのURLを指すようにする必要があります。たとえば、ブラウザを起動し、URL 9988776665444333
を入力して、私のSDカードのルートに保存したファイルを私のEVOでこれをしました。 P>
あるいは、私のファイルマネージャでは、「HTMLビューア」のHTMLファイルを開くことができます。これは豊富なものではありませんが、私のために画像をレンダリングするようには思われませんでした(ブラウザの方法はすべて正しくロードしました)。私のファイルマネージャは、ブラウザを使用してファイルを開くオプション、または他のブラウザのいずれか(FirefoxとOpera Mobile)を提供しません。
You should be able to point the browser at the file you want with a URL of the format file:///path/to/file.html
. For example, I just did this on my EVO with a file I saved to the root of my SD card as post.html
by launching the browser and entering the URL file:///sdcard/post.html
.
Alternatively, my file manager lets me open an HTML file with "HTML Viewer". This is not as feature-rich, though, and didn't seem to render images for me (whereas the browser way loaded everything properly). My file manager does not give me the option to open the file with the browser, or either of the other browsers I have (Firefox and Opera Mobile).
<コード> file:///sdcard/post.html4
オペラモバイルで動作します。
Just type file://localhost/
It works in Opera Mobile.
ファイルが<コード> /mnt/sdcard/test/file.html にある場合は、ブラウザから次のものを使用してアクセスできます。
<コード> file:///sdcard/post.html6
注:
ファイルの場所には、URLが%20で置き換えられた場合でも、<コード> 99887665544337 が機能しないスペースを含めるべきではありません。
追加的に、URLを書くのは役に立ちます!
If your file is at /mnt/sdcard/test/file.html
you can access it through the browser from using:
content://com.android.htmlfileprovider/sdcard/test/file.html
Note:
Your file location should not contain any spaces i.e. /mnt/sdcard/test location/file.html
doesn't work, even if the URL replaces it with %20.
Additionally, bookmarking the URL helps!
いくつかの人々は、ファイル名にスペースを持っている問題にほとんどありません。私は明らかにします。
AndroidはLinuxに基づいており、したがってPOSIXファイルシステムを使用します。これは、スペースを持つファイル名が問題を引き起こすことを意味します。ファイルまたはディレクトリを作成している場合はスペースを使用しないでください。それらを残したり、ピリオド( 998877666544330
)、ダッシュ( 99887766654331
)、またはアンダースコア(<コード> 99887766664332
質問に例を使う:
<コード> content://com.android.htmlfileprovider/mnt/sdcard/Documents/To%20Read.html?text/html
これで:
<コード> content://com.android.htmlfileprovider/mnt/sdcard/Documents/"To Read.html"?text/html
そうでない場合は単にファイルを開くと、文字列全体を引用することができます。このように:
<コード> "/mnt/sdcard/Documents/To Read.html"
問題を引き起こす可能性があるスペースに加えて、POSIXシステムはWindowsでは許可されていないファイル名の文字を許可します。システム間でファイルをコピーするときに問題を回避するには、WindowsでもWindowsでも許可されていますが、ファイル名に次の文字を含めないでください。 99887665544336
さらに問題を回避するために、ファイル名に一貫した種類の資本化スタイルを使用しています。 POSIXシステムでは大文字と小文字が区別されます。つまり、ファイル名は大文字と小文字が区別されます。つまり、file.txt、file.txt、file.txt、george.txtなどは、POSIXシステム上のすべての異なるファイルですが、Windows上の同じファイルと見なされます。
A few people allude to the issue of having spaces in the file name. I will clarify.
Android is based on Linux, and therefore uses a posix file system. This means that file names with spaces cause issues. Don't use spaces if you are creating a file or directory; leave them out or use periods (.
), dashes (-
), or underscores (_
). To load an existing file with space in it, you must quote the file.
Using the example from the question replace:
content://com.android.htmlfileprovider/mnt/sdcard/Documents/To%20Read.html?text/html
with this:
content://com.android.htmlfileprovider/mnt/sdcard/Documents/"To Read.html"?text/html
If you are otherwise simply opening a file, you may quote the whole string. Like this:
"/mnt/sdcard/Documents/To Read.html"
In addition to spaces which can cause problems, posix systems permit characters in file names that are not permitted in Windows. To avoid issues when copying files between systems, even though some are still permitted on Windows as well, do not include the following characters in file names: / \ ? * : % " < > | + # '
To avoid further problems use a consistent style of capitalization in file names. Note that posix systems are case sensitive, which means file names are case sensitive. This means that file.txt, FILE.TXT, file.TXT, File.txt, georgE.txt, etc. are all different files on a posix system, while they are considered the same file on Windows.
Verizonからの私のドロイド4(IC)でブラウザのアドレスボックスを入手してタイプ:
<事前> <コード> /mnt/sdcard-ext/my_page/index.htmlそれをブックマークとして設定します。私はChromeを使います、私が私のPCのようなホームページとしてそれを設定できるかどうかわからない。これはLotsa Pixのフォルダ内の私のSDカードにあります。
ギャラリーを散らすのからPIXを隠すには、 9988776544338
の前にディレクトリに期限切れにします。ロケーションエクスプローラまたは端末エミュレータを使用して場所を確認します。
<コード> mnt/sdcard/ はデバイスの内部ストレージを指すことがあります。
On my Droid 4 (ICS) from VERIZON I get the browser's address box and type:
/mnt/sdcard-ext/my_page/index.html
Then set it as a bookmark. I use Chrome, not sure if I can set it as a home page like on my PC. This is on my SD card in a folder with lotsa pix.
To hide the pix from cluttering up your gallery, give the directory a period in front of it like /.my_page/
. Use root explorer or a terminal emulator to check the location.
I think mnt/sdcard/
may point to device internal storage.
ここからAndroidアプリをダウンロードします -
Download the Android App from here - Google Play Store - OpenHTML
付録IIN ".html"でファイルの名前を変更するだけです。 たとえば、ファイル名が "abcd"の場合は、abcd.hmtlに名前を変更します。これは私のためにAndroid 2.3で作業します。
Just rename the file by appendinh ".html" to it. For example, if the file name is "abcd", rename it to abcd.hmtl. This works for me in android 2.3.
© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有