* {@code
* import android.provider.Contacts;
*
* Intent intent = new Intent(Intents.Encode.ACTION);
* intent.putExtra(Intents.Encode.TYPE, CONTACT);
* Bundle bundle = new Bundle();
* bundle.putString(ContactsContract.Intents.Insert.NAME, "Jenny");
* bundle.putString(ContactsContract.Intents.Insert.PHONE, "8675309");
* bundle.putString(ContactsContract.Intents.Insert.EMAIL, "je...@the80s.com");
* bundle.putString(ContactsContract.Intents.Insert.POSTAL, "123 Fake St. San Francisco, CA 94102");
* intent.putExtra(Intents.Encode.DATA, bundle);
* }
I got an error on the "(Intents.Encode.ACTION)" part. Because the Intents.java stored in the zxing/android, not zxing/core and i don't know how to import /android folder (or particular classes from it) to my project for further use.
I googled, but all the "import zxing" questions were about importing /core. And also you talk Sathish out of copying and pasting the whole project here (https://stackoverflow.com/questions/12314236/how-to-import-and-use-zxing-libraries)
Should i just copy classes i need? Or is there a better way to do it?
Sorry if that's a stupid question, i just can't seem to find the answer to how to use /android classes in my project.