Posts Tagged ‘Java’

What Is Spring Framework?

WHAT IS SPRING FRAMEWORK? Spring Framework is an application container for Java that supplies many useful features, such as Inversion of Control, Dependency Injection, abstract data access, transaction management, and more. It was conceived in 2002 in response to industry complaints that the Java EE specification was sorely lacking and very difficult to use. Its […]

Tags:

Java Interviews – What is the difference between the Comparable and Comparator interfaces?

Sorting Lists A common operation on collections—lists in particular—is to rearrange the list into some kind of sorted order. Lists are often sorted using natural ordering, such as sorting numbers from lowest to highest or sorting characters into alphabetical order. However, you may have different requirements for your sorting. Java provides two interfaces for helping […]

Tags:

Are your coding habits in the norm or are you a conventions rebel?

Here’s a fun little analysis of the popularity of specific coding conventions like: spaces vs tabs where are commas and so on for a few popular languages: JavaScript, Java, Python, and Scala. It’s based on analysis of code committed in GitHub. Unfortunately, no, there are a lot of languages that could be covered that aren’t […]

Tags:

Sending SMS Messages Programmatically in Your Android Application

Recipe 5.2 Sending SMS Messages Programmatically in Your Android Application Android Versions Level 4 and above Permissions android.permission.SEND_SMS Source Code to Download from Wrox.com SendSMS.zip In some situations you might want to programmatically send SMS messages in your Android application. For example, your application might monitor the current location of a user and automatically send […]

Tags:

8 Steps to Solving Coding Problems in Programming Interviews

  It doesn’t matter what language the job requires when you are on a programming interview. Whether you’ll be working in Java, C#, C++, ASP.NET, Python, or any other language, when you are on the interview and you are asked to write code to solve an interview question, the first step is the same: when […]

Tags:

Wrox 24-Hour Trainer Videos Now in Safari

In addition to the 247 Wrox books that Safari now has in the Safari Online Books subscription, Safari has also now added the videos to go with 12 of our 24-Hour Trainer books. So, if you have a Safari library subscription, you should now be able to read these books as well as watch the […]

Tags:

Creating Android Apps that Send and Receive SMS Messages and Send Email

Once your basic Android application is up and running, the next interesting thing you can add to it is the capability to communicate with the outside world. You may want your application to send an SMS message to another phone when an event happens (such as when you reach a particular geographical location), or you […]

Tags:

Using Sony Ericsson’s Project Capuchin Platform Services API in Flash Lite

The Project Capuchin Platform Services API library, which is referenced in this chapter, can be found at the Sony Ericsson Developers website at http://developer.sonyericsson.com. There you’ll also find demos of other mobile applications and tutorials and another cool community of developers. Project Capuchin Platform Services Overview “Project Capuchin is a bridging technology between Java ME […]

Tags:

Using the Android Camera

Excerpt from chapter 10: Accessing Android Hardware of the Wrox book Professional Android Application Development The popularity of digital cameras (particularly within phone handsets) has caused their prices to drop just as their size has shrunk dramatically. It’s now becoming difficult to even find a mobile phone without a camera, and Android devices are unlikely […]

Tags:

Why Use the Spring Framework?

Excerpt from Professional Java Development with the Spring Framework The Spring Framework is an open source application framework that aims to make J2EE development easier. Unlike single-tier frameworks, such as Struts or Hibernate, Spring aims to help structure whole applications in a consistent, productive manner, pulling together best-of-breed single-tier frameworks to create a coherent architecture. […]

Tags: