Listener for a folder set

Hello

I would like to know if it is possible to add the listener to an image folder (folder in my Gallery of images).

Please let me know if possible.thanks.

concerning

Vuvu

I don't think I know, it's possible. What kind of file you check to see if it is open? What is a file in a particular folder?

Tags: BlackBerry Developers

Similar Questions

  • Reg: How to set the listener for AutoTextEditField...

    Hello

    I want to put the listener for the two AutoTextEditField and PasswordEditField.

           Please answer as soon as POSSIBLE.

    AutoTextEditField RegistrationNo = new AutoTextEditField ("RegNumber :","");
    Regno string = "";
    RegistrationNo.setChangeListener (new FieldChangeListener)
    {
    ' Public Sub fieldChanged (field field, int context)
    {
    System.out.println ("* inside listener for RigiNumber * :"); ")
    every time when to enter something on RegistrationNo it will be added to the string regno

    Regno = regno + RegistrationNo.getText ();
    }
    });

  • Implementing custom listener for ListField

    I'm trying to implement a listener for a custom field I created that would launch a new screen when you click on the field. However, nothing happens when I click on the custom field. I use BlackBerry Java plug-in for Eclipse, JDK 1.3 and JRE 6.0. All my code is attached. MyScreen.java contains the code where I'm trying to implement a function fieldChanged.

    //MyApp.Java
    
    package mypackage;
    
    import net.rim.device.api.system.CodeModuleManager;
    import net.rim.device.api.ui.UiApplication;
    
    /**
     * This class extends the UiApplication class, providing a
     * graphical user interface.
     */
    public class MyApp extends UiApplication
    {
        /**
         * Entry point for application
         * @param args Command line arguments (not used)
         */
        public static void main(String[] args)
        {
            CodeModuleManager.promptForResetIfRequired();
    
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            MyApp theApp = new MyApp();
            theApp.enterEventDispatcher();
        }
    
        /**
         * Creates a new MyApp object
         */
        public MyApp()
        {
            // Push a screen onto the UI stack for rendering.
            pushScreen(new MyScreen());
        }
    }
    
    //MyScreen.java
    
    package mypackage;
    
    import net.rim.device.api.ui.container.*; //for vertical manager
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Manager;
    //import net.rim.device.api.ui.Screen;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    /**
     * A class extending the MainScreen class, which provides default standard
     * behavior for BlackBerry GUI applications.
     */
    public final class MyScreen extends MainScreen
    {
        /**
         * Creates a new MyScreen object
         */
        private CustomField cField;
    
        public MyScreen()
        {
            // Set the displayed title of the screen
            setTitle("My New App");
    
            cField = new CustomField("4.PNG","This is my 4th custom field!!");
            ButtonClickListener listener = new ButtonClickListener();
            cField.setChangeListener(listener);
            add(cField);
    
        }//MyScreen function
    
        class ButtonClickListener implements FieldChangeListener
        {
            public void fieldChanged(Field field, int context)
             {
                  //we need to determine which button was clicked
    
                  if(field == cField)
                      new SpeedBumpScreen();
    
             }
    
        }//ButtonClickListener
    
    }
    
    //CustomField.java
    
    package mypackage;
    
    import java.util.Vector;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    
    class CustomField extends ListField implements ListFieldCallback {
        private Vector rows;
    
        public CustomField(String customImg, String customLabel) {
            super(0, ListField.MULTI_SELECT);
            setRowHeight(80);
            setEmptyString("Hooray, no items here!", DrawStyle.HCENTER);
            //setCallback(this);
    
            Bitmap p1 = Bitmap.getBitmapResource(customImg); 
    
            rows = new Vector();
    
            TableRowManager row = new TableRowManager();
    
            row.add(new BitmapField(p1));
    
            // SET THE item NAME LABELFIELD
            // if overdue, bold/underline
            LabelField item = new LabelField("item #" + customLabel,
                DrawStyle.ELLIPSIS);
    
            // overdue
            item.setFont(Font.getDefault().derive(
                Font.BOLD | Font.UNDERLINED));
            System.out.println("OVERDUE");
    
            row.add(item);
    
            // SET THE LIST NAME
            row.add(new LabelField("List Name #" + String.valueOf(1),
                DrawStyle.ELLIPSIS) {
                protected void paint(Graphics graphics) {
                    graphics.setColor(0x00878999);
                    super.paint(graphics);
                }
            });
    
            // SET THE DUE DATE/TIME
            row.add(new LabelField("Due Date #" + String.valueOf(1),
                    DrawStyle.ELLIPSIS | LabelField.USE_ALL_WIDTH
                    | DrawStyle.RIGHT) {
                protected void paint(Graphics graphics) {
                    graphics.setColor(0x00878787);
                    super.paint(graphics);
                }
            });
    
            rows.addElement(row);
    
            setSize(rows.size());
    
        } //end public CustomField()
    
        // ListFieldCallback Implementation
        public void drawListRow(ListField listField, Graphics g, int index, int y,
                int width) {
            CustomField list = (CustomField) listField;
            TableRowManager rowManager = (TableRowManager) list.rows
                .elementAt(index);
            rowManager.drawRow(g, 0, y, width, list.getRowHeight());
        } //end drawListRow()
    
        private class TableRowManager extends Manager {
    
            public TableRowManager() {
                super(0);
            } //end pulic TableRowManager
    
            // Causes the fields within this row manager to be layed out then
            // painted.
            public void drawRow(Graphics g, int x, int y, int width, int height) {
                // Arrange the cell fields within this row manager.
                layout(width, height);
    
                // Place this row manager within its enclosing list.
                setPosition(x, y);
    
                // Apply a translating/clipping transformation to the graphics
                // context so that this row paints in the right area.
                g.pushRegion(getExtent());
    
                // Paint this manager's controlled fields.
                subpaint(g);
    
                g.setColor(0x00CACACA);
                g.drawLine(0, 0, getPreferredWidth(), 0);
    
                // Restore the graphics context.
                g.popContext();
            }//end drawRow()
    
            // Arranges this manager's controlled fields from left to right within
            // the enclosing table's columns.
            protected void sublayout(int width, int height) {
                // set the size and position of each field.
                int fontHeight = Font.getDefault().getHeight();
                int preferredWidth = getPreferredWidth();
    
                // start with the Bitmap Field of the priority icon
                Field field = getField(0);
                layoutChild(field, 32, 32);
                setPositionChild(field, 0, 0);
    
                // set the item name label field
                field = getField(1);
                layoutChild(field, preferredWidth - 16, fontHeight + 1);
                setPositionChild(field, 34, 3);
    
                // set the list name label field
                field = getField(2);
                layoutChild(field, 150, fontHeight + 1);
                setPositionChild(field, 34, fontHeight + 6);
    
                // set the due time name label field
                field = getField(3);
                layoutChild(field, 150, fontHeight + 1);
                setPositionChild(field, preferredWidth - 152, fontHeight + 6);
    
                setExtent(preferredWidth, getPreferredHeight());
            }//end sublayout()
    
            // The preferred width of a row is defined by the list renderer.
            public int getPreferredWidth() {
                return Graphics.BLACK;
            }
    
            // The preferred height of a row is the "row height" as defined in the
            // enclosing list.
            public int getPreferredHeight() {
                return getRowHeight();
            }
    
        }// private class TableRowManager extends Manager 
    
        public Object get(ListField listField, int index) {
            // TODO Auto-generated method stub
            return null;
        }
    
        public int getPreferredWidth(ListField listField) {
            // TODO Auto-generated method stub
            return 0;
        }
    
        public int indexOfList(ListField listField, String prefix, int start) {
            // TODO Auto-generated method stub
            return 0;
        }
    
    } //end class CustomField extends ListField implements ListFieldCallback
    
    //SpeedBumpScreen.java
    
    package mypackage;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public final class SpeedBumpScreen extends MainScreen
    {
        /**
         * Creates a new HelloWorldScreen object
         */
        SpeedBumpScreen()
        {
            // Set the displayed title of the screen
            setTitle("Speed bump screen");
    
            // Add a read only text field (RichTextField) to the screen.  The
            // RichTextField is focusable by default. Here we provide a style
            // parameter to make the field non-focusable.
            add(new RichTextField("This is the speed bump screen!", Field.NON_FOCUSABLE));
        }
    
    }
    

    In addition, there is nothing in the ListField that will actually generate an event.

    Here is a simple extension to the ListField which will make "clickable".  In your FieldChangeListener you can use getSelectedindex to determine which line has the focus.

    Please ask if this isn't clear:

    public class ClickableListField extends ListField {
    
        public ClickableListField(int numberOfRows) {
            super(numberOfRows);
        }
    
        protected boolean navigationClick(int status, int time) {
            this.fieldChangeNotify(2);
            return true;
        }
    
        protected boolean touchEvent(TouchEvent message) {
            int x = message.getX( 1 );
            int y = message.getY( 1 );
            if( x < 0 || y < 0 || x > getExtent().width || y > getExtent().height ) {
                    // Outside the field
                    return false;
            }
            // If click, process Field changed
            if ( message.getEvent() == TouchEvent.CLICK ) {
                this.fieldChangeNotify(2);
                return true;
            }
            return super.touchEvent(message);
        }
    
    }
    
  • PIM listener for memo change

    I read through the API to find out how to add a listener for memos.  I want to take the changes/additions/deletions of memos using the MemoPad application. BlackBerryPIM has MEMO_LIST, butaddListChangeListener(ListChangeListener listener) has:

    pimListType - the type of PIM list to open; valid values include CONTACT_LIST, EVENT_LIST and TODO_LIST.

    Can I set a listener to the evolution of the memo? If so, how?

    use BlackBerryPIM.MEMO_LIST

  • Creation of local listener for 11.2

    Version: 11g Rel 2
    Platform: Solaris 10
    2 node RAC

    Because of our custom requirements, we create our DBs CARS manually. Due to downtime, we create a listener for each DBs.

    If you are using dbca, all the below mentioned are the things in dbca. But if I used dbca I shouldn't know the existence of the file endpoints_listener.ora... and so on.

    Here's the scenario
    =============

    We already have our SCAN listener running on the port 31548.
    Now we create our local listener. So, I used netca to create the listener.

    DB name                 : HEWPROD
    Listener name           : LSNRHEWPROD (using netca to create this listener)
    Port                    : 25382
    Host name of Node1     : HWSTM348
    Host name of Node2     : HWSTM349
    NETCA added the following lines the listener.ora and endpoints_listener.ora
    1. listener.ora
    ==================
    LSNRHEWPROD=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LSNRHEWPROD))))                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LSNRHEWPROD=ON                                                    # line added by Agent
    
    
    2. endpoints_listener.ora
    ============================
    LSNRHEWPROD_HWSTM348=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hwstm348-vip)(PORT=25382))(ADDRESS=(PROTOCOL=TCP)(HOST=10.213.107.87)(PORT=25382)(IP=FIRST))))                # line added by Agent
    Question1.
    What is the endpoints_listener.ora file? What does the word "point limit"?

    Question2.
    After the creation of the earpiece using netca, we follow these steps on each nodes to get the listener service DB
    alter system set local_listener='listener_<instance_name>' scope=both;
    eg:
    alter system set local_listener='listener_hewprod1' scope=both;
    The statement above works despite the fact that he has none of these headphones with the name
    listener_hewprod1
    The real listener created by netca is LSNRHEWPROD. But how the (parameter LOCAL_LISTENER) command above?

    Yes, they can listen on the same port because each process uses a different IP address.

    The SCAN_LISTENER is listenening to a maximum of 3 different IP addresses.
    The local listener is listening on the virtual IP address, which is different from the SCAN LISTENER addresses.

    Do not hesitate if you have any questions!

    Melanie

  • How to create a service listening for 10g in Win2k?

    Hello

    I accidentally deleted the service listening for 10g in our win2k server using the wizard netconfig.
    I want to create a new, but I can't do the net assistant is just hangging forever.

    I can still start the listener to prompt back and set it up manually using the manual editing of LISTENER.ora

    How to create a service back order please. Or do I need to create a?


    Thank you very much

    Edited by: KinsaKaUy? on June 30, 2011 23:07

    KinsaKaUy? wrote:
    Hello

    I accidentally deleted the service listening for 10g in our win2k server using the wizard netconfig.
    I want to create a new, but I can't do the net assistant is just hangging forever.

    I can still start the listener to prompt back and set it up manually using the manual editing of LISTENER.ora

    How to create a service back order please. Or do I need to create a?

    Thank you very much

    Edited by: KinsaKaUy? on June 30, 2011 23:07

    If you create a listener using NETCA, service will be created.

  • Graphic of alias created for the folder is not transferred in the doc.  Everything in batteries.

    Graphic of alias created for the folder is not transferred in the doc.  Everything in batteries.  Done in PS and saved as a JPEG.  I did a lot.  not sure why it does not work now.  These are records that have elements in them and it only shows the stacks of items in the folder in the doc.

    ideas?

    control, click the icon in the Dock and have her take > folder

  • If I transfer the application to Ninja Stealth Drive for MacBooks folder it works from there?

    If I transfer the application to Ninja Stealth Drive for MacBooks folder it works from there?

    The Applications folder should not be moved to separate from the full operating system.

    (141293)

  • For any folder of bookmarks, is - it possible to have subfolders appear * superior * individual links?

    For any folder of bookmarks, is - it possible to have subfolders appear all * superior * the individual links (as they do in Internet Explorer), rather than mixed together in alphabetical order? (Or maybe an add-on that will allow me to do this?)

    The add-on SortPlaces can be useful to you, it gives greater control to sort the bookmarks and folders.

  • I can't open my folder "internet options"... believe that there are problems or questions in the parametrs for this folder.

    problems of folder for the file 'internet options '.

    I can't open my folder "internet options"... believe that there are problems or questions in the parametrs for this folder.

    I'm unable to download or print anything from to interent explorer or any other internet connection.

    Hi rich,

    Please upgrade to Internet Explorer, some of the problem it solves.

    Kind regards
    J Chambers
  • Special software is required to install an icon for a folder?

    Hello

    Special software you need to install a free icon ending in .png to a new folder I created?

    I don't really know anything about the installation of free custom icons.

    Thank you

    I understand that you want to install a file .png for a folder.

    Special software is unnecessary.

    Follow these steps"

    1. Select the folder

    2. right click and select Properties

    3. click on customize

    4. under image folder, click on choose an image

    5. navigate to your .png file

    6. click on OK

    7. click on OK

    Hope this helps

    Post back if necessary

    ____________________

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • turn off the "allow for remote assistance" setting prevents someone view my computer remotely?

    original title: Hi, I wonder, if someone has access to my ip address and I want to prevent them from view remotely or even control my activities, turn off the "allow for remote assistance" setting prevent from coming into my computer?

    Hi Dom.A


    Yes, if you have given access or invited a person to have access remotely from your computer, then definitely disabled this option helps you. Refer to the following links for assistance on the question and check.
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-remote-assistance-frequently-asked-questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-happens-when-I-enable-Windows-remote-assistance

     

    I hope this helps.

  • Windows 7 - enable the display settings for each folder: folder options, "save the display settings for each folder".

    Hello.

    Any one out there know how to activate the display settings for each folder in WINDOWS 7?

    I'm especially interested in adjusting the size and the location on my screen.  A few days earlier, before moving to Windows 7: I could open a file, place and size where I wanted, and when I opened it again, presto!, even spot and size.

    I've seen several posts of users seeking to turn this feature off.  I'm looking forward in opposition.   I would like to than windows "remember each folder view settings.  This particular configuration seems to no longer be available in Windows 7, screenshot attached:

    Thank you for your time and your interest.

    Best regards

    Fernando

    Have you tried the solution here:

    "The changes in the size, view, icon or a file are lost.

    <>http://support.Microsoft.com/kb/813711/en-us >

    HTH,

    JW

  • Listener for ObjectChoiceField

    I am trying to add a listener for an ObjectChoiceField in the same way I did for a ButtonField in this code. But I get an error in this line ObjectChoiceField choiceSelected = field (ObjectChoiceField);

    For now I check to headset ObjecChoiceField with a dialog.alert. If it works then I intend to add a BitmapField to the screen that would alter the images with different selections in the drop-down list (ObjectChoiceField).

    Any help would be appreciated!

    SerializableAttribute public class TestListeners extends UiApplication {}

    Public Shared Sub main (String [] args) {}

    PAP TestListeners = new TestListeners();

    theApp.enterEventDispatcher ();

    }

    public TestListeners() {}

    pushScreen (new TestListenersScreen());

    }

    final TestListenersScreen class extends form {}

    public TestListenersScreen() {}

    HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();

    Add (_fieldManagerBottom);

    ButtonField canadaButton = new ButtonField ("Canada");

    ButtonField ukButton = new ButtonField ("UK");

    ButtonField usButton = new ButtonField ("USA");

    FieldChangeListener buttonListener = new FieldChangeListener() {}

    ' Public Sub fieldChanged (field field, int context) {}

    ButtonField buttonPressed = field (ButtonField);

    Status.Show (buttonPressed.getLabel () + "button has been pressed");

    }};

    canadaButton.setChangeListener (buttonListener);

    ukButton.setChangeListener (buttonListener);

    usButton.setChangeListener (buttonListener);

    _fieldManagerBottom.Add (canadaButton);

    _fieldManagerBottom.Add (ukButton);

    _fieldManagerBottom.Add (usButton);

    String [] choiceArray = {'image1', 'image2', 'image3'};

    ObjectChoiceField choice = new ObjectChoiceField ("Drop-down list for choosing" choiceArray, 1);

    ChoiceListener myChoiceListener = new ChoiceListener();

    choice.setChangeListener (myChoiceListener);

    Add (Choice);

    }

    }

    }

    / public class ChoiceListener implements FieldChangeListener {}

    ' Public Sub fieldChanged (field field, int context) {}

    ObjectChoiceField choiceSelected = (ObjectChoiceField) field.<-->

    Dialog.Alert ("choice" + choiceSelected.getSelectedIndex () + "has been pressed");

    }

    };

    What is the error you get?

    I have field listeners that listen on the buttons and the ObjectChoiceFields.  I use code like:

    ' Public Sub fieldChanged (field field, int context) {}

    If (field instanceof ObjectChoiceField) {}

    ObjectChoiceField test = field (ObjectChoiceField);

    Dialog.Alert ("choice" + test.getSelectedIndex () + "has been pressed");

    }

    }

  • How to receive as net.rim.blackberry.api.mail.Message When listening for incoming sms?

    There are 3 types of ways to listen for incoming sms in the following link:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    All those who receive the javax.wireless.messaging.Message for further processing.

    I need to check the priority of the message received, which is only available in net.rim.blackberry.api.mail.Message and not javax.wireless.messaging.Message.

    Can someone guide me to get the net.rim.blackberry.api.mail.Message When listening for incoming sms?

    Thank you.

    Net.rim.blackberry.api.mail.Message is actually for mails not for sms

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

Maybe you are looking for