Compile OK in ICS but error on Gingerbread

Arun

Member
Licensed User
Longtime User
Hi,

I have a project (Project1) with 2 activities (Activity1 and Activity2) which is successfully running on ICS (rooted)

I have another project (Project2) with 2 activities (Activity3 and Activity4) for a Gingerbread device (Samsung Galaxy Y) (non-rooted)

This is code in Project1-Activity1
B4X:
strDt=Activity2.fnNow

This is code in Project2-Activity3
B4X:
strDt=Activity4.fnNow

This is code in Project1-Activity2 and Project2-Activity4

B4X:
Sub fnNow As String
   Dim LnkDt As String
   now = DateTime.now
   LnkDt = DateTime.Date(now) ' e.g.: "110812150355" is Aug.12, 2011, 3:03:55 p.m.
   Return LnkDt
End Sub

When compiling for the Galaxy Y (Gingerbread) I am getting the following error: (The compile was error-free for ICS)

B4X:
Compiling code.                         Error
Error compiling program.
Error description: Unknown member: fnnow
Occurred on line: 34
strDt=Activity4.fnnow
Word: fnnow

In Activity3, I do not see the list of functions in the dropdown when I give "Activity4.".

Please give some suggestions on how to solve this?

Thanks in advance
 

Arun

Member
Licensed User
Longtime User
Thanks for the quick reply.

I will try putting the fnNow code in a separate code module and post the result here.

For info only:
I have deployed the app on an ICS tablet. I am accessing subs across activities and my app is working just great. :icon_clap:

Thanks again for such great software.
 
Upvote 0

Arun

Member
Licensed User
Longtime User
Help Incompatibility error on Gingerbread?

Hi,

I developed an app for ICS rooted 7" tablet (where video view is giving me a migraine).

Now, I want to check the same app on a Samsung Galaxy Y phone running Gingerbread.

I changed the targetSDKversion in the manifest file to 10, and tried to install it on the phone.

Although compile and installation goes through, it gives "Device not compatible" error.

I am using b4a ver 2.3 with the following libraries. I think the library versions may be incompatible for Gingerbread.

Audio 1.3
Core 2.26
Http 1.23
Phone 1.91
Reflection 2.20
XmsSax 1.0

Since there is no android version information for libraries, maybe someone could point me in the right direction.

Are older versions of libraries available for development on Gingerbread?

Thanks in advance

Arun
 
Upvote 0
Top