App Webview Login HTTP Request Auth Hilfe Pls :) !!

  • Antworten:3
  • Bentwortet
BLack SLender
  • Forum-Beiträge: 3

16.05.2013, 17:31:17 via Website

So ich hab folgendes Problem und zwar brauch ich dieses Pop up (siehe bild 1) oder irgendeine Lösung um auf eine datei zu zugreifen...

Im Chrome Browser geht es bzw das Pop up erscheint aber bei mir in der App kommt außer die Fehlermeldung nichts (siehe Bild 2)

Bild 1



Bild 2




1public class WebActivity extends MainActivity {
2
3 private WebView webView;
4
5 @SuppressLint("SetJavaScriptEnabled")
6 public void onCreate(Bundle savedInstanceState) {
7
8 super.onCreate(savedInstanceState);
9
10 setContentView(R.layout.webcontent);
11
12
13 setTitle(" Pläne");
14
15
16
17
18
19
20
21 webView = (WebView) findViewById(R.id.webView);
22
23 webView.getSettings().setJavaScriptEnabled(true);
24
25
26
27
28
29 webView.setWebViewClient(new WebClient());
30
31 webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
32
33
34
35
36
37 webView.getSettings().setAllowFileAccess(true);
38 webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
39 webView.loadUrl("_......_lima-city_de/");
40 //String customHtml = "<html><body><h2>Greetings from JavaCodeGeeks</h2></body></html>";
41 //webView.loadData(customHtml, "text/html", "UTF-8");
42
43
44
45
46
47 }
48
49
50
51 private class WebClient extends WebViewClient {
52
53 @Override
54 public boolean shouldOverrideUrlLoading(WebView view, String url)
55 {
56
57
58
59
60 webView.loadUrl(url);
61 return true;
62 }
63
64
65
66
67
68
69 }
70
71
72
73}



Ich weiß nicht wie oder was ich da machen soll :D :grin:

— geändert am 16.05.2013, 17:43:11

Antworten
BLack SLender
  • Forum-Beiträge: 3

16.05.2013, 17:31:52 via Website

Wie lösche ich den thread

— geändert am 16.05.2013, 17:35:33

Antworten
BLack SLender
  • Forum-Beiträge: 3

16.05.2013, 17:45:37 via Website

Weil da paar sachen falsch waren aber schon ok ;)

Ehm ich lass jetzt so weißt du wer mir helfen kann :rolleyes: ?

Gruß

Antworten