Application works only with the WAP. good with wifi

My application works fine with wifi connection, but does not not with WAP GPRS.

+ 2 days devoted to this subject, but no success.

Here's the code...

Hi mantaker, yet I don't have the solution to my previous problem.

my application using httpconnection and his fine work with Wi - Fi (the device). obtain data from the servlet. I want to use GPRS EDGE. I tried the very last day. but it's not working. even I had the name of the apn, the user name and the password. but it's not working with GPRS. Deploy the NetworkDiagnosticPublic application on device even his also does not work with WAP. and not getting not response. only works with wifi. Here is my code. n my wifi connection successfully application, but I want to do with the GPRS Edge code is

connThread.get("http://*********.30daytrial.webappcabaret.com/Zain_Servlet/second?f1="                            + NameTextField.editField.getText()                            + "&m2="                            + AreaTextField.editField.getText()                            + "&l2="                            //+ LastTextField.editField.getText());//NOT WORKING                            //+ LastTextField.editField.getText() + ";deviceside=true;ConnectionUID=" + getWap2TransportUid());//NOT WORKING                            + LastTextField.editField.getText() + ";deviceside=true");//NOT WORKING                            //+ LastTextField.editField.getText() + ";interface=wifi");// WORKING                            //+ LastTextField.editField.getText() + ";deviceside=true;apn=internet;" +                            //"TunnelAuthUsername=internet;TunnelAuthPassword=internet");//NOT WORKING

   private static String getWap2TransportUid() {

     // Get the service book records for WAP2 transport.          ServiceRecord[] records = ServiceBook.getSB().findRecordsByCid("WPTCP");

          for (int i = 0; i < records.length; i++){

              Dialog.alert("Service: " + records[i].getName());         }

           for (int i = 0; i < records.length; i++)           {             ServiceRecord serviceRecord = records[i];             String cid, uid;

              if (serviceRecord.isValid() && !serviceRecord.isDisabled()) {                 cid = serviceRecord.getCid().toLowerCase();                   uid = serviceRecord.getUid().toLowerCase();

              if (cid.indexOf("wptcp") != -1 && uid.indexOf("wifi") == -1 && uid.indexOf("mms") == -1) {                    Dialog.alert("New ::  "+serviceRecord.getUid());                  return serviceRecord.getUid();                    }             }            /* String recordName = serviceRecord.toString().toUpperCase();             if (serviceRecord.isValid() && !serviceRecord.isDisabled() &&                     serviceRecord.getUid() != null && serviceRecord.getUid().length() != 0 &&                     recordName.indexOf("WAP2")!=-1)

               {                 Dialog.alert("recordName: " + recordName);                     String uid = serviceRecord.getUid();                    Dialog.alert("UID="+uid.getBytes());

                   return uid;               }*/           }

          return null;  } 


Yes peter, there are a lot of thread having the same issues...

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=38541#M38541

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=38328#M38328

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=38316#M38316

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=38157&view=by_date...

always loads UN stuck

See you soon...

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Use of the key Windows 7

    Hey,. I have my laptop of 2009 with a key of windows 7 on it. I'm getting a new computer (not lag) and I was wondering if I was allowed to use the code that is under my laptop computer to my new computer I am building. Am I allowed to use the code to

  • Fees/white start with iTunes on Windows 10.

    I have over 3,000 music files in Windows 10. How to start with a fresh iTunes and import only the folder I chose.

  • LCD-tenderness

    I just noticed while I tap on the touch screen of my phone that shows the deflections (like it when press us hard on the touch screen), there is a small spot in.I swear to you that I hit like feathered iv. What could be the problem?It fell not once!

  • Now get the message "printer offline".

    I have a LaserJet P1006 that I use with a Macbook Pro Version 10.6.8. I get the message "printer offline" to stop. I tried everything: unplugged (printer and a/c cable). I rebooted my machine. Nothing makes a difference. I have had this printer for 2

  • My basket shows no trash when full

    Hello microsoft,. I use a windows vista Toshiba computer. My trash seems to be broken. When I remove things and they go into the trash, the desktop icon is supposed to appear a full recycle bin, but does not work. And when the Recycle Bin is empty, t