1
私は非常にプログラミングに新しく、ログイン情報をWeb URLに送信してユーザーをログインさせ、ページを表示する方法を見つけようとしています。再び私は非常に新しいですが、これは私がEclipseで取得した情報をURLから表示する方法
public class LoginActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setting default screen to login.xml
setContentView(R.layout.login);
final MediaPlayer mpButtonClick = MediaPlayer.create(this, R.raw.buttonclk);
Button bhome1 = (Button) findViewById(R.id.btnLogin);
bhome1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
startActivity(new
Intent("beats.us.with.Loginretrieve"));
mpButtonClick.start();
}
}) ;
}
public void onClick(View v) {
// TODO Auto-generated method stub
TextView registerScreen = (TextView) findViewById(R.id.link_to_register);
// Listening to register new account link
registerScreen.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Switching to Register screen
Intent i = new Intent(getApplicationContext(), RegisterActivity.class);
startActivity(i);
}
});
}
}
を持っているコードであるパブリッククラスLoginretrieveアクティビティ{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
String url = "http://beatswith.us";
}
}
を拡張
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
Loginretrive
に続いて再びので、任意の助けを非常に新しいイムだろう アンドロイドデベロッパーのページに移動して、私が何を知っているかを教えてくれるように教えてくれるのは、私がここでpplsの知識を信頼している理由を教えてください。
非常に助けていただきありがとうございます – trunks85719