[Help] Time and information BlackBerry in my application

Hello friends, how are you? Good week end.

I have a problem, well two problems the first single

This code is used to display the date.

 Label {
id: title
 text: {
var today = new Date();
 "Hoy es: " + (today.getDate() + "/" + today.getMonth() +1) + "/" + (today.getFullYear());
    }
   }

UT will not get the command to display the time. Also serious to display the time... ?

My other question is, to implement the BatterySample in my application and it works perfectly, it looks great. But I want to add

(1) level percentage or number battery
(2) the pin code for my BlackBerry
(3) series
(4) blackBerry OS
(5) model

Not understand the examples, since no document but not appreciated as to implement.

Marco, you should break up your post in 2, given that you have 2 questions. I will answer first:

import bb.cascades 1.0                                                         

Page {
    Container {
        Label {
            text: {
                var today = new Date();
                "Hoy es: " + (today.getDate() + "/" + (today.getMonth()+1) + "/" + today.getFullYear());
            }
        }
    }
}

This code works perfectly for me.

Tags: BlackBerry Developers

Similar Questions

  • Need help running and installation of cloud/creative applications

    Hello, I am a student trying to creative cloud and several adobe applications, work at home so I can't do a 5 hour trip return to school and facing a lot of problems to just running programs.

    first set up: I'm using windows 7-64 bit with a small 100g SSD main (C :) and a terabyte of secondary drive for most of my data (d :))

    first of all, I downloaded CC some time ago and it crashed when opening simply tried several times and did not work, so I was forced to use auxiliary programs to simulate the demands made in the classroom for a modest success.

    now, after a few updates and a new installation of windows 7, I thought I would try again. I downloaded CC and started installing some applications that I need (flash, first, photoshop, illustrator, and consequences). However I don't have enough room on my SSD, so I removed the programs and reinstalled in a file on my D: drive. Flash and the Prime Minister has worked for a few minutes before CC informed me that I would not be able to use other programs because there was not enough space available to update.

    I have 10 GB of space on my SSD, I understand there are some information that must be stored on the C: drive, but why it takes up to 10 GB of space?
    to use 1-2 applications without having update problems, I uninstalled Photoshop and Illustrator, as I will now need them later in the half and CC as a whole simply refuses to work. All loading the CC program causes an error. I tried to reinstall and restart the computer. Nothing helps. so I uninstalled all the programs adobe and CC, but CC was still send me errors in the uninstall.

    I tried more than 10 times to redownload/install CC and more I could do is get the CC itself at startup program, but it immediately gives me "DOWNLOAD ERROR" (without error number) and simply contact customer.

    I'm currently stuck at this step with no idea what to do, any help would be appreciated, because I have homework that needs to be done at home and can not do without these programs

    You can work around the cc desktop app and install directly from prodesigntools.com

    If you follow the 7 steps you can directly download a free trial here: Adobe CC 2015 Direct Download Links: Creative Cloud 2015 Release | ProDesignTools

    If you have a problem from the download, you follow the 7 steps, or your browser does not accept cookies.

    the most common problem is caused by failing to meticulously follow the steps 1, 2, and/or 3 (which adds a cookie to your system, allowing you to download the correct version of the adobe.com site).

    failure to obtain this cookie translates into an error page displayed after clicking on a link on prodesigntools.com or initiates the download of an incorrect (e.g., current) version.

  • Question TIME and YEAR in HFR (issue resolved now)

    Hi all

    Im having a problem with one of my HFR report
    We have time and year Sun in Essbase application

    now the user wants to view the data of the last 13 months i, e
    Currmonth = Feb 2009 until February 2008
    hearing that I had taken the year and time to pass.
    to pass A YEAR, I had quickly for the year, and even as the neck to the rest of other 12 passes
    and for TIME to pass A, I had taken the TIME and Relative member - guest 1 10-12 in the other passes

    now the question is when I run the report complete shows for 2009 only.
    in fact last 2 passes (JAN, Feb) must have for 2008 instead, it's show for 2009

    can someone tell me how to get the right data.

    Sri...

    Published by: SSS on September 7, 2009 16:50

    Published by: SSS on September 9, 2009 12:19

    set up two columns [A and B]

    For a set for the year 2008 and the month is defined as a range of prompt month up to the end of December.
    In column B the year 2009 value and set the month as a range of Jan to the Prompt month.

    If the user select "Jun" at the command prompt, they will get in column a Jun by Dec for 2008, then in column B, they will get Jan Jun 2009 (i.e. 13 months)

    You can also improve with void variables if you want and you can use members POV place fast member if you wanted.

  • Cannot download apps - constantly says that cc has lost functionality I have re installed several times and used the cc cleaning tool - HELP please not very impressed with not be able to use a new customer applications!

    Hi all

    New customer to CC, cc said constantly that he lost the functionality and to re - install, I have done this several times and used the CC cleaning tool. What's the point of having CC if you cannot use this?

    Thanks for your reply, but I spent some time with support online yesterday which has managed to make me sort, I do not have a UPDATER AAM file, I could not delete the contents of the OOBE folder either, I had to rename the folder creative cloud. I was sent then the application manager - who was then updated to the new until I'm able to get apps. Long-term, but it worked. I tried the procedure you have above, just not all the steps worked for me. Thanks to the Member of the support staff who helped me, I have been literally pulling my hair out!

  • I've been using Lightroom 5 about 1 & 1/2 years and he lost everything last night, as I install it. I tried to use time machine and I get this message; 'Applications' cannot be modified or deleted because it is required by OS X. Any help or suggestion

    I've been using Lightroom 5 about 1 & 1/2 years and he lost everything last night, as I install it. I tried to use time machine and I get this message; 'Applications' cannot be modified or deleted because it is required by OS X. Any help or suggestion?

    Hey Mohit & John,

    I just restarted since a lightroom 5 top date & he got almost all of my files!

    Linda

  • I tried to download the creative cloud and it didn't download correctly (after a long time) and now I can't uninstall it. It takes place on my computer but I cannot uninstall the Adobe application. Help please!

    I tried to download the creative cloud and it didn't download correctly (after a long time) and now I can't uninstall it. It takes place on my computer but I cannot uninstall the Adobe application. Help please!

    Hi Julie,.

    Please see the below help document to uninstall the application:

    Using creative cloud | Download, install, update or uninstall applications

    Otherwise, you can use the CC cleaning tool as well.

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

    Kind regards

    Sheena

  • CC does not refresh on my Win7 machine. I tried several times and it closes after update download and try to install. Downloaed new application from Adobe, downloaded, tried to install it and received the error 50. Help!

    CC does not refresh on my Win7 machine. I tried several times and it closes after update download and try to install. Downloaded new application from Adobe, downloaded and tried to install received error 50. Help!

    Hello

    as strange as it may seem I'm afraid it is a challenge for Creative tool Adobe cleaning of cloud.

    Sometimes - for some reason-CC "unwilling" work. In this case you should CC completely remove and reinstall by using Adobe Creative cloud cleaning tool. (A try to uninstall by own resources is not enough!)

    I quote:... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3 - CS6) applications. The tool removes the records facility for preliminary facilities of Cloud applications or Creative Suite creative. It does not affect existing installations of earlier versions of Creative Suite or creative Cloud applications.

    Please use: l http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.htm and follow the prescribed sequence of operations

    Sometimes, the "opm.db" file is the culprit. In this case, you must remove it.

    If necessary and for questions and so "open" Please use the cat, plus I had the best experiences.

    Hans-Günter

  • BlackBerry App that enables other applications on the device according to the events of time and/or location

    To create an ABC App that performs the following operations - are the points below as possible for the Blackberry OS 6 and 7?  Yes/No :-) - and whether links to the code samples.

    (0) is still active (though in the background, possible?), while in the background, it will be as described in (2), (3), (4) and (5) below.

    (1) see the other apps on the phone (what kind of applications are possible?)?   The following points (2) and (3) are mainly possible if (1) is possible.

    (2) can activate the apps and activities seen in (1)? (depending on the configuration of the user in ABC app)

    The applications can be started with the entry of parameter?

    (3) sends messages for background apps on the phone (from ABC app, depending on the configuration of the user in ABC app), who are running in the background.  (3A) is the model of Blackberry Sandbox allow applications to share data (files)?

    (4) you can make (2) and (3) above according to tell of a weather event

    (5) following the location of users (if the user allows) and designated operational entities (2) and (3) if the user reaches or crosses a specific location.

    Thank you

    Paul

    You can run (yet) background apps, although there was much demand for such a feature and most valid use cases provided. I can't imagine that this is not in the pipeline.

    You can not (yet) start other applications or communicate with them, but who was announced for BB10 and is called "invocation framework". At best, the details are still sketchy.

  • How can I get my menu bar on my macbook pro? The dock also disappeared. I know I have to take my pointer upwards (or downwards), but it's a waste of time and that bothers me. Its only happens on Safari, and not on other applications.

    How can I get my menu bar on my macbook pro? The dock also disappeared. I know I have to take my pointer upwards (or downwards), but it's a waste of time and that bothers me. Its only happens on Safari, and not on other applications.

    You could try starting in safe mode:

    • Try safe mode if your Mac does not end commissioning - Apple Support

    Which can allow additional troubleshooting.

    Also, sometimes there may be a hardware problem which may help a SMC reset with

    Depending on the cause:

    • Reset the management system (SCM) controller on your Mac - Apple Support

    You can try the test equipment to see what appears in the results:

    • With the help of Apple Hardware Test - Apple Support

    Other options include an appointment with a genius of Apple Store or a

    service provider authorized Apple for the device inspected, diagnostic tests, etc.

    There may be system software or hardware problems, in order to solve the problems with the aim

    to see what the cause, can take time. If you have a backup in Time Machine &

    end by using OS X Recovery to see OS X Utilities usage, disk utility or

    other functions, be aware that this can make the more advanced features; It may not need.

    Because this question appears as a symptom in Safari, which makes it more curious.

    • Stop the pop-up ads and advertising on Safari - Apple Support

    http://etrecheck.com/ http://www.adwaremedic.com/index.php   

    There may be a weird extension in Safari that may relate to some adware or other

    elements, so this is another issue to consider. a report of Etrecheck may tell you if

    some candidates are there; but maybe not. I do not primarily use Safari

    so, my other two browsers work slightly differently.

    Good luck & happy computing!

  • What is an application error, wmiprvse.exe? It keeps popping up all the time and its quite annoyinng. Can I get rid of him?

    What is an application error, wmiprvse.exe? It keeps popping up all the time and its pretty boring. Can I get rid of him?

    What this has to do with Windows Media?

    Rwillet,

    Thank you for visiting the Microsoft answers community.

    The wmiprvse.exe file is otherwise known as Windows Management Instrumentation.

    In research, I found a few articles that might help you:

    Windows wmiprvse.exe related errors

    Wmiprvse - wmiprvse.exe

    You can run your scan virus and if necessary, perform a System Restore to a point prior to the error occurring.

    I hope this helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Time and Date Z30 blackBerry

    Dear friends

    What is the problem with Blackberry Z30 whenever I restart the phone even for seconds, the date and time reset to Mar 9 and the time of 3:45. How can we challenge any idea. It does not seem to recognize the self... It's ruining my system and appointment call recorder.

    I'm sure that this is not a toy

    Questions, suggestions...

    Go to settings > Date and time.

    Zone to check and correct if necessary.

    Recommend Auto update time zone at the prompt. You never know when the mobile network will transmit the wrong time zone and your alarm goes off at the wrong time. But now, for troubleshooting, look and see if the time zone is correct, and look for you prompt to accept the change.

    Allow to set a Date and time automatically.

    If the problem is not the time or time zone is transmitted by the network or the BlackBerry seems to react to the time signal mobile network, then I would look at possibly conflicting software apps, corrupted and that sort of thing. It may be easier to just make a clean OS and then move forward a step at a time and that you restore the data and install test applications.

  • ETA App should help to get the time and date feature HELP!

    Hi everyone, I'm doing an application where I need to get the time and date of the antone device can help, I know there is a function such as getDate or getTime but im not to know how to use it.

    As far as I know,

    I use this to get the time system (it returns long type)

    System.currentTimeMillis();
    

    After that, you can use SimpleDateFormat to convert date and time

    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
    String time = sdf.format(new Date(System.currentTimeMilis()));
    
  • BlackBerry Smartphones red flashes 4 times and custom lights

    Phone turns off.

    Tried plug it into a wall usb cable charger and laptop to charge, but each time the constant stay red time for about a minute and then turns it flashing four times quickly and then a short break and then blink four times (and he repeated just that over and over again.)

    Please can you let me know what I need to do to make it work.

    The fixed!

    Ok.. what I've done

    On XP (in this case in a parallels VM) I uninstalled all the blackberry related to software give me a clean slate.

    Installed: "9000M_PBr4.6.0_rel518_PL4.0.0.248_A4.6.0.303_Orange_UK.exe."

    I HAVE NOT installed the Desktop Manager.

    Ran

    /NoJVM loader.exe and select 'next' when he said peripheral unknown

    There is no half feel, though... but that's ok, as it then had a '507' whitescreen reboot loop!

    Ran

    Loader.exe (this time without the /jvm bit)

    He saw that the serial number so just followed the instructions on the screen

    battery remaining in all the time as it was the sim card.

    I hope this helps someone else

  • Menu Application in BB Desktop Software blackBerry Smartphones shows no components of system 7 OS and programs, only manually installed applications

    9360 to 9720 switching has been a problem as my favorite BB apps that are part of the 7 OS like password keeper are completely absent on BB9720 after migration.

    Some forums are suggesting to use the menu of the Application of BB Desktop Software to install/uninstall applications and components of the system. This does not solve my problem, only applications installed manually, are indicated in the Application menu.

    Therefore cannot install or remove components of the system or programs like password keeper.

    Old and new BBs were running latest OS.

    Appreciate any suggestions that would help me with my mysery.

    Hello and welcome to the community!

    Sometimes the Desktop software cannot automatically find the necessary operating system... software and need 'help' along. The sub process should allow you to do.

    The easiest way is, on a PC (you can not do on MAC):

    (1) make sure that you have a current backup and your BB complete... you can find the instructions at the link in my auto-sig below.

    2) uninstall all the BB OS packages from your PC,

    (3) make sure you have the BB Desktop Software already installed

    (4) download and install on your computer, the BB OS package you want:

    • http://us.BlackBerry.com/support/downloads/download_sites.jsp
    • If all you want are the levels of BONE, it is first sorted by carrier - the carrier supports, your search will be fast. However, some carriers are much slower than others to release updates. To really get the package up-to-date OS for your BB, you need to dig through and find all businesses that support your specific model BB and then compare the BONE levels they support.

    5) remove all copies of the SELLER on your PC. XML... There will be at least one and maybe 2, and they will be located in the same way or to (it changes based on your version of Windows) these files:

    • C:\Program Files (x 86) \Common Files\Research In Motion\AppLoader
    • C:\Users\(your Windows username) \AppData\Roaming\Research In Motion\BlackBerry\Loader XML

    Now, if you have installed on your PC the exact same OS version you are running on your device, you should have all the available elements is displayed in the desktop software. However, if you have installed a different version of the operating system that is running on your device on your computer, the result will be probably an offer to change your device installed OS that you have installed on your PC... If this is the case, proceed with caution and be sure to first have a backup complete.

    If you are on a MAC, you are limited to only your sanctioned carriers OS packages... but can still use any level they currently have to sanction. See this procedure:

    • KB19915 How to perform a clean reload of the smartphone BlackBerry using BlackBerry Desktop Software application software

    Good luck and let us know!

  • Windows 7 64 bit worked very well and when was time to save I get the cyclic redundancy check, I try several times and made the same thing I need help please

    worked very well and when was time to save I get the cyclic redundancy check, I try several times and made the same thing I need help please

    Hello Hans,.

    Thanks for choosing Microsoft Community!

    According to the description of the problem, you have problems when you use the backup on Windows 8 feature.

    Please answer these questions to better understand the issue and help you:

    1. are - what you're talking to backup and restore functionality on Windows 7?

    2 have you made any changes to the computer before the show?

    It is perhaps to cause bad sectors on the hard drive, run the disk check to repair bad sectors

    Check your hard drive for errors:

    http://Windows.Microsoft.com/en-us/Windows7/check-your-hard-disk-for-errors

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    For more information:

    Backup and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

Maybe you are looking for

  • What are the causes of horizontal lines punched in the photos

    I own a 3310 all in one and it started showing perforated horizontal on the picture when completed lines.

  • ReadyNAS 516 ReadyCLOUD download problem

    I've been a Mac guy for many years, but I'm old laptop Dell my girlfriend of borrowing and tries to download files from the ReadyNAS. They seem to download very well, but when I look at Windows Explorer in any downloaded file shows as about 1 KB (byt

  • USB modem loses conncection with lenovo x 200

    I have a problem that does not persist on another machine with windows 7. Lenovo connects to internet with this modem, but then sometimes 5 minutes, sometimes after half an hour, the modem loses conncetion, although its dedicated application does not

  • Device only works on a particular USB port

    Hello! I have a model of adapter Belkin F5D 7050 and I used it without a problem since August 2009. He was attached to the USB port on the side of my Dell monitor. I have recently moved house, to get the best signal, I plugged it into the USB port on

  • user profile failed

    Cannot access my accounts. Cann't backup or restore. Help