Creating a widget with J2ME ?

Posted on 2007-07-21
Medium Priority
Last Modified: 2013-11-24
Hi, I'm currently trying to determine the feasibility of the following project:

I want to develop a J2ME application, based on JSR185 (CLDC 1.0, MIDP 2.0) with MMAPI. The thing is, besides its rather standard functionalities, I would like to implement a 'widget behaviour', that is, the application should be able to shrink itself and still run on the phone/mobile device's desktop.

Being new to J2ME programming, I don't know if this could be possible, and reading the doc made me think it might no be, even if I'm still far from certainty...hence my question: would this be possible, and do you have any idea of how to implement it (painting on limited parts of the canvas maybe?).

Thanks in advance.
Question by:mamoudou
LVL 12

Expert Comment

ID: 19547513
LVL 12

Expert Comment

ID: 19547548
ANd this should help you get it done :

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 12

Expert Comment

ID: 19547587
LVL 12

Expert Comment

ID: 19547643

Author Comment

ID: 19549649
Ok thanks for the useful links, especially j2mepolish, but...

My conclusion, having read the CLDC and MIDP and various other documents, is that it is definitely NOT possible to create a widget software based on JSR185.

You may argue that your first link begs to differ, but the "widget engines" presented are actually not integrated widget engines, by which I mean that the "widgets" offered by these j2me-based softwares have to be displayed in the widget engine display context itself rather than on the phone's desktop, which was what I wanted to do, having only one widget to display.

The problem here is that MIDP-based applications have no knowledge nor access whatsoever of/to the underlying system's display management...all they know is that they've been given a bitmap to paint to, along with some of these bitmap's characteristics (size, depth), end of story. All the rest is implementation-dependent and invisible to the java developer, for obvious portability reasons.

Your last link talks about minimizing an application, in the sense of hiding it, that that is pretty easy to perform and quite different from my goal.

That's why I'm going to give up the full-java approach, and try to write the widget part in C++, but thats another story...

Thanks for the hassle anyway, regards.
LVL 35

Expert Comment

ID: 19711377
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   PAQ with points refunded

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Accepted Solution

Computer101 earned 0 total points
ID: 19741761
PAQed with points refunded (500)

EE Admin

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question