I never had much luck with it. Some people like hot melt glue guns, but that doesn't seem to work well either.
If you want them solidly in place never to move, use a thick superglue.
If you want them softer, use clear sillicon sealer or caulk. You can peel this back off if you like.