pablovidal Member Licensed User Longtime User Nov 12, 2014 #1 Hi Erel, If I have an application in the B4A I can pass B4i Thank you
klaus Expert Licensed User Longtime User Nov 12, 2014 #2 No. Because Android and iOS are different operaring systems. The program flow is different, some views are similar but others are different, so you need to rewrite the code for those. Almost all code not in relationship with the operating system can be imported without changes. Upvote 0
No. Because Android and iOS are different operaring systems. The program flow is different, some views are similar but others are different, so you need to rewrite the code for those. Almost all code not in relationship with the operating system can be imported without changes.
stevel05 Expert Licensed User Longtime User Nov 12, 2014 #3 I am in the middle of porting a small app. As Klaus said, Android and IOS are two different beasts, once you start to get to grips with the ios program structure it's really not that difficult. Erel has done a great job on the one for one views and functions, which makes it easier for someone who knows B4a to get to grips with B4i. Upvote 0
I am in the middle of porting a small app. As Klaus said, Android and IOS are two different beasts, once you start to get to grips with the ios program structure it's really not that difficult. Erel has done a great job on the one for one views and functions, which makes it easier for someone who knows B4a to get to grips with B4i.
LucaMs Expert Licensed User Longtime User Nov 12, 2014 #4 A good idea for a great programmer who has B4I (ie not me, both requirements ): a tool to convert from B4A to b4i Upvote 0
A good idea for a great programmer who has B4I (ie not me, both requirements ): a tool to convert from B4A to b4i
ilan Expert Licensed User Longtime User Nov 12, 2014 #5 its almost the same, only small changes are needed so the convert from b4a to b4i should be very simple (if you dont use any special libs of course) Upvote 0
its almost the same, only small changes are needed so the convert from b4a to b4i should be very simple (if you dont use any special libs of course)
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2014 #6 Note that you can also use conditional compilation directives to share the exact same modules: Code: Copy #If B4A 'b4a specific code #End If #If B4i 'b4i specific code #End If There is also a new keyword in B4i named IsDevTool: Code: Copy If IsDevTool("B4i") Then Log("b4i") This keyword will be added to B4A and B4J as well. It is useful when the code is compatible between all platforms. Upvote 0
Note that you can also use conditional compilation directives to share the exact same modules: Code: Copy #If B4A 'b4a specific code #End If #If B4i 'b4i specific code #End If There is also a new keyword in B4i named IsDevTool: Code: Copy If IsDevTool("B4i") Then Log("b4i") This keyword will be added to B4A and B4J as well. It is useful when the code is compatible between all platforms.
b2mvga Member Licensed User Longtime User Nov 12, 2014 #7 How B4i works with databases? This use SQlite too? The same code to acces a SQlite database (Select, Cursor, etc) works in B4i? Upvote 0
How B4i works with databases? This use SQlite too? The same code to acces a SQlite database (Select, Cursor, etc) works in B4i?
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2014 #8 Yes it works with SQLite databases. The API in this case is not identical as it returns a ResultSet instead of a Cursor. There is a DBUtils module available for B4i: http://www.b4x.com/android/forum/threads/46563/#content Upvote 0
Yes it works with SQLite databases. The API in this case is not identical as it returns a ResultSet instead of a Cursor. There is a DBUtils module available for B4i: http://www.b4x.com/android/forum/threads/46563/#content
Kwame Twum Active Member Licensed User Longtime User Nov 12, 2014 #9 Does B4i work with remote databases? Like MSSQL and MySQL. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2014 #10 You can use the same solutions as in B4A: RDC or a web service (PHP, ASP .Net). Upvote 0
Kwame Twum Active Member Licensed User Longtime User Nov 13, 2014 #11 great, purchasing soon... hope I don't face a similar issue I faced during the B4A purchase Upvote 0
Mark Turney Active Member Licensed User Longtime User Nov 17, 2014 #12 As soon as I complete my B4A app, I'm buying this to get the other half of the app market...!! Thanks for developing this Erel!! Upvote 0
As soon as I complete my B4A app, I'm buying this to get the other half of the app market...!! Thanks for developing this Erel!!
B BarrySumpter Active Member Licensed User Longtime User Nov 19, 2014 #13 Congratulations! I know I asked about an iOS version of B4A a few years ago. Well done! Will the B4A objects work in B4i? Or do we have to wait for the original developers to convert? I tried to get out of development but this might bring me back in. Wishing you all the very best in your B4i endeavours! Upvote 0
Congratulations! I know I asked about an iOS version of B4A a few years ago. Well done! Will the B4A objects work in B4i? Or do we have to wait for the original developers to convert? I tried to get out of development but this might bring me back in. Wishing you all the very best in your B4i endeavours!
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2014 #14 BarrySumpter said: Will the B4A objects work in B4i? Click to expand... Do you mean B4A library? They will not work with B4i. Upvote 0
BarrySumpter said: Will the B4A objects work in B4i? Click to expand... Do you mean B4A library? They will not work with B4i.
S santiago Member Licensed User Longtime User Nov 26, 2014 #15 Can we deploy services in v4I in the same way we do in v4A? I explain : Can we develop apps to IOS running background services using v4i the same like Android using v4A? Upvote 0
Can we deploy services in v4I in the same way we do in v4A? I explain : Can we develop apps to IOS running background services using v4i the same like Android using v4A?
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2014 #16 Normal iOS applications cannot run in the background (there are no services in iOS). Upvote 0
ViMeAv ICT Member Licensed User Longtime User Jan 10, 2015 #17 I'm having a B4a app using the following libraries: animation, b4azxing, byteconverter, core (v.3.80), IME, JSON, PDF, Phone, RandomaccesFile, Reflection, Scrollview2D, SMB, SQL, Stringfunctions. Is this possible to port into ios apps? Upvote 0
I'm having a B4a app using the following libraries: animation, b4azxing, byteconverter, core (v.3.80), IME, JSON, PDF, Phone, RandomaccesFile, Reflection, Scrollview2D, SMB, SQL, Stringfunctions. Is this possible to port into ios apps?
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2015 #18 Please start a new thread for this question and post the features that you are using not the libraries. Upvote 0
Please start a new thread for this question and post the features that you are using not the libraries.
Gary Milne Active Member Licensed User Longtime User Mar 12, 2015 #19 Erel said: Note that you can also use conditional compilation directives to share the exact same modules: Code: Copy #If B4A 'b4a specific code #End If #If B4i 'b4i specific code #End If There is also a new keyword in B4i named IsDevTool: Code: Copy If IsDevTool("B4i") Then Log("b4i") This keyword will be added to B4A and B4J as well. It is useful when the code is compatible between all platforms. Click to expand... My app is 16,000 lines in B4A and I'm going to port it over to B4I. Never having done this I don't know what percentage of the code will be common and what will be unique. For an app this size do you think it would be practical to share the code base and use #If B4A \ #If B4I? I notice you opted not to take that approach for things like DBUtils and KeyValueStore. What approach would you recommend? Upvote 0
Erel said: Note that you can also use conditional compilation directives to share the exact same modules: Code: Copy #If B4A 'b4a specific code #End If #If B4i 'b4i specific code #End If There is also a new keyword in B4i named IsDevTool: Code: Copy If IsDevTool("B4i") Then Log("b4i") This keyword will be added to B4A and B4J as well. It is useful when the code is compatible between all platforms. Click to expand... My app is 16,000 lines in B4A and I'm going to port it over to B4I. Never having done this I don't know what percentage of the code will be common and what will be unique. For an app this size do you think it would be practical to share the code base and use #If B4A \ #If B4I? I notice you opted not to take that approach for things like DBUtils and KeyValueStore. What approach would you recommend?
Erel B4X founder Staff member Licensed User Longtime User Mar 12, 2015 #20 You should find the modules that can be shared between the two projects and put them in the shared modules folder. Then you should use the conditional compilation symbols when you need make modifications based on the platform. For the main UI related modules it is probably better not to share the same module. Upvote 0
You should find the modules that can be shared between the two projects and put them in the shared modules folder. Then you should use the conditional compilation symbols when you need make modifications based on the platform. For the main UI related modules it is probably better not to share the same module.