NfcForAndroid / NfA

Android Library for simplifing nfc developpment
Other
14 stars 1 forks source link

nfa-samples #1

Open palhinhaa opened 10 years ago

palhinhaa commented 10 years ago

Hello, thank you for sharing your work. Im trying to get the nfa-samples working but some resources are not found like in Manifest file, for example: android:resource="@xml/filter_nfc" and android:mimeType="@string/mime_type_image" and android:mimeType="@string/mime_type_text_plain" and android:scheme="@string/scheme_android_ext"

Where are defined this resources?

Thank you

Filipe

jefBinomed commented 10 years ago

Hi, you have to import as android dependancy the project https://github.com/NfcForAndroid/NfA/tree/master/nfa-apklib. This project will be done to host some of the constants of android.

Are you familiar with Android and Android project dependancy ?

palhinhaa commented 10 years ago

Hello, now im starting to being familiar with Android dependancy, i have added the nfa-apklib and actionbarsherlock projects to the eclipse workspace and added the dependecys to them. So this dependencys are solved, thank you. Now i have other dependecys problems, i have checked and the files i need are all in the other folders, nfa-api, nfa-filters, etc... but how i refer to them without copying to the project source folder? Thank you

jefBinomed commented 10 years ago

Did you follow this guide ? https://github.com/NfcForAndroid/NfA/wiki#non-maven-users

because, if you download this jar : https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.nfcforandroid&a=nfa-all&v=0.7.0-SNAPSHOT&e=jar and add it to the 'libs' directory, you will normally have no problem.

regards

palhinhaa commented 10 years ago

Ok, now everything is fine. In ADT 14 the R. resources are no longer constants, this is a problem when you use them in switch case statement. Just a migration issue. Thank you for your support, i will now test and study your code.