No reliable wifi connection to Alpha BB10 BlackBerry 10 native SDK Dev

I use Ubuntu 12.04 with my shiny new BlackBerry 10 Dev Alpha. I have set up the development environment and configured my device (on wifi) connection.

After activating the Mode developer on the device, I can deploy HelloCascades and my own app, but the "WiFi" in Eclipse is not very reliable.

I can maintain a ping to the device from my office, is in the same room as the router and any other device do not have WiFi. but every time I want to do something (even if I have only deployed less than a minute ago), I do a right click on "wireless" in the Project Explorer, and then select BlackBerry tools > Connect. Sometimes it will work, but most of the time I get several errors ("connection timed out" is the most common).

While it is connected, assuming that it doesn't drop, it works fine.

Does anyone have any ideas?

Normal managed AP, details of the administration console:

Operation mode: Access point
Name (SSID): BLEB.org wifi
Channel: 7
Mode: 11bgn mixed
Width of the channel: 20 / 40 MHz
Max Tx Rate:

120Mbps

Security is WPA-PSK/WPA2-PSK (version: auto).

More stable:

  • Security out shooting (and reboot the router) wants to appear.
  • explicit definition of WPA2 security: it works!  :-)

Tags: BlackBerry Developers

Similar Questions

  • Download blackBerry 10 native SDK Beta issue.

    Hi all:

    I encounter an error message when you try to download 10 native SDK Beta BlackBerry or BlackBerry 10 Dev Alpha Simulator. When I click on the download link, I encounter the following error:

    Error!

    Error downloading due to export restrictions.

    (using URL: https://developer.blackberry.com/native/beta/downloads/ )

    Hey there,

    I looked into the issue and it was caused by a restriction imposed on your location. It has been fixed and you should be able to download the SDK. If the problem persists after that 24 hours made me know.

    Thank you

    Martin

  • How to install Blackberry 10 native SDK in Windows 8

    I try to start Blackberry10 setup under windows 8.je have downloaded bt Blackberry10 native SDK during installation, I get this error "error of Mode User Interface. Can someone help me how environment Blackberry 10 installation in Windows8 waterfalls

    Appreciate your link, but unfortunately it was useless, rather this link solved the problem

    http://www.online-tech-tips.com/Windows-8/run-a-program-in-compatibility-mode-in-Windows-8/

  • No reliable WiFI connection from / to my Microsoft Surface

    After a reboot of my Surface I can see other computers on my home network. After a few minutes the connection is lost (even if the Internet connection is always good) and I am unable to find the device without having to reboot again.

    I noticed that this problem was reported by a few people, but I have not yet be able to find a solution to this. Until I can get a reliable connection between my Surface and my development PC, I am unable to test my apps Windows 8.

    Any help would be greatly appreciated.

    As you can see from the date of the original post that I've struggled with this for a while, but finally I solved the problem!

    The cause of all these problems was the router! It seems that BT Home Hub 3 and 4 have great difficulty, discover the network. After trying a different router connection to the Surface is immediate and without problem.

    Thanks to everyone who responded to my requests for assistance.

  • Problem signing key with Chrome Ripple when installing on my Alpha BB10 device

    The signing keys created since Blackberry 10 native SDK Eclipse plugin can also be used to sign applications Webworks HTML 5 under construction of Goggle Chrome Ripple Extension?

    My directory "C:\Users\dev\AppData\Local\Research In Motion" seems to have the files: author.p12, barsigner.csk... etc. But when trying to install on my 'device BB10 Dev Alpha', the server of the ripple is spewing what follows:

    Build completed, now deploy
    ...

    Info: Send request: install and launch
    Info: Action: install and launch

    ...

    actual_id:
    actual_version:
    result::failure 881 missing signatures

    Problem I think was that I had no "Enable Remote Web Inspector" checked and maybe even used the wrong PIN number (confused 0 o) and 8B.

  • BlackBerry Q5 carrier bbm blocking on the WiFi connection?

    I just wanted to confirm if this is possible, because I've tried the two carriers of the and Etisalat. BBM no longer works on my Wifi connection, and carrier logos appear when I start my phone.

    I was using my Q5 for 9 months and never paid for the service of data/BBM because I keep this phone at home. It arrived 3 days when I started seeing my carrier logo.

    In the settings it shows 'Unlocked '.

    When I remove the sim card, then bbm will connect automatically.

    Is there a problem with the software or is - the carriers to play.

    Hello and welcome to the community!

    Interesting... and possibly caused by different problems. I've heard of carriers blocking services BB owners by something else that their network data, but only in what concerns the devices inherited from BIS, not (yet... yours could be the first) with BB10. In addition, there are also reports of problems on certain carriers if BIS service is at all in service to your account with BB10 device... BB10 does not BIS, but sometimes they BIS is no problem, while other times that there are problems.

    In addition, there was a bug known to the WiFi in the OS, so depending on your level of BONES of BB10, this could be this known bug that was healed (hopefully!) in future releases. I recommend that you check your level of operating system and if you are not on 10.2.1.3247 that you update immediately to him through Knowyou:

    Good luck and let us know!

  • BlackBerry Z30 Wifi - connected but no internet

    Hello!

    I m new to Blackberry and just received my Z30 (that I really like a lot!)

    I still have a problem with the wifi connection. I managed to connect to my wifi router. In the settings, I see that the connection is active. The signal is good.

    But on the top bar, I still see the 3G icon (instead of the wifi icon). I also received a message that my wifi has only limited access to internet.

    I know the router works, because all my other devices (for example the laptop I m typing this message on) do not have access to the internet.

    Are there special settings, I have to check on my blackberry z30?

    I found the wifi settings advanced with a lot of technical information about the wifi connection - which, this information, if I post to help solve my problem?

    Thank you very much for your advice!

    Try to go to settings network connections and disable data services and then try to reconnect to the wifi

  • BlackBerry Smartphones Blackberry Priv and Fuji Instax share App (needs to control WiFi connections)

    Hey all,.

    as I have found no e-mail address to communicate directly with Blackberry on this problem (I hate to use Twitter, their support is atrocious (using answers pre-formulated to 'help you')), I hope I can find help from you guys.

    When you use the 'Instax Share' app to print photos from my private, it does not work.

    First, you will need to connect to the printer via WiFi (this step works), but I can't change the printer settings in the app. Can I not send my photos to the printer.

    When I try, I get the error message "no printer not found", even though I am obviously linked to the unit.

    When you check the extended permission settings, the field that would allow the application control WiFi connections is gray. The only parameters that can be modified are access to contacts, memory, taking photos and video and GPS.

    Anyone got a good idea on how to solve this problem?

    My guess: Priv Android is coded too sure. Furthermore, I use Android 6.0.1.

    P.S.: the application works on any non-Blackberry-Android phone (rooted and without root).

    OK, so to clarify, this isn't a device of BES. In addition, you can control completely independent WiFi connections on the device. But the application cannot control the WiFi connections, that he must perform in order to function. Fix?

    If it is accurate, then it continues to point to the application itself, not the device or the device OS... When you installed the application, he should have asked approve you a variety of security access so that it will run... If you do not approve those, you have limited it. If she has not asked for approval, then the application developer needs to fix this.

  • BlackBerry Passport BB Passport - poor WIFI connection

    Nice day!

    I recently bought a passport of Arab Emirates BB UNITED. Service provider is Dug the device automatically updgraded OS for 10.3.1.1565 of the original version. However, both versions offer bad WIFI connection at home. When he is in the office, free WIFI is great! Both routers are DLink. I live in a studio, while the desktop is a good 3 times the size of my plate. How is it that the WIFI connection in the office is great, while at home barely connects on my device? I have no problems with connecting devices android and apple for the WIFI at home (including the smart TV and laptop i5). The WIFI problem is only with the passport of BB. The signal strength for the mobile network is ok. No problems with calls or mobile data connection.

    Can you please help and advise?

    Thanks in advance!

    What router are you using?

    I had the problem with some older routers at the office and I replaced with a

    Nighthawk AC1900 dual band wifi (R7000) NETGEAR Gigabit router

    now the whole place can see wifi as before when it was uneven with the old unit

  • BlackBerry smartphone Wifi connected but cannot access internet 9300

    Hello

    I recently changed my data on my unit plan, but after I did it I realized that my WiFi is not working. My wifi connection is fully connected (and my data are disabled), but it won't work at all.

    Help, please

    AmandaTemple wrote:

    If I have my data enabled as well as my wifi then how can I know that I am not only my data plan. I would avoid a large beak.

    Hi Amanda

    If you want to be sure that you only use wifi data, then on manage the connection you can turn off your Mobile network. But you have to turn on your data Services, allowing data packets to enter your device With Data Service Off in your device, you can use these data services.

    Let us know if you have any questions.

  • BlackBerry smartphone Bold 9780 cannot use BB browser when wifi connected

    I recently started using a new BB Bold 9780 (BB6).

    It of a beautiful phone... and navigates very well with GPRS / 3G.

    However, if I turn on wifi, (connected to my home wireless router) the browser does not at all.

    "Cannot find the requested server.

    I have a Netgear router and it is very good for other devices.

    BB 9780 wifi session is set to WPA

    I have a dataplan with Virgin.

    I conclude that the wifi does not work and it would be very disappointing... and sounds weird!

    When all sales representatives say that he is an active wifi device.

    Does anyone have any tips or tricks?

    I was wondering if Opera 5.1 might help - but the opera died when I tried to launch it!

    Thank you very much

    Chrism

    Well, I finally fixed it.

    My BB was not able to connect to my Netgear router, but it could connect with happiness with the wifi of my neighbor.

    I turned off the WMM security setting on my Netgear router advanced setting Panel.

    Bing, the BB is now wifi.

    Result.

  • Connection of blackBerry Smartphones BIS guard down when I leave wifi connection

    Have a huge problem with 9700, 9800 and now a sound new 9780.

    With Edge connected to BIS and then connect to a wifi network asfter 20 or 30 minutes the EDGE becomes slice but wifi is always connected, so it is fine, however if I disable wifi and edge will not reconnect to the BIS and I must ob offline mobile network and on again and then edge will become EDGE until the next time I do wifi...

    It will be also randonly drop the connection all im not wifi...

    Im running the last 6.0.0.534

    All the others with this problem? It's a pain to turn off andf on the connection and check if it is still connected. There are 37 pages in this on crackberry http://forums.crackberry.com/f209/bis-keeps-dropping-514869/index37.html

    see you soon

    OK for someone who comes across this post, I found the answer, it seems to be a problem with saved wifi and when you back up your data on OS5 and move to OS6 it creates this problem to abandon the BIS connection, remove all wireless profiles and disable those that come pre installed and then reboot the phone, the problem should fix right now and you can re add wifi connections

  • BlackBerry Smartphones BB Curve 9300 - how to prioritize between the Wifi connection and the carrier?

    Hi all, I have a question... How do we place on our BB unit to plug into a wireless network from first (if available) to browse and not them connected to the internet all the stuff instead of using our carrier, then at home or at work?

    There are no parameters for this on most devices, the WiFi connection will ALWAYS be priority for communication of data via the connection to the mobile network.

    Some rare machines with capacities AMU have an Option to set this priority. UMA is a service of only a few mobile providers like Tmobile.

  • Application does not work without wifi connection

    Hello I have a problem with the http connection

    my code is

    public class HttpConnectionFactory
    {
    
        /**
         * Specifies that only wifi should be used
         */
        public static final int TRANSPORT_WIFI = 1;
    
        /**
         * Specifies that only BES (also known as MDS or corporate servers)
         */
        public static final int TRANSPORT_BES = 2;
    
        /**
         * Specifies that only BIS should be used (Basically RIM hosted BES)
         */
        public static final int TRANSPORT_BIS = 4;
    
        /**
         * Specifies that TCP should be used (carrier transport)
         */
        public static final int TRANSPORT_DIRECT_TCP = 8;
    
        /**
         * Specifies that WAP2 should be used (carrier transport)
         */
        public static final int TRANSPORT_WAP2 = 16;
    
        /**
         * Equivalent to: TRANSPORT_WIFI | TRANSPORT_BES | TRANSPORT_BIS |
         * TRANSPORT_DIRECT_TCP | TRANSPORT_WAP2
         */
        public static final int TRANSPORTS_ANY = TRANSPORT_WIFI | TRANSPORT_BES
                | TRANSPORT_BIS | TRANSPORT_DIRECT_TCP | TRANSPORT_WAP2;
    
        /**
         * Equivalent to: TRANSPORT_WIFI | TRANSPORT_BES | TRANSPORT_BIS
         */
        public static final int TRANSPORTS_AVOID_CARRIER = TRANSPORT_WIFI
                | TRANSPORT_BES | TRANSPORT_BIS;
    
        /**
         * Equivalent to: TRANSPORT_DIRECT_TCP | TRANSPORT_WAP2
         */
        public static final int TRANSPORTS_CARRIER_ONLY = TRANSPORT_DIRECT_TCP
                | TRANSPORT_WAP2;
    
        /**
         * The default order in which selected transports will be attempted
         *
         */
        public static final int DEFAULT_TRANSPORT_ORDER[] = { // TRANSPORT_DIRECT_TCP
        // ,TRANSPORT_WAP2
                TRANSPORT_WIFI,
                // TRANSPORT_BES, TRANSPORT_BIS,
                // TRANSPORT_WAP2,
                TRANSPORT_DIRECT_TCP };
    
        private static final int TRANSPORT_COUNT = DEFAULT_TRANSPORT_ORDER.length;
    
        private static ServiceRecord srMDS[], srBIS[], srWAP2[], srWiFi[];
        private static boolean serviceRecordsLoaded = false;
    
        private int curIndex = 0;
        private int curSubIndex = 0;
        // private String url;
        private final String extraParameters;
        private final int transports[];
        private int lastTransport = 0;
    
        /**
         * Equivalent to
         * HttpConnectionFactory( url, null, HttpConnectionFactory.DEFAULT_TRANSPORT_ORDER )
         *
         * @see #HttpConnectionFactory(String, String, int[])
         * @param url
         *            See {@link #HttpConnectionFactory(String, String, int[])}
         */
        public HttpConnectionFactory() {
            this(null, 0);
        }
    
        /**
         * Equivalent to
         * HttpConnectionFactory( url, null, allowedTransports )
         *
         * @see #HttpConnectionFactory(String, String, int)
         * @param url
         *            See {@link #HttpConnectionFactory(String, String, int)}
         * @param allowedTransports
         *            See {@link #HttpConnectionFactory(String, String, int)}
         */
        public HttpConnectionFactory(int allowedTransports) {
            this(null, allowedTransports);
        }
        public HttpConnectionFactory(int transportPriority[]) {
            this(null, transportPriority);
        }
    
        public HttpConnectionFactory(String extraParameters, int allowedTransports) {
            this(extraParameters, transportMaskToArray(allowedTransports));
        }
        public HttpConnectionFactory(String extraParameters,
                int transportPriority[]) {
            if (!serviceRecordsLoaded) {
                loadServiceBooks(false);
            }
            //
            // if (url == null) {
            // throw new IllegalArgumentException("Null URL passed in");
            // }
            // if (!url.toLowerCase().startsWith("http")) {
            // throw new IllegalArgumentException("URL not http or https");
            // }
            //
            // this.url = url;
            this.extraParameters = extraParameters;
            transports = transportPriority;
        }
        public Connection getNextConnection(String url)
                throws NoMoreTransportsException {
            Connection con = null;
            int countsWap = 0;
            int countsBis = 0;
            int countsBes = 0;
            int curTransport = 0;
            while (con == null && curIndex < transports.length) {
                System.out.println("con=" + con + " curid=" + curIndex);
                curTransport = transports[curIndex];
                switch (curTransport) {
                case TRANSPORT_WIFI:
                    curIndex++;
                    curSubIndex = 0;
                    try {
                        con = getWifiConnection(url);
                    } catch (Exception e) {
                    }
                    break;
                case TRANSPORT_BES:
                    curIndex++;
                    curSubIndex = 0;
                    try {
                        if (countsBes > 3) {
                            throw new NoMoreTransportsException();
                        }
                        con = getBesConnection(url);
                        countsBes++;
                    } catch (Exception e) {
                    }
                    break;
                case TRANSPORT_BIS:
                    while (con == null) {
                        try {
                            if (countsBis > 3) {
                                throw new NoMoreTransportsException();
                            }
                            con = getBisConnection(url, curSubIndex);
                            countsBis++;
                        } catch (NoMoreTransportsException e) {
                            curIndex++;
                            curSubIndex = 0;
                            break;
                        } catch (Exception e) {
                        }
                    }
                    break;
                case TRANSPORT_DIRECT_TCP:
                    curIndex++;
                    try {
                        con = getTcpConnection(url);
                    } catch (Exception e) {
                    }
                    break;
                case TRANSPORT_WAP2:
                    while (con == null)
                    {
                        // try {
                        // if (countsWap > 3) {
                        // throw new NoMoreTransportsException();
                        // }
                        // // con = getWap2Connection(url, curSubIndex);
                        // countsWap++;
                        // } catch (NoMoreTransportsException e) {
                        // curIndex++;
                        // curSubIndex = 0;
                        // break;
                        // } catch (Exception e) {
                        // }
                    }
                    break;
                }
            }
            if (con == null) {
                throw new NoMoreTransportsException();
            }
    
            lastTransport = curTransport;
            return con;
        }
    
        public Connection getCurrentConnection(String url)
                throws NoMoreTransportsException {
            Connection con = null;
            switch (lastTransport) {
            case TRANSPORT_WIFI:
                try {
                    con = getWifiConnection(url);
                } catch (Exception e) {
                }
                break;
            case TRANSPORT_BES:
                try {
                    con = getBesConnection(url);
                } catch (Exception e) {
                }
                break;
            case TRANSPORT_BIS:
                while (con == null) {
                    try {
                        con = getBisConnection(url, curSubIndex);
                    } catch (NoMoreTransportsException e) {
                        break;
                    } catch (Exception e) {
                    }
                }
                break;
            case TRANSPORT_DIRECT_TCP:
                try {
                    con = getTcpConnection(url);
                } catch (Exception e) {
                }
                break;
            case TRANSPORT_WAP2:
                while (con == null) {
                    try {
                        con = getWap2Connection(url, curSubIndex);
                        System.out.println("" + con);
                    } catch (NoMoreTransportsException e) {
                        break;
                    } catch (Exception e) {
                    }
                }
                break;
            }
    
            return con;
        }
    
        /**
         * Returns the transport used in the connection last returned via
         * {@link #getNextConnection()}
         *
         * @return the transport used in the connection last returned via
         *         {@link #getNextConnection()} or 0 if none
         */
        public int getLastTransport() {
            return lastTransport;
        }
    
        /**
         * Generates a connection using the BIS transport if available
         *
         * @param index
         *            The index of the service book to use
         * @return An {@link HttpConnection} if this transport is available,
         *         otherwise null
         * @throws NoMoreTransportsException
         * @throws IOException
         *             throws exceptions generated by {@link getConnection( String
         *             transportExtras1, String transportExtras2 )}
         */
        private Connection getBisConnection(String url, int index)
                throws NoMoreTransportsException, IOException {
            System.out.println("BIS Try");
            if (index >= srBIS.length) {
                throw new NoMoreTransportsException("Out of BIS transports");
            }
            ServiceRecord sr = srBIS[index];
            return getConnection(url, ";deviceside=false;connectionUID=", sr
                    .getUid());
        }
    
        /**
         * Generates a connection using the BES transport if available
         *
         * @return An {@link HttpConnection} if this transport is available,
         *         otherwise null
         * @throws IOException
         *             throws exceptions generated by {@link getConnection( String
         *             transportExtras1, String transportExtras2 )}
         */
        private Connection getBesConnection(String url) throws IOException {
            System.out.println("BES try");
            if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS)) {
                return getConnection(url, ";deviceside=false", null);
            }
            return null;
        }
    
        /**
         * Generates a connection using the WIFI transport if available
         *
         * @return An {@link HttpConnection} if this transport is available,
         *         otherwise null
         * @throws IOException
         *             throws exceptions generated by {@link getConnection( String
         *             transportExtras1, String transportExtras2 )}
         */
        private Connection getWifiConnection(String url) throws IOException {
            System.out.println("wifi try");
            // if (RadioInfo.areWAFsSupported(RadioInfo.WAF_WLAN)
            // && (RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN) != 0
            // && CoverageInfo.isCoverageSufficient(1 /*
            // * CoverageInfo.COVERAGE_DIRECT
            // */,
            // RadioInfo.WAF_WLAN, false)) {
            //
            // return getConnection(";deviceside=true;interface=wifi", null);
            // // return getConnection(";deviceside=true;interface=wifi", null);
            //
            // }
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED
                    && srWiFi.length > 0) {
                return getConnection(url, ";interface=wifi", null);
            }
            return null;
        }
    
        /**
         * Generates a connection using the WAP2 transport if available
         *
         * @param index
         *            The index of the service book to use
         * @return An {@link HttpConnection} if this transport is available,
         *         otherwise null
         * @throws NoMoreTransportsException
         *             if index is outside the range of available service books
         * @throws IOException
         *             throws exceptions generated by {@link getConnection( String
         *             transportExtras1, String transportExtras2 )}
         */
        private Connection getWap2Connection(String url, int index)
                throws NoMoreTransportsException, IOException {
            System.out.println("WAP2 try");
            if (index >= srWAP2.length) {
                throw new NoMoreTransportsException("Out of WAP2 transports");
            }
            if (CoverageInfo
                    .isCoverageSufficient(1 /* CoverageInfo.COVERAGE_DIRECT */)) {
                ServiceRecord sr = srWAP2[index];
                return getConnection(url, ";ConnectionUID=", sr.getUid());
            }
            return null;
        }
    
        /**
         * Generates a connection using the TCP transport if available
         *
         * @return An {@link HttpConnection} if this transport is available,
         *         otherwise null
         * @throws IOException
         *             throws exceptions generated by {@link getConnection( String
         *             transportExtras1, String transportExtras2 )}
         */
        private Connection getTcpConnection(String url) throws IOException {
            System.out.println("direct try");
            if (CoverageInfo
                    .isCoverageSufficient(1 /* CoverageInfo.COVERAGE_DIRECT */)) {
                String extraParameter = null;
                if (!DeviceInfo.isSimulator()) {
                    url = url + ";deviceside=true";
                }
    
                return getConnection(url, null, null);
                // ";deviceside=true", null);
            }
            return null;
        }
    
        /**
         * Utility method for actually getting a connection using whatever transport
         * arguments the transport may need
         *
         * @param transportExtras1
         *            If not null will be concatenated onto the end of the
         *            {@link url}
         * @param transportExtras2
         *            If not null will be concatenated onto the end of {@link url}
         *            after transportExtras1
         * @return An {@link HttpConnection} built using the url and transport
         *         settings provided
         * @throws IOException
         *             any exceptions thrown by {@link Connector.open( String name
         *             )}
         */
        private Connection getConnection(String url, String transportExtras1,
                String transportExtras2) throws IOException {
            StringBuffer fullUrl = new StringBuffer();
            fullUrl.append(url);
            if (transportExtras1 != null) {
                fullUrl.append(transportExtras1);
            }
            if (transportExtras2 != null) {
                fullUrl.append(transportExtras2);
            }
            if (extraParameters != null) {
                fullUrl.append(extraParameters);
            }
            // fullUrl.append(";ConnectionTimeout=5000");
            System.out.println(fullUrl.toString());
            return Connector.open(fullUrl.toString(), Connector.READ_WRITE, true);
        }
    
        /**
         * Public method used to reload service books for whatever reason (though I
         * can't think of any)
         */
        public static void reloadServiceBooks() {
            loadServiceBooks(true);
        }
    
        /**
         * Loads all pertinent service books into local variables for later use.
         * Called upon first instantiation of the class and upload {@link
         * reloadServiceBooks()}
         *
         * @param reload
         *            Whether to force a reload even if they've already been loaded.
         */
        private static synchronized void loadServiceBooks(boolean reload) {
            if (serviceRecordsLoaded && !reload) {
                return;
            }
            ServiceBook sb = ServiceBook.getSB();
            ServiceRecord[] records = sb.getRecords();
            Vector mdsVec = new Vector();
            Vector bisVec = new Vector();
            Vector wap2Vec = new Vector();
            Vector wifiVec = new Vector();
    
            if (!serviceRecordsLoaded) {
                for (int i = 0; i < records.length; i++) {
                    ServiceRecord myRecord = records[i];
                    String cid, uid;
                    // sometimes service record is disabled but works
                    if (myRecord.isValid() /* && !myRecord.isDisabled() */) {
                        cid = myRecord.getCid().toLowerCase();
                        uid = myRecord.getUid().toLowerCase();
                        // BIS
                        if (cid.indexOf("ippp") != -1 && uid.indexOf("gpmds") != -1) {
                            bisVec.addElement(myRecord);
                        }
                        // WAP1.0: Not implemented.
    
                        // BES
                        if (cid.indexOf("ippp") != -1 && uid.indexOf("gpmds") == -1) {
                            mdsVec.addElement(myRecord);
                        }
                        // WiFi
                        if (cid.indexOf("wptcp") != -1 && uid.indexOf("wifi") != -1) {
                            wifiVec.addElement(myRecord);
                        }
                        // Wap2
                        if (cid.indexOf("wptcp") != -1 && uid.indexOf("wap2") != -1) {
                            wap2Vec.addElement(myRecord);
                        }
                    }
                }
                srMDS = new ServiceRecord[mdsVec.size()];
                mdsVec.copyInto(srMDS);
                mdsVec.removeAllElements();
                mdsVec = null;
    
                srBIS = new ServiceRecord[bisVec.size()];
                bisVec.copyInto(srBIS);
                bisVec.removeAllElements();
                bisVec = null;
    
                srWAP2 = new ServiceRecord[wap2Vec.size()];
                wap2Vec.copyInto(srWAP2);
                wap2Vec.removeAllElements();
                wap2Vec = null;
    
                srWiFi = new ServiceRecord[wifiVec.size()];
                wifiVec.copyInto(srWiFi);
                wifiVec.removeAllElements();
                wifiVec = null;
    
                serviceRecordsLoaded = true;
            }
        }
    
        /**
         * Utility methd for converting a mask of transports into an array of
         * transports in default order
         *
         * @param mask
         *            ORed collection of masks, example:
         *            TRANSPORT_WIFI | TRANSPORT_BES
         * @return an array of the transports specified in mask in default order,
         *         example: { TRANSPORT_WIFI, TRANSPORT_BES }
         */
        private static int[] transportMaskToArray(int mask) {
            if (mask == 0) {
                mask = TRANSPORTS_ANY;
            }
            int numTransports = 0;
            for (int i = 0; i < TRANSPORT_COUNT; i++) {
                if ((DEFAULT_TRANSPORT_ORDER[i] & mask) != 0) {
                    numTransports++;
                }
            }
            int transports[] = new int[numTransports];
            int index = 0;
            for (int i = 0; i < TRANSPORT_COUNT; i++) {
                if ((DEFAULT_TRANSPORT_ORDER[i] & mask) != 0) {
                    transports[index++] = DEFAULT_TRANSPORT_ORDER[i];
                }
            }
            return transports;
        }
    }
    

    HIII, I use this class to call http to the server, but each time that gives the error No more TransportsException
    application only works on wifi
    I try both GET and POST nothing worked

    device: = 8520 os 5.0
    BIS service provider:-vodaphone plan 15/day
    in that gtalk and facebook works fine

    also I test this app in Arabic countries it also does not work

    ------------------------------after i am test using ---------------------------------------------
    networkDignostic link:- http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-O...

    use networkDignostic to test the available transport connection

    Here is the result

    The Radio Signal level:-81 dBm
    WIFI Signal level: No coverage
    Network name: Vodafone in
    Network type: GPRS
    Network services: data + EDGE + voice
    PIN: 27F03947
    Battery: 81%
    = End of network Info =.
    Transport: by default (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /
    Journal:

    Login to http://www.google.ca:80 /
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: by default (Socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80
    Journal:

    Connecting to a socket: / /www.google.ca:80
    Opening connection...
    Error: java.io.IOException: invalid url parameter.
    = END OF LOG =.

    Transport: by default (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /
    Journal:

    Login to http://www.google.ca:80 /
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: By default (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80
    Journal:

    Connecting to a socket: / /www.google.ca:80
    Opening connection...
    Error: java.io.IOException: invalid url parameter.
    = END OF LOG =.

    Transport: TCP cellular (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /; deviceside = true
    Journal:

    Login to http://www.google.ca:80 /; deviceside = true
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: TCP cell (Socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80; deviceside = true
    Journal:

    Connecting to a socket: / /www.google.ca:80; deviceside = true
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: TCP cellular (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /; deviceside = true
    Journal:

    Login to http://www.google.ca:80 /; deviceside = true
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: TCP cell (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80; deviceside = true
    Journal:

    Connecting to a socket: / /www.google.ca:80; deviceside = true
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: MDS (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no MDS do not service records found.
    Ignored test: coverage of SDM is not available

    Transport: MDS (Socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no MDS do not service records found.
    Ignored test: coverage of SDM is not available

    Transport: MDS (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no MDS do not service records found.
    Ignored test: coverage of SDM is not available

    Transport: MDS (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no MDS do not service records found.
    Ignored test: coverage of SDM is not available

    Transport: BIS - B (HTTP GET)
    Result: pass
    Answer: 200
    Length:-1
    URL: http://www.google.ca:80 /; deviceside = false; ConnectionType = m * s - pub *
    Journal:

    Login to http://www.google.ca:80 /; * only given to the RIM ISV partners.
    Opening connection...
    Open connection
    Definition of the properties of application...
    Host: www.google.ca
    User-Agent: Mozilla/4.0
    Connection: close
    Get the response code...
    Response code: 200
    Got the content length:-1 bytes
    Downloading content...
    Download time: 3,034 seconds
    Downloaded: 37943 bytes
    Closes the connection...
    Connection closed
    = END OF LOG =.

    Transport: BIS - B (Socket GET)
    Result: pass
    Answer: 200
    Length: 38696
    URL: socket: / /www.google.ca:80; deviceside = false; ConnectionType = m * s - could * c
    Journal:

    Connecting to a socket: / /www.google.ca:80; * only given to the RIM ISV partners.
    Opening connection...
    Open connection
    Send GET request:
    "GET / HTTP/1.1".
    Host: www.google.ca
    User-Agent: Mozilla/4.0
    Connection: close

    "
    Downloading content...
    Download time: 2,397 seconds
    Downloaded: 38696 bytes
    Closing connection
    Connection closed
    = END OF LOG =.

    Transport: BIS - B (HTTP POST)
    Result: failure
    Answer: 405
    Length: 959
    URL: http://www.google.ca:80 /; deviceside = false; ConnectionType = m * s - p * ic
    Journal:

    Login to http://www.google.ca:80 /; * only given to the RIM ISV partners.
    Opening connection...
    Open connection
    Request method POST value
    Definition of the properties of application...
    Host: www.google.ca
    Content-Length: 1500
    Content-Type: application/octet-stream
    User-Agent: Mozilla/4.0
    Connection: close
    Display of 1 500 bytes...
    Posted 1 500 bytes
    Get the response code...
    Response code: 405
    Got the content length: 959 bytes
    Downloading content...
    Download time: 1,044 seconds
    Downloaded: 959 bytes
    Closing connection
    Connection closed
    = END OF LOG =.

    Transport: BIS - B (POST plug)
    Result: failure
    Answer: 405
    Length: 1204
    URL: socket: / /www.google.ca:80; deviceside = false; ConnectionType = m * Pei * li *
    Journal:

    Connecting to a socket: / /www.google.ca:80; * only given to the RIM ISV partners.
    Opening connection...
    Open connection
    Definition of the properties of application...
    Envoy POST request:
    "POST / HTTP/1.1".
    Host: www.google.ca
    Content-Length: 1500
    Content-Type: application/octet-stream
    User-Agent: Mozilla/4.0
    Connection: close

    "
    Display of 1 500 bytes...
    Posted 1 500 bytes
    Downloading content...
    Download time: 2,041 seconds
    Downloaded: 1204 bytes
    Closing connection
    Connection closed
    = END OF LOG =.

    Transport: WAP (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no WAP do not service records found.
    Ignored test: coverage WAP is not available
    Ignored test: Please provide IP and APN WAP

    Transport: WAP (Socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no WAP do not service records found.
    Ignored test: coverage WAP is not available
    Ignored test: Please provide IP and APN WAP

    Transport: WAP (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no WAP do not service records found.
    Ignored test: coverage WAP is not available
    Ignored test: Please provide IP and APN WAP

    Transport: WAP (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: no WAP do not service records found.
    Ignored test: coverage WAP is not available
    Ignored test: Please provide IP and APN WAP

    Transport: WAP2 (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /; deviceside = true; ConnectionUID = WAP2 trans
    Journal:

    Connection http://www.google.ca:80 /; deviceside = true; ConnectionUID = WAP2 trans
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: WAP2 (socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80; deviceside = true; ConnectionUID = WAP2 trans
    Journal:

    Connecting to a socket: / /www.google.ca:80; deviceside = true; ConnectionUID = WAP2 trans
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: WAP2 (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: http://www.google.ca:80 /; deviceside = true; ConnectionUID = WAP2 trans
    Journal:

    Connection http://www.google.ca:80 /; deviceside = true; ConnectionUID = WAP2 trans
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: WAP2 (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: socket: / /www.google.ca:80; deviceside = true; ConnectionUID = WAP2 trans
    Journal:

    Connecting to a socket: / /www.google.ca:80; deviceside = true; ConnectionUID = WAP2 trans
    Opening connection...
    Error: net.rim.device.internal.io.CriticalIOException: failed criticism tunnel
    = END OF LOG =.

    Transport: WiFi (HTTP GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: WiFi coverage is not available

    Transport: WiFi (Socket GET)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: WiFi coverage is not available

    Transport: WiFi (HTTP POST)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: WiFi coverage is not available

    Transport: WiFi (POST plug)
    Result: failure
    Answer:-1
    Length:-1
    URL: Not available url
    Journal:

    Ignored test: WiFi coverage is not available

    Thank you peter and jovinz

    I think I have problem in httpconnectionfactory with several url parameter, as peter says

    so now I have usr post url as the code below

       public static void CheckConnection()
        {
            HttpConnection hc=null;
            try
            {
                //Wifi Connection
                if ( (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) && RadioInfo.areWAFsSupported(RadioInfo.WAF_WLAN))
                {
                    ConstantData.postURL=";interface=wifi";
                    return;
                }
                //for BES or MDS Connection
                if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS))
                {
                    boolean connectionFlag=false;
                    String post_url;
    
                    //for BES Connections
                    post_url="";
                    try
                    {
                        hc = (HttpConnection) Connector.open("http://www.rim.com"+post_url,Connector.READ_WRITE);
                        if(hc.getResponseCode()==HttpConnection.HTTP_OK)
                        {
                            connectionFlag=true;
                            ConstantData.postURL=post_url;
                            return;
                        }
                        if(hc!=null)
                            hc.close();
                    }
                    catch (Exception e)
                    {
                        System.out.println(e.toString());
                        connectionFlag=false;
                    }
                    //for MDS Connection
                    if(!connectionFlag)
                    {
                        try
                        {
                            post_url = ";deviceside=false";
                            hc = (HttpConnection) Connector.open("http://www.rim.com"+post_url);
                            if(hc.getResponseCode()==HttpConnection.HTTP_OK)
                            {
                                ConstantData.postURL=post_url;
                                return;
                            }
                            if(hc!=null)
                                hc.close();
                        }
                        catch (Exception e)
                        {
                            System.out.println(e.toString());
                        }
                    }
                }
                //for BIS Connection
                if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_BIS_B))
                {
                    //BIS Connection
                    String post_url = ";deviceside=false;ConnectionType=m**-pu***c";
                    try
                    {
                        hc = (HttpConnection) Connector.open("http://www.rim.com"+post_url);//Connector.READ_WRITE
                        if(hc.getResponseCode()==HttpConnection.HTTP_OK)
                        {
                            ConstantData.postURL=post_url;
                            return;
                        }
                        if(hc!=null)
                            hc.close();
                    }
                    catch (Exception e)
                    {
                        System.out.println(e.toString());
                    }
                }
                //for WAP Connection
                if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT))
                {               //for WAP Connection
                    String post_url = null;
                    ServiceBook sb = ServiceBook.getSB();
                    ServiceRecord[] records = sb.findRecordsByCid("WPTCP");
                    String uid = null;
                    boolean connectionFlag=false;
                    for(int i=0; i < records.length; i++)
                    {
                        if (records[i].isValid() && !records[i].isDisabled())
                        {
                            if (records[i].getUid() != null && records[i].getUid().length() != 0)
                            {
                                if ((records[i].getUid().toLowerCase().indexOf("wifi") == -1) &&
                                        (records[i].getUid().toLowerCase().indexOf("mms") == -1))
                                {
                                    uid = records[i].getUid();
                                    break;
                                }
                            }
                        }
                    }
                    if (uid != null)
                    {
                        post_url= ";deviceside=true;ConnectionUID=" + uid;
                    }
                    try
                    {
                        hc = (HttpConnection) Connector.open("http://www.rim.com"+post_url);
                        if(hc.getResponseCode()==HttpConnection.HTTP_OK)
                        {
                            connectionFlag=true;
                            ConstantData.postURL=post_url;
                            return;
                        }
                        if(hc!=null)
                            hc.close();
                    }
                    catch (Exception e)
                    {               System.out.println(e.toString());
                    connectionFlag=false;
                    }
                    if(!connectionFlag)
                    {
                        post_url=";deviceside=true;apn=blackberry.net";
                        try
                        {
                            hc = (HttpConnection) Connector.open("http://www.rim.com"+post_url);
                            if(hc.getResponseCode()==HttpConnection.HTTP_OK)
                            {
                                ConstantData.postURL=post_url;
                                return;
                            }
                            if(hc!=null)
                                hc.close();
                        }
                        catch (Exception e)
                        {
                            System.out.println(e.toString());
                        }
                    }}
            }
            catch (Exception e)
            {
    
                e.printStackTrace();
            }
            finally
            {
                try
                {
                    if(hc!=null)
                        hc.close();
                } catch (IOException e) {
                    System.out.println(e.toString());
                    e.printStackTrace();
                }
            }
    
        }
    

    so now its works on WAP2, BIS and the WIFi works fine

    the first issue of priority celluler TCP post code is also more WAP2 then

    Thus, each transport time select TCP when BIS, WIFI not presend and need for apn

    in any case, once again, thank you Peter and demo tools network dignostic is awasome...

  • selected wifi connection

    Hi, I had got a question about the wifi connection. its use is all simply because the only thing I have to do is add:

    « ; interface = wifi"to my url. But what happens if more than one wifi is available? by example-network A wifi and wifi-B network. How can I force to connect wifi but chosen by me network (A or B)?

    concerning

    The BlackBerry Connect to a WiFi network at a time, the user must make this connection.  So you use any WiFi network, the user has decided to connect to.

Maybe you are looking for

  • How can I create an iso file for windows 8.1 in Acer E5-511-p25j

    Please help me to create an iso file for the windows 8.1 oem pre installed on my laptop for future reference, Yourhelp will be appreciated.

  • DVD drive sees no disc in the drive

    A month or two ago, I bought 2 games.  1 has played without problems. The second drive, my drive does not even recognize.  It is said that there is no disc in the drive. I exchanged the drive for another, same thing. I contacted Ubisoft (Distributor)

  • Missing ATT Yahoo mail contacts.

    When I opened my att/yahoo email account, my contacts have disappeared and it seemed that someone else had sent e-mails to the account, so I guess someone hacked my account. My email address is * address email is removed from the privacy * and three

  • Streaming problems with windows 7

    When I try to broadcast live programming, it is not a smooth flowing transmission. It starts, stops, plays, then stops again... very erratic and annoying to watch. This has happened in the past to a lesser degree, but it seems to be getting worse ove

  • How to remove private photos just returns

    How to remove private photos just returns