Point ListField

Hello

After I have insert an element into a listfield using the insert() function.

How can I get the answer when I use the wheel to click on it.

For example.

I have a list

Tom

John

Grace

When I scroll using the wheel of John, I want to be able to open as a pop-up window or to an action.

or is there another method I can use to display a list of names and to allow the user to click on a name with the wheel?

use of navigation click method... I send you some sample code substitute your name of listfield and use it...

protected boolean navigationClick(int status, int time) {

         Field field = this.getFieldWithFocus();
         if(field.equals(eventListField)){
             int index = eventListField.getSelectedIndex();

    // Do some thing here what you want with that index...          //UiApplication.getUiApplication().pushScreen(new DetailPage((Event) eventList.elementAt(index)));

         }
        return super.navigationClick(status, time);
    }

Tags: BlackBerry Developers

Similar Questions

  • Point ListField not updated correctly

    Hello world. I'm not very old in BB platform. This is my first post. Hopefully I'll get the key to my answer here.

    I developed an application where on one screen, I have a Listfied.The of the listfield rows are populated by the data of a vector. The line contains a single image to the left, two texts in the centre and two images on the right. Everything is fine until now. Now my requirement is that rather than displaying all 30 points only once, I need to implement pagination and displays 10 items by each shot.

    When the listfield screen comes for the first time, all of the 10 items are displayed. Basically, I have developed a next button and perform the action reqd. I can see that the contents of the vector is added successfully with the help of the print statement. But when he gets only the first element which is added gets displayed in the rows of the listfield and the rest of the elements. I tried with only two elements, image and text, but watever I add first to the TableRowManger (our own class manager) only this element gets dispalyed while I do pagination. Everything is added after that which is not displayed.

    I tried to call invalidate() on listfield instance, but without success. Why only the first element is displayed and not the rest, while I clearly see that the contents of the vector is added to the TableRowManager successfully. I'm scrathing my head with two heads, if I can get help from you all, I'll be very grateful. Thanks in advance.

    drawListRow is the reminder of the draw.
    Find out why it attracts the bitmaps, but not the rest.

  • get all the items you selected / checked

    Hello

    How all the items selected in a list that can be read?

    I need get all items (enabled) in the list and fill a vector...

    I get not all selected items, I only get the element on which is currently...

    Help, please

    Hello

    Exactly what I wanted to say, you need to implement this thing on yourself.

    I will try to explain the step hope it will help

    (1) create an array whose length is the same as listField.Intialize this table by 0 which means initially no element is selected.

    (2) each position in the table represent the listField position.

    (3) to each selection on listField change the corresponding value in table 1, for example if you select 2 point listField change the value in position 2 in table 1, if you select again the same option to new swtich tha value to 0.

    (4) Finally, when you want to extract the value of the selected item in the listfield, select all the table position with the value 1.

    I tried to explain the hope it will help you.

  • How can I point of ListField

    I want to obtain the ListField. But I don't get.

    To get the Index of the selected item

    Write us listFeed.getSelectedInde (); It returns the Index of the SelectedItem

    But I want the name of the element.

    How can I achieve this.

    Please tell me.

    My project stuck on this problem.

    Look at the drawListRow method in the ListFieldCallback. This code is responsible for displaying the name of each line; You can use the same logic to get the name for other purposes.

  • Highlight of the ListField point regions

    Hello

    First of all, I'm sorry if it has been requested before that I couldn't find an appropriate solution.

    I have a problem with highlighting of certain regions within a ListField element. Currently my ListField object contains a bitmap on the left and a few lines of strings on the right. My goal is to highlight the bitmap on the left, or the first line of the string to the right when they are under discussion. How can I do?

    Thank you very much

    Tina

    The following example should help with this.  It highlights a whole line, but you can change it to highlight a part of the line.

    Create a color ListField

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-colour-ListField/Ta-p/442955

  • How to show the ListField focus point in reverse or other color

    I saw similar comments, but not enough information to go. I'm new to b'berry and java too, this is my first application, and it comes to Notifications, storage options, the requests HTTP, XML and browser integration, there has been a steep learning curve!

    I have a ListField with a ListFieldCallback, which draws text in the list of members. When the wheel is used to select items, the background is blue but unchanged in the foreground, making almost unreadable text. I want the text to be reversed in color, or blue background (preferably) be a rectangle outline. I think that the answer lies somewhere like getCallback and focusRect, but I don't know what to do. Ideally, I would like to change the code in the callback class 'drawListRow()', but I suspect that things are not so simple!

    My code looks like (sorry I can't put much too, I wanted to know what pieces of change):

    ...
    
    final class SMobile extends UiApplication
    {
    ...
        private ListCallback myCallback;
        private ListField myList;
    
        public static void main(String[] args)
        {
    ...
                SMobile theApp = new SMobile( true);
                theApp.enterEventDispatcher();
    ...
        }
    ...
        private SMobile( boolean runmode)
        {
    ...
                myList = new ListField();
                myCallback = new ListCallback();
                myList.setCallback(myCallback);
                myCallback.erase();
    
                _mainScreen.add(myList);
    ...
                pushScreen(_mainScreen);
        }
    ...
        private static class ListEntry {
            public String s = "";
            public String t = "";
            public String f = "";
            public String st = "";
            public String m = "";
        }
    
        private static class ListCallback implements ListFieldCallback {
            private Vector listElements = new Vector();
    
            public void drawListRow(ListField list, Graphics g,
                                            int index, int y, int w) {  
    
                ListEntry _entry = (ListEntry)listElements.elementAt(index);
    
                if ( _entry.st.indexOf("U") != -1)
                {
                    g.setColor( Color.DARKRED);
                }
                else
                {
                    g.setColor( Color.DARKGREEN);
                }
    
                Font _font = g.getFont();
                int size = (_font.getHeight() ) / 2;
                _font = _font.derive(0, size, Ui.UNITS_px);
                g.setFont( _font);
                g.drawText(_entry.s.concat(", ").concat(_entry.t).concat(",").concat(_entry.st),
                            0, y+1, (int)( DrawStyle.ELLIPSIS | DrawStyle.LEFT ), w);
    
                g.setColor( Color.BLACK);
                g.drawText(_entry.f.concat(", ").concat(_entry.m),
                            10, y + _font.getHeight()-1,
                            (int)( DrawStyle.ELLIPSIS | DrawStyle.LEFT ), w);
            }
    
            public Object get(ListField list, int index) {
                return listElements.elementAt(index);
            }
            public int indexOfList(ListField list, String p, int s) {
                return -1; //Not implemented, as we have an object in the Vector, not a string
            }
            public int getPreferredWidth(ListField list) {
                return Display.getWidth();
            }
            public void insert(ListEntry toInsert, int index) {
                listElements.insertElementAt(toInsert, index);
            }
            public void erase() {
                    listElements.removeAllElements();
            }
        }
    
    ...
    }
    

    Please can someone advise?

    Thank you.

    Steve

    Thanks Mark,

    I ended up using a similar method with a twist. I drew a background rectangle slightly smaller than the list item, then the blue selection box turns into a blue outline, and colors of foreground elements are not hidden by it:

    ...
            public void drawListRow(ListField list, Graphics g,
                                            int index, int y, int w) {  
    
                ListEntry _entry = (ListEntry)listElements.elementAt(index);
    
                //Draw background rectangle to replace dk blue selection rectangle with outline only
                g.setColor( Color.WHITESMOKE); //Pale but not white
                int h = list.getRowHeight();
                g.fillRect( 2, y+2, w-4, h-4);
    ...
    

    Steve

  • 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);
        }
    
    }
    
  • I want to change the blackberry listfield deafault accent color

    Hello

    I want to change the accent color of blackberry deafault (blue) of listfield, here is the code sample, code works fine, I want just to customize the color of the focus of the list... Please suggest me...

    package Meidcare;

    to import java.util.Enumeration;
    import java.util.Vector;

    Import net.rim.device.api.collection.util.SortedReadableList;
    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.Color;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.component.KeywordFilterField;
    Import net.rim.device.api.ui.component.KeywordProvider;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.decor.BackgroundFactory;
    Import net.rim.device.api.util.Comparator;
    Import net.rim.device.api.util.StringUtilities;

    class SearchFieldDemoScreen extends screen
    {
    Vector drugs_list = new Vector();
    Image bitmap buttonleft, buttonright;
    CountryList _countryList;
    KeywordFilterField _keywordFilterField;
    int mHColor = - 1;

    public SearchFieldDemoScreen (vector drugs_list) {}
    This.drugs_list = drugs_list;
    this.getMainManager () .setBackground (BackgroundFactory.createSolidBackground (0xC2C2C2));

    buttonLeft = bitmap.getBitmapResource ("medical_pills.png");
    buttonRight = bitmap.getBitmapResource ("white_aero.png");

    _countryList = new CountryList();
    _keywordFilterField = new KeywordFilterField();

    Enumeration XmlDiffOperation = drugs_list.elements ();
    While (enumumeration.hasMoreElements ()) {}
    _countryList.addElement (new Country (enumumeration.nextElement (m:System.NET.SocketAddress.ToString (())));

    }

    try {}
    setTitle (_keywordFilterField.getKeywordField ());

    _keywordFilterField.setLabel("Find:");
    _keywordFilterField.setSourceList (_countryList, new Country.MyProvider ());
    _keywordFilterField.setCallback (new MyListFieldCallback());

    _keywordFilterField.SetFocus ();

    Add (_keywordFilterField);

    }
    catch (Exception e) {}
    System.out.println ("Exception in keyword filter field =" + e);
    }
    }

    class MyListFieldCallback implements {ListFieldCallback}

    {public drawListRow Sub (ListField listField, Graphics g, int index, int y, int width)}
    Object obj = ((KeywordFilterField) listField) .getElementAt (index);
    g.setColor (Color.BLACK);

    If (obj! = null & obj instanceof country) {}
    Point country = (country) obj;
    g.drawText (item.toString (), 20, y, DrawStyle.ELLIPSIS |) DrawStyle.HCENTER);
    g.drawLine (0, y-9, width, y-9);
    g.setColor (Color.WHITE);
    g.fillRect (0, y-9, width, 3); for 3-pixel thick seprater "line".
    g.setColor (Color.BLACK);

    } else if(index == 0) {}
    g.drawText ("* void *", 0, y);
    }

    }

    protected void drawFocus (Graphics graphics, boolean on) {}
    graphics.setColor (Color.RED);
    Paint (Graphics);
    }

    public Object get (ListField list, int index) {}
    Return drugs_list.elementAt (index);
    }

    public int getPreferredWidth (ListField list) {}
    Return Display.getWidth ();
    }

    public int indexOfList (String prefix, int start, ListField list) {}
    return 0;
    }
    }

    class CountryList extends SortedReadableList
    {
    Vector drugs_list = new Vector();

    public CountryList()
    {
    Super (new Country.CountryListComparator ());
    }

    Sub addElement (Object item)
    {
    try {}
    System.out.println ("Ankur");
    SearchFieldDemoScreen.ls2 = new ListStyleButtonSet();
    ((Field)) SearchFieldDemoScreen.ls2.add element;
    doAdd (element);
    }
    catch (Exception e) {}
    System.out.println ("Exception in Add item =" + e);
    }
    }

    }
    }

    class country
    {
    private String _countryName;

    public country (String countryName)
    {
    _countryName = countryName;
    }

    public String ToString)
    {
    Return _countryName;
    }

    public static class MyProvider implements {KeywordProvider}
    public String [] getKeywords (Object obj) {}
    Point country = (country) obj;
    return new String [] {item._countryName};
    System.out.println ("called MyProvider");
    Return StringUtilities.stringToWords (obj.toString ());
    }
    }

    public static class CountryListComparator implements comparator
    {
    public int compare (Object o1, object o2)
    {
    System.out.println ("CountryListComparator called in method compares");
    If (o1 == null | o2 == null)
    throw new IllegalArgumentException ("can't compare countries null");
    Return o1.toString () .compareTo (o2.toString ());
    }
    }
    }

    Thanks in advance...

    Oky I solved the problem...

    using the...

    {if (g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS))}

    change the accent color
    g.setBackgroundColor (0xDCDCDC);
    g.Clear ();
    draw text
    g.setFont (Resize.getSecondFont ());
    g.setColor (Color.BLACK);
    g.drawText (item.toString (), 20, y, DrawStyle.ELLIPSIS |) DrawStyle.HCENTER);
    }

    inside the drawListRow...

    Thank you all...

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

    Press on as if you like it...

  • Problem with image extract the content and the tile at the same time show on ListField

    My application is Application News get JSON webservice to appear on ListField.

    On each line in the list, it will show you the image thumbnail, title and Teaser as below.

    _______________________________________

    |                |                       Title

    |   Thumb  |_______________________________

    |_______  |                       Teaser

    First of all, I have to get JSON that contains the url of the thumbnail image, title and Teaser.


    I managed to view the title and Teaser, but the thumbnail is not. When I Fetch image with the url of the thumbnail image, it returns only bitmap = null for me.

    My method is first call httpdispatcher to get the thumbnail image, title and Teaser and then wait and call another httpdispatcher to retrieve the url of the image thumbnail, then added to listfield.

    Here is my code

    Class helloScreen{
    
    public void requestSucceeded(byte[] result, String contentType)   {      if (contentType.equals("image/png") ||        contentType.equals("image/jpeg") || contentType.equals("image/gif") ||contentType.equals("image/jpg")) {         bitmap_temp = Bitmap.createBitmapFromBytes(result, 0, result.length, 1);                     synchronized (UiApplication.getEventLock()) {
    
                   }         }         else if (contentType.startsWith("text/")) {
    
                  strResult = new String(result);
    
                 try {                     ja = new JSONArray(strResult);
    
                  } catch (JSONException e) {                   // TODO Auto-generated catch block                    e.printStackTrace();              }
    
               synchronized (UiApplication.getEventLock()) {
                                  int temp_int_next=0;
                    try {
                        callback.erase();
                         for(int x=0;x<10;x++){
    
                             j = (JSONObject) ja.get(x);
    
     String get_htmlOff_first = j.get("teaser").toString().substring(j.get("teaser").toString().indexOf(">")+1);
     final String thumb = replace(j.get("thumb").toString(),"files/","http://www.eng.chula.ac.th/files/");
    
                                    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
    
                                    public void run() {
    
                           getImageURL(thumb); 
    
                                 }});                      
    
    callback.insert(j.get("title")+" ", ""+get_htmlOff_first.trim(), bitmap_temp , temp_int_next , "Event");                      temp_int_next++;
    
                      }
    
                       } catch (JSONException e) {                  // TODO Auto-generated catch block                    e.printStackTrace();              }               
    
                }         }         else {            synchronized (UiApplication.getEventLock()) {         Dialog.alert("Unknown content type: " + contentType);         }         }
    
    
    
    public void getImageURL(String url) {                HttpRequestDispatcher dispatcher2 = new HttpRequestDispatcher(url,                "GET", this);    }
    

    }

    httpRequest, class Dispatcher is used to get the data from the url

    public HttpRequestDispatcher(String url, String method, helloScreen screen)
    {
    this.url = url;
    this.method = method;
    this.screen = screen;
    
    }
    
    public String getType(){
    
        return type;
    
    }
    
    public void run() {
        try {
    
            if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED)
           {
                connection = (HttpConnection)Connector.open(url+";interface=wifi");
         }else{
    
            String uid = getWap2Uid();
            connection = (HttpConnection)Connector.open(url+";deviceside=true;ConnectionUID=" + uid);
    
            }
    
        connection.setRequestMethod(method);
    
        connection.setRequestProperty("Accept","text/html, image/jpg, image/jpeg, image/,image/gif");
    
        int responseCode = connection.getResponseCode();
        if (responseCode != HttpConnection.HTTP_OK) {
        screen.requestFailed("Unexpected response code: " + responseCode);
        connection.close();
        return;
        }
        final String contentType = connection.getHeaderField("Content-type");
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        InputStream responseData = connection.openInputStream();
        byte[] buffer = new byte[10000];
        int bytesRead = responseData.read(buffer);
        while(bytesRead > 0) {
        baos.write(buffer, 0, bytesRead);
        bytesRead = responseData.read(buffer);
        }
        baos.close();
        connection.close();
    
                  UiApplication.getUiApplication().invokeAndWait(new Runnable() {
    
                        public void run() {
    
                            screen.requestSucceeded(baos.toByteArray(), contentType);
    
                        }
    
                        });
    
        } catch (IOException ex) {
        screen.requestFailed(ex.toString());
        }
    }
    

    The point here is that I have JSON and get the url of the thumbnail to fetch before add to listfield. The image should be ready in bitmap_temp but it still get null.

    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
    
                                   public void run() {
    
                           getImageURL(thumb); 
    
                                 }});
    
    public void getImageURL(String url) {                HttpRequestDispatcher dispatcher2 = new HttpRequestDispatcher(url,                "GET", this);    }
    
    callback.insert(j.get("title")+" ", ""+get_htmlOff_first.trim(), bitmap_temp , temp_int_next , "Event");
    

    All day trying to fix it but no success, so I need help from you guys.

    Thank you

    "Is it possible to leave only 1 thread completely pick 10 pictures.

    Yes and this is how I would recommend that do you it this way.  So have a Thread that you give a list of things to do and let it work through each.

  • ListField.drawListRow only draws a line in the first row, all the lines.

    I'm close. ListField.drawListRow is called for every row without problem, but the two graphics.drawLine only are displayed (shot) in the first row at the point of coordinates noted.

    I thought that each line would get the two drawn drawLines?

    Graphics.Clear is called correctly (as a test only - I have commented out them as well, but not changes).

    How can I get the two Graphics.drawLine at the bottom of the method called for each line, correctly?

    public void drawListRow(ListField listField, Graphics graphics, int index,
            int y, int width) {
        Logger.debug("CoffeeStoreContent [drawListRow] y: " + y + " width: " + width);
        /*
         * Top Margin
         */
        y += appGraphics.calcHiRes(6);
    
        int[] colors = appGraphics.getColorPalette(sportTitle);
    
        /*
         * Get the current CoffeeStore object.
         */
        CoffeeStore currentRow = (CoffeeStore) get(listField, index);
    
        StringBuffer subline = new StringBuffer(currentRow.getSource());
        subline.append(Characters.SPACE);
        subline.append("|");
        subline.append(Characters.SPACE);
        subline.append(currentRow.getDateAgo());
    
        int HiX = 43;
    
        if (graphics.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS)) {
            graphics.clear();
            graphics.setColor(AppGraphics.YELLOW_HIGHLIGHT);
            graphics.fillRect(0, (index * listField.getRowHeight()),
                    listField.getWidth(), listField.getRowHeight());
    
            graphics.setFont(font);
            graphics.setColor(Color.BLACK);
            graphics.drawText(currentRow.getLinkText(), HiX, y, 0, width);
    
            graphics.setColor(AppGraphics.TEIGHT);
            graphics.drawText(subline.toString(), HiX, (y
                    + graphics.getFont().getHeight() + 2), 0, width);
        } else {
            graphics.clear();
            graphics.setColor(colors[0]);
            graphics.fillRect(0, (index * listField.getRowHeight()),
                    listField.getWidth(), listField.getRowHeight());
    
            graphics.setFont(font);
            graphics.setColor(AppGraphics.TSIX);
            graphics.drawText(currentRow.getLinkText(), HiX, y, 0, width);
    
            graphics.setColor(Color.WHITE);
            graphics.drawText(subline.toString(), HiX, (y
                    + graphics.getFont().getHeight() + 2), 0, width);
        }
    
        graphics.setColor(colors[2]);
        graphics.drawLine(0, 50, width, 50);
        graphics.setColor(colors[3]);
        graphics.drawLine(0, 51, width, 51);
    }
    

    No - only y + 50 is enough.

  • Scrolling ListField

    I read many more posts scrolling ListField and they helped me to get that much, but now I'm stuck.  I have my list field in a VerticalManager with scroll work.  I set it up so that there are 5 visible rows in the ListField.  However, when I scroll down past the last visible line (there is currently a total of 9 lines of the list), paint lines is no longer the text of the line.  I developed a custom implementation ListField, who has a foreground and background color.  The idea is that each line is focused, switch foreground and background of color - the selected line a deep Navy with white text and unselected lines have a white background with marine text.  Works very well for the visible rows, but when I scroll beyond rank 5 to reveal the invisible lines, they just paint with the Navy background and white text.  Here's my class of custom list field (which was based on something that I found on a forum or in the knowledge base):

    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.XYRect;
    Import net.rim.device.api.ui.component.ListField;

    SerializableAttribute public class ColoredListField extends ListField
    {
    Private boolean hasFocus = false;
    Private final int fixedWidth;
    private int fgcolor;
    private int bgcolor;
    Private final int fixedHeight;

    public ColoredListField (int width, int height, int fgcolor, bgcolor int)
    {
    this.fixedWidth = width;
    this.fixedHeight = height;
    This.fgColor = fgcolor;
    This.BgColor = bgcolor;
    }

    public int getPreferredWidth()
    {
    return fixedWidth;
    }

    public void layout (int width, int height)
    {
    setExtent (fixedWidth, fixedHeight);
    }

    public int moveFocus (amount int, int status, int time)
    {
    Invalidate (getSelectedIndex ());
    Return super.moveFocus (amount, status, time);
    }

    public void onFocus (int direction)
    {
    hasFocus = true;
    super.onFocus (branch);
    Invalidate();
    }

    Public Sub onUnfocus()
    {
    hasFocus = false;
    super.onUnfocus ();
    Invalidate();
    }

    public void paint (Graphics graphics)
    {
    Get current cutting zone because it will be the only party which
    need to repaint
    XYRect redrawRect = graphics.getClippingRect ();
    If (redrawRect.y<>
    throw IllegalStateException (new)
    ' The variable 'y' clipping ' +.
    "rectangle is.< 0:="" "="" +="">

    If the ListField has focus determine the selected line.
    rowHeight = getRowHeight() int;
    int currEntry = redrawRect.y / rowHeight.
    int lastVisibleEntry = (redrawRect.y + redrawRect.height - 1) / rowHeight.
    lastVisibleEntry = Math.min (lastVisibleEntry, getSize() - 1);
    int y = currEntry * rowHeight.

    int curSelected = hasFocus? getSelectedIndex():-1;
    Draw each line
    for (; currEntry<= lastvisibleentry;="">
    {
    graphics.setColor (currEntry == curSelected? bgcolor: fgcolor);
    graphics.fillRect (0, y, redrawRect.width, rowHeight);
    graphics.setColor (currEntry == curSelected? fgcolor: bgcolor);
    graphics.drawText (getCallback () .get (this, currEntry) m:System.NET.SocketAddress.ToString (), 0,)
    y);
    Assign new values for the y-axis move a row downwards.
    y += rowHeight.
    }
    }
    }

    Here's how I instantiated class:

    private int screenW = Graphics.getScreenWidth ();
    private int screenH = Graphics.getScreenHeight ();
    private int listWidth = (int) (screenW * 0.95);
    private int listHeight = (int) (screenH * 0.4).
    private ColoredListField myListField = new ColoredListField)
    listWidth, listHeight, selectedFGColor, selectedBGColor);

    Also, here is my point:

    private static class DiaryEntryListCallback implements ListFieldCallback
    {
    private DiaryEntry [diaryEntryList];

    public DiaryEntryListCallback() throws Exception
    {
    diaryEntryList new = DiaryEntry [0];
    init();
    }

    public void init() bird Exception
    {
    DiaryEntry [] tmpDiaryEntryList =
    DiaryDAO.instance () .getDiaryEntriesAsArray (true);
    If (tmpDiaryEntryList! = null & tmpDiaryEntryList.length > 0)
    diaryEntryList = tmpDiaryEntryList;
    on the other
    {
    diaryEntryList = new DiaryEntry [1];
    diaryEntryList [0] = new DiaryEntry ("No data",
    Calendar.getInstance ());
    }
    }

    public void init (DiaryEntry [diaryEntries]) throws exceptions
    {
    diaryEntryList = diaryEntries;
    }

    public int getNumberOfRows()
    {
    Return diaryEntryList.length;
    }

    ' Public Sub drawListRow (ListField l, Graphics g, int index, int y, int w)
    {
    draw text is managed by the implementation of the custom list field
    }

    public {get {Object (ListField listField, int index)
    {
    return diaryEntryList [index];
    }

    public int getPreferredWidth (ListField listField)
    {
    Return listField.getPreferredWidth ();
    }

    public int indexOfList (String prefix, ListField listField, int start)
    {
    int size = diaryEntryList.length;
    for (int i = 0; i)< size;="">
    {
    DiaryEntry currEntry = diaryEntryList (DiaryEntry) [i];
    If (currEntry.getEntryText () .toLowerCase () .startsWith)
    (prefix.toLowerCase ()))
    Return i;
    }
    Return listField.getSelectedIndex ();
    }
    }

    And here's where I build the main screen, adding the list field and other areas:

    Private Sub createMainScreen()
    {
    mainMgr = new ColoredVerticalManager (selectedBGColor,
    Manager.USE_ALL_HEIGHT);
    listMgr = new ColoredVerticalManager)
    selectedBGColor,
    Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    mainMgr.add (diaryEntriesLabel = new FixedWidthLabelField)
    "' Diary entries:»(, listWidth,-1, selectedFGColor, selectedBGColor));"
    Try
    {
    listCallback = new DiaryEntryListCallback();
    diaryEntriesListField.setSize (listCallback.getNumberOfRows ());
    diaryEntriesListField.setCallback (listCallback);
    diaryEntriesListField.setFocusListener (new DiaryFocusListener());
    listMgr.add (diaryEntriesListField);
    mainMgr.add (listMgr);
    }
    catch (System.Exception e)
    {
    Dialog.Alert ("error when loading of list one diary entry:" + e.getMessage ());
    }
    mainMgr.add (selectedEntryLabel = new FixedWidthLabelField)
    ((' Selected: input: ",-1, -1, selectedFGColor, selectedBGColor));
    mainMgr.add (diaryEntry);
    Add (mainMgr);
    }

    Clues as to why when scrolling past the visible lines, he stops painting?

    Thank you

    Steve

    Hello

    You want listfield fixed size with active scroll.

    Please try the following solution:

    Removed listfield class the following function:

    public void layout (int width, int height)
    {
    setExtent (fixedWidth, fixedHeight);
    }

    That you override the trace of the listfield, the measure will be defined as a fixed height. Therefore, you have noticed that Manager of vertical field scrolls but listfield not scroll.

    Please override method 'sublayout' of vertical field Manager "listmgr":
    VerticalFieldManager oVerticalFieldManager = new VerticalFieldManager (MainScreen.VERTICAL_SCROLL |) MainScreen.VERTICAL_SCROLLBAR)
    {
    public int getPreferredHeight()
    {
    Return nFixedHeight;
    }
               
    Rewritten to define the visible height for the vertical field Manager.
    protected void sublayout (int width, int height)
    {
    height = nFixedHeight;
    Super.sublayout (width, height);
    setExtent (width, height);
    }
    };

    This code works for me fine.

    Kind regards
    Shubhangi

  • Limit scrolling ListField

    I have two screens with same ListField code.

    When the ListField gets Focus, it selects the last item in the list. Then you can scroll vertically. When you scroll over the bottom buttons to resume the focus at the bottom of the screen.

    On one screen, it works perfectly. When you scroll to the top, he remains on the first point. When you scroll down, it scrolls down and buttons to resume the focus.

    On the other hand (using the same code), it scrolls on the top of the list and loses focus. When you scroll to the bottom, he returned to focus on the last item in the list.

    How can I prevent the ListField loses focus when you scroll past top?

    I fought it for a while. Any help will be appreciated.

    The code is very basic and as follows:

    logList = new ListField(){
        public void onFocus(int direction) {
            setSelectedIndex(this.getSize());
        }
        public boolean keyChar( char key, int status, int time ) {
            return false;
        }
    };
    ListCallback _callback = new ListCallback();
    logList.setCallback((ListFieldCallback) _callback);
    logList.setFont(fontLog);
    logList.setRowHeight(fontLog.getHeight()); 
    
    ...
    
    fmLog   = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL);
    fmLog.add(logList);
    mainManager.add(fmLog);
    
    ...
    
    private void reloadList() {
        logList.setSize(logListElements.size());
        fmLog.setVerticalScroll(Math.max(0, fmLog.getVirtualHeight() - fmLog.getVisibleHeight()));
    }
    
    ...
    
    public class ListCallback implements ListFieldCallback  {
        private int listWidth;
    
        public void drawListRow(ListField list, Graphics g, int index, int y, int w) {
            ...
        }
        public Object get(ListField list, int index) {
            return logListElements.elementAt(index);
        }
        public int indexOfList(ListField list, String prefix, int string) {
            return logListElements.indexOf(prefix, string);
        }
        public int getPreferredWidth(ListField list) {
            return displayWidth;
        }
    }
    

    ! @# $ NullField()...

    You never see these things until after the question...

  • ListField color

    package mypackage;
    import java.util.Vector;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.EncodedImage;
    import net.rim.device.api.ui.DrawStyle;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYRect;
    import net.rim.device.api.ui.component.ListField;
    import net.rim.device.api.ui.component.ListFieldCallback;
    
    public class SingersListField extends ListField {
    
          private Vector content = null;
          private ListCallback callback = null;
          private int currentPosition = 0;
    
          /**
            * Instantiates a new title list and populates it with the appropriate items.
            *
            * @param content The content to be loaded in the list.
            */
          public SingersListField (Vector content) {
            this.content = content;
            initCallbackListening();
           // font = this.getFont().derive(Font.BOLD, 16);
           // this.setFont(font);
            this.setRowHeight(100);    // I think this is an important point for it to work: set the height of the row outside the draw method.
            // Other possibly useful info is that the negative signal means I will multiply the font size by the number provided.
          }
    
          private void initCallbackListening() {
            callback = new ListCallback();
            this.setCallback(callback);
          }
    
          /**
            * Callback implementation to this custom list field.
            *
            * @author Alaa El-Khatib
            */
          private class ListCallback implements ListFieldCallback {
    
            private Bitmap image = null;
            Bitmap Arrow = Bitmap.getBitmapResource("arrow.png");
            Bitmap Arrow2 = Bitmap.getBitmapResource("arrow2.png");
            public ListCallback() {
            }
            public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) {
                  if(index!=-1){
              currentPosition = listField.getSelectedIndex();
              int yPos = 5 + y; // initial position will consider an offset.
              int xPos = 15; // left offset, fixed for all rows in the list.
             Song temp =  (Song)content.elementAt(index);
              image=MAMClient.sizeImage(EncodedImage.createEncodedImage(temp.getAlbumCover(), 0, temp.getAlbumCover().length),110,110).getBitmap();
              graphics.drawBitmap(5, yPos, image.getWidth(), image.getHeight(), image, 0, 0);
              xPos = xPos + image.getWidth();
              if (graphics.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS))
                {
                 // graphics.setColor(0x858686);
                  Font font = getFont().derive(Font.BOLD, 32);
                  graphics.setFont(font);
                  graphics.drawText(temp.albumName,  xPos , yPos,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow2.getWidth()+10));
                  font = getFont().derive(Font.PLAIN, 32);
                     graphics.setFont(font);
                  graphics.drawText(temp.singerName,  xPos , yPos+25,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow2.getWidth()+10));
                  font = getFont().derive(Font.ITALIC, 32);
                     graphics.setFont(font);
                     graphics.drawText("ALBUM - "+temp.getPrice()+" KWD",  xPos , yPos+50,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow2.getWidth()+10));
                  graphics.drawBitmap(width-Arrow2.getWidth()-5, yPos, Arrow2.getWidth(), Arrow2.getHeight(), Arrow2, 0, 0);}
                else
                {
                  //graphics.setColor(0x60347A);
                    Font font = getFont().derive(Font.BOLD, 32);
                     graphics.setFont(font);
                  graphics.drawText(temp.albumName,  xPos , yPos,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow.getWidth()+10));
                  font = getFont().derive(Font.PLAIN, 32);
                     graphics.setFont(font);
                  graphics.drawText(temp.singerName,  xPos , yPos+25,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow2.getWidth()+10));
                  font = getFont().derive(Font.ITALIC, 32);
                     graphics.setFont(font);
                     graphics.setColor(Color.GRAY);
                     graphics.drawText("ALBUM - "+temp.getPrice()+" KWD",  xPos , yPos+50,DrawStyle.ELLIPSIS,width-(image.getWidth()+Arrow2.getWidth()+10));
                 graphics.drawBitmap(width-Arrow.getWidth()-5, yPos, Arrow.getWidth(), Arrow.getHeight(), Arrow, 0, 0); }
               graphics.setColor(0x60347A);
              yPos = y + listField.getRowHeight() - 1;
              graphics.drawLine(0, yPos,Display.getWidth(), yPos);
                  }}
    
            public Object get(ListField listField, int index) {
              return content.elementAt(index);
            }
    
            public int getPreferredWidth(ListField listField) {
              return Display.getWidth();
            }
    
            public int indexOfList(ListField listField, String prefix, int start) {
              return content.indexOf(prefix, start);
            } }
    
          // This method returns the index of the highlighted item in the list, which will be useful somewhere in my code.
          public int getCurrentPosition() {
            return currentPosition;
          } 
    
          protected boolean navigationClick(int status, int time) {
                fieldChangeNotify(0);
                //Song temp =  (Song)content.elementAt(currentPosition);
                //UiApplication.getUiApplication().pushScreen(new SingersCategory(temp.getSingerId(),temp.albumName,temp.getAlbumCover()));
                return true;
            }
    
          protected void drawFocus(Graphics graphics, boolean on) {
              XYRect rect = new XYRect();
              getFocusRect(rect);
              if (on) {
              graphics.setColor(Color.PURPLE);
              graphics.fillRect(rect.x, rect.y, rect.width, rect.height);
              getCallback().drawListRow(this, graphics, getSelectedIndex(), rect.y, rect.width);
              }
          } }
    

    As you can see I have a list, selection of the line I've highlight violet. But because the letters are black, they disappear. What advice you can offer?

    On selection change text in black and white colors? If Yes can give u how?

    or I make settings on the appropriate colors? and can u advice what colors?

    I solved the problem with this

    drawHighlightRegion (graphics, HIGHLIGHT_FOCUS, on, rect.x, rect.y, rect.width, rect.height);

  • Question about ellipsis in ListField

    Hi all

    I have a ListField with a custom reminder.  My lines are ouptutted in the following format:

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

    | Pic Pic right text left text |

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

    I had available work without any problem.  My problem is the following:

    Sometimes, the value assigned to the 'left' text will be really long - if long as it hinders the space used by "Right text" and "Pic".  In this case, I want to show an ellipse (using Graphics.ELLIPSIS in the drawText()).  However, the points of suspension does not appear.  I guess that's because it has not reached the end of the screen.  Is it possible to put things up so that the selection button will appear once it hits the position of "right text"?

    Thank you

    You probably use the short version of drawText in your drawListRow. net.rim.device.api.ui.Graphics has several drawText methods - choose those with the width argument.

    This could be what you need:

    drawText(String aText, int aX, int aY, int aFlags, int aWidth)

    Go DrawStyle.ELLIPSIS aFlags and width desired in aWidth.

  • Question of ListField

    Hello

    I created a populatuing of a vector ListField.

    The line draw well, but the next line line drawa just one image but not the rest of the text.

    I checked vector and data receive very well to the (drawList).

    any idea, what happens?

    private class ListCallback implements ListFieldCallback
        {
            public void drawListRow(ListField list, Graphics g, int index, int y, int w)
            { 
    
                /*// focuss color
    
                if(list.getSelectedIndex() == index)
                {
                     g.setColor(0xffffff);
                     g.fillRect(0,(index*list.getRowHeight()),list.getWidth(),list.getRowHeight());
                     g.setColor(0x000000);
                }*/
    
                String RING="R:";
                String SIZE="X:";
                String LENGTH ="Y:";
                String FLAVOR ="Z:";
    
                Dummy item = (Dummy)_listElements.elementAt(index);// get the data to populate the 
    
                Bitmap photo= Bitmap.getBitmapResource(item.getPhoto());
    
                g.drawBitmap(10, y, photo.getWidth(),photo.getHeight(),photo, 0, 0);// draw the first photo
    
                 int photoHeight = photo.getHeight();
    
                 y= photoHeight+10;// now y will be this
    
                Font regularFont = list.getFont(); // save the regular font for future use
                Font boldFont = regularFont.derive(Font.BOLD);// derive the bold font
    
                g.setFont(boldFont);// set our pen to bold for while
    
                g.drawText(item.getFullName(), 0, y, 0, w); 
    
                g.setFont(regularFont);// back to norrmal pen
    
                int newY = y+ boldFont.getHeight();// get the new height to start drawing
    
                 g.drawText(R+item.getR(), 0, newY+10, 0    , w); // draw the second line of text
    
                 g.drawText(X+item.getX(),Font.getDefault().getAdvance(item.getR()+R)+10,newY+10,0,w);
    
                 int newY2 = newY+regularFont.getHeight();// the third row draw staring point
    
                 g.drawText(Y+item.getY(), 0, newY2+10, 0   , w); // draw the third line of text
                 g.drawText(Z+item.getZ(),Font.getDefault().getAdvance(item.getY()+Y)+10,newY2+10,0,w);// third line right text
    
                // draw a line
                g.drawLine(0, y + list.getRowHeight() - 10, Display.getWidth(), y + list.getRowHeight() - 1);
            }
    

    Hi peter,.

    I found the error

    y = photoHeight + 10; / / now there will be this

    I changed on line t

    int y1 y + photoHeight + 10; / / y1 will now be what

    and following s all 'y' to 'y1 '.

    Apart FRO

    g.drawLine (0, y + list.getRowHeight () - 1, Display.getWidth (), y + list.getRowHeight () - 1); / / This remains the same, the value is 'y' not 'y1 '.

    Now all the good ones: Angel

    Thanks peter for your support, it was reallly help me to get my head around

    Cheer

Maybe you are looking for

  • Sierra and Garage Band app

    I noticed that there were 2.85 GB extra for Garage Band after that download Sierra, I already deleted it before the Garage Band this version, but impossible to remove that amount from the memory-how can I select this option in the memory window to re

  • How to migrate from Win XP to Win 8? The files are different.

    I installed Thunderbird on 8 to win and he created the trees not one but two of the files. It seems I should divide the contents of my XP Application Data\Thunderbird folders and put them under the tree to win 8But what XP files go where?

  • Satellite M40X-149 - typing question

    My wife is having a problem with some letters by typing on the internal keyboard, the keyboard was changed, but the problem persists. If it uses the following keys that several letters are typed, but not every time, I thought it was the heat associat

  • Satellite A300 - unable to connect to a local wireless network

    Hello I have a question: bought a laptop two days ago, the wireless LAN doesn't work. It can detect the network, accepts the network key, he just used to connect. Help, please.

  • My stored user names and passwords are removed several times each time the computer restarts. ______

    My "XP Home Edition' Service Pack 3 > stored user names and passwords are removed several times each time the computer restarts. Please check the LINK for the process that I'm going through, but nothing helped. http://www.box.NET/shared/zcokjesxx3 Th