Android Question Download SLC

Discussion in 'Android Questions' started by Jmu5667, Jul 22, 2015.

  1. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    does anyone have a link to the latest version of SLC. I have version 1.00 and it does not work with b4a 5.02(1). I get the following:

    upload_2015-7-22_8-39-10.png
     
  2. Roycefer

    Roycefer Well-Known Member Licensed User

  3. DonManfred

    DonManfred Expert Licensed User

  4. Jmu5667

    Jmu5667 Well-Known Member Licensed User

  5. Roycefer

    Roycefer Well-Known Member Licensed User

    I just downloaded it and unzipped it to make sure. Both the B4A and B4J versions are 1.03.
     
    DonManfred likes this.
  6. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Just download it again, this is what I get :(

    upload_2015-7-22_9-47-26.png
    upload_2015-7-22_9-47-34.png
     
  7. Roycefer

    Roycefer Well-Known Member Licensed User

    Run the program. What does it say in the title?
     
    Jmu5667 likes this.
  8. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    upload_2015-7-22_10-7-51.png

    This pops up when I run it.

    upload_2015-7-22_10-8-22.png

    this is folder with the files. It's really strange !!!!
     
  9. Roycefer

    Roycefer Well-Known Member Licensed User

    Have you set the additional libraries folder in the B4A IDE: Tools>Configure Paths>Additional Libraries?
     
    DonManfred and Jmu5667 like this.
  10. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    :oops: ... Spot on, I have always used the main library location. Thanks :)
     
    DonManfred likes this.
  11. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    I have added geo: to the uri list, compiled the lib, set the version to 1.27, hit refresh and got the following:
    upload_2015-7-22_10-29-44.png

    I have never done this before so I am a bit green, all help would be appreciated.

    Regards

    John.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    You need to add @Hide or use the -b4aignore option to exclude all the classes except of the classes you want to expose to B4A.
     
    Jmu5667 likes this.
  13. DonManfred

    DonManfred Expert Licensed User

    Add

    com.github

    into the line B4A-ignore in SLC when compiling the NFC lib i have edited....
     
    Jmu5667 likes this.
  14. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Yep figured it out, thanks :)

    There is a few different types of records, one being
    Code:
    /*
      * 
    Return True if Tag is of Text type
      */
       
    public boolean IsGeoType()
      {
      byte[] 
    Type = getObject().getType();
      
    if (Type[0] == 83)
      
    return true;
      
    return false;
      
    }
    Does anyone have any good docs/specs on these and how to parse the records. You can have a URI type with a comment, but this does not decode very well. I would be more then happy to maintain this lib to the best of my ability as it has direct relevance to a new product we are developing for a very large customer in Ireland that is involved in agriculture.

    Regards

    John.
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    Not sure that I understand the question. Which records do you need to parse?
     
  16. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Using Tagwriter from NXP, you can write different types of records to the tag. So far the NFC lib supports UriType (85), TextType (84).
    I write a 'Geo Location' type record with a comment in it, Type (83), and currently neither GetAsUriType() nor GetAsTextType() will decode it.

    A type 83 record, when using GetAsUriType will cause this error : java.lang.IndexOutOfBoundsException: Invalid index -111, size is 37

    A type 83 record, when using GetAsTextType will return this : Ⱝ〰㘮ㄳ㔵㐵儁ᑔɥ湨潬汹扲潯欠潦晩捥

    So, I would plan to add to the NFC library, as best I can, more functionality to decode other record types.

    Am I wrong is my thoughts or have I missed something ?

    Regards

    John.
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    Is this an NDEF formatted tag? Otherwise it will not work with the NFC library.
     
  18. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    I used TAGWriter NXP to format the tag, tag type is 2, i have attached a some screen shots.
     

    Attached Files:

  19. Erel

    Erel Administrator Staff Member Licensed User

    Why do you need a new library to read these tags? How is it related to SLC (it would have been better to start a new thread for the second question)?

    You can get the raw bytes if you like with the NFC library/.
     
  20. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    I am going to get the raw bytes to deal with unsupported types, it's cool. did'nt mean for this to intrude on the SLC question.
     
Loading...