Package javax.microedition.pim

Examples of javax.microedition.pim.EventList.createEvent()


            } else {
                eventList = (EventList) PIM.getInstance().openPIMList( PIM.EVENT_LIST, PIM.READ_WRITE );
            }

            if( _event == null )
                _event = eventList.createEvent();

            if( _event.countValues( Event.LOCATION ) > 0 ) {
                if( location.length() > 0 ) {
                    _event.setString( Event.LOCATION, 0, Event.ATTR_NONE, location );
                } else {
View Full Code Here


    protected boolean onSave() {
        try {
            final EventList eventList =
                    (EventList) PIM.getInstance().openPIMList(PIM.EVENT_LIST,
                            PIM.WRITE_ONLY);
            _event = eventList.createEvent();

            final String subject = _subject.getText().trim();
            final String location = _location.getText().trim();
            final long startTime = _startTime.getDate();
            final long endTime = _endTime.getDate();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.