i have a problem with this overriding method on key press. the problem is i got this error?
I am trying to read and display the content of epub in android using
public class MainActivity extends Activity {
WebView webview;
String line, line1 = "", finalstr = "";
int i = 0;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
webview = (WebView) findViewById(R.id.tv);
AssetManager assetMan
I want to write text from soft keyboard from inputtype phone ( as in pic)
but I no know how to handle event it
and this my code :
public class MainActivity extends Activity implements OnKeyListener {
EditText editText2;
public void onCreate(Bundle savedInstanceState) {
super.onCreate
(savedInstanceState);
setContentView(R.layout.activity_main);
editText2 = (EditText)
I am having hard time with one WebView which should show our blog. When initilized, it works just fine. The user can navigate to different links within the WebView. To get back to the blog, there is a button outside the WebView which should load the main blog site again.
The problem is, that nothing is loaded after the second call to loadUrl.
I put this code in my program for my app in android..
public class StudentModule extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_student_module);
WebView ourBrow = (WebView) findViewById(R.id.wvStudent);
ourBrow.loadUrl("http://mateo.sanbeda.edu.ph/aims/students/");
the probl
I am trying to figure out a way to handle the WebView back stack similar to how the Android web browser handles it when the back button is pressed from within my own app's WebView.
The problem has to do with Javascript redirects. The WebView back stack appears to contain URLs that simply redirect.
Alright, Here's my AndroidMenuActivity.java file.
package com.example.caliexpeditionapp;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.webkit.WebView;
public class AndroidMenuActivity extends Activity {
private WebView browser;
@Override
public void onCreate(Bundle save
I have an EditText view in my MainActivity that the user can input a url. This MainActivity also contains a fragment which will hold a WebView.
I have it set up so that when the fragment is displayed the url will load in the WebView.
Hi im very very new to android, so this would be my first app.
Im taking a java class and trying to make an app similar to a lab
we did in class.