cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Agentry Android client supporting native NFC (RFID) scanning capabilities. Add new class in Eclipse.

Former Member
0 Kudos

Hi All

I use an artice

SMP 3.0: Custom Agentry Android client supporting native NFC (RFID) scanning capabilities.

to extend Custom Agentry Android client to support native NFC (RFID).

Now I am on the step -

Class: NfcConstants.

Used to store some constant values used in the solution.

  public static final String MSG_TEXT = "Move your device to the NFC/RFID Tag";

  public static final int MSG_SIZE = 42;

  public static final String NFC_INITIAL_VALUE = "-";

I try to add new class in the AgentryAndroidClientSolution

I select Menu New - Class

Create new class and insert lines of code

Now I want to rebuild project to check if it is Ok.

Build is not available, so I select Clean.

After clean, my class disappeared from the project.

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

You code should go under the src folder.  The gen folder is for generated items that automatically get created.

In your AgentryAndroidClientSolution project right click on the src folder and select Build Path | Use as Source Folder.  Then create your package under the source folder com.sap.mobile.platform.client.openui.nfchelper and then create your NfcConstants.java in that package.

--Bill

Answers (1)

Answers (1)

Former Member
0 Kudos

Probably new class have to be created in the src folder, but it is not available for AgentryAndroidClientSolution project