In the Marshmallow flavour of Android which I believe you have, you have to go into Settings and nominate whether you want to treat the SdCard as Internal or Portable.
If you choose Portable you can't install Apps on it because they won't work if you remove the card.