WebView Object is here!

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi,

    Here you will find the WebView2 object for Android, please copy inside the root of your MMF2 installation.
    please check inside the example directory, you will find several examples of the object and how it is implemented according the OS.

    Notice if the stock browser do, the object will do.

    Concerning the speed the execution depends on the speed of each device you are going to use the object.
    (even if you see the page, its take time to fully loaded)

    what it does:

    Full navigation

    Javascript (what is allowed from the stock browser)

    HTML5 (what is allowed from the stock browser, Windows required IE8 and above with all updates)

    Geolocation (enabled inside the object Android)

    Grab image (png, bmp, jpeg, in the directory and name you choose (and you have permission writable)- don´t forget permission WRITE_EXTERNAL_STORAGE for Android )


    Here the link:
    Please login to see this link.


    i am waiting from the source of jjsonick in order to implemented what is possible in iOS.

    enjoy and let me know if any error occurs!


    PD: don´t forget INTERNET permission

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Thank you mr FVivolo

    Great extension.
    Is there a way to bypass admob ? Like inserting javascript code from Leadbolt or other monetization site (html banner) on my application ?

    i don´t know for sure. but looks like you can do it, unchecking "display ad" in the frame properties.

    Go to LeadBolt and register. they have the snippet for that.

    but in the future when the android is released it will be good to have the Leadbolt working with the last sdk.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • To All,

    hope it help in your future projects.

    about the extension,


    i found 2 bugs in windows version and i made some changes to works with utf-8 in android so please download again


    Please login to see this link.


    I made two example one for admob and one for leadbolt, they don't work in my tablet, but i will like to see if works in others, also please be aware that leadbolt require that you choose if you are going to publish using the web or the ad_sdk, so if you want to use it need to be set in the configuration page.


    Please login to see this link.


    Please login to see this link.


    this is the concept i though few month ago, also you may find that you can make your own advertisement to share with the one provide by others service.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Brilliant! can't wait to give it a go.

    It doesn't quite allow you to scroll around the whole page. cuts off about an inch from the right of the web page that is being viewed. in portrait.

    Regards

    Ross

    Please login to see this link.

    Edited 2 times, last by DJFuego: Testing. (November 17, 2012 at 1:48 PM).

  • Thank you very much FVivolo

    Ok i have recived ads on my S3 from Leadbolt and on the dasboard it's indicate 5 impressions and 2 cliks.
    On leadbolt only banner is working not text banner, i have streched the size of Webview to 370*70 instead of 320*50, the other thing is : cliks are not working my phone, normally
    a new browser will open ? But i have a message saying my app crashed.

    Finally i can say webview will be awsome. You know Admob suspended my account coz i earned more than 40$ every day .... and they cleared my 1680 $ :)) The power of admob
    is ; when you did some money with your games from ads, they hate it, and suspend your account :))) For this reason , i will try other monetizations sites, like Leadbolt, millenials adpush ....
    For do this i need SDK android sdk, and learn quickly C++ :) (free pascal is the best).

    Thanks alot again mr FVivolo and Clickteam

    Edited once, last by Sloxone (November 17, 2012 at 7:24 PM).

  • Fernando, I've found a strange bug.

    If you load URL (the one I load works) then HIDE object it kills the object. Also, if you Load URL (again the one I load works) and place the object in frame, it works, however if you reposition the object out of the frame area it is destroyed...

    Also 'set X position' doesn't work, Y does...

    Edit: Whoops, the first point DOES work however it doesn't work until the HTML5 page is fully rendered. I think this could be OK. However, Set X Position still doesn't work.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

    Edited 2 times, last by Danny (November 18, 2012 at 9:32 PM).

  • Here is the crash log about leadbolt html banner integration.

    java.lang.NullPointerException
    at Events.CEventProgram.handle_Event(CEventProgram.java:1276)
    at Objects.CExtension.generateEvent(CExtension.java:341)
    at Extensions.CRunWebView2$2.onPageFinished(CRunWebView2.java:326)
    at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:389)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4898)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
    at dalvik.system.NativeStart.main(Native Method)

  • Danny,

    i will check about this, meanwhile can you run these examples and tell me if they works for you

    WebView Random Size Android

    Controlform WebView Android , first page is LoadURL and the second frame is LoadHTML


    Sloxone,

    Thanks for the crash report i will check and let you know

    PLEASE TELL ME WHICH ANDROID VERSION OCCURRED THE CRASH (2.3?)

    Regards,


    Fernando Vivolo

    ... new things are coming ...

    Edited once, last by Fernando (November 19, 2012 at 3:01 AM).

  • HI,

    i just made some changes in the webview object, please try and let me know.

    download using the previous link.

    Danny,

    SetX is working i cannot reproduce the error, and hide (is not destroying the object here) and show too, but i don´t know if you move the object so far from the frame that can be destroyed as regular active object.

    Please test again and let me know

    Sloxone,

    I made some changes to avoid any null pointer, but in that particular all object is generated by android, but i check before doing anything just in case.

    concerning admob, is happening that friends that are using the game for example today you go after 48 hours to check if there are some click and nothing appears, so something is strange with the process. LeadBolt is better and works in for iOS, android, playbook, and html5.

    VERY IMPORTANT

    please not do a refresh, ask for height, width, get HTML source before the page is fully loaded.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Fernando, I thought that too, so I moved it just -480 (width of frame) so it was just out of frame but it still didn't load, I think HTML5 pages might need to render in full before you put it off the screen, it works like that with Chrome too so may not be a bug, but the X pos wasn't moving at all, Y was.

    I'll give this a new test now dude and report back!

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Fernando,

    It works like a charm, however there is an issue with HTML5, I don't think you can avoid it. If you load up a html5 page, the component has to be visible to the user, if you 'hide' the object or page before the page is fully rendered it will pause the render until it's in view again. I don't know whether Francois will know more about that or maybe even Jamie with the way HTML5 works.

    Unless you can think of something else?

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Hi Danny,

    I can not reproduce what you are saying, using the example web testing html5 android, if you add these events and actiions.

    start loading --------------- hide

    load complete --------------- show


    you will see that when start to load (after you press a test button) it hide the windows until is loaded complete and that moment it will appears, there is nothing in the code that stop the rendering process when the webview is hide, even more the rendering process start in 4 separates thread independent from the object.

    MORE INFORMATION:

    in some device the hardware acceleration should be set to true, in order to work.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!