Mark Greene

Greenhorn
+ Follow
since Apr 07, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Greene

Originally posted by Theodore Casser:
Have you checked out "Java� Development on PDAs: Building Applications for Pocket PC and Palm Devices" from Addison Wesley Publishing?



Derek unless a 2nd edition has been published (not to my knowledge) stay well clear of that book - it *extemely* light on details and merely brushes topics.

I sympathise with your difficulty in finding information. I too am in the same boat where I want to build more powerful java apps but am severely limited by midp 2.0.
18 years ago
Can anyone guide me (resources, classes, methods etc..) as to how I would go about drawing shapes on a canvas in midp2.0?

for example I would like to draw the outlines of a vase, a bowl, a bottle etc.. that sort of thing.

Is this possible, or would I have to start using sprites/images..?

The reason I don't want to use images is that I would like the user (thru UI interaction) to influence the shapes by pressing buttons/tapping the shape with a stylus etc..

Any help appreciated,
cheers,
Mark
19 years ago
Does anyone know of any open source, publicly accessibly or not-too-expensive CustomItems that you can obtain..? e.g. has anyone implemented decent tables (there's one in my java for symbian book I think), editable lists, Swing-like components... basically high level GUI stuff.

My programs run on high end smart phones (e.g. SE p900) so screen real estate is quite decent, but I don't have the time or resources to build custom items.

The GUI toolkit in midp2.0 really is so limited... there seems to be a gaping hole in the market for someone to build & release (as open source or sell) advanced CustomItems.

PS I've seen j2me polish, looks like a good job but I think that's aimed at more constrained devices.
19 years ago
Richard,

someone else here may be able to explain this better or at least more gracefully [ ;-) ] than myself, but here's how I understand it..

The API says that if the device is going to implement midp2.0 then it must be able to obtain a httpconnection, but the midp spec does not care how that is achieved.

The wireless carier on which your midp device runs, can implement HTTP on top of whatever protocol it likes.. from what I've read the most typical set up would be that the wireless carrier implements HTTP connections to/from your device via a gateway, which acts as a proxy between the device & the remote HTTP server.

hope that helps - but if anyone has a more complete explanation I would like to read it myself too, cheers.
19 years ago
I doubt it but.. does anyone know of any tablet/tablet-pc style devices that support MIDP..? Ideally midp 2.0 but I'd be interested to hear about any devices that support even 1.0..

cheers,
19 years ago
I have a midlet (call it Midlet-A) running on a Sony p900, it has been running for several weeks and has alot of data stored in it's record store.

Unfortunately, when I created the record store I did not know about the permissions you can set on a record store to allow other midlets (i.e. other than the one that created it) to access it. Hence it was created with default permissions, i.e. private.

Now I (desperately!) need to extract the information from that record store and place it on a PC. I can do this by opening a socket connection to the PC while the p900 sits in a cradle so, that's no problem. The problem is accessing the data from that record store :-(

I have another midlet (let's call it Midlet-B), the one who makes the socket connection described above) who would like to read from the original record store - but according to the API I can't because I didnt specify a 'share' permission when the record store was created.

If I could go 'back in time' I could select share permissions on the record store (or integrate the 'export over socket' functionality into Midlet-A).

The data in the record store is absolutely crucial, can anyone think of any way that the other midlet can read it..?

If I unistall Midlet-A then the record store is destroyed so that's not an option. Is there even perhaps a way to 'update/replace' Midlet-A without destroying the record store..?

Is there *any* way of getting the data from the record store and even storing it in a 'half way house' on the p900..?

Any help/suggestions/advice majorly appreciated.
thanks.
19 years ago
loads of them dude

check out :

http://jal.sun.com/webapps/device/device

which is a very handy link to have - just search the text on the page for "cldc 1.1" and you'll see about 15 or so devices (mainly nokia) that support cldc 1.1
19 years ago
updating my own thread here, just in case anyone else finds this information helpful.

Devices (mainly in the pipeline) I've come across so far that satisfy the above are..

benq p30/p31
motorola A1000
Nokia 7700
Arima ASP805

I've been pleasantly surprised!
19 years ago
hey all, just a quick question.

Does anyone know of any device(s) (phone/pda/combo) other than the sony p900/p910 which is/are both touch-screen (stylus) & supports midp 2.0 ..?

I don't think any others exist just yet.. but please let me know if they do. Also I'd be very interested if anyone knows of any devices in the pipeline that will support the above in future.

cheers!
Mark
19 years ago
Totally depends on what device you are running I guess. I take excellent screen shots of my midlets on the sony p900 using a sceen capture utility that you can get on trial for 10/30 days or so.. think I got it from the handango site or the sony ericcson developer site.
19 years ago

Originally posted by Shawn Fitzgerald:

While jSMS is great if you have the ability to hook up a dedicated cellular device onto your server. But I like the ASP model where they handle scaling and load on the cellular network. Nokia has a great device (Cellular Terminal 31) an M2M device dedicated for jSMS type use.
Question: Have you tested any type of loads on jSMS? If so how does it perform? any idea of max# of messages/sec? Is there a way to have 2 or 3 devices managed by jSMS as a service
and have it handle load balancing?
-Shawn


You make a good point as regards the fact that I am not in a situation with a very heavy load of texts being received or sent.
I am using jSMS hooked up to a Siemens TC 35 GSM Modem. When you invoke their 'send' method you are looking at about a three/four second wait to send an sms via the modem.
You can certainly use two or 3 devices with jSMS altho bear in mind that would require a comm port for each device (or something like a
paralell->serial cable). Any load balancing logic would have to be written by yourself I'm afraid.
Shawn my *next* project involving sms's will involve *high* volumes of sms's being recieved similtaneously on a java server - I'd love to know (and hopefully you can update this thread) if you decided which 'ASP Model' -esque solution you recomend based on your current testing.
cheers,
Mark
19 years ago
Hi Nancy,
I just updated another thread on this board (called "SMS port numbers..") which I think should help you find a solution.
I'm using jSMS (from objectxp.com) to send sms's which specify the destination port on your target device - this in combination with using the push technology to wake up your midlet sounds like it will do the job for you.
An advantage of using jSMS (and not something like simplewire) is that it doesn't care what network you are with (otherwise, as I understand it, you have to purchase sms's in bundles from simplewire).
I am using jSMS with the Vodafone network here in Ireland but I could just as easily just pop in (to my GSM Modem) another SIM card from a different network provider.
Mark
19 years ago
Responding to my own thread here - I found out how to use jSMS to specify the destination port (from the server) on the receiving device. here's the code:
final int DEST_PORT = 16200;
final int SRC_PORT = 0;
SmsMessage msg = new SmsMessage();
SmsHeader hdr = new SmsHeader();
hdr.add(new PortAddressingHeaderElement(false, DEST_PORT, SRC_PORT));
msg.setUserDataHeader(hdr.getBytes());
msg.setMessage("Hello World");
19 years ago
I don't think any real-world devices actually support 'Personal Profile' yet. The closest they come (e.g. on a HP ipaq) is 'personal java' (essentially j2se 1.1.8)- which Sun have marked as end-of-life.
But depending on what classes/libraries you used, you may be able to run your application as a pJava application. To do this on e.g. an ipaq you would install jeode runtime on the ipaq and follow the instructions on the ipaq CD for installing your jar'd application.
19 years ago