bonjour,

dans mon application, j'affiche dans une webView le contenu du contenu HTML. Le problème est le suivant, il y a une partie javascript qui n'est pas exécuté, et je ne comprends pas pourquoi. Voici la partie JS:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
<script type="text/javascript" charset="utf-8">
var flashvars = {
width: "600",
height: "400",
autostart: "false",
repeat: "false",
backcolor: "111111",
frontcolor: "cccccc",
lightcolor: "66cc00",
stretching: "fill",
enablejs: "true",
mute: "false",
skin: "http://www.adresseSite.fr/wp-content/plugins/proplayer/players/skins/default.swf",
logo: "http://www.adresseSite.fr/wp-content/plugins/proplayer/players/watermark.png",
image: "http://www.adresseSite.fr/wp-content/plugins/proplayer/players/preview.png",
plugins: "",
javascriptid: "3070pp-single-4e415d417877f",
 
image: "http://www.adresseSite.fr/wp-content/plugins/proplayer/players/preview.png",
file: 'http://www.adresseSite.fr/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=3070pp-single-4e415d417877f&sid=1312906561'
};
var params = {
wmode: "transparent",
allowfullscreen: "true",
allowscriptaccess: "always",
allownetworking: "all"
};
var attributes = {
id: "obj-pro-player-3070pp-single-4e415d417877f",
name: "obj-pro-player-3070pp-single-4e415d417877f"
};
swfobject.embedSWF("http://www.adresseSite.fr/wp-content/plugins/proplayer/players/player.swf", "pro-player-3070pp-single-4e415d417877f", "600", "400", "9.0.0", false, flashvars, params, attributes);</script>
voici mon code Java maintenant:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
 WebView monArticle = (WebView) findViewById(R.id.viewArticle);
.
.
.
WebSettings webset = monArticle.getSettings();
webset.setJavaScriptCanOpenWindowsAutomatically(true);	
webset.setLoadsImagesAutomatically(true);
webset.setJavaScriptEnabled(true );
webset.setPluginsEnabled(true);	        
webset.setDefaultTextEncodingName("utf-8");
.
.
.
monArticle.setWebViewClient(new WebViewClient(){
	      public boolean shouldOverrideUrlLoading(WebView view, String url){
	        	Intent i = new Intent(Intent.ACTION_VIEW);
	        	i.setData(Uri.parse(url));
	        	startActivity(i);
	        	return true;	
	        	}
	        });
 monArticle.loadData(article2.recupContenu(),"text/html","utf-8");
je ne comprends vraiment pas. Je l'ai testé avec 2 téléphones différents. Un avec le dernier plug-in Adobe Flash Player, l'un sans. Et pas de différence. Vous avez une idée ??