facebook

Please help! How to open web application in Android WebView?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #343964 Reply

    I have a big problem, I made an entire application in MobiOne that worked perfectly in the emulator android MobiOne.

    But I need it to open in a WebView on Android.
    Opens the first page but does not switch to the other pages.

    I am very worried, is there a way out?

    Thank you

    #343966 Reply

    nvts
    Member

    Hello,

    Are you talking about other .mobi screens? If so and with out looking at your code, you might need to attach the screen(s) in the additional project files in the properties tab in mobione.

    Cheers…

    #343968 Reply

    @nvts wrote:

    Hello,

    Are you talking about other .mobi screens? If so and with out looking at your code, you might need to attach the screen(s) in the additional project files in the properties tab in mobione.

    Cheers…

    Hi ,

    I will explain how my app .
    Unfortunately I can not create a native version for Android, because I need to use the Push Notification I’ve ever done in Eclipse .

    So I’m doing in Web mode , so that within the Android application in Eclipse it is possible I open the application on WebView .

    Have a login screen that sends a POST to a file . PHP and if the user exists in MySQL database it goes to the next screen . MOBI .

    This works if I open the Chrome browser , but not the WebView .

    Already added in Property
    Miscellanious ( adittional project files ) files . MOBI I’ll use .
    But it does not work

    Another major issue I have is that it takes so verify that the user exists , need to display a table that has a MYSQL query , how to make it load after the POST the login screen ?

    I am new in MobiOne , and I am very lost , delayed with the small project .

    Many thanks if anyone can help me .

    #343970 Reply

    support-michael
    Keymaster

    edited: drafted this note while you were posting you update – disregard

    >But I need it to open in a WebView on Android. Opens the first page but does not switch to the other pages.

    Did you use the MobiOne App Center Builder to create a native android app?
    The reason for asking is your description refers to the internal webview ui component which is not a typical way to describe a problem – unless you are not using the build service?

    If you can run your project in the Mobile Web Simulator (available in 2.5) or Test Center with no issues then typically it will run in a native app assuming you use the MobiOne application build services. To isolate the root cause let me ask if you have followed these tutorials:

    0) overview – demo video
    http://www.youtube.com/watch?v=wr32FxxFkj4

    1) Quickstart for laying out app UI with 2 screens
    http://www.genuitec.com/mobile/docs/mobione_quickstart/quickstart.html

    2) build an application docs
    http://www.genuitec.com/mobile/section.php?id=3

    My recommendation to everyone start small. Begin with getting small simple helloworld project designed and running in the simulator. Then get it working on a real device. Then evolve it. Each evolution should address a small set of questions/concerns. If you can get the simple app working then a more complex project will never work.

    #343971 Reply

    support-michael
    Keymaster

    Hmm! I saw your earlier request for push notifications. They are not available at this time.

    It sounds like you are implementing your own app that is basically a container (webview) that loads your enter application logic (all web code) from a server. Is this correct? I inferred this from your statement that the project runs in the chrome browser with no issue.

    #343972 Reply

    Hi Wayne, thanks for helping me.

    My working process is simple.
    And using an example of you when I click a button on a. MOBI, it opens a URL, so my plan worked.

    And I managed to put the Push Notification ^ ^.

    I have studied all possible examples of MobiOne.

    Another major issue I have is that it takes so verify that the user exists , need to display a table that has a MYSQL query , how to make it load after the POST the login screen ?

    Thank you

    #343974 Reply

    Hello.
    Now just missing so I can finish my application.

    I have a Login screen.
    When the user makes access successfully, it will open a new opening. MOBI.
    This is already done.

    But I need to pass information to POST again. MOBI that will open so that it displays a table according to the LOGIN user.

    How to do it?

    Thank you.

    #343997 Reply

    support-michael
    Keymaster

    >But I need to pass information to POST again. MOBI that will open so that it displays a table according to the LOGIN user.

    I’m not 100 percent clear from your description so let me break it down into a sequence of questions:

    >But I need to pass information to POST again
    1) Do you need assistance with the post and accessing the return data?

    > open so that it displays a table according to the LOGIN user.
    2) Can you clarify this requirement with a little more precision. To be clear are you planning to populate your own html <table> or are you customizing a mobione list widget?
    If you plan to create your own html table this can be accomplished by laying out an html widget and then dynamically building the table from javascript after retrieving the info in #1. If you need to create a customized list see this example http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=1858&p=3538#p3538

    If I’m not understanding your scenario correctly please restate it with more details, screenshot, etc. so we can do a mindmeld.

    #344005 Reply

    @support-wayne wrote:

    >But I need to pass information to POST again. MOBI that will open so that it displays a table according to the LOGIN user.

    I’m not 100 percent clear from your description so let me break it down into a sequence of questions:

    >But I need to pass information to POST again
    1) Do you need assistance with the post and accessing the return data?

    > open so that it displays a table according to the LOGIN user.
    2) Can you clarify this requirement with a little more precision. To be clear are you planning to populate your own html <table> or are you customizing a mobione list widget?
    If you plan to create your own html table this can be accomplished by laying out an html widget and then dynamically building the table from javascript after retrieving the info in #1. If you need to create a customized list see this example http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=1858&p=3538#p3538

    If I’m not understanding your scenario correctly please restate it with more details, screenshot, etc. so we can do a mindmeld.

    Come on.

    When the user to login and is approved.
    I need to open a new window. MOBI and display a table (HTML) according to the
    User login.
    I already have the table structure, see a small example:
    http://unity3dbrasil.com.br/ysgol/tabela.php

    Thank you

    #344007 Reply

    nvts
    Member

    Elizabeth,

    I think I understand what you are asking. I would use a library that does that automatically, like backbone.js. Instead of creating the table on the server side, send it as JSON to the browser, which is faster, and build your table:

    Cheers…

    #344009 Reply

    Hi nvts!
    Thanks for the explanation.

    I understand very well what the example does.

    My biggest problem is that we still do not know how to implement it in MobiOne.

    If you saw my table (“http://unity3dbrasil.com.br/ysgol/tabela.php&#8221;) it makes the query on the database and returns me the information according to the user that logged.

    I just wanted to pass this information from the logged in user to a new screen and so MobiOne now display the table coom information of this user.

    My biggest problem is that integration with MobiOne Javascript.

    I’m willing to pay to learn how to use PhoneGap with MobiOne also.

    Thank you.

    #344010 Reply

    support-michael
    Keymaster

    >I’m willing to pay to learn how to use PhoneGap with MobiOne also.

    No need atm. We will try to provide the info you need to make this happen.
    The last couple of days Octavio and I have been splitting our time between support and helping test and review new features in MobiOne 2.5 that we about to release – hopefully this afternoon if all goes well. Give us a bit more time to follow up.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Please help! How to open web application in Android WebView?

You must be logged in to post in the forum log in