android:layout_weight="1">
<LinearLayout android:id="@+id/ll2"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:id="@+id/result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
public class MainActivity extends Activity{
private EditText username;
private EditText password;
private Button button;
private Handler handler;
private String result="";
private TextView resultTV;
public static final String Intent_key="token";
public static final String Intent_url="URL";
private SharedPreferences preferences;
private String urlInfo =" :8080/ad/myinfo.jsp?token= ";
private SharedPreferences.Editor editor;
@Override

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_main);
//获取preferences和editor对象
preferences = getSharedPreferences("loginState",MODE_PRIVATE);
editor = preferences.edit();
String token =preferences.getString("token","fail");
Intent intent = new Intent(this,SuccessActivity.class);
Bundle bundle = new Bundle();
if(token.equals("user3_login_success")){
bundle.putString(Intent_key, token);
bundle.putString(Intent_url, urlInfo + token);
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shouji/article-85138-3.html
你不靠原始股上市能发大财
事前已经经由外交途径警告过了
去投资损失的更多