Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Android Pay Codelab Incorrect #19

Open
dwhi036 opened this issue May 31, 2015 · 3 comments
Open

Android Pay Codelab Incorrect #19

dwhi036 opened this issue May 31, 2015 · 3 comments

Comments

@dwhi036
Copy link

dwhi036 commented May 31, 2015

Step 8 . // Add the fragment to the UI
getSupportFragmentManager().beginTransaction()
.replace(R.id.wallet_button_holder, mWalletFragment, WALLET_FRAGMENT_ID)
.commit();

Since The Example does not create or extend a fragment this code errors

@dwhi036
Copy link
Author

dwhi036 commented May 31, 2015

Step 8 . // Add the fragment to the UI
getSupportFragmentManager().beginTransaction()
.replace(R.id.wallet_button_holder, mWalletFragment, WALLET_FRAGMENT_ID)
.commit();

Since The Example does not create or extend a fragment this code errors

@mweppler
Copy link

On that step if you extend from FragmentActivity that should get you going again. You'll change this again at a later step, but extending from FragmentActivity is good for now.

public class MainActivity extends FragmentActivity {
    ...
}

@dwhi036
Copy link
Author

dwhi036 commented Jun 11, 2015

Thanks for help
Will try that
Don

Sent from my iPhone

On 10/06/2015, at 2:10 pm, Matt Weppler notifications@github.com wrote:

On that step if you extend from FragmentActivity that should get you going again. You'll change this again at a later step, but extending from FragmentActivity is good for now.


Reply to this email directly or view it on GitHub.

@samtstern samtstern removed their assignment Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants