Right way to get Mobile's TIME ?? problem...

Hi,
I need to display the mobiles system time in my application.
I'm getting the time using System.currentTimeMillis() and then using it in the Calendar class to get individual values of hours, minutes, secs, etc...
But whats happening is the time I'm getting in my application is not matching with the time thats being displayed on the cell's main screen or clock.
The problem is strange.. My cell's default time zone is set to IST but the time i'm getting is 30 minutes before IST which isn't even GMT by any chance!
im using a Motorola Rokr E6 with Linux Mobile..
pls help..
thx

{color:#000080}Hi Dayson
MOTOROKR bug.
I just threw together a MIDlet to check this... same handset, same time zone as you :-) In fact, the map-based time zone setting screen even shows IST as GMT+05:00 instead of +05:30, I hadn't noticed it earlier. And peculiarly -- Karachi is also listed as +05:00 and Dhaka as +06:00 but these show 30 minutes � offset from IST. Check it out.
I ran the same MIDlet on my "second" handset -- SE k700i -- and it reported IST correctly.
Device fragmentation has no end! I do not even feel like submitting another bug report to Motorola Support as I already have one pending for 2 months now. Since you have a E6 -- the bug shows itself in ItemStateListener.itemStateChanged being not called after display is set back to a Form that has been previously displayed. My workaround -- deleteAll and add another complete set of Items to the same Form, looks like another Form to the user but I know better ;-)
Try it on any other handset, your code is OK.
Cheers, Darryl{color}

Similar Messages

  • What's the right way to get in touch with devs? arch-general list?

    tl;dr version: skip to the questions at the bottom
    Today I saw an unfortunate thing happen during the Bug Day proceedings. It surprised me to see it, because the knowledge needed to avoid the problem was made available in advance. Bear with me as I tell a story, so I can point out an example of what looks like a communication problem between users and devs.
    A while back, I sent mail to arch-general giving advance notice of upcoming releases (within the next two days) for some xiph.org software (libogg, libvorbis, libao, and vorbis-tools). No one responded to it. That's not really a problem - after all, there wasn't any work to be done yet, since the releases weren't finalized yet.
    When the releases happened, I flagged them out of date as usual, and provided extra details to avoid difficulty with the upgrades (whether rebuilds were needed, and which upgrades depended on which other upgrades). One package belonged to Snowman, two to Tobias K, and the last (and most difficult) to Hugo D. I knew Hugo was no longer a dev, and later saw that Eric was going inactive also. (I don't know Tobias K's status.) That's probably part of the problem - this info getting lost since it wasn't sent to the same devs who later did the upgrades. (I guess the "multiple owners" feature should help alleviate this problem.)
    A few days back, I sent another mail to arch-general. I admit that I was nagging a bit, though I do believe that I was contributing helpful info - mostly the same as I put in the flagging messages. Again, no one responded. Not exactly nice, but again, not wrong either. You'll get to it when you get to it, and I can (and did) do these rebuilds for myself. Note that I'm NOT complaining about a week or two lag in updating packages - that's perfectly reasonable, and I'd be a huge jerk to make noise about that.
    Today, bash was doing upgrades to close bugs, with help on IRC from Pierre and wonder. One of those packages was libvorbis, and he wondered if a rebuild would be needed. I knew for sure that it wasn't, and told him so, which he acknowledged with a "thank you". He then went on to duplicate my research, which felt a little odd to me. In the end, this package was upgraded perfectly fine.
    The other package he upgraded was vorbis-tools. Unfortunately, building that against the old libao in [extra] generates an incomplete package, missing ogg123. When I saw this problem, I opened a bug, and had it handled exactly as I thought it should have been. The end result was fine.
    Now, the point here is that I had identified the dependency of the new vorbis-tools on the new libao in several of my previous messages, and reading those could have saved some trouble. It's reasonable that no one working this on IRC today saw my flagging messages, since I understand that those only go to the maintainer. However, my second mail to arch-general was definitely available, and based on what happened today, no one it would have been useful to, actually read it. That's a communication breakdown, and that means somebody did something wrong. It's entirely likely that it was me, and I want to know the solution.
    I've always believed that arch-general is the best way for an ordinary user to get in touch with "the devs" as a body. Many devs don't go on IRC, and it's a bit too busy in there most of the time anyway. Many devs also don't hang out here on the forums, and that's easy to understand as well, given how high-volume they are now. The bug tracker generally gets excellent dev responses, in terms of both timeliness and quality, but it's not appropriate for communications that are not bugs. All devs seem to read arch-dev-public, but users like myself of course can't post there.
    So arch-general has to be it. In fact, I always thought that was the intended purpose of that list. Until recently, it was a low-volume list. Lately, it's grown quite a bit, and is starting to resemble these forums: general tech support questions (some of them stupid), users plugging their own creations, and just chatter. (There are a small handful of posters accounting for a great deal of the noise.) I keep wanting to tell them to take it to the forums, but restrain myself as I'm not really sure if I'm right about their posts not being appropriate for the list. I'd leave the list, as it now annoys me, but then I can't reply to things posted on arch-dev-public. (Probably what I'll really do if this keeps up is stop using [testing], so I can do away with both of those lists. Oh well.)
    Now, the questions here:
    - Are devs also dropping out of arch-general because of the increasing noise, and is that why my second mail got lost?
    - Are the "noisy" posters abusing the list, and should they be told to go to the forums instead?
    - Is arch-general actually intended as the primary way for users to talk to devs?
    - If so, how to fix it so it works that way again?
    - If not, where should I have been sending messages like the ones I linked to in this post?

    I think almost every dev is on arch-general, so that is the place to contact the group in general.  Specific points can probably be emailed to the dev involved, if one is identifiable and if the bug tracker is not a better place (bug reports to my email get ignored).
    I think the whole problem here is that there is really no dev in charge of that package.  So your emails were probably seen then skipped over by all devs thinking not my problem...  (I know that is true for me).   Then Andrea noticed an "orphan" package that needed updated and went ahead with it without connecting it to your previous emails, which is unfortunate.
    Now our maintainer backend is fixed, hopefully we can get all the orphan packages adopted out, or at least know if we need to bring on new people to maintain them.  That way, there should always be someone who information about specific packages should be sent to.

  • Right way to get interface counters in TCL/EEM

    Hello Experts,
    I am looking for your advise about the best way to deal with interface counters inside TCL/EEM on XR. The ultimate goal is to compare rate (bps/pps) over two 10G interfaces and alert user in case they are differ more than 15-20% .
    I can get counters by parsing output of "show interface TenGigX/X/X/X" but , may be more streightforward way is exists, like getting them directly from MIB or from elsewhere ?
    Thank you !

    Using the CLI on XR is probably best since you can get bidrectional utilization in one call.  The SNMP ED would work, but you can only poll for one OID at a time.  So short answer is, you're doing the best thing right now.

  • Is there a way to get date and time in JAVA without using sysdate and time.

    Hi Everybody,
    There is a requirement in my Application. The requirement is I need to instal an application and it need to expire after certain period (say 1 year).
    And after that it should become useless for anyone enjoying the benefits of that. I need to know how to calculate the timeline for calculating expiry date.
    <ul><li>&Oslash; We can't rely on system date, since user can modify that.</li>
    <li>&Oslash; We also can't use counter because for that system should execute in 24x7.</li>
    <li>&Oslash; Also there is no internet connection to fetch the current date from the global server.</li>
    </ul>
    So if anyone has any idea to accomplish post your suggestions to me.

    ejp wrote:
    I strongly suggest you take legal advice before implementing such a feature. The purchaser, or licensee, of such software has reasonable expectations and legal rights which are unlikely to be met by a brute-force scheme like that. You don't want to end up in court ...This exact situation happened at my previous employer--although it didn't go to court.
    We contracted out to a 3rd party vendor to write a library for us. It was delivered in stages and paid for in stages. After we received the last delivery, but before we'd made the final payment, we had our first full-system demo for our first client/partner. Shortly before the demo was to begin, we brought the system up, and it immediately crashed. We saw a "This software is expired" type message in the log. While it's not uncommon for software to have an expiration date, our big issues with it were 1) there was nothing of the sort written into the contract, and 2) The expiration was a hardcoded "if date > whatever, System.exit" as soon as the class was even loaded.. It would've been different if trying to actually use the class caused an exception, but killing the JVM just for loading the class was not cool.
    I decompiled the class, found the offending code, commented it out, recompiled, and we were off. In the meantime, our VP of R&D called the vendor to deliver a new jar file, which they did quite quickly. So, a) it was inconvenient but not difficult for me to get around the technical "solution," and b) that was as stop-gap measure--we still paid them for the software.

  • Any app or way to get only outgoing times from iPhone 6/6+

    Hi All, Any apps to find out total outgoing call time for a month. if anyone has any alternative kindly share ...

    You are right, if necessary I will pay
    Just was hoping to find something like Air Video that could send video or mirror video from the phone to the pad. Now that you mention it, maybe I could use software that puts my iphone screen on my MacBook (i know that exists)and just zoom the image to fill the laptop screen....tada....big screen.....thx for your reply

  • Suddenly "lost mode" enabled in my iphone. I forgot my 4 digit password. Is there any way to get out of this problem? What should i do now? How can i disable it?

    Please help!! I forgot my password and now i can't access to my iphone. How can i disable the "lost mode" and how can i fix this problem?

    You will need to restore your iPhone from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try recovery mode.
    Read this: http://support.apple.com/kb/ht4097

  • FTP Get Exactly Modify Time by file [SOLVED]

    Hi guys,
    Im working on a project!
    I have a code here.
    FtpWebRequest request_now = (FtpWebRequest)WebRequest.Create("ftp://IP");
    request_now.Credentials = new NetworkCredential("user", "pass");
    request_now.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
    FtpWebResponse response_now = (FtpWebResponse)request_now.GetResponse();
    Stream responseStream_now = response_now.GetResponseStream();
    StreamReader reader_now = new StreamReader(responseStream_now);
    while (reader_now.Peek() >= 0)
    MessageBox.Show(reader_now.ReadLine());
    That displays me all files, all rights and the modified date,
    The problem is I just get the hour and minutes of the modified file.Windows show me the modified time in seconds too and these are important.
    Is there any way to get the modified time with the seconds from a ftp file?
    Thanks in advance,
    EDIT:
    Ah guys got it.
    People with the same problem heres the code:
    FtpWebRequest request1 = (FtpWebRequest)WebRequest.Create("ftp://8.8.8.8/test.file.txt");
    request1.Credentials = new NetworkCredential("user", "pass");
    string test = "";
    request1.Method = WebRequestMethods.Ftp.GetDateTimestamp;
    request1.Proxy = null;
    using (FtpWebResponse resp1 = (FtpWebResponse)request1.GetResponse())
    test = resp1.LastModified.ToString();
    MessageBox.Show(test);

    Hello Kevin,
    Thank you for sharing the solution back to us, however it will be better if you can post the answer as a new post. In that way I can mark it and others can find the answer easily.
    Anyway, I will copy your solution here in order to improve this post:
    Questoin:
    Is there any way to get the modified time with the seconds from a ftp file?
    Kevin's solution:
    FtpWebRequest request1 = (FtpWebRequest)WebRequest.Create("ftp://8.8.8.8/test.file.txt");
    request1.Credentials = new NetworkCredential("user", "pass");
    string test = "";
    request1.Method = WebRequestMethods.Ftp.GetDateTimestamp;
    request1.Proxy = null;
    using (FtpWebResponse resp1 = (FtpWebResponse)request1.GetResponse())
    test = resp1.LastModified.ToString();
    MessageBox.Show(test);
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I reinstalled Mac OS X and I lost iLife '11 and so on, is there a way to get it installed?

    Is there any way to get it another time installed? Or what can I do.

    You should be able to install your iLife applications from the App Store. This Apple Knowledge Base article has the directions.
    OS X Lion: About Lion Recovery
    Restoring iLife applications after Internet Restore of OS X Lion  If you reinstall Lion on a new Mac that shipped with OS X Lion installed, on an erased or replaced hard drive, you can download iPhoto, iMovie, and GarageBand from the Mac App Store.After installation, start from Lion.
    Double-click the App Store icon in the dock.
    Enter your Apple ID and password.
    Click Purchases.
    If you haven't previously accepted your bundled iLife applications within the Mac App Store, you should see your iLife applications appear in the Accept portion of the screen. Click Accept.
    You may be asked for your Apple ID and password once again. Your iLife applications now move to the Purchased section. These applications are part of the software that came with your Lion based computer. Your account will not be charged for them. Click Install to compete installation of your applications.

  • How to get Query response Time?

    II am on BI 7.0. I ran some queries using RSRT command. I want to find how much time the queries took.
    I went to
    st03 -> expert mode -> BI system load-> select today / week/month according to the query runtime day
    I do not see any Info Providers. Query was on a cube so why no Info Providers.
    Does something have to turned on InfoPorvider to show.
    When I look  in RSDDSTAT_OLAP table, I do see many rows but cannot make any sense. Is there some documentation on how to get total  query time from this table?
    Is there any other way to get query response time?
    Thanks a lot.

    HI,
    why not use RSRT ? You can add database statistics option in "Execut & Debug" and you get all the runtime metrics of your query
    In transaction RSRT, enter the query name and press u2018Execute +Debugu2019.
    Selecting u2018Display Statistics Datau2019 .
    After executing the query will return a list of the measured metrics.
    The event id / text describes the steps  (duration in seconds):
    "OLAP: Read data" gives the SQL statements repsonse time (ok - because the SAP
    application server acts as an Oracle client a little network traffic from the db server is included,
    but as far as you not transferring zillions of rows it can be ignored)
    But it gives you much more (i.e. if the OLAP cache gets used or not )...
    In the "Aggreagate statistcs" you get all the infoproviders involved in that query.
    bye
    yk

  • Is there any way to get a already created instance of a object?

    Is there any way to get a already created instance of a object not a new intance?
    Is there any way to get the last time that a object instance state has been changed?
    Is there any way to get a clue that a instance is being used?

    Is there any way to get a already created instance of
    a object not a new intance? It sounds like you want a "singleton". Here is a simple example
    public class SingletonObject
        private static SingletonObject ref;
        private SingletonObject()
            // no code req'd, put what is needed
        public static SingletonObject getSingletonObject()
          if (ref == null)
              // it's ok, we can call this constructor
              ref = new SingletonObject();
          return ref;
    }SingletonObject.getSingletonObject() will return you the single instance of SingletonObject. You can only get an instance throught this factory method. new SingletonObject() won't work since the constructor is private.
    Is there any way to get the last time that a object
    instance state has been changed?
    Is there any way to get a clue that a instance is
    being used?Stick methods in SingletonObject and getSingletonObject to keep trace of what you want to.
    For a full explanation see
    http://www.javacoffeebreak.com/articles/designpatterns/

  • Unnerving problem: I cannot reliably save the time I want a still to show (in iMovie '11/v. 9.0.4/build 1634). Has anyone found a way to get around this bug?

    My problem comes up in iMovie ’11 (v. 9.0.4/build 1634) and has done so from the beginning of my using the software.
    I want to determine the length of time that I want a a still to show (in the context of stills and movie clips). However, I cannot reliably save the still’s length of time showing.
    That applies to all stills: I doesn’t matter if I change the length of time individually for each still or check the box for »all clips«.
    This looks like a veritable bug, doesn’t it? Has anyone found a way to get around it?

    I assume you are using transitions. This is not a bug - it is how iMovie handles transitions.
    There are two settings for transition overlap - full and half. If you are using photos only, you may get the results you want by setting transition overlap to half.
    For full details, see iMovie Help here on Transition Overlap.
    http://help.apple.com/imovie/#mov3a6201ac

  • I have iPhone 4s and i switch find my iphone on ! my problem that i have kids who know my apple ID and they put it like more than 10 times and they block it. my iphone wouldn't open or format in right way. plz help

    i have iPhone 4s and i switch find my iphone on ! my problem that i have kids who know my apple ID and they put it like more than 10 times and they block it. my iphone wouldn't open or format in right way. plz help

    If your kids blocked the phone by repeatedly putting in the wrong password for the lock screen, follow this help article to unlock it again:
    Forgot passcode or device disabled

  • Intellicast it does not load the way it did before. Now I just get a page with writing yet on Explpre it losds the right way

    I tried reinstalling Firefox but I get the same thing with Intellicast. I get a page with typed writing instead of a grafic page with the maps and 10 day forecast. I go to Internet Explorer and get the same intellicast.com page and it opens up the right way. what is the problem and can it be fixed. I never had this problem before with intellicast and have been using it for some time on firefox

    If it happens again the first try these basic steps:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • Probably asked and answered a million times but my laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his! Is there a way to get them off and how do i prevent this from happening again?

    probably asked and answered a million times but laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his? Is there a way to get them off without deleting each one? Also how do i prevent this from happening again? can someone direct me to some info on multiple phones on one itunes i am lost.

    Hey there 79usma79!
    I have a couple of articles for you that can help you troubleshoot the issues you are seeing with iTunes on Windows XP. The first is a general troubleshooting article, which can be found right here:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    This article can help you find out if there are any conflicts between your copy of Windows XP and iTunes, and can tell you what to do if there are. Before going down the troubleshooting route though, you should take a look at this article, which can help you back up your entire iTunes library to an external hard drive, so if this issue is recurring, you will be able to restore from that backup and will not have to worry about losing your playlists or music again:
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time?

    When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

Maybe you are looking for