Help: forcing use of proxy in j2me and getting value of gateway IP address

hi everyone,
#1
Has anyone tried forcing the use of a proxy for a midlet? If so how did you do this? I was able to connect to a url through the emulator (ktoolbar) by changing the proxy settings under the edit-->preferences on ktoolbar but I want to make sure that my midlet enforces the use of a proxy to connect to a http url (so that I'll know it still uses the proxy even if it is already using a real java-enabled phone).
somebody suggested to me to take a look at http://java.sun.com/j2me/docs/html/docs/Running.html
I've tried the instructions from the url but it seems like its just the configuration you run when you test it in your emulator. Similar to changing the preferences on ktoolbar to use a proxy.
This is what I did:
I tried changing the config to a working proxy, compiled my midlet, download it into my java-enabled phone and tested if it can connect to a backend server. The result: I was able to get a reply from the backend, however, when I changed the configuration to a non-working proxy, I still get a reply from the backend server. This leads me to believe that the midlet uses the current internet connection profile on the phone.
If this is the case, then that means I am dependent on the phone settings and I could not change/force the midlet to use the current connection with a proxy server I defined. I've searched the internet and have seen sample codes to use proxy servers when connecting to the intenet but they are not for j2me applications (so far). Is this a limitation of j2me? maybe there is really no way to connect using a proxy defined in an application since there is no api for it? Correct me if I'm wrong though. Is there a workaround for this?
#2
Another problem that I am trying to solve is to get the value of the gateway IP address defined on the phone when it connects to the internet. Is this possible? If so, how?
Any ideas will be very much appreciated. thanks to all.
-jess

hi,
does anyone have an answer to this? hope you can help. thanks again.

Similar Messages

  • TS1506 I just updated my IOS to 7.1 and now I can't open Microsoft attachments - I used to always do it. Help - I use my iPad for work and now can't see any attachments.

    I just updated my IOS to 7.1 and now I can't open Microsoft attachments - I used to always do it. Help - I use my iPad for work and now can't see any attachments. I've tried opening straight into other apps and just get error messages, and I the mail preview there is just a grey screen telling me the file name and size. It worked fine until I did the IOS upgrade

    Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    Delete the app and redownload.
    Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
    http://support.apple.com/kb/ht2519
     Cheers, Tom 

  • Need help re-synching iPods with new computer and getting iTunes to...

    Need help re-synching iPods with new computer and getting iTunes to recognize our iPods (it doesn't even recognize them when they're plugged in).
    Hubby wiped my harddrive for me, so now I need to get everything back in proper places. I'm using windows XP and installed iTunes once again (I believe it's version 8). I also installed all of my iTunes songs. Now I need to know where to go from here. We have 3 iPods and I need to get them all synched once again. I know how to create different libraries for each of us, but I can't figure out how to get our songs back into our iTunes libraries. When I open iTunes and plug in an iPod, iTunes doesn't even show that an iPod is plugged in.
    What do I do now to get each of our iPods synched with our own libraries?
    TIA
    Brandy

    Thanks Zevoneer. The "Restart ipod service" worked and itunes is now recognizing my ipod! Hooray!
    Okay, now how do I synch all of our ipods with our individual libraries (I don't want all of my kids' songs and vice versa)? We each have hundreds of songs on our ipods that we don't want to lose.
    Thanks again!

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Help - I turn my Apple air on and get a message asking for my keychain password - I enter my password but it doesn't work.  I've never seen this before.  What do I do?

    Help - I turn my Apple air on and get a message asking for my keychain password - I enter my password but it doesn't work.  I've never seen this before.  What do I do?

    This may help.
    http://support.apple.com/kb/TS5362?viewlocale=en_US

  • Send value to BAPI and and get value from BAPI on VB 6.0

    Hi All,
    I want to connect SAP and send some values and get some results from BAPI with Visual Basic 6.0
    I connected SAP successfull But I didn't send value to BAPI.
    I want to connect SAP with BAPI_MATERIAL_GET_ALL BAPI and I want to send u2018000000000000980010u2019  parameter. So I want get the result from BAPI.
    Could anyone help me about send and get value BAPI with VB 6.0?
    Thanks in advanced
    captivator
    Edited by: captivator on Dec 10, 2010 4:24 PM

    Hi Dinesh,
    My full code is below.
    I'm getting error when "Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")" code line is working.
    Error : Script error in module line 30:(10091) ActiveX Automation:no such property or method
    Have you got any idea?
    Thanks in advanced.
    Esat
         Set ctlLogon = CreateObject("SAP.LogonControl.1")
         Set sapConnection = ctlLogon.NewConnection
         sapConnection.User = "user"
         sapConnection.Client = "120"
         sapConnection.Password = "1q2w3e4r"
         sapConnection.ApplicationServer = "xxxxxx"
         sapConnection.Language = "EN"
         sapConnection.SystemNumber = "00"
         booReturn = sapConnection.Logon(0, True)
         If booReturn <> True Then
              gSAPConnect = False
         Else
              gSAPConnect = True
         End If
         If booReturn Then
          'MsgBox "Logged On successfullyu2026"
          Debug.Print"Logged On successfullyu2026"
         End If
    Dim obj As Object
    Dim return As Object
    Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")
    Set return = ctlLogon.DimAs(obj, "000000000000980010", "RETURN")

  • Help needed using ITunes Match for Music and freeing up space on IPad?

    I have moved my music from IPad to ITunes Match Cloud.  I find that it is just copied there and is still on my IPAD.  I am trying to free up space on my IPad so do I delete the music on my IPad, or do I delete the music on my IMac and sync to remov

    King Penguin's advice is always sound, spot on and he has really give you the best all around solution for what you want to do....but you can also delete your music directly from the iPad and download it again when you want it again. These days, not all people use iTunes with their iPads and many iPad owners dont even own computers. I assume that you do have a computer running iTunes since you asked about iTunes Match, but since you didn't know how ITM works, maybe you don't own a computer, so I'm just offering another alternative.
    You can go to Settings>General>Usage>Manage Storage>Music and remove music in there via the Edit button as well as swiping across songs or albums in the music app in order to get the red delete button. If you want to download the music again, just go to the purchased tab of the iTunes app, tap on Music, Not on this iPad and all of your purchased music will appear. You can also go to Settings>iTunes & App Store>Show All Music>on. That will make all of your music in the cloud appear in the music app and you can tap on the cloud icon in order to download the songs again.
    The only caveat to this solution is that of the music is no longer available in the iTunes Store, you cannot download it again. On occasion, things do get removed from the iStores, so it is possible that could happen.
    Download past purchases

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Setting and getting values to the viewcontroller from component controller

    Hi,
    I'm having a model node in the controller  and the value node int he view which are binded to the UI elements.
    How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
    Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
    Thanks & Regards,
    Suresh

    Thanks Murtuza..
    i have one more question regarding checkbox by group.
    I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
    In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
    how to get the label names, using simple types. i,m able to get it using code.
    how to get it by simpletype??? 
    thanks, suresh

  • Set and get values with vector

    I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
    ex:
    my class:
    sql = "Select ...";
    Vector fName = new Vector();
    rs = sqlStatement.executeQuery(sql);
    if (rs != null) {
    while (rs.next()) {
    fName.add(rs.getString("fName") + "");
    rs.close();
    setFName(fName);
    how would I set up the set and get methods???
    thanks

    I am unsure of what you are asking:
    A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
    If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
    If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
    If you are asking how to access the elements of the Vector you use an Enumeration:
    for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
    s = (java.lang.String) e.nextElement();
    vl.add(s.substring(0, 12));
    If you are asking something else: please elaborate what you want--my brain may not be very functional this morning.

  • Are you having success and getting value from "Month 13" in GL?

    We are looking at using month 13 in the JDE GL. Am interested in use cases of other customers where they have either:
    - tried out month 13 and got good value from it (if so what was the value)
    - have tried month 13 out and decided not to use it (why?)
    - have stayed away from the functionality (why)
    Thanks

    Thank you everyone for your 'tips' and 'advice'.
    I've managed to get the maximum and minimum value, using the same method, but into my very own while loop.
    I used the connection Y value and made the same connection as shown below.
    THANK YOU ALL!

  • How to build Hierarchy and get values from DAX Evaluation Query?

    i have create Calander Hierachy for Year,Quarter,Month... in this invisible tabuler model medata properties.
    any one give steps for create Hierachy and Get Data From DAX evaluation context ?.
    VenkadesanPerumal

    Venkadesan, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Help: Tried using disk install to erase and reinstall mac osx

    Could someone please help me. I just bought a second hand macbook pro off someone and upon recieving it realised they hadn't erased everything and their user account was still set up and active as administrator. This means i'll have issues down the track doing updates etc.
    I googled how to hard reset the computer to start from scratch and followed steps. Basically they were
    1. Restart computer whilst holding down the command and r buttons (which I did)
    2. When the wifi connection box comes up connect to reliable wifi (done)
    3. Then it said go into the disk utility and erase the mac os extended disk (the problem here is 1. the steps didnt specify that it should be the macintosh HD disk erased and 2. It should be the mac os extended (journaled) version, i've just fogured this out after a lot more searching as to why the reinstall of mac OSX wouldn't then work)
    now i'm freaking out that i've done irreperable damage given that the mac OSX base system (mac OS extended (non-journaled)) has been erased. Can anyone please tell me if this can be reinstalled? Or what I should do next?

    Afoster88 wrote:
    ...Mac OS Extended' and 'name: mac OS X Base System' both greyed out along with the erase and security options (The option to erase is unavailable, so im assuming it means the mac os extended has been erased in this partition) (capacity: 1.39GB, available: 224.7 MB, used 1.17GB)
    whereas in the macintosh HD partition nothing has been greyed out (so the option to erase is there, which im assuming means it hasn't been erased)
    (capacity: 319.73GB, available: 319.3 GB, used 425MB).
    Does this help explain the situation?
    That does help. The reason why the Macintosh HD partition is the only one where nothing is greyed out is that that's where your new OS X installation should be targeted (note that it's the only partition with room for a full OS X installation as well as your own files and applications). The option to erase is available in case you want to, for some reason, erase it again. Remember, you're booting from the Recovery HD and that's a partition on your HD too. You aren't allowed to erase the partition you booted from (hence, it's greyed out), and, since it's normally hidden, as are others, such as the EFI, it shouldn't be messed with anyway.

  • [HELP] I use Skype from two computers and i notice...

    Sorry for reposting this topic, but it didn't appear on the forum.
    Hey there.
    I use skype from two computers.
    Last week i blocked a contanct from computer1 and yesterday i unblocked it from the same computer.
    So i noticed that after i unblocked this contact, it still appears at my homepage with his picture, info and everything, BUT only from computer1.
    When i use computer2, this contact appears at my contacts, but only with his skype name (the one he uses to log in) and not with his display name. Also, i can't see his picture or any other information. It just appears offline, with his log-in name and with no picture. That's all.
    So what's going on? Why can i see everything normally from computer1 but not from computer2?
    P.S.1 99% he blocked me too, but i have no idea whether he unblocked me or not.
    P.S.2 I know my english is horrible, sorry for that.

    HolyCrap wrote:
    Sorry for reposting this topic, but it didn't appear on the forum.
    Hey there.
    I use skype from two computers.
    Last week i blocked a contanct from computer1 and yesterday i unblocked it from the same computer.
    So i noticed that after i unblocked this contact, it still appears at my homepage with his picture, info and everything, BUT only from computer1.
    When i use computer2, this contact appears at my contacts, but only with his skype name (the one he uses to log in) and not with his display name. Also, i can't see his picture or any other information. It just appears offline, with his log-in name and with no picture. That's all.
    So what's going on? Why can i see everything normally from computer1 but not from computer2?
    P.S.1 99% he blocked me too, but i have no idea whether he unblocked me or not.
    P.S.2 I know my english is horrible, sorry for that.

  • Help, I used the mv terminal command and now I cant find my files!

    I used to mv command to move a large 19GB file to my now 3TB external hdd and now I can not find the file! I logged in as root and used this:
    mv /Users/username/filename /Volumes/Mac\ OS\ External\filename

    Choose Go to Folder from the Finder's Go menu, provide /Volumes/Mac OS External/ as the path, and drag it to the desired location.
    (78736)

Maybe you are looking for

  • Before I got my Iphone 5 I used to be able to dbl. clk.

    Before I got my I phone 5, a friend showed me this iPhone help for my phone when it started acting off, or slow. I would dbl. clk. & all these apps would appear at the bottom of the screen and all I needed to do was click on each one til a negative s

  • How to extract data from multiple flat files to load into corresponding tables in SQL Server 2008 R2 ?

    Hi,           I have to implement the following scenario in SSIS but don't know how to do since I never worked with SSIS before. Please help me.           I have 20 different text files in a single folder and 20 different tables corresponding to each

  • Can you put multiple transitions on one slide??

    I'm working on a storyboard for a iPhone app using MockApps templates. The whole presentation walks the user step by step on how my app will work. Its a interactive keynote where all the buttons have hyperlinks to the corresponding slides. Each of my

  • Capture from Two Tables and Apply in one Table

    Hi All, Is it possible to capture from two tables (master and child table) and apply in one table? For example, 1. DEPT and EMP tables in source database with relation DEPT table structure is like DEPT_ID, DEPT_NAME, LOC_NAME EMP table structure is l

  • GR Based IV check box

    Hi. I need help in controlling the GR Based IV check box in creating the PO. We normally set this in the vendor master. But then, How can I set the GR BASED IV checkbox base on the PO document type that will be used? Let say I want all sap standard t