Home > Uncategorized > Java Web Album Creator

Java Web Album Creator

December 15th, 2009



Java On Mobile Phones By Danish Kanojia

Java on Mobile

Danish Kanojia


Introduction

Wireless communications is a huge field, encompassing everything from radio and television broadcasting through pagers, mobile phones, and satellite communications. The field of mobile phones is expanding very fast at the same time that standards and protocols are being adopted, used, updated, and sometimes discarded.

Platform and OS used by a mobile phone are as Follows:

  • Symbian is an operating system for cell phones. Later versions of Symbian do support J2ME. Actually Symbian is the company name, its a joint venture originally set up by Ericsson, Nokia and Psion to develop an industry standard operating system for mobile multimedia terminals. Symbian is currently owned by Ericsson (15.6%), Nokia (47.9%), Panasonic (10.5%), Samsung (4.5%), Siemens AG (8.4%), and Sony Ericsson (13.1%).
  • Windows Mobile is Microsoft’s mobile solution. This platform is aimed at relatively high-end devices and developers with Windows expertise. ex-imate
  • BREW is a C++ based framework that has support from Verizon. Developers for this platform can rely upon the phone carrier for billing and deployment. However, the certification process required for such support is an obstacle for small companies. IBM has built a JVM for BREW.
  • WAP is an excellent cell phone platform. Some form of it is supported on almost all modern phones; this is a strong selling point. The markup which sits on top of WAP 2.0 is XHTML. Due to that fact, there is very little caching or data validation that can be done on the client.
  • J2ME is a Java based platform for cell phones. It includes everything needed to solve the traffic congestion service problem set: a GUI, persistent data storage, and network access. It is supported by a majority of cell phone carriers in the US, has no licensing issues, and is well documented.

Overview of the Java 2 Platform

The Java 2 Platform comprises three elements:

  1. The Java programming language is syntactically similar to C++ but differs fundamentally. While C++ uses unsafe pointers and programmers are responsible for allocating and freeing memory, the Java programming language uses type safe object references, and unused memory is reclaimed automatically. Furthermore, the Java programming language eschews multiple inheritance (a likely source of confusion and ambiguity in C++) in favor of a cleaner construct, interfaces.
  2. A virtual machine forms the foundation of the Java platform. This architecture offers several attractive features: The virtual machine can be implemented to run a top a variety of operating systems and hardware, with binary-compatible Java applications operating consistently across many implementations. In addition, the virtual machine provides tight control of executed binaries, enabling safe execution of untrusted code.
  3. Finally, an extensive set of standard application programming interfaces(APIs) rounds out the Java platform. These support almost everything you might want your applications to do, from user interface through cryptography, from CORBA connectivity through internationalization.

Taken together, the Java language, Java virtual machine1, and Java APIs compose the Java platform. Moreover, the Java platform is designed to encompass a wide range of computer hardware, everything from smart cards through enterprise servers. Therefore, the Java platform comes in three flavors:

Java 2, Standard Edition (J2SE) is designed for desktop computers. Most often it runs on top of OS X, Linux, Solaris, or Microsoft Windows.

Java 2, Enterprise Edition (J2EE) is a comprehensive platform for multiuser,  enterprise-wide applications. It is based on J2SE and adds APIs for server-side computing.

Java 2, Micro Edition (J2ME) is a set of technologies and specifications developed for small devices like pagers, mobile phones, and set-top boxes. J2ME uses subsets of J2SE components, such as smaller virtual machines and leaner APIs.

Overview of J2ME

Unlike J2SE, J2ME is not a piece of software, nor is it a single specification. This difference can be confusing, even for developers who are already familiar with J2SE. Instead, J2ME is a platform, a collection of technologies and specifications that are designed for different parts of the small device market. Because J2ME spans such a variety of devices, it wouldn’t make sense to try to create a one-size-fits-all solution.

J2ME, therefore, is divided into configurations, profiles,and optional packages.

J2ME has two main branches.The first is based on the Connected, Limited Device Configuration (CLDC). This configuration is for small wireless devices with intermittent network connections, like pagers, mobile phones, and Personal Digital Assistants (PDAs). The other major branch of the J2ME tree is based on the Connected Device Configuration (CDC). This configuration is for larger devices (in terms of memory and processing power) with robust network connections. Set-top boxes and internet appliances are good examples of CDC devices.

Why Java on Cellphones?

If your cellphone already supports WML or another markup language (like HDML or Compact HTML), is there any advantage to being able to run Java programs on it as well? What can a Java program do that a set of WML decks can’t?

The first advantage is that Java is a proper programming language, in the procedural/object-oriented sense, and is used on a wide variety of platforms. WML is a declarative language, to which you graft some procedural logic using WMLScript, and is used only on cellphones. Java is more suited for complicated programming tasks.

The second advantage is that Java lets you work offline. With a Java-enabled cellphone it’s possible to download and install an application that you can then run without incurring connection charges, something you can’t really do when you’re browsing websites with the phone’s microbrowser. You can even run applications when you’re out of coverage, something that may be foreign to Europeans but something that we North Americans — with our vast geographical areas and competing, incompatible networks — have to deal with on a regular basis.

Of course, you can work offline to a degree with WML by using cached decks, but only if the decks are designed to be cached. And you really don’t have much control over what gets cached, since it’s all under the control of the browser and the deck creator.

