io2015-codelabs icon indicating copy to clipboard operation
io2015-codelabs copied to clipboard

Android Pay Codelab Incorrect

Open dwhi036 opened this issue 10 years ago • 3 comments
trafficstars

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 avatar May 31 '15 23:05 dwhi036

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 avatar May 31 '15 23:05 dwhi036

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 {
    ...
}

mweppler avatar Jun 10 '15 21:06 mweppler

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.

dwhi036 avatar Jun 11 '15 00:06 dwhi036