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 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.
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 use webVIew read local HTML.
HTML storage location
Project for asset
Some phones can be successfully used(samsung...)
Some phones can not(HTC nexus...)
Here is my code
public class MainActivity extends Activity {
private WebView wvBrowser;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main)
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 am unable to figure out the thing that why my simple webview app is getting closed unexpectedly.
I have an app which load ads from two networks and sets a flash file to webview when started.This is making it too slow on startup, forums told me to use asynctask.Can some one make this code an asynctask.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
airpush=new Airpush(getApplicationContext())
I have two activities:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void click(View view) {
Intent intent= new Intent(this, TranslucentActivity.class);
startActivity(intent);
}
}
public class TranslucentActivity extends Activity
i have a problem with this overriding method on key press. the problem is i got this error?