How to Create a Java FileFilter with a Picture Guide
Java is a programming language that is used to code software for many devices, including Android. It’s criticized by many, but Java is still widely used, mostly because its ability to run properly across many OSes as Windows, Linux, and Mac OS. Quite a few tools available on XDA are written in Java, including the Sony-specific Flashtool application, CASUAL, and so on.
Here at XDA, we’ve already presented a couple of applications, guides, and tutorials for Java. You may have already noticed that Java uses classes to handle various tasks. One such class, FileFilter, was recently presented in the form of a picture guide by XDA Senior Member Beatsleigher. The guide shows you how to write a custom class from scratch, so it’s pretty nice for all beginning programmers to understand the language better.
FileFilter can be used to display only a given file extension in an open window. So for example, a user can select .apk or .mp3 files only, and the rest won’t be visible. If you are working on your first Java project and it opens different file types, this guide will probably be very helpful.
You can find all needed resources in the guide thread.
Want something on the XDA Portal? Send us a tip!
Most manufacturers have moments of greatness and moments of decadence, and in the past few years we've some of our favorite companies' tables turned. Some are stagnating, some are struggling, some lack direction. Despite this, we often hold them dear to our hearts. Many of them could use a hand, be it with design, marketing, or other tasks. If you could help out an OEM and take it back to its golden days, which one would it be?
If you purchase phones from a carrier, you may be no stranger to the difficulties involved in rooting and installing a custom rom, recovery and kernel on such a carrier locked device. Add to this the extra layer of security that Samsung adds in the form of the Knox counter on its devices, and one can only imagine the roadblocks for enthusiasts who want to play around with their device without losing warranty in the process. It's a slippery slope...
The HTC M9 Developer Edition has received Android 5.1. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of IonVR and be sure to check out the article talking about the OnePlus Cardboard price (Hint, it's free). That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK released an...