tá.. o phonegap tb não foi..chamei via ajax e deu erro de servidor interno.. e quando coloquei direto no servidor funcionou, porem não funcionou ajax dentro de ajax.... desistalei tudo rss
to voltando ao app que ja esta mais da metade pronto.. e com problema no javascript dentro do webview
tem alguma forma de burlar esse treco de segurança?
Em 21 de janeiro de 2014 15:21, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
instalei o phonegap... agora tem um problema............. o povo aqui "manda" fazer todas as app para versões apartir da 2.2, e o phonegap é a partir da 4.xxx
Em 21 de janeiro de 2014 15:18, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
já foi tentado... segue função abaixo , as linhas em negrito mudam tudo.... se comento carrega a webview sem javascrit, se descomento nem carrega..public void chama_home(View v) {this.setTitle("Portal Mobi2014 "+versao);WebView myWebView = (WebView) findViewById(R.id.webview);//myWebView.setWebChromeClient(new WebChromeClient());//WebSettings settings = myWebView.getSettings();//settings.setJavaScriptEnabled(true);final ProgressDialog progressBar;final AlertDialog alertDialog = new AlertDialog.Builder(this).create();progressBar = ProgressDialog.show(MainActivity.this, "Portal DGI", "Loading...");myWebView.setWebViewClient(new WebViewClient() {public boolean shouldOverrideUrlLoading(WebView view, String url) {// Log.i(TAG, "Processing webview url click...");view.loadUrl(url);return true;}public void onPageFinished(WebView view, String url) {// Log.i(TAG, "Finished loading URL: " +url);if (progressBar.isShowing()) {progressBar.dismiss();}}@SuppressWarnings("deprecation")public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {// Log.e(TAG, "Error: " + description);// Toast.makeText(activity, "Oh no! " + description, Toast.LENGTH_SHORT).show();alertDialog.setTitle("Error");alertDialog.setMessage(description);alertDialog.setButton("OK", new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialog, int which) {return;}});alertDialog.show();}});myWebView.loadUrl("http://aplicacoes.mds.gov.br/sagirmps/portal/?sistema=celular&apk=portal2014&versao="+versao);}Em 21 de janeiro de 2014 15:11, Marcos Filho <marcos@ffm.com.br> escreveu:
tenta isso e vê se carrega algo.
mywebview.getSettings().setJavaScriptEnabled(true);Em 21 de janeiro de 2014 13:41, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
ó..se eu usar o @SuppressLint("SetJavaScriptEnabled")não carrega nada.Em 21 de janeiro de 2014 14:38, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
servidor..o ideal era o webview abrir tudo como está..ahh! se abrir via navegador chrome pelo celular o ajax funciona.. por isso meu chefe ta no pé.. tipo.. se funciona no navegador por que não funciona no meu aplicativo, já que o url é o mesmo..Em 21 de janeiro de 2014 14:36, marcelo yonamine <yonamine60@gmail.com> escreveu:
Teu javascript esta rodando local dentro do app ou no web servidor ?
Em 21 de janeiro de 2014 14:20, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
se eu não ativar ele mostra o portal (http), mas não executa nada de javascript ( onclick ou on load e etc.. )se eu ativar ele não carrega o portal (http), fica em branco...--Em 21 de janeiro de 2014 13:54, marcelo yonamine <yonamine60@gmail.com> escreveu:Dependendo do certificado, se usar https, webview da msg de erroEm 21 de janeiro de 2014 13:31, Jade Costa <jademcosta@gmail.com> escreveu:
Rebert, ativar o javascript causa qual erro de segurança?Aqui, ele dá apenas um warning, mas deixa rodar de boa...Em 21 de janeiro de 2014 12:41, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
seguinte, o setJavaScriptEnabled acusa erro de segurança e não deixa rodar o webview, então como faço pra contornar isso?tavez ativanto o javascrip no webview o ajax funcione..Em 20 de janeiro de 2014 16:38, Rebert Tomaz Aquino <reberttomaz@gmail.com> escreveu:
pessoal, meu chefe pediu pra colocar o portal daqui em um app..pois bem.. ele quer nativo desde que só funcione online, ( eu sei.. que bastava chamar a url no navegador e pronto ), mas ele quer instalar e desistalar o apk.. não quer barra de url e etc..a solução.. coloquei um webview .. ele adorou..porém, no portal usamos muito ajax.. e a webview não roda ajax nem com reza brava...como é que eu faço pra rodar ajax numa webview??ó o portal:2 exemplos do que não funciona na webview:mapa do google no topoe busca no meio do portale aí?? alguem sabe o caminho das pedras pra eu contornar isso?--
Rebert Tomaz
--
Rebert Tomaz
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Jade Moreira da Costa
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rebert Tomaz
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rebert Tomaz
--
Rebert Tomaz
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rebert Tomaz
--
Rebert Tomaz
Rebert Tomaz
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário