Pointui » Home 2 Applets Showcase

[Applet] CommMgr v2 with DATA connections with OO code (QVGA)

(48 posts)
  • Started 1 year ago by InvalidCast
  • Latest reply from bearlover

Tags:

  1. InvalidCast
    Member

    IMPORTANT NOTE: you must have at least Home 2.0.18b

    EDIT (25/02):
    now need 2.0.18b version.
    new version, with data connections management, like "NoData" app.
    you can able / disable up to 4 connections.
    - 2 arrows on right to go down / up between the 2 menus

    i have some layout work to do. there'll soon be a USB management button (mass storage / activesync) that's why there's a "hole" in the first menu

    file: CommMgr_QVGA_v2.zip

    EDIT (18/02):
    - added use of "terms" for localization
    - changed wifi icon, as shown in post 5

    EDIT (18/02) (2):
    - now, label are clickable, so you can click them or images

    Hi!

    i decided to rewrite the CommMgr applet, to get familiar with Pointui C (am a C# programmer)

    so i wrote a base class for buttons and then 3 children classes, for each kind of button.
    if you're curious you may take a look at the code.

    it's QVGA, but i link the SVG files that i used, so it would be really easy for one to make a VGA version, with big BUT smooth icons.

    it may be still a little buggy. i changed some little things:
    - use GetIsRadioOff instead of GetFlightMode because this latter is changed with bluetooth or wifi activation
    - no last activity: not enough space and not very usefull (to my mind of course)
    - wifi and bluetooth are disactivated when phone is enabled AND disabled

    have fun (i hope ;-) )

    Attachments

    1. CommMgr_QVGA_v2.zip (37.7 KB, 3,928 downloads) 1 year old
    2. Capture010.png (43.7 KB, 116 downloads) 1 year old
    3. Capture009.png (41.4 KB, 64 downloads) 1 year old
    4. Capture002.png (81.9 KB, 97 downloads) 1 year old
    5. CommMgr_QVGA.zip (23.4 KB, 1,027 downloads) 1 year old
    6. CommMgr_SVG_sources.zip (30.3 KB, 216 downloads) 1 year old
    Posted 1 year ago #
  2. Nick-93ua
    Member

    IrDA?

    Posted 1 year ago #
  3. InvalidCast
    Member

    i'm not sure to understand...
    maybe you're talking about the second icon: it's not infra red, but wifi.
    i didn't make the SVG files, so i did with what i had ;-)

    maybe will change it when i'm better with inkscape

    Posted 1 year ago #
  4. Nick-93ua
    Member

    No meter. I understand what i need.

    Posted 1 year ago #
  5. InvalidCast
    Member

    maybe you'd like thsi better for wifi? (don't pay attention to the mixed colors for arrows)

    Attachments

    1. g3872.png (17 KB, 34 downloads) 1 year old
    Posted 1 year ago #
  6. WildSioux
    Member

    Good job on the changes. Is it possible to make the background transparent?

    On my mogul, the wifi status isnt updated unless i remove the applet and re add it. I like seeing what network i am connected to.

    And for the flight mode, it would be cool to change icon to an airplane.

    Posted 1 year ago #
  7. I have QVGA and I can't see the last icon, and nor letters for the Phone status...

    Posted 1 year ago #
  8. InvalidCast
    Member

    WildSioux,

    1) if you're talking about the alpha / black background, you can even remove it by modifying CommMgr.cs.
    or if you just want to change the image, change background.jif to your need.
    or you can put a little picture, blended with alpha = 0, to give the illusion there's no background, without modifying the code

    2) i just checked, it works on my omnia.
    would you mind test with one of the other CommMgr version, to see whether it comes from the code (that's my part) or from the phone (that's PointUI guys' part ;-) )

    3) you can change the pictures, i like the little blue phone ;-)

    Posted 1 year ago #
  9. InvalidCast
    Member

    caballero600,

    which phone do you have? which screen size? 240 x 240? 240 x 400?....
    a screenshot would help (if you don't have screenshot app, maybe you can try vsnap, it's free)

    Posted 1 year ago #
  10. Really nice code - I like it very much!

    Posted 1 year ago #
  11. Okey here is my problem. My phone is HTC Elfin, QVGA, 240x320 the normal qvga.

    Attachments

    1. Screen02.jpg (21.6 KB, 9 downloads) 1 year old
    Posted 1 year ago #
  12. InvalidCast
    Member

    ok, i found the problem:
    you have to install the latest Home version:
    http://downloads.pointui.com/public/home2/cabs/free/Pointui.Home2.QVGA.WQVGA.Free.Latest.cab

    i think you have 2.0.14b, you must have 2.0.16b (released today)
    Phone.GetIsRadioOff() returns an empty string (in 14) instead of 0 or 1 (in 16)

    Posted 1 year ago #
  13. WildSioux
    Member

    @ InvalidCast:

    Thanks for the suggestions. I will have to edit the cs file since I don't know how to edit .jif files. What can you open those in?

    About the WiFi status not changing. I have been using this Commanager. Your commanager and this one are the only two so far that actually show the status of bluetooth, wifi (name), and phone. On his when I turn wifi on/off, it doesn't immediately show the change. However, if I slide to next applet then back it will then reflect the change. Your applet I have to remove it all together and then add it.

    So I don't think it is a phone or pointui thing. It may be something in the code of your applet that is causing this behavior. I wish I knew how to code so I could help.

    Posted 1 year ago #
  14. InvalidCast
    Member

    WildSioux:

    1) you can't open jif files, you have to create your own, you take a png and use this:
    http://docs.pointui.com/PngToJif

    2) i have a doubt: do you click on the icon or the label? i don't handle the click on the label, maybe i should....

    Posted 1 year ago #
  15. InvalidCast
    Member

    WildSioux,

    maybe were you talking about editing cs files? well notepad is enough, though i use notepad++, it's free and has highlighting syntax support.

    Posted 1 year ago #
  16. @InvalidCast
    Yeah my problem solved!! It's necessary to update to 2.0.16 version of pointui!!!

    Posted 1 year ago #
  17. InvalidCast
    Member

    caballero600,

    i added a note for that in the first post.
    thanks for helping me pointing this out ;-)

    Posted 1 year ago #
  18. WildSioux
    Member

    InvalidCast:

    Thanks for the update. The problem still remains of not showing wifi name. When I click the icon or text (now) it does switch, but it just shows "WiFi is on, not connected" It is connected though.

    Posted 1 year ago #
  19. InvalidCast
    Member

    WildSioux:

    the problem is that i don't have any wifi source for the moment.
    so i cannot test.
    so, are we talking about:
    - auto connection to a preferred network
    - or when you activate wifi, you then choose the network in the popup that appears several seconds later?
    this could help me understanding.
    there might be a late between the moment i ask the network name and the moment the device really connect to the network.

    try this:
    - turn wifi on
    - wait some time, to be sure wifi is connected on your network
    - then, switch on / off (depend of the current state) your bluetooth
    this to force a refresh of controls
    see me if then you show your network name

    Posted 1 year ago #
  20. WildSioux
    Member

    InvalidCast:

    That is an excellent idea. First, I tried the bluetooth and that didn't change the wifi status.

    Maybe there could be an option to tap and hold wifi to open another settings/status page in your applet. You could then set your prefered network and see a list of other available networks to connect to if its not automatically connected to your prefered network or last connected. Just an idea.

    Thank You! I really do appreciate your help and work.

    Posted 1 year ago #
  21. SwTaArRs
    Member

    great app thanks.
    there is a small issue.
    when i open the wifi it autoconnects to my network, i can see it mobile's wireless manager, i can see the network's name, but in comm manager it says, wifi is on, not connected.
    and also when the phone is on ther eis no need to say flight mode is on.
    flight mode is on means all of them closed bluetooth, wifi and phone
    maybe you can add something like home 1.5

    Posted 1 year ago #
  22. InvalidCast
    Member

    SwTaArRs:

    thanks for reporting issues.

    1) WildSioux already reported the network name problem. as soon as i have a wifi source, i test it

    2) do you mean that when the phone is not in flight mode:
    - the icon is good (green arrows)
    - but the label is wrong?

    Posted 1 year ago #
  23. InvalidCast
    Member

    i just checked, on my device, it's written "flight mode is off" when the phone is enabled.
    if you mean you don't want to see any label when the phone is on, just edit Terms.English.xml file, find:

    <term name="flight_mode.off">Flight Mode is off</term>

    and replace it by:

    <term name="flight_mode.off"></term>

    Posted 1 year ago #
  24. SwTaArRs
    Member

    InvalidCast, thyanks for fast reply

    My phone's status
    -Bluetooth is on: "Devices 0"
    -Wifi is on: "Wifi is ON, not connected"
    When I close the phone it close the wifi and bluetooth and says: "Flight mode is on"

    I'd like to close the gsm but open the wifi of bluetooth.
    So it's best the gms in not connected to flight mode option.
    Though you can add another button for closing all networks and that button should say: "Flight mode is On" of "Flight mode is Off"
    The gsm networks should say: "Phone is on" or "Phone is off"

    Posted 1 year ago #
  25. Nice and open!
    Thanks InvalidCast!

    >>> Added to the Applets Store

    Posted 1 year ago #
  26. Twilightz1
    Member

    Guys,

    Just wondering, how many folks here uses the 'USB to PC' function regularly? Would it be a good idea to add this functionality into this Applet?

    Thanks.

    Posted 1 year ago #
  27. InvalidCast
    Member

    SwTaArRs:

    with my code:

    - when you disable gsm, it disables blutetooh and wifi
    - when you enable gsm, it disables blutetooh and wifi

    BUT, when the gsm is disabled, you can always turn on wifi and bluetooth.

    maybe, in the future, i will add a config file in which you would be able to say how the applet should work:
    - flight mode as the current one
    - strong flight mode (bluetooth and wifi cannot be activate in flight mode)
    - light flight mode, the one you want

    but it's not for now, it asks a little bit of change and test

    Posted 1 year ago #
  28. InvalidCast
    Member

    Twilightz1:

    you're right, i uses sometimes too to switch from activesync mode to mass storage mode.
    will take a look at it (already have the good icon)

    i didn't find anything in the documentation, but i think i can find a registry key

    Posted 1 year ago #
  29. Twilightz1
    Member

    InvalidCast,

    Thanks! Looking forward to it. :-)

    Posted 1 year ago #
  30. fluid
    Member

    dear InvalidCast,

    thx for the great work!
    the only small feature i would request is this:

    in the windows mobile connection manager is an option available in the menu entitled "disconnect mobile network" (or something like this, only de-locale available over here). it disconnects any connected 3g/gprs/etc.-connection.
    this is a useful option as it allows me to disconnect my current 3g-connection and enabling the wifi on the same page - so the device just uses the activated wifi connection, when i'm in the ragen of my network.

    what do you/others think?

    cheers from vienna,

    Fluid

    Posted 1 year ago #

RSS feed for this topic

Reply »

You must log in to post.