M Merlot2309 Active Member Licensed User Longtime User Apr 13, 2011 #1 Hello, At this moment I do have some questions about libs: 1. What is the difference between import and using a referenced lib? 2. Beside the 4 @ statements (ActivityObject, Permissions, ShortName and Version) what is needed to create a B4A lib? I guess that a B4A Lib differs from a Java/Android lib. 3. Finally found a good looking Java/Android calender project (https://github.com/jasonkostempski/Android-CalendarView) and I still don't know how to solve the error: cannot be resolved on the "import com.jasonkostempski.calendar.R;" line Sorry for my horrible use of terminologie Thanks in advance! Helen.
Hello, At this moment I do have some questions about libs: 1. What is the difference between import and using a referenced lib? 2. Beside the 4 @ statements (ActivityObject, Permissions, ShortName and Version) what is needed to create a B4A lib? I guess that a B4A Lib differs from a Java/Android lib. 3. Finally found a good looking Java/Android calender project (https://github.com/jasonkostempski/Android-CalendarView) and I still don't know how to solve the error: cannot be resolved on the "import com.jasonkostempski.calendar.R;" line Sorry for my horrible use of terminologie Thanks in advance! Helen.
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2011 #2 1. Import is just a shorthand. If you do not use import then you will need to write the full name of every class with the package. 2. B4A lib is a regular jar file (regular Java lib). 3. R files in Android are classes that should be generated automatically during compilation.
1. Import is just a shorthand. If you do not use import then you will need to write the full name of every class with the package. 2. B4A lib is a regular jar file (regular Java lib). 3. R files in Android are classes that should be generated automatically during compilation.