Android Open Source - WiFiSharer Progress Activity






From Project

Back to project page WiFiSharer.

License

The source code is released under:

MIT License

If you think the Android project WiFiSharer 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.example.wifisharer;
/* w w  w  . ja v a 2 s  .  c o  m*/
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;

public class ProgressActivity extends Activity{
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    //setContentView(R.layout.activity_redirect);
    
    SharedPreferences mPrefs;
    final String welcomeScreenShownPref = "welcomeScreenShown";

        mPrefs = PreferenceManager.getDefaultSharedPreferences(this);

        // second argument is the default to use if the preference can't be found
        Boolean welcomeScreenShown = mPrefs.getBoolean(welcomeScreenShownPref, false);

        if (!welcomeScreenShown) {
          setContentView(R.layout.activity_redirect);
            SharedPreferences.Editor editor = mPrefs.edit();
            editor.putBoolean(welcomeScreenShownPref, true);
            editor.commit();
        }
        else
        {
          startActivity(new Intent(this, MainActivity.class));
        }

    }
    
}




Java Source Code List

com.example.wifisharer.IPAddress.java
com.example.wifisharer.MainActivity.java
com.example.wifisharer.MyListAdapter.java
com.example.wifisharer.ProgressActivity.java
com.example.wifisharer.RedirectActivity.java
com.example.wifisharer.ScanActivity.java
com.example.wifisharer.SocketServer.java