Building a Java application

There are two files needed for a J2ME application. One is the jar file, the typical zipped archive of classes and resources. The other is the jad file, the jad file contains information about the midlet (A MIDlet is a Java program for embedded devices, more specifically the Java ME virtual machine) which is used by the phone on installation.

Popular java applications for mobiles

Opera Mini: the revolutionary browser for nearly any mobile phone.

MemoryUp Personal is a handy mobile RAM monitoring & boosting tool specially designed for smartphone users

The Moblica Picasa photo browser enables you to view multiple public and private Picasa Web Albums and search for photos from your Internet enabled mobile device

Gmail for mobile 2.0 is designed to be more reliable in low signal areas and provides basic offline support for phones like the Nokia N95, Sony Ericsson W910i, and BlackBerry Curve

About the Author

Danish Kanojia a student of BCA from PCTE ludhiana.

Danish Kanojia has keen intrest in Programming

XclusiveJava V2.2 – Release


Java Web Services in a Nutshell


Java Web Services in a Nutshell


$27.68


Java Web Services in a Nutshell begins with an introduction to Java web services, including a discussion of how they differ from web applications…

Java Web Services - Martin Kalin - Paperback


Java Web Services – Martin Kalin – Paperback


$23.09


Java Web Services

Java Web Services


Java Web Services


$41.95


For many Java developers, web services appeared to come out of nowhere…

Pyro Audio Creator for Win


Pyro Audio Creator for Win


$39.95


Audio Creator combines all the essential audio tools needed in today’s digital age. With Audio Creator’s virtual toolbox, you are just a click away from recording and editing; burning and ripping CDs; converting and cleaning albums to CD or MP3; encoding, tagging and organizing your sound library; and even publishing to the Internet. Ripper: Digitize your entire CD collection using the Ripper tool. Just put in a CD, pick an audio format, and Ripper takes care of the rest. Once you have converted your CD to a digital format, you can use the other great tools in Audio Creator to manage your newly digitized collection. Ripped files can be used on portable devices. Burner The Burner is one of the easiest CD burning tools you will ever use. With just a few clicks, you can create a track list and start burning CDs. Easily drag and drop files from anywhere in your computer right into the Burner tool. Visual feedback tells you how much time and space you have remaining on the blank CD. Burn audio CDs for friends and family or just back up files to a data CD for safekeeping. Editor: Never lose that special moment of inspiration with the Editor tool. Just click ‘record’ and capture important ideas, meetings, performances, podcasts, Internet broadcasts—even digitize and clean your record or cassette collection. Edit audio using a powerful 2 track view based on critically acclaimed SONAR technology: apply effects, crossfades, trims, hiss and pop removal, and more. When you are done, save it to popular formats like MP3, WMA, WVA, and more. Tagger: With the number of digital audio files on your system growing by leaps and bounds, it is often hard to get organized or find music. The Tagger tool solves this problem by allowing you to easily label, rename, and edit metadata for better organization of your sound library. In addition, when you import your CD collection, Audio Creator can instantly download CD information from the web including song, album, and artist names for better accuracy. Encoder: The Encoder is a versatile tool, allowing you to encode or convert audio files to popular formats like MP3, WMA, WAV, AIFF, and more. If you need to encode or convert multiple files, just have the Encoder tool process them all at once, saving you lots of time. The Encoder is also perfect for converting audio to formats like MP3 for use in devices like the iPod, PSP, PlayStation 3, X Box 360, Zune, and more. Publisher: The Publisher tool makes it easy to share playlists of your music online. You can easily create online, streaming music players that can be uploaded from Audio Creator to websites like MySpace, eBay, Friendster, Windows Live Spaces, Blogger, and more. You can even match the player to your web design by picking custom colors and sizes. Key Features: 1 click recording: capture musical performances, meetings, vinyl records, cassettes, podcasts, Internet broadcasts, and more Professional 2 track audio editing: cut, trim, paste, hiss & pop remov

Java Web Services Programming


Java Web Services Programming


$39.59


* A must have for any serious Java developer, this title enables readers to build web services for next-generation applications with Sun”s new Web Services pack for Java 2…

Deploying Java Applications using JNLP and Web Start


Deploying Java Applications using JNLP and Web Start


$46.99


Deploying Java Applications using JNLP and Web Start

Developing Java Web Services


Developing Java Web Services


$43.55


* One of the first books to cover Sun Microsystem”s new Java Web Services Developer Pack * Written by top Sun consultants with hands-on experience in creating Web services, with a foreword …

SOA Using Java Web Services - Mark D. Hansen - Paperback


SOA Using Java Web Services – Mark D. Hansen – Paperback


$65.99


SOA Using Java Web Services

Web Development with Java Server Pages - Duane K. Fields - Paperback


Web Development with Java Server Pages – Duane K. Fields – Paperback


$32.81


Web Development with Java Server Pages


Comments are closed.


Powered by 24x7DATA Hosting


Our reviews are honest, we wouldn’t waste your time or put our reputation on the line by recommending anything we didn't fully believe in.
Disclaimer: All the links on this page are 'affiliate links'. This means we will earn commission from every customer we refer from this website.
All mentioned trademarks, product names or service names are the property of their respective owners. By using this website, you agree to our terms of use.
Copyrights © encapsgallery.com All Rights Reserved