Android Open Source - Business-Communication- Facebook Activity






From Project

Back to project page Business-Communication-.

License

The source code is released under:

Eclipse Public License - v 1.0 THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECI...

If you think the Android project Business-Communication- listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.sabersoft.fblacommunication;
/*  w ww .ja v a2s . c o m*/
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.Toast;

public class FacebookActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.facebook);
    // Attach the Experience Layout File
    
    Button previousButton = (Button) findViewById(R.id.previousButton);
    
    new AlertDialog.Builder(this)
    .setTitle("Facebook")
    .setMessage("Use this Facebook group to communicate with your peers, who are also interested in Business Communication!" )
    .setNeutralButton("Close", null)
    .show();
    // Display Dialog Box to User
    
    Toast betaToast = Toast.makeText(this, "Loading...", Toast.LENGTH_LONG);
        betaToast.setGravity(Gravity.BOTTOM, 0, 125);
        betaToast.show();
    // Show "Loading" Toast Message
        
    
    
    
    final WebView myWebView = (WebView) findViewById(R.id.webview);
    WebSettings webSettings = myWebView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    myWebView.setWebViewClient(new WebViewClient());
    myWebView.loadUrl("https://www.facebook.com/groups/1379986185591711/");
    // Display Facebook in the Activity
    
    previousButton.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View v) {
        // TODO Auto-generated method stub
        myWebView.goBack();
      //  navigateBack();
      }
    });
    // Switch Activity when button is pressed
    
    
    
    
  }
  
  //WebView myWebView = (WebView) findViewById(R.id.webview);
  

  
  //private void navigateBack() {
          //  myWebView.goBack();
         
    }
//}





Java Source Code List

com.sabersoft.fblacommunication.ExperienceActivity.java
com.sabersoft.fblacommunication.FacebookActivity.java
com.sabersoft.fblacommunication.Game2001.java
com.sabersoft.fblacommunication.Game2002.java
com.sabersoft.fblacommunication.Game2003.java
com.sabersoft.fblacommunication.Game2004.java
com.sabersoft.fblacommunication.Game4001.java
com.sabersoft.fblacommunication.Game4002.java
com.sabersoft.fblacommunication.Game4003.java
com.sabersoft.fblacommunication.Game4004.java
com.sabersoft.fblacommunication.Game6001.java
com.sabersoft.fblacommunication.Game6002.java
com.sabersoft.fblacommunication.Game6003.java
com.sabersoft.fblacommunication.Game6004.java
com.sabersoft.fblacommunication.Game8001.java
com.sabersoft.fblacommunication.Game8002.java
com.sabersoft.fblacommunication.Game8003.java
com.sabersoft.fblacommunication.Game8004.java
com.sabersoft.fblacommunication.GameActivity.java
com.sabersoft.fblacommunication.HelpActivity.java
com.sabersoft.fblacommunication.HomeActivity.java
com.sabersoft.fblacommunication.MainActivity.java
com.sabersoft.fblacommunication.PlayStore.java
com.sabersoft.fblacommunication.QuizletActivity.java
com.sabersoft.fblacommunication.ShakeDetector.java
com.sabersoft.fblacommunication.Splash.java
com.sabersoft.fblacommunication.TestsActivity.java