Hybrid View
-
16 Nov 2011 5:47 AM #1
Answered: Why should not work on the mobile devices?
Answered: Why should not work on the mobile devices?
Currently, we are progressing Mobile App project by the sencha touch 2.0.
However, some problems occurred it app does work no the mobile devices.
But the browser(safari, chrome) is on the works very well.
I need your help.
Please find attached the wrong part from the source.
Also, see below.
Development Environment:
1. android 2.2
2. sencha touch 2.0 pr2
Call in android
WebView.getSettings().setJavaScriptEnabled(true);
WebView.loadUrl("file:///android_asset/index.html");
I think .. No one anything specific issues in Android
-
Best Answer Posted by lee chang yeon
First, thank you very much for answers.
As you said, phonegap was packed and run.
However, the result is the same.
Can you do the wrong place to find? In the attached file.
Please, please.
--- Java source ---
public class PhoneGapActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
super.loadUrl("file:///android_asset/www/index.html");
}
}
-
16 Nov 2011 9:44 AM #2
Hi.
You are wrapping your app with PhoneGap right?
I guess the error is in your Eclipse app.
If you follow in right way the PhoneGap tutorial you should have all your pages, scripts, etc. inside the "android_assets/www/" folder.
So the problem could be that you are calling
instead ofCode:WebView.loadUrl("file:///android_asset/index.html");
Let me know if this solve your issue.Code:WebView.loadUrl("file:///android_asset/www/index.html");Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
16 Nov 2011 5:52 PM #3
Thank!
Thank!
First, thank you very much for answers.
As you said, phonegap was packed and run.
However, the result is the same.
Can you do the wrong place to find? In the attached file.
Please, please.
--- Java source ---
public class PhoneGapActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
super.loadUrl("file:///android_asset/www/index.html");
}
}


Reply With Quote