Probably the easiest way to do your mobile reading is by finding sites that have free books sitting open on their online pages. Better still is when these sites have a dedicated mobile version that'll reprint the page so it's most easily read from a phone browser without you having to scroll across the page all the time. A good place to start is the Google Books project.
Those in the US can get free access to over 1. Outside the States, the number drops to something like half a million volumes depending upon rights agreements. However you look at it, though, that's still quite a few to get through.
All you need to do is open your phone's browser and navigate to books. Another option is the site tx2ph. It's a little more on the rough and ready side, but it works, and will deliver all sorts of free titles direct to your phone's screen. You need to create an account but that's free as well, so don't worry. The site will try to recognise your mobile make and model and match page width accordingly but, if it doesn't have yours on file, then you can fine tune and manually give it the right pixel ratio.
Also, if you're looking for a particular title that the site doesn't have, send them the link, if you can find it on Project Gutenberg , and they might just add it to the tx2ph.
Authorama is another good place to find books in HTML. Sadly, as with a lot of HTML books, there's no actual mobile version of this site as yet. However, unlike other good free book sites such as Bibliomania and Bookrix , the design is such that it's quite user-friendly and simple enough to view on a decent sized smartphone, so well worth a visit.
The same is true for the website of contemporary American author, Johnathan Lethem , where you can find a good collection of short reads that are just about easy enough to make out on a big mobile browser. Until all the good open ebook sites of the world get themselves mobile versions, the majority of the e-literature out there is going to have to be downloaded as actual files to put on your handset. Some of this stuff you can download directly over the air to your handset and some of it you'll need to sideload onto your computer first and then put it onto your phone, and in most cases, you'll need to have an application of sorts on your mobile to be able to read them.
Naturally, this is going to be easier if you have an app-type phone Android, iPhone, WinMob etc but there are some good sites and software out there that will work for everyone.
Any Java-based device can read these downloads which pretty much covers all standard handsets out there to quite basic feature phone levels. Here are some of the best. Manybooks is another good site with over 26, free titles on offer. The main pages have all the usual file types and there's also a mobile version of the site, MNYBKS , with JAR files to download direct as well as RTFs that you can open if you have any word processing software installed on your handset too.
What the microsite also features are Mobipocket files, but for which you'll need to download some reading software. As of late, you can also get it for both Android and iPhone too. Without these cookies, we won't know if you have any performance-related issues that we may be able to address. These cookies help us understand user behavior within our services. For example, they let us know which features and sections are most popular.
This information helps us design a better experience for all users. To learn more about cookies, please see our Cookie policy. To learn more about how we use and protect your data, please see our Privacy policy. Skip to search Skip to help categories Skip to footer. Also note that I'm throwing any exceptions that occur rather than handling them. I don't recommend this for real world programming, but it works okay for my unit testing needs today.
I haven't read through the Javadocs yet to know if all of those close statements at the end are necessary.
I'll try to get back to that later. Also, if I didn't stress it properly earlier, with this approach the resource file that you're trying to read from must be in the same directory in the jar file as this class. This is inferred by the getClass.
Also, I haven't looked at it in a while, but I think you can just call the is. Here's one more example of how to do this, this time using some code from a current Scala project:. Although the code shown is Scala, I think you can see that you can use this approach to read the file as a java.
0コメント