Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Chat Transcript: Solving the Device Fragmentation Problem

Read the questions that your fellow developers had about the new feature in NetBeans Mobility Pack 4.0 that helps solve device fragmentation problems, and the answers straight from the engineers who created the module.

Tutorial Details:

Welcome to the Sun Developer Network Moderated Chat series. Today's topic is "Solving the Device Fragmentation Problem." My name is Bao Phan and I'm the moderator for this chat. Our speakers today are Greg Crawley, David Kaspar, and Adam Sotona, Software Engineers for the NetBeans Mobility Pack IDE.

Just a couple of housekeeping notes before we begin:

You are connected to our chat application, and your session must be maintained in order to stay connected. Please do not point your current browser to another URL, otherwise you will be dropped from the chat. You may open up another browser if you need to access another URL while staying connected to the chat.

When you submit a question to the speakers, your question will not immediately appear in the chat room. It is sent to the speakers and will appear when the speakers post their response to your question.

With that, I'd like to invite you to begin sending your questions to our speakers. To start things off, Greg, can you give us a quick summary of the feature in the NetBeans Mobility Pack that addresses the device fragmentation problem?

gregcrawley
I'll start off with a quick explanation as to what the device fragmentation problem is. We use the term to describe variations found between mobile platforms that prevent a single application from automatically running optimally on all phones. These differences can be physical (like screen size, screen color depth, available memory, etc.) or software-related (available APIs, CLDC/MIDP version, etc.). Fragmentation usually requires modifications to get your single application running on different mobile platforms; managing these modifications is where our solution comes in...

It has two main parts: project settings management and fragmented source code management.

Both portions of the solution are based on the concept of Project Configurations. You can create as many configurations as you'd like for each of your projects -- typically, you will have one for each distribution Jar that you plan on creating for your application. Once the configurations exist, you can update individual panels of the project properties dialog such that the settings will only apply to individual configurations.

Also, you'll be able to mark blocks of source code as being specific to a list of configurations. Individual code blocks will only apply only to those configurations that you have associated with them. An embedded preprocessor is used by NetBeans to place code blocks to a commented-in or commented-out state based on whether or not the block is appropriate to your active configuration.

So that's the solution in a nutshell.

blizzard
Does this solution eliminate the need to have a separate source file for each device I want to target?

gregcrawley
Yes, it does. Because we use a commenting pre-processor, all versions of your code can be stored in a single source file.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Chat Transcript: Solving the Device Fragmentation Problem

View Tutorial:
Chat Transcript: Solving the Device Fragmentation Problem

Related Tutorials:

Displaying 1 - 50 of about 695 Related Tutorials.

Ajax Chat
Ajax Chat,Ajax Chat Example,Simple Ajax Chat,Ajax Based Chat Application...;         List of chat application developed in Ajax. These chat applications are very responsive and don't
 
Open Source Chat
Open Source Chat Open Source Chat Open Source Chat Program FriendlyTalk is a simple chat program offering the standard features of a chat client. FriendlyTalk allows its users to send instant invitations
 
iPhone 3G as a Gaming Device
iPhone 3G Gaming, iPhone as a Gaming Device, iPhone 3G Gaming Capability... Device          ... 2007 didn't measure up as a great gaming device owing to certain shortcomings
 
Chat Server
Chat Server Chat Server   ...;            Chat server... operation we can run the Login.java. Understand and get the chat server application
 
Chat Server
Chat Server Chat Server   ...;            Chat server... operation we can run the Login.java. Understand and get the chat server application
 
Open Source Instant Messaging & Chat written in Java

 
Open Source Instant Messaging & Chat written in Java

 
What is a WiFi Phone?
; Introduction A WiFi phone is a wireless device that gives you the dual... can expect excellent voice quality from WiFi phones. The Hitch The problem
 
What is eToken?
identity management technique and provides hacking problem solution to the user.... This device is beneficial for the corporate companies, organizations, libraries, banks... but also the user can also use this device in the cyber café. After
 
Java: Example - Change Extension
Java: Example - Change Extension Java: Example - Change Extension Problem: Change the extension of a file name                  
 
Vayala
; Vayala is a multipurpose chat client for developers. It offers a platform... is automatically connected to one network of chat client without a central server... are connected to your collegues. In addition to basic chat functionality, you can
 
DSL Filter
part of DSL service that requires sometimes for installing the DSL device. DSL filter, also known as micro filter is an analog low-pass filter device that installs on telephone and other analog device for preventing interference between
 
Security and Privacy Issues in Location Based Service (LBS)
to provide other value added services by means of a wireless device functioning... device or asset tracking component, LBS technology acts as a catalysts... and economy in terms of a good communication network as a tracking device
 
GUI-Model Rainfall program
Java: GUI-Model Rainfall program Java NotesGUI-Model Rainfall program This is an example serves two purposes, based on the very simple problem of recording rainfall statistics
 
Design Patterns
; Design Patterns: Patterns are solutions for the specific problem in a specific context.  (OR) Patterns are solutions to recurring problem
 
Design patterns interview questions
) solution to a problem in a context. Each pattern describes a problem... solution to this problem in such a way that we can use this solution
 
Design patterns interview questions
) solution to a problem in a context. Each pattern describes a problem... solution to this problem in such a way that we can use this solution
 
Open Source MP3 Player
the device's hardware schematics later this month. We're willing to support... to an exploit in which a specially crafted MP2 or MP3 file could cause a memory problem.... The device, which will also support connections with Linux-based computers, may
 
Design patterns interview questions1
patterns? Ans. A pattern is a proven (and recurring) solution to a problem in a context. Each pattern describes a problem which occurs over and over again in our environment, and describes its solution to this problem in such a way that we
 
Java: Example - Count occurences
Java: Example - Count occurences Java: Example - Count occurences Problem: Count the number of times one string is found in another.            
 
iPhone Application Development
iPhone is a great device that supports a host of features and applications..., build, run, edit and debug source files in an iPhone simulator or device
 
Fail Early, Fail Often
methodologies that cause your program to fail when there is a problem
 
Programming: Hammurabi I - Solution
problem. This solution has expanded somewhat on the minimum requirements. Main
 
Ask JSP questions online
just started a new problem solving service ‘ask question’. In our...;   Facing problem in JSP? Ask to us, we
 
What is WiFi Finder?
; Introduction A WiFi finder is a device used for locating wireless... of WiFi signals. Once you switch on the button, the device starts looking for WiFi... finder is the range of the device, or in other words, how far it scans
 
iPhone
a nice, feature rich, portable and easy to handheld device that revolutionized
 
JSF Renderers
to the client?s device. Each of the tag gives rise to an associated component. A renderer... to extend it to make it enable to work on a WAP device. So, to handle this case we... for the component. JSF components use different renderers depending on the device used
 
Midpoint of two number
;    While solving any mathematical problem it becomes
 
JSP Session Counter Using SessionListener
;        Counter is a device which
 
redWall Firewall 1.2.1 RC1 has been released
redWall Firewall 1.2.1 RC1 has been released redWall Firewall 1.2.1 RC1 has been released Kernel 2.6.15.4; udev device management (replaces the deprecated devfs); Unionfs based config (/etc
 
Open Source Symbian OS
years of Symbian's existence more than 14 mobile device manufacturers have adopted
 
Deleting Rows From Table
and in later situation it starts giving problem to the organization. Rather
 
Types of LBS
of a mobile device with its user and provide various services related to the location... have a GPS attached device or a mobile phone with GPS receiver. E911 &ndash... the exact location of any Wi-Fi enabled device like PC, laptop, PDA, Smart Phone
 
History of Java
Java: History of Java Java: History of Java Two failures Java was designed by Sun Microsystems in the early 1990s to solve the problem of connecting many household machines
 
Runtime Errors
;  Errors are arised when there is any logic problem with the logic
 
Protect Yourself with a Porn Filter
, prevention is the most effective way to avoid ever having a problem with pornography... than fixing the problem after the files have already made their way onto your... or someone you know has a problem with pornography use or addiction, seek
 
JSTL If- Else
; The problem with <c:if> is that, this tag
 
Access Modifiers and Garbage Collection
to assist with this problem it provides a reference-counting memory management
 
URLInformation
is thrown to indicate an I/O problem. The IO exception is defined in java.io
 
Location Based Service (LBS) in Tourism
device and its user are geographically located and also acts as an information...; The LBS device can inform you about the current traffic updates. For example... events etc. You just have to send a message to the operator through your LBS device
 
What is HDCP?
.  The DRM device exists in the computer, DVD player or Set Top Box
 
What is UWB?
device for communicating  within a short distance with  high accuracy, 
 
Lint4j Eclipse Plugin
. Problems can be reported as soon as the source is saved, and the Eclipse problem
 
Eclipse Plunging/Systems Development
Linux. Workbench is the only device software development suite with visual
 
SystemRescueCD 0.2.16 is released now
SystemRescueCD 0.2.16 is released now SystemRescueCD 0.2.16 is released now Updated the kernel to Linux-2.6.15.1; updated the system (udev 080, hotplug, coldplug); updated LVM tools (evms, device
 
Input From Console
console device associated with the current Java virtual machine
 
WEBSERVICE USING APACHE AXIS TUTORIAL-1
,while the other aim is tackling the firewall problem. (Since ASP.net runs only...!).No problem!  ?? 11)? We start the browser and type the URL
 
EchoClientSocket
for the exception handling. This exception is thrown to indicate an I/O problem
 
J2ME Books
with the Mobile Information Device Profile (MIDP). With labs. Published... Information Device Profile (MIDP), which this text centers on, plus the Connected Limited Device Configuration (CLDC). Clearly, this is a market in flux
 
Design Pattern
a times, you get an easy way to tackle a recurring problem (which has been faced earlier, by people frequently). This solving technique gradually becomes a pattern to tackle that particular problem. In a broad spectrum, it can be said
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.