WTF was sun thinking with MIDP 2.0?

I've been working on some Java ME projects on my own time, outside of work, and it seems like practically whenever I try to save time, effort, and space by using the provided classes it instead leads to the complete opposite, which just pisses me off! There are a limited number of things that MIDP 2.0 added that are actually useful such as FullScreenMode, and ImageRotation fast enough to use realtime, practically everything else however seems to be tripe (WeakReferences and Floats are a CLDC 1.1 thing).
Tonight's example: The Sprite class. I need the static fields from the class anyway for Graphics.drawRegion() calls, and since the class is provided for me, there's no reason to waste my time, and increase my jar size by writing and including a custom sprite class, particularly since at least some implementations probably don't suck (thanks SonyEricsson). OH WAIT, there is no accessor method for the image it refers to, and Offset and frameDimensions must be calculated from provided accessors, in the later case, a task that is impossible if your image is a block rather than a strip. This means that I am going to need to store another reference to the image in my class, that I ACTUALLY CAN access. 4 bytes * 200+ buildings = >800bytes heap wasted?
Last night, it was the GameCanvas, that doesn't let you access the actual buffer image. If I want a canvas that can change orientations, and I extend from this, I basically have to triple buffer, and I hear that speedy graphics memory tends to be limited.
Sun may have had reasons for these decisions, but seriously WTF were they thinking? What kind of mobile programming experience did the architects have? I really want to know. Are there plans to update any of these classes in the next revision?
Edited by: Shroud on Sep 23, 2007 10:47 PM

Sun may have had reasons for these decisions, but seriously WTF were they thinking? It's not SUN my dear friend. It's JCP. Every member of the JSR expert group which came up with this spec has an equal say in this!

Similar Messages

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • Ical on multiple computers - There was a problem with an alarm

    I set up my iCal to sync between my home computer and a Mac at work on my desk. Whenever I schedule an important appointment I schedule a reminder that runs a script that says "15 minutes to your appointment" or something similar.
    The scripts are stored on the hard drive of my laptop at work and it works pretty well there. But on my home machine every day I get "There was a problem with an alarm" dialog boxes because it cannot find the script.
    I tried working around this by storing the scripts on my iDisk drive, but then the proper functioning of the calendar and the reminder depends on whether or not the Internet connection is up and the iDisk is online.
    Any recommendations for how I can eliminate the issue? I think the solution probably lies in storing the scripts in a similarly labeled folder on both machines, e.g. /Users/mpender/Documents/Speech, but that doesn't quite work for me. Also, it would be highly desirable to have the speech folder sync so that changes like the introduction of new reminder messages would appear in both places.
    I'm open to suggestions, but there has to be some way to address this using relative path name addressing.
    Thanks, Mike

    I found that this works reasonably well if I store the speech scripts in the iDisk and turn on iDisk syncing to keep a local synchronized copy of the speech scripts.

  • I was running KeyPassFox with Firefox 8.0.1, but the plugin does not work in the new release (9) . Is there a way to restore my previous version with all of my bookmarks intact? I do not mind if I have to restore the plugins myself.

    I was running KeyPassFox with Firefox 8.0.1, but the plugin does not work in the new release (9) . Is there a way to restore my previous version with all of my bookmarks intact? I do not mind if I have to restore the plugins myself.
    The plugin shows on the list as enabled and functioning, yet the tool does not show on the toolbar. It would appear that I need to restore the previous version of Firefox and wait until a newer release of the plugin is available before upgrading the browser.

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • There was a problem with your order please call?

    My wife ordered a 4S 32GB black model and was putting me on her plan of currently 2 phones.  We ordered via the site about a week ago and got the message the phone would ship 11/30, added a data plan etc on a 3rd separate line.  Received an order confirmation, but couldnt use the 6-7 digit order number to check on it kept saying no order.  Today she checked and said she received soemthing from Verizon saying there was a problem with the order and to either call or email them.  She's at work til 4p EST time but was curious if anyone else got this and what it could cause this message?
    On a separate note I have my own plan with a iPhone 4 that I was going to cancel and move to her plan porting my number but the order wouldnt permit a port of a verizion number.  I called and the rep swore there would be no cancellation fee (sounds fishy to me) but he had someone else look and they said there was no cancellation fee either.  I dont know if the order flow recorded that and they are question it or something else is going on.
    Any ideas on why Verizon would have a problem with the order would be great!  Thanks!

    As far as the porting of your line to your wife's account...you might want to go in to a local store to handle that. I don't think it would be a port in the traditional sense...but a swap of responsibility...meaning your wife would take ownership of your line. I will have to do that soon for one of the lines under me so that the person using it can have it in their name. In that instance, there would not be any cancelation fees because the line isn't being canceled. The account ownership is just being taken over by someone else and they would take over the remainder of the contract.
    As far as the issue with the order...if your wife makes you an authorized manager on the account you would be able to call in and discuss whatever is happening. The issue could be a number of things so it's hard to tell you what it could be. It's also possible that there isn't an issue at all and the problem is just that the system isn't recognizing the order number.

  • Please help me! My MacBook was stolen along with an external hard drive that had all my photos of my children on them. I hadn't backed to iCloud or backed anywhere else. I am distraught. No find my mac either...help...please...

    Please help me! My MacBook was stolen along with an external hard drive that had all my photos of my children on them. I hadn't backed to iCloud or backed anywhere else. I am distraught. No find my mac either...help...please... Some programmes are still running like drop of and Skype... Is it all over?!?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Premiere CC 2014: Message on loading project from older version: This project was last used with Mercury Playback Engine GPU acceleration (CUDA)...

    After installing Adobe CC 2014 I have each time a message when loading an old Adobe pro project. Message:This project was last used with Mercury Playback Engine GPU acceleration (CUDA), which is either not available or not certified on this system. Mercury Playback software will be used. I have very recent HP Zbook 15 with a NVIDIA Quadro K2100M. At webinar today it was explained how to solve this, but sound was not understandable at my machine at that moment. Help? What need I to do.

    Problem is solved since yesterday via Adobe helpdesk. It appeared that the newest driver for the NVIDIA were note present. So after downloading the new drivers it work. But I think Adobe should mention those issues when they launch new versions of Adobe CC like in June.

  • I can't start Facetime. Keep getting a pop-up window saying that "an internal FaceTime error occured. There was a problem with FaceTime. You need to quit and open FaceTime again". I keep retrying to open and keep getting the same message over again.

    I can't start Facetime. Keep getting a pop-up window saying that "an internal FaceTime error occured. There was a problem with FaceTime.
    You need to quit and open FaceTime again". I keep retrying to open and keep getting the same message over again.

    @ reichard
    yeh man i have the same problem i think when i open the ****** facetime it dosent open there is a line in facetime icon it dosent open i dont know how it work **** i want it to work hope someone help me thx

  • I just got the Itunes update. So frustrating. I will be trying methods on this forum to save my library and re-install the older version of ITunes. What was Apple thinking when they developed and released this mess?

    I just got the Itunes update. So frustrating. I will be trying methods on this forum to save my library and re-install the older version of ITunes. What was Apple thinking when they developed and released this mess?

    Apple is more likely to see your comments if you send feedback via:
    http://www.apple.com/feedback/itunesapp.html
    =Downgrading from iTunes 11 to iTunes 10.7=
    You may be able to go back with Time Machine but this may involve restoring other items too (https://discussions.apple.com/message/20441404).  Alternatively:
    Back up your computer first, in case the unexpected happens.
    Quit iTunes.
    Get iTunes 10.7 from http://support.apple.com/kb/DL1576 or the direct download link at:  http://appldnld.apple.com/iTunes10/041-7195.20120912.d3uzQ/iTunes10.7.dmg
    Do a few preparatory steps by making sure all iTunes components are not running and cleaning old files.   See https://discussions.apple.com/message/20475394.  Do steps 3 and 4.  Steps 6-8 may be also useful but I don't know if they are essential.  Some of the other steps are not necessary, duplicate steps listed later in my post or are perhaps even unhelpful in the process.
    Replace the iTunes 11 application with iTunes 10.7.  Simply dragging the application to the trash may not work. Lion (OSX 10.7) and newer systems have iTunes integrated into the operating system and deleting is a bit more involved.  Two ways to do this are:
    1.  Use the shareware Pacifist utility (http://www.charlessoft.com/) to install iTunes 10.7 including all associated system files. Details at http://forums.macrumors.com/showpost.php?p=16400819&postcount=6
    2. Check this reference on how to delete the iTunes application itself:
        Delete iTunes in Mac OS X 10.7 Lion - http://osxdaily.com/2011/09/13/delete-itunes-in-mac-os-x-10-7-lion/
        After deleting the application there may be other files that need downgrading too. See the note about error -42408 at the end of this post. You may want to tuck these away somewhere safe until you have completed the installation of iTunes 10.7.  I have not tested this but ideally if newer versions are not found then the installer will put in the old versions. This may include these files in /System/Library/PrivateFrameworks/ which apparently get updated by iTunes 11:
    AirTrafficHost.framework
    CoreFP.framework
    DeviceLink.framework
    iTunesAccess.framework
    MobileDevice.framework
    After doing one of the two procedures above you will have to rescue the most recent old iTunes library from your iTunes > Previous Libraries folder. Rename it "iTunes Library.itl"  and replace the existing one in the iTunes folder. A newer version of iTunes irreversibly updates your library file so you have to replace it with the old one or you will get an error message. Note, this will revert your library to the version at the time of the upgrade and you will have to update any changes made since.  See:
    https://discussions.apple.com/message/20401436 - turingtest2 11/2012 post on rebuilding empty/corrupt library from previous iTunes library file after upgrade/crash.
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451
    Other issues:
    - https://discussions.apple.com/message/20432309 - solution to mobile devices saying they need to be restored after downgrading
    - If you encounter error -42408:
    iTunes: Advanced iTunes Store troubleshooting - http://support.apple.com/kb/TS3297 > Specific Conditions and Alert Messages: (Mac OS X / Windows) - including specific error codes.
    Alternatively, check https://discussions.apple.com/message/20441424 which requires you have a Time Machine backup (though possibly if you remove the newer version of these files old ones may be installed with the iTunes 10.7 installer - untested).  A  variant of this is at: https://discussions.apple.com/message/20448184
    - Persistent "Show in iTunes Store" arrows after downgrade - https://discussions.apple.com/thread/4567064

  • Is it possible to access local files with MIDP?

    Hello everyone,
    I am developing a mobile application using Sun One Studio 4 ME, with MIDP 2.0.
    I am preparing a record store as input data for my application. "Preparing" means: I try to convert a local text file present on my PC into a record store.
    The problem I have is that I cannot find a way in MIDP to allow me to access the local file. It seems to me that MIDP only allows data access over the Web. Am I correct?
    Many thanks in advance for any help or suggestion you could provide.
    Dumitru

    Did you save the messages in a Personal Folder files (PST) or as individual messages on disk? The PST and MSG file formats are proprietary and might not be accessible outside of Outlook.
    If you want to move those messages to a different email program, assuming you have permission to do so, one way is to upload them to an IMAP account (Gmail allows you to connect Outlook as an IMAP client). However, that's pretty complicated, so I suggest researching it on the web, checking at least a few sites to make sure you know all the steps.

  • Sun Solaris with Oracle 8i &java 1.3

    i am going to work on Sun solaris with Oracle 8i
    in Java platform
    is there any major issue to this combination
    pls , help me out to -> [email protected]
    Thanks in advance
    oviya

    I've been able to get Apache_1.3.(9|11|12)+PHP-(3.0.1[45]|4.0b4pl1)+Oracle-8.1.5.0.2 to work (OCI8 API calls) but with much difficulty.
    Compiling was pretty straightforward. I used APXS to load the PHP module. However, when I start Apache with the PHP modules loaded and added, Apache would die (no hints, etc.) What I did was start Apache without PHP loaded, reconfigure in PHP once Apache started and THEN restart apache. This works for me. Kinda tedious, though. And the time when Apache is running without support for PHP would allow anyone to see my PHP code with my database password.
    (Incidentally, how should I configure Apache so it doesn't serve files which end in .php[3] unless it was through the PHP module?)
    I've emailed the Apache OCI8 module developers about it (Stig and Thies) so I hope it'll be resolved soon.

  • SUn Cluster with multiple nodes

    Hi,
    I am planning to setup Sun Cluster with 3+ nodes.
    is it possible to configure sun cluster with just two network interfaces on each box. (One for Public access and second for cluster interconnection via dedicated switch)?
    Thanks in advance for the help.

    Yes, but only if the adapters support VLAN tagging.
    That way you would be able to create two tagged VLANs on each adapter, one for public and one for private traffic. You'd also need a switch that supported VLAN tagging, but I think these are fairly common now.
    If your NICs do not support tagging then you'd need to get another adapter to allow Sun Cluster to install.
    Regards,
    Tim
    ---

  • Installation BOBJ XI 3 on UNIX ( Sun Solaris ) with Oracle database

    Hi All,
    I want to deploy and install BOBJ XI Enterprise 3.1 on Sun Solaris with oracle database.
    My question is, do we need to add some oracle licenses stuff in BOBJ XI Enterprise server or we just using a connection from Sun Solaris to oracle database ?
    Pls Advise,
    Rgds,
    Denny

    Hi Denny,
    the risk is the same whatever DB server you are using. Once you have a setup where more than one application access the server, overload caused by one application can influence the performance of the other ones. You have to check if your DB vendor offers tools to monitor and limit the load on your DB server. But we are talking hypothetically now. I would recommend to check what's the actual load on your oracle DB server. If the server is not working at the limit (let's over 80% all the time), then I think that you can try to install BOBJ also in an existing oracle instance on the oracle server. You can reduce the risk and make the maintenance easier if you setup a dedicated oracle instance on your DB server just for the BOBJ repository.
    Regards,
    Stratos

  • Was having issue with original 8G iphone showing 3.5G of "other" info

    Was having issue with original 8G iphone showing 3.5G of "other" info stored on phone. I use multiple computers and at times sync with both and sync using mobileme account. After deleting extra text msg, emails, clearing history and cache in safari adn syncing was still there. Was able to resolve issue by syncing with BOTH computers! Have other iphones that sync with one of the computers. made sure to select sync, but uncheck items that do not want to have on my phone. did not have to sync photo's. now down to 400mb instead of 3.5G of other on phone! Was causing phone to run sluggish. only had 250mb of free space.

    Deepa,
    Okay, 3.0, not so old.
    I am having this strange issue which few of the users are facing.
    If you say that "few of the users" are having a problem, the implication is that not many users out of the whole are facing it and the stress is on the fact that it is such a minority. If, however, you say that "a few of the users" are having a problem, the implication is that although the affected users may be a small number in proportion to the whole, it is a problem nonetheless and this is the focus of the statement. But what is the point of either if there is in fact a technical problem consistently manifest? The statement should be more definitive, e.g., that all (100% of) users who do a particular action experience a problem consistently. I think that's what you want to say but I didn't see it stated. I will assume that to be the case.
    As a developer I am not able to replicate the issue since whenever I click on edit and go the update page , the correct data is fetched.
    Reading ahead, are you using the bookmarked URL? Why would you be unable to reproduce the problem if you do the very same thing?
    The users use a bookedmarked URL for the report and this URL includes the session ID...
    What authentication scheme is used? Is the session ID that is finally used for the request the same as that provided in the URL? In 3.0, I don't believe this should happen.
    Is there a batch job (job 4001) that purges sessions? There should be. Query from dba_jobs.
    Scott

Maybe you are looking for

  • Black (K = 100) text in InDesign being reported as CMYK in Acrobat

    These are the settings in my InDesign documents: CMYK working color space: US Sheetfed Uncoated v2 Preserve embedded profiles Text set to K = 100 When I exported to PDF, these were the settings under Output > Color: No color conversion Include all pr

  • Change in an LOV query of Sales Order Form not working

    Hi, I wish to change the the Order Type (in the Sales Header) displayed in the Sales Order Form when viewed from a particular Responsibility.(11i Instance) To be specific only certain order types should be displayed in the LOV when the User tries to

  • How many Java in control panel??

    Would like to know how many Java I should have in add/remove programs (control panel -WinXP) There is: Java2 Platform Standard Edition Runtime Environment Version 5.0, SE v1.4 2_13, JavanPlatform, Standard Edition Runtime Environment Version 6.0.30,

  • Akregator "Open in EXISTING browser window" :D

    Hi, Been bugged by this issue for a while since I moved browsers. Now I'm accustomed to Akregator and actually quite like the way it handles RSS. However, I prefer browsing in a single window on a single desktop. I put Kontact (with KMail/Akregator)

  • Dynamic Programming Using Java

    hiiii...anyone knows how to use a dynamic programming to compare a mouse movement using java??? i hope some one can help me......