Results 1 to 2 of 2

Thread: using sencha touch 2.1 with Webview android

  1. #1

    Default using sencha touch 2.1 with Webview android

    I generate app and then build package (default project). I copy sencha touch package to folder assest of android project.
    My Webview activity:
    PHP Code:
    public class WebViewActivity extends Activity {    WebView webView;
        class 
    Test extends WebViewClient {                @Override        public boolean shouldOverrideUrlLoading(WebView viewString url) {                        view.loadUrl(url);            return true;        }        
        }    @
    SuppressLint("SetJavaScriptEnabled")    @SuppressWarnings("deprecation")    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.activity_web_view);        webView = (WebViewfindViewById(R.id.webView1);        webView.getSettings().setJavaScriptEnabled(true);        webView.setWebViewClient(new Test());        webView.getSettings().setPluginsEnabled(true);                webView.getSettings().setDomStorageEnabled(true);            webView.getSettings().setDatabaseEnabled(true);            webView.loadUrl("file:///android_asset/index.html");            }
        @
    Override    public boolean onCreateOptionsMenu(Menu menu) {        // Inflate the menu; this adds items to the action bar if it is present.        getMenuInflater().inflate(R.menu.activity_web_view, menu);        return true;    }    @Override    public boolean onKeyDown(int keyCode, KeyEvent event) {        if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) {            webView.goBack();            return true;        }        return super.onKeyDown(keyCode, event);    }

    I test in android Sony P (4.0.4).
    This project don't display full , like only display title bar not display bottom bar . If u want display full, u need touch screen . I don't know why ?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    We don't support what you are doing, we only support PhoneGap and our mobile packager. Have you tried using one of them?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •