io2015-codelabs
io2015-codelabs copied to clipboard
Android Pay Codelab Incorrect
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
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
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 {
...
}
Thanks for help Will try that Don
Sent from my iPhone
On 10/06/2015, at 2:10 pm, Matt Weppler [email protected] 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.