Problems with


import; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.webkit.WebView;

public class Main Activity extends Activity {

private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); webView = (WebView)findViewById(; webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("<a href="http://">http://</a>****************"); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == { return true; } return super.onOptionsItemSelected(item); }


Hello, I have a problem with a script in it comes to connect an Android app with a web server. I file already done everything in xml. But left in the directory, he tells me that is a mistake in the Main Activity file, but when I go to the file is displayed with nowhere where what is wrong. Since I am not yet so experienced and me now, unfortunately, help no Fixquicks I wanted to ask if I maybe someone can say the solution.

(The asterisks in the gap are of course a correct address)

The best answer

In the method WebView.loadUrl only a string should be consistent with the address and no HTML link.

webView.loadUrl("" );

Date: 2019-04-11 Views: 3

Related articles

  • Have problems with my Java code. Can I add the idea of ​​it has someone? 2012-12-19

    --answer-- describe something precisely your problem .. Java is so extensive I .. eg am familiar with certain parts of Java quite good, with others still not ^^ Show just the code. Greeting :) Start here:

  • Problems with a Java game 2013-02-28

    Hi, I recently had to put my machine, now I have problems with a game that requires JRE. For running I get it but when I switch to full-screen mode, the screen completely white and nothing works anymore. Must then the Win-click the desktop to close b

  • Hi Have a problem with a Java project. How do I check whether a two-dimensional array of strings none of the words occurring? 2013-02-21

    --answer-- You can go through with a double researchers bight and check whether each index corresponds to your word the array. If so you set a Boolean value to True. If the word does not happen again, remains the value False. private boolean istEntha

  • Already second Java problem with Bukkit -.- 2012-04-11

    I once asked what to do because my run.bat had not found the way. Then I found out that I was missing my Java an important file that caused the problem that Java was on the computer according but it still did not work. But now that I have Ja

  • How do I fix the problem with Minecraft or Java? 2012-05-21

    haii I I have a problem with Java. Whenever Minecraft games, stürtz the game off and then comes the message java (TM) SE binary Platform has stopped working, after I've closed menager on the task. I have really tried everything I java often de and in

  • Giant problem with the development environment of JAVA! 2012-07-05

    I beschäfftige bit longer with Java and I with even a book gained (java, an introduction to programing). I got me already istalliert the JDK and so but I do not know how I should find JAVAC. So I looked for the book, since the stand is intended to in

  • Problem with Java or display errors in the browser? 2014-12-18

    Hello, I do not know if my problem with Java related, I have a few days, but I can not remember to have made a mistake. Today I have the latest Java update installed, but the error still exists. I use the Google Chrome browser. I can not click, for e

  • Girlfriend has in Java a problem and although Java is not in openable with inside as füg added that? 2012-07-15

    --answer-- One can run on the cmd with the "Java" command jars. One should not open "Java" not in openable inside? set your question again again

  • Java Editor problem with configuration 2013-06-07

    I have computer science in school and know myself, apart from the subject matter, with anything technical from. When I open a file with the Java editor pops the "Configurations" window (see picture) and I do not know what to do there, but as lon



Copyright (C) 2019, All Rights Reserved.

M3tch all rights reserved.

processed in 0.967 (s). 10 q(s)