AllDAY using javax.microedition.pim.Event events calendar

Hi all

I try to save an event all day in the database using javax.microedition.pim.Event of PIM data. According to the Docs, I add an event that has a start time of 00:00:00:000 (defined by DateTimeUtilities.zeroCalendarTime) and a set of end for the next time, once again, the 00:00:00:000 value.

The event shows correctly in the application calendar of BB, but it is not recognized as an Allday event.

It is: that I need TO use the BlackBerryEvent interface to get the calendar to acknowledge an event like allday or I can do this with just using the event interface?

Another issue: State of the Docs for the event interface:

------------------------------

RIM implementation notes

The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

------------------------------

Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

Kind regards

Carsten

PS: Need to add that I use 4.5 JDE and the 8820 4.5 Simulator

You must use BlackBerryEvent to specify a appointent all day.

DerCarstenUK wrote:

Hi all

Another issue: State of the Docs for the event interface:

------------------------------

RIM implementation notes

The value stored in the field of the END can be modified slightly when it is committed. The field is stored with a granularity of one minute compared to the STARTING field.

------------------------------

Alteration is transparent to the user of the API? When I check the END field after you have selected and hired, it shows no alteration.

Tags: BlackBerry Developers

Similar Questions

  • Consume a Web service using javax.microedition.xml.rpc.Operation

    Requirement. Consume a Web Service using native libraries of Blackberry.

    Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

    WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

    Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

    First Guide of: http://blog.bayestech.com/?tag=blackberry

    1 Java Stub

    public interface IWeatherServiceZip
    {
        public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;
    
    }
    

    2. Service Java class

    import java.rmi.RemoteException;
    import javax.microedition.xml.rpc.ComplexType;
    import javax.microedition.xml.rpc.Element;
    import javax.microedition.xml.rpc.Operation;
    import javax.microedition.xml.rpc.Type;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    
    import com.lm.bb.ws.interfaces.IWeatherServiceZip;
    
    /**
     * @author lmo0
     *
     */
    public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
    {
        protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
        protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final Element _type_GetCityWeatherByZIP;
        protected static final Element _type_GetCityWeatherByZIPResponse;
    
        private String[] _propertyNames;
        private Object[] _propertyValues;
    
        public WeatherServiceZip()
        {
            _propertyNames = new String[]
            { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[]
            { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
        }
    
        public void _setProperty(String name, Object value)
        {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    _propertyValues[i] = value;
                    return;
                }
            }
            String[] newPropNames = new String[size + 1];
            System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
            _propertyNames = newPropNames;
            Object[] newPropValues = new Object[size + 1];
            System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
            _propertyValues = newPropValues;
    
            _propertyNames[size] = name;
            _propertyValues[size] = value;
        }
    
        public Object _getProperty(String name)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    return _propertyValues[i];
                }
            }
            if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                    || USERNAME_PROPERTY.equals(name)
                    || PASSWORD_PROPERTY.equals(name))
            {
                return null;
            }
            if (SESSION_MAINTAIN_PROPERTY.equals(name))
            {
                return new Boolean(false);
            }
            throw new JAXRPCException("Stub does not recognize property: " + name);
        }
    
        protected void _prepOperation(Operation op)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                op.setProperty(_propertyNames[i], _propertyValues[i].toString());
            }
        }
    
        public String getWeatherServiceByZip(String zipCode) throws RemoteException
        {
            Object inputObject[] = new Object[]
            { zipCode };
    
            Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
            _prepOperation(op);
            op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
            Object resultObj;
            try
            {
            resultObj = op.invoke(inputObject);
            System.out.print(resultObj.toString());
            } catch (JAXRPCException e)
            {
            e.printStackTrace();
            Throwable cause = e.getLinkedCause();
            if (cause instanceof java.rmi.RemoteException)
            {
            throw (java.rmi.RemoteException) cause;
            }
            throw e;
            }
            return (String) ((Object[]) resultObj)[0];
        }
    
        static
        {
            _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
            _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
            }
    
        private static ComplexType _complexType(Element[] elements)
        {
            ComplexType result = new ComplexType();
            result.elements = elements;
            return result;
        }
    }
    

    3 problem

    There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

    resultObj = op.invoke (inputObject);

    Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

    Thank you

    How do you generate the stub class? Have you used Sun's Wireless Toolkit?

  • Application crashes with the Exception when using javax.microedition.media.Player

    Hello

    I have an application that processes data from bluetooth and send it to the web service. Recently, there was a request to add sounds to the request. Now when the application processes lots of data and the player plays constantly after a few seconds I get exception "Application is not responding. And then the treatment is finished. In the newspapers, I see many connected after this exception ForcedStackTrace exception.

    The sounds are played in the separate thread. If the app is not play sounds or short sounds - everything works fine. Is it possible to avoid what happens an exception? Why this is happening?

    Thanks in advance,

    Viktor.

    Solved by implementing my own PlayerManager, which running in a separate thread would point the way to the queue rather then the number of threads by using the internal player application.

  • Blackberry problems with javax.microedition.HttpConnection

    Hi all

    I am currently working on an application that connects to the Web service using javax.microedition.io.HttpConnection;

    I want to do several generations for the request of 4.7, 5.0 and 6.0. I have a very big problem because as I've debugged since now the request to the server is only to send the version 4.7 and I have not found a solution to work for other versions. The code is the same, but I have an InterruptedIOException with the message that LocalConnection expired after ~ 10000. I had this error on the 9800 Simulator tests.

    How it is possible to work on 4.7 but on other versions of crash?

    Have you had similar problems? Shoud I code to help with this? This is a very critical situation.

    Kind regards

    Bogdan

    Try to use '; deviceside = true' to your URL. Also, take a look at Peter in sticky for many useful code to develop applications of HttpConnection.

  • Play sounds of media on a certain event? "Error: javax.microedition.media.MediaException: no support type.

    Hello, I'm trying to play MP3 files.
    Example, if the answer is just play then "sound1.mp3 '...
    However, I get this error: "" javax.microedition.media.MediaException: unsupported type of «»
    Although I read that mp3 files are supported.
    I used this tutorial " http://docs.blackberry.com/en/developers/deliverables/17968/CS_Playing_audio_in_a_BB_device_app_1222... ".

    Note: I use Blackberry JDE 5.

    This is the code that I have actually used (has not changed anything core):

    Try
    {

    Player p = javax.microedition.media.Manager.createPlayer ("C:/Documents and Settings/User/space work/celebrity/res/sounds/RoundStart");
    p.Realize ();
    VolumeControl volume = (VolumeControl) p.getControl ("VolumeControl");
    volume.setLevel (30);
    p.prefetch ();
    p.Start ();

    }
    catch(MediaException me)
    {
    Dialog.Alert(me.) ToString());
    System.out.println ("Error:" + me.toString ());
    }
    catch (IOException ioe)
    {
    Dialog.Alert (ioe. ToString());
    System.out.println ("Error:" + ioe.toString ());
    }

    ------------------

    Thanks for the help in advance

    If you want to reference audio files in your application, the above will not work.  You must code differently.

    try something like this

    Class cl = Class.forName(replace_this_with_your: packageName.classname); //
    InputStream is = cl.getResourceAsStream("/somesound.mp3");
                   
    Create an instance of the reader of the InputStream
    p = Manager.createPlayer (that is, "audio/mp3");

  • Events calendar on Mac sync iPhone or Apple Watch

    Input events calendar I have on my Mac don't sync my iPhone or Apple Watch.  Events calendar on iPhone synch to iMac.  in iCloud preference, I've marked contacts, calendars and notes.  All the work schedules.  Any suggestions?

    Option 1) update your calendars and reminders of the app of calendars:

    Open the calendar application.

    Choose View > refresh calendars.

    Try option 2) remove the account in calendar > Preferences > accounts.

    Now add back.

    Option 3) if it still fails to work, try to test in the comments or new user.

    CREATE A NEW USER

    Go to system-> Preferences, create a new user in users and groups.

    Switch to the new user by logging incoming/outgoing or use the fast user switching.

    Connection with Apple ID

    Only select Calendar for this test.

    Open calendar and test by adding an event and see if it syncs with the iPhone.

    You still see the issue?

    If so, see these steps by khati for Installation of Sierra difficulty. I suggest you reinstall Sierra again.

    If not, then the problem is in your user folder.

    Journal of the user and then Log in your user folder.

    With Calendar.app quit...

    Go to the library to the user (see below)

    Scroll to the bottom for calendars

    Place these files in the Recycle Bin

    • Calendars/calendar Cache
    • Calendars/calendar Cache-shm
    • Calendars/calendar Cache-shm

    Also in the user's library, scroll to containers. Move these to the desktop.

    • Containers/com.apple.CalendarAgent
    • Containers/com.apple.iCal

    Scroll down to preferences. Move these to the desktop.

    • Preferences/com.apple.CalendarAgent.plist
    • Preferences/com.apple.iCal.plist

    Sign out under the Apple in the menu bar.

    Open a session

    Open Calendar.app

    It's working now?

    Library of the user to see the

    The user library folder is hidden by default. In the unhide: select the Finder in the Dock. Less go in the Menu bar > hold down the Option key and you will see the library.

    Find the library user folder

    http://www.takecontrolbooks.com/resources/0167/site/chap11.html#FindingtheUserLi braryFolder

  • Is snooze for events calendar from iOS10?

    After the upgrade to iOS v10.0.1 has more option of repetition of the events calendar from the locked screen.

    It is some basic functions which was included in previous versions of Mayor (I think on v8.x) but now is gone...

    This will impact significantly every single business user

    Hi issac73,

    Thanks for the update to iOS 10! I see that you are unable to repeat your lock screen calendar events. Below you will find some tips on managing your Notifications while the iPhone is locked.

    Notifications on your lock screen

    In iOS 10, you can interact with notifications on the lock screen to catch up on the news, answer messages and more without unlocking your device.
    Here are a few ways in which you can view and interact with the lock screen notifications:
    To view your lock screen, press the Home button or the sleep/wake. If you have an iPhone 6s or later, pick up your device to see the lock screen.
    To respond to a notification, by sweeping left on it, and then tap answer. If you have an iPhone 6s or later, use can use Touch 3D. Just press the notification deeply, then answer.
    To open the application to answer, drag right on the notification.

    Use the Notifications on your iPhone, iPad and iPod touch

    These tips should help you to make the most of your Notifications on your lock screen. Please use the Apple Support communities to post your question. Have a great day.

  • Problem at the opening of the event calendar in my application

    I create a new event calendar with this code:

    CalendarService service;
    Event CalendarEvent;

    event.setAccountId (1);
    event.setFolderId (1);

    event.setBusyStatus (BusyStatus::Busy);

    event.setSubject (QString::fromUtf8 ("title model"));
    event.setBody (QString::fromUtf8 ("a model body"));

    event.setLocation (QString::fromUtf8 ("fictional location"));

    event.setTimezone("Europe/Berlin");
    event.setStartTime (QDateTime::fromString ("2014-08-23 15:30", "yyyy-MM-DD hh: mm; :")) "))
    event.setEndTime (QDateTime::fromString ("2014-08-23 17:15", "yyyy-MM-DD hh: mm; :")) "))

    event.setReminder (120);

    service.createEvent (event);

    It works very well. Get an event ID valid and I can see the event in my calendar. Now, I want to open/edit the calendar inside my application entry, so I try to invoke an application to change the event:

    Application of InvokeRequest;

    request.setTarget ("sys.pim.calendar.viewer.eventcreate");
    request.setAction ("bb.action.EDIT");
    request.setMimeType("text/calendar");

    QVariantMap map;
    Map.Insert ("accountId", event.accountId ());
    Map.Insert ("ID", event.id ());
    Map.Insert ("file", event.folderId ());
    Map.Insert ("startTime", event.startTime (m:System.NET.SocketAddress.ToString ()));

    bool ok;
    QByteArray data = PpsObject::encode(map, &ok);)
    request.setData (data);

    m_invokeManager-> invoke (request);

    This opens the calendar inside my application, but with a new empty calendar event.

    What I am doing wrong? I already searched this forum for other people who have or had this problem and I found a few old son but their code looks like mine and I can't find a real difference.

    Okay, I found my mistake.

    bb.action.EDIT<-->

    bb.calendar.EDIT<-->

    :-)

  • Synchronize your events calendar iPad (or calendar iCloud) events to your calendar Windows Surface Pro?

    Separated from this thread.

    Have you ever able to synchronize your events calendar iPad (or calendar iCloud) events to your calendar Windows Surface Pro? I tried the two support the Apple technology AND Windows technical support and they have no answers for me. Two of them say don't know is not how the other operating system. Kind of infuriating. Did you?

    Hi cgreen,.

    Here in this scenario, I suggest to add your iClound account to the calendar application and check if it helps. Try the following steps to add an account to the calendar application.

    1. On start, tap or click Calendar.
    2. Enter in the right edge of the screen, and then tap settings.
      (If you use a mouse, point to the upper right of the screen, move the pointer of the mouse down and then click settings.)
    3. Tap or click accounts.
    4. Press or click Add account, le type the type of account you want to add, and then follow the on-screen instructions.

    By adding the iCloud account, you can synchronize the calendar events in iCloud with calendar app in Windows 8.

    For more information, you can consult the following Microsoft Help article.

    http://Windows.Microsoft.com/en-us/Windows-8/calendar-app-FAQ

    Please reply with the status of the issue so that we can better help you.

  • How can I determine whether to use a structure of event or case?

    I'm starting a major project and need a state machine. I can't decide whether to use a case or event structure. Y at - it an article or any other information that describes the selection criteria between the two approaches?

    Thank you

    Chuck

    Normally a state machine is implemented with a box structure. It is possible to apply it with a structure of the event, but it's not the way I would go. I think that the two items that you really want to read are:

    Application Design Patterns: Producer/consumer

    Application Design Patterns: State Machines

  • Using Windows 7. Event ID 41, error "Kernel-power".

    Using Windows 7. Event ID 41, error "Kernel-power".  Bugcheckparameter1 0xffffffffc0000005, bugcheckParameter2 0xfffff880066267cc, bugcheckParameter3 0 x 1, parameter4 bugcheck 0 x 78.  False SleepInProgress. "After getting this twice, the error is not returned, but all the websites that have great graphics freeze.  Had not made any changes to the drivers, but still tried a restore, which failed.

    no problem with chkdsk/r, or sfc/scannow.  When I re downloaded Java 7 websites worked for about 5 minutes then went back to hanging.

    Hello

    Thanks for posting your query in Microsoft Community and we give the opportunity to help you.

    According to the description of the problem you are facing some performance issues with Windows 7 and receive the error message saying event ID 41, error "Kernel-power". To help you to propose measures to solve the problem, I would appreciate if you could answer the following question:

    Did you do changes on the computer before the show?

    In the meantime, I suggest to read the following article and check if it works.

    Of core Windows event error ID 41 'the system has rebooted without cleanly close the first' in Windows 7 or Windows Server 2008 R2

    http://support.Microsoft.com/kb/2028504/en-us

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • new javax.microedition.lcdui.Graphics () error (not public are accessible)

    Hey. Just do some drawing and had a compilation error

    Graphics is not public in javax.microedition.lcdui.Graphics; are not accessible from the outer packaging

    javax.microedition.lcdui.Graphics gr = new javax.microedition.lcdui.Graphics ();   //

    gr.drawRect (100,50,200,100);

    In the online JDE 4.7 QAnywhere, the class is public not private. There's no docs for the Builder. I have tried providing an arg but no dice. I use this class of lcdui because other graphics can't shoot a picture object.

    Ideas appreciated, has soon

    J

    Hey-learned that the only way to get an instance of the javax.microedition.lcdui.Graphics object is to use

    myGraphics = javax.microedition.lcdui.Image.getGraphics)

    So that's it.

    JD

  • javax.microedition.Media.Control - where is it?

    So still trying to stream - and this time watching the video.  This HAS to be a simple explanation.

    I'm trying to create a VideoControl object - but get an error 'undefined class' VideoControl.

    I have:

    Javax.microedition.media import. *; in my file, then in frustration, I added:

    Import javax.microedition.media.control;

    How I got an error saying "cannot find class symbol control" on this line.

    I'm missing a few packets of MIDP 2.0 or something?

    I am using JDE 4.5 - but have tried ad 4.3 4.7 with the same result.

    Where are these stored in the JDE packages?

    Jim

    Good problem solved. Please mark the thread as solved.

  • How to set up a Multicast UDP connection? I get the following error: javax.microedition.io.ConnectionNotFoundException

    I need build a Multicas UDP connection, with the following connection string: multicast://224.2.3.4:8888,.
    udpMulticastConnection = (UDPMulticastConnection) Connector.open (" " "multicast://224.2.3.4:8888");

    but I'm javax.microedition.io.ConnectionNotFoundException.

    I read in the doc of the api, I have made a UDPDatagramConnection. I wore the UDPDatagramConnection but the udpMulticast still not do.

    Can someone help me? Please

    Thank you.

    Some useful links:

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    UDPDatagramConnection (Java (TM) ME generic connection Framework, Version 8 (final JSR360))

    BNF multicast protocol

    Java (TM) ME generic connection Framework, Version 8 (final version of JSR360)

    http://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/ConnectionNotFoundException.html

    https://docs.Oracle.com/JavaME/8.0/API/GCF/API/javax/microedition/IO/package-summary.html

    Hello!

    Unfortunately, multicast is not supported by Java ME on RPi. Looks like it still takes much effort to patch raspbian OS itself to support so that we did not continue to support me. Sorry

    Kind regards

    Andrey

  • javax.microedition.io.file.FileConnection JavaDoc?

    I'm looking for the JavaDoc on the next class: javax.microedition.io.file.FileConnection

    I searched the JavaDoc for the GCF at the link below.  There is no results for FileConnection, or javax.microedition.io.file else.

    Generic connection framework, Version 8 (b75)

    Based on this link for the docs to Blackberry, the javax.microedition.io.file.FileConnection used to be generated with the JavaDocs (there are maybe, but always seems the JavaDoc has a bug)

    FileConnection (BlackBerry JDE API Reference 7.1.0)

    If you know where the CURRENT package and class are documented, I would be grateful for the tip!

    Brent S

    Hi Brent,

    In fact, that javadoc FileConnection on the blackberry site should be current. This is because is JSR 75 FileConnection and JSR 75 had only one version, 1.00. This JSR is not owned by Oracle so you see it's javadoc on the Oracle website. However in regards to any JSR you can download it here https://jcp.org/en/jsr/detail?id=75

    One more comment: GCF as he is of his name is a framework. It outlines the principles of the Organization of generic access to the connections so that provides some specific protocols. But this is not the end: it is designed, the other parts of the Java stack would be connect by providing specific features of protocols. And actually, there are these parts there. For example JSR75 FileConnection or Bluetooth JSR82

    Kind regards

    Andrey

Maybe you are looking for