Android Open Source - UANET_Android Setup Internet Activity






From Project

Back to project page UANET_Android.

License

The source code is released under:

GNU General Public License

If you think the Android project UANET_Android 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.voidcode.diasporawebclient;
//from  w w  w .  ja  v  a 2  s  . c o m
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;

public class SetupInternetActivity extends Activity {
  @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.setupinternet);
    }
  public void onclick_button_wireless_settings(View v)
  {
    //show/ open wireless settings
      startActivity( new Intent(Settings.ACTION_WIRELESS_SETTINGS));
  }
  public void onclick_button_close(View v)
  {
      this.finish();
  }
  //Screen orientation crashes app fix
  //http://jamesgiang.wordpress.com/2010/06/05/screen-orientation-crashes-my-app/
  @Override
  public void onConfigurationChanged(Configuration newConfig) 
  {
    super.onConfigurationChanged(newConfig);
  }
}




Java Source Code List

com.voidcode.diasporawebclient.JSInterface.java
com.voidcode.diasporawebclient.Language.java
com.voidcode.diasporawebclient.MainActivity.java
com.voidcode.diasporawebclient.PodSettingsActivity.java
com.voidcode.diasporawebclient.SetupInternetActivity.java
com.voidcode.diasporawebclient.ShareActivity.java
com.voidcode.diasporawebclient.TranslateActivity.java
com.voidcode.diasporawebclient.WidgetActivity.java
com.voidcode.diasporawebclient.getPodlistTask.java