0
こんにちは私はGoogleのプロフィール名を取る1つのアプリを作っています。それはEditTextとして別のアクティビティに表示されます。 EditText別のアクティビティでGoogleのプロフィール名を表示するには
でActivityGoogle
private void getProfileInformation() {
try {
if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {
Person currentPerson = Plus.PeopleApi
.getCurrentPerson(mGoogleApiClient);
String personName = currentPerson.getDisplayName();
String personPhotoUrl = currentPerson.getImage().getUrl();
String personGooglePlusProfile = currentPerson.getUrl();
String email = Plus.AccountApi.getAccountName(mGoogleApiClient);
textView_name.setText(personName);
textView_email.setText(email);
// by default the profile url gives 50x50 px image only
// we can replace the value with whatever dimension we want by
// replacing sz=X
personPhotoUrl = personPhotoUrl.substring(0,
personPhotoUrl.length() - 2)
+ 400;
new LoadProfileImage(imageView_profile_image).execute(personPhotoUrl);
} else {
Toast.makeText(getApplicationContext(),
"Person information is null", Toast.LENGTH_LONG).show();
これから名前を取り、それを表示するにはどのように任意のアイデア
ActivityUser
profilename = (EditText)findViewbyId(R.id.profilename);
あなたは本当にAndroidプログラミングの基礎を学ぶべきです。これらのリンクを見てください:[1](https://developer.android.com/reference/android/os/Bundle.html)[2](http://stackoverflow.com/questions/4999991/what-is) - アンドロイドアプリケーションでのバンドル)[3](http://stackoverflow.com/questions/768969/passing-a-bundle-on-startactivity) 「バンドル」はまさにあなたが必要とするものです。 – UDKOX