As others noted, you do want to grab that cup of coffee, and go though some of the tutorials.
I am a long time Access/VBA developer. And I was looking for something to re-create an access application I had.
I found that jumping into the B4A language - similar to VB, and VBA was quite easy.
However, there are several areas that are and were a challenge:
Loading up controls on a form. In Access, we have what are called data bound controls. In a nutshell, this means we can say load a record, and the controls on the page are filled out.
With B4A, you have to write code to load up those controls.
(but, I actually don’t do that anymore).
It was a pain to write what quite much amounts to the same code over and over.
So I wrote a set of form binder routines.
This allows me to load a form, pull data into that form.
And I wrote a reverse routine.
Pull data from form, save to database.
So, now I don’t have to re-write over and over code to do the basic “same” operations I had in Access land.
I can quite much freely desing a form, and then I don't have to load up the controls by writing code
(I used the "tag" setting of each control to define the database column for binding).
Which database?
I do recommend to adopt and use sqlite. This takes some time to learn, but I do NOT recommend try to use an access database on the Android side. I suppose one can go down that road but Android land is in fact SqlLite land. (much better support for the database).
However, on desktop? What is a great tool to move data in and out of sqlLite?
Why of course Ms-access! – it is a great tool for doing this. To manage the sqlIte database (on your desktop), I do suggest DB browser for sqlIte. But, do get the ODBC drivers working from Access. Thus Access becomes a fantastic “staging” area for that data you plan to send to the phone. I even used Access to CREATE my sqlLite tables for me!!!
Ultimately, the issue comes down to “what” is the goal for the data on Android?
What is to be done with that data eventually? (send to your desktop app maybe???).
So, back to that data issue!
How are you going to move data to (and from) the Android say to your desktop computer - and even presumably MS-Access?
Well, it depends on your goal here.
If you going to have 10 users, and they all need to work with some data? Then that tends to mean some web based service and system. However, that is a HUGE elephant in the room! In other words, I want to have some data on my phone, but how you going to move data in and out? Since just data on your phone, and some B4A "forms" don't get you very far, does it?
So, if this is just quite much “for you” and some applcation? Ok, but you still have to address this data “in and out” of the phone issue.
My solution?
Well, it only me using the phone app.
So,
I moved the Access database to SQL server. A breeze for me. So, on my desktop, I run my VERY old Access program, but the back end data (database part) for Access uses SQL server on that computer. This worked for me, since I am very at home with SQL server.
And then in B4A/Android side I wrote a sync routine to sql server.
So, now anytime I am at home - phone and my computer running Access are on the same wi-fi network?
I just tap a button on the Android app (in B4A), and I do a sync with sql server. My days works and tasks are now synced.
I used a direct connect (jdbc drivers), and thus no web server, and in fact ZERO software had to be installed on my main home computer running Access for this sync to occur. So, that is "why" I used sql server - I did not have to setup, install software on the desktop side of things.
I dare say this setup not only worked, but worked BEYOND well. In fact, it works so well, that quite much everyday, when at home, one of the first things I do is pull out my phone - launch applcation, and tap the sync button. (it takes less then 1 second to sync the data). And I jump for joy every time I see that progress bar zipping along oh so fast!!! So much so, I often can't wait to get home and use that feature!!!
So, IMHO?
Your REAL challenge is how you going to move data in, and out of that applcation. This aspect cannot be overlooked.
If this is to be some type of “in the field” applcation, or have many users, then this REALLY suggests that you now have to adopt some web based system for the data pulling to the B4A applcation. Unfortantly, this aspect has so many moving parts, and is FAR BEYOND the typical Access developer skill sets.
Too much work = failed project – it just does!!!
While I am 100% comfortable building and writing web based software? I just think that setting up some simple data moving in and out of the phone was WAY too much work (too high of a cost).
As for some video, or getting started for Access developers and B4A? Oh, my, yes I would love to write up a article or do a video. – Time is not on my side! (Too busy).
This post is already too long.
However, a big picture, or so called 50,000 foot view point is required in regards to the data in and out issue.
But, B4A is without question the best choice and tool for this job – especially those coming from VBA/VB6/VB.net land.
Regards,
Albert D. Kallal (Access MVP 2003-2017)
Edmonton, Alberta Canada