Saturday, 7 September 2013

Please help Apps Crash instantly

Please help Apps Crash instantly

This is my ActivityMain
package com.quinnco.facebookmessagefeed;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class MainActivity extends Activity {
WebView webview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView myWebView = (WebView) findViewById(R.id.Feed);
myWebView.loadUrl("http://www.facebook.com/home");
WebSettings websettings = myWebView.getSettings();
WebView myWebView_Chat = (WebView) findViewById(R.id.Chat);
myWebView_Chat.loadUrl("http://www.facebook.com/messages");
webview.getSettings().setJavaScriptEnabled(true);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
This is my Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.quinnco.facebookmessagefeed"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.quinnco.facebookmessagefeed.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
So all my apps I make WONT RUN they crash instantly on my phone and my
emulator PLEASE HELP I checked over all my code (im new to it) please
help, all my apps crash that I make so maybe this will open up the door as
to why and will actually let me see whats wrong

No comments:

Post a Comment