TextView with icon

Hi.
I want to add an icon to my TextView with something like:

TextView tv = (TextView) findViewById(TxtViewIdNumber);
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.icon, 0, 0, 0)

But since I only have the data directory, how can I access or link the icon?