Hot answers tagged

157

In Firefox or Chrome on Android it's possible to view source by prefixing the URL in the address bar with "view-source:", i.e. "view-source:http://google.com".


27

Look for an app called View Web Source in the market and install it. Then when browsing, open your menu and tap "share", in the list that pops up choose View Web Source.


20

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". ...


15

In chrome for mobile, you can save the opened web page as a PDF. To do that, you have to install the Google Cloud Print application to do this. Once you have installed it, first open a desired web page in the chrome. Then click on the menu icon and select on Print option. There you can select the Save As PDF option. Select the location and click on ...


9

You can save as PDF on Firefox too. Just go to menu -> page -> Save as PDF


6

The app mentioned in this answer hasn't been updated since 2009. You might want to try VT View Source.


5

Another tool that is useful for viewing source AND modifying them live, in Firebug/Web Inspector-like manner, is the weinre remote debugger.


4

If it's not available in the app settings, the functionality most likely simply isn't there. There are other clients you can use if it's important to you. If you want some tips for alternative apps, I suggest you look at The Best Alternative Android Apps to Manage All Your Email, or Google for a similar article.


3

IN chrome, there is remote debugging facility. If you install Chrone on your phone. If you connect your phone through usb to PC,you can view the Javascript modified source on your PC in a Chrome browser. See the end of http://eclipsesource.com/blogs/2012/08/14/debugging-javascript-on-android-and-ios/


3

SD Card Offline HTML Browser will show those saved files locally. Android Open In Browser states the issues, but does say Opera Bowser will work on some Samsung devices.


3

The storage limitation Extracted from the official documentation provided by the W3C: Web Storage: Editor's Draft 10 July 2012 - disk space: User agents should limit the total amount of space allowed for storage areas. ... A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used ...


3

Just type file://localhost/ It works in Opera Mobile.


3

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!


2

Use the touchqode app to see a nice code editor including syntax highlighting, a special keyboard and code recommendation.


2

Sure. First find a text editor that you like, then launch the editor and open the HTML file. Many editors will also show up as an option in the launch menu for HTML files if you open them from a file browser, so you may be able to just find your HTML file in your file browser and select your text editor when you open it. Edit: Per your comments, if you're ...


2

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 ...


2

What you're referring to as HTML5 is not that. DOM storage is not a feature of html. So lets address the questions now. Does android natively have good support for fully-functional HTML5 offline apps? There're several versions of android out there and thus each of the stock browsers implement a varying set of the different specifications. One way to ...


2

If this is for debugging (from your comment it looks like it is) something even better is installing a user agent switcher extension for Firefox or Chrome on your desktop. Change the user agent to Android and you get the mobile version of the site, but with all the source and debugging tools you're used to.


2

Create a new bookmark (bookmarklet) on Mobile Chrome with: Name: View Source (vs) URL: javascript:document.location='view-source:'+document.location; void(0); Now when on a page, tap the address field and start typing: vs. The bookmarklet should appear, click it and you are ready.


2

UC Browser: Apart from the "Save to PDF" addon there's another UC Browser Addon which is Save Page It allows to save a webpage as a complete HTML or a text file. Save as HTML for saving with images in the desired directory of your choice and transfer the saved .mht file to your computer for viewing it later. The default directory is UCDownloads folder. ...


1

If you are using a Opera browser type this in your address bar, make sure you erase the http and other stuff, then type: server:source in the address of the page which you opened.


1

Instead of making the folder hidden with a dot prefix, create an empty file inside the folder with the name ".nomedia". This will prevent image/gallery apps from indexing the folder.


1

Once you transfer files to your Nexus 7 use one of these apps to get to the files: Solid Explorer or ES File Explorer explained here: http://forums.androidcentral.com/google-nexus-7-tablet-2012/201344-how-view-files.html NEXT STEP: To View on the html file on your Nexus 7 use the HTML Viewer app. Would love a quicker solution, but this works!


1

As suggested by t0mm13b in his comment on your question, a shortcut on the desktop is the easiest way. This requires you to first open the page with your browser, and create a bookmark for it (you will see later why this step is required). As you stated not to be able to add the shortcut in the usual way, here comes an alternative approach: Some tablets ...


1

I don't know much about Eclipse. But for your goal, it all depends on how the external stylesheets are defined. If they are using full-qualified URLs (e.g. http://www.example.com/example.css), there's no way you get them working offline. If they are using a relative path (easiest: just their file name, residing in the same directory as the HTML file), you ...


1

you can capture the source to your shell or to a text file if you're using an emulator, which is very handy for development. To do this you'll need to install Android Developer Tools, which comes with adb. Fire up your emulator then from your OS's shell run the command: adb logcat browser:V *:S This will output anything from the browser app on your ...


1

Enhanced Email claims to support outgoing HTML emails.


1

The HTMLViewer mentioned does not like spaces in the file name. Rename the file with underscore or throw them out.


1

On my device (Samsung Galaxy S3 with Jelly Bean 4.1) I could change this by setting the "Size to retrieve emails" to the minimum (2kb here) on the account settings in the email app.



Only top voted, non community-wiki answers of a minimum length are eligible