The B4A site is full of demos and tutorials. Everything you need to know about B4A is exaplained somewhere on the site. I s.uggest going to the Documentation page and doing some of the tutorials. There is also a Beginner's Guide that takes you through writing B4A applications step by step.
Got in a hurry and did not mention that there are only 6 GPIO lines. The 7th line is dedicated to a USB Error pin and is always logically low.. So, ignore bit 7 on the LED display. LED ON = 0.. LED OFF = 1
The title, "Hello World" was appropriate in this context. It is not a class on BASIC or VisualBasic so it is not going teach what "SUB" is. That is a BASIC command. Fred said at the beginning that he assumed, or in other words, it is a pre-requesite, that the attendees know or have been exposed to VisualBasic. The term, "Hello World" means to get something out. And he did that with the LEDs.
Thank you so much for this class. Thought it was great! ( Have done a bit of coding in various languages, and understand the "Hello World" reference... ) and in another context, very appropriate to your world wide audience.
I support JanetD's assertion that the title was inappropriate for the starting point of this series.
I will do more research into the B4A programs. However, I was just starting to try out Corona which in some ways looks easier. I also haven't written in Basic since the early eighties ;-) Go figure - there are still dinosaurs roaming the engineering multiverse.
Don't worry if you couldn't make a head and tail of it ,Don't worry this was only an introduction to get familiar with the environment and you will learn more once compelet the whole sessions ,now at least you know what the software is ,if you spend few hours on help topic you will get all your answer .
I understand. However, I would need a week of 30 minute lectures to cover the basics of Visual Basic and BASIC. The Hello World was meant to be a metaphor that says "Let's get started". Do you not feel that blinking an LED is analogous to printing a sentence?
Basically, what I was attempting to convey was the idea of creating a button and writing event code behind the button to send 0xAA or 0x55 to the FT311D and having the LEDs represent the binary. We could as easily coded the button event to print "Hello World".. Does that help?
farhad21, that's the problem. This was *not* a first step, it was a few miles beyond that! He didn't "mention that" in the title of the class. All I'm asking is that you not call a class a "Hello world!" class unless you are actually teaching that basic a level!
Fred, I'm sorry, but the lecture was gobbledygook to me. I was hoping for an actual "Hello world" level class, and you are covering material far beyond that. I won't learn anything unless you actually *explain* every single step involved. Are you going to explain what "Sub" is and how to use it?
The "Hello World" was tongue in cheek. Hello World programs are usually one line of code and are intended to demonstrate how to print some characters to a medium. Our Hello World was writing hex characters to some LEDs.
I'm sorry you feel that you've not gotten what you wanted out of today's presentation. My suggestion is to come back tomorrow and the next day and the next day. The subject matter we convered today will be expouned upon as we progress through the week. I am certain that you will gain the basic knowledge you seek by Friday afternoon :
@JanetD Yes, it's a huge amount to take on board - I think what I've taken from it is the ease with which one can interface an Android device with external hardware, and then program that device - but I've got a reasonable amount of experience with B4A.
DaveWR, please just stop. I've told you that what you are telling me isn't helping. If that's all you have to offer, fine, you've said it. Let's see if someone else has any suggestions on this subject.
@Heliflyer_uk - any comments on richness of library support for H/W interfacing on Android, B4A vs. Java? I'm not intimidated by learning a new coding language but OTOH if the languages I already know have libraries that get the job done it's not necessarily a good investment to dive into another language.
@JanetD It's worth the effort. I think it's impossible for Fred to actually get you going on programming with B4A with a class like this - I think he's just trying to show that once you're up to speed with B4A, you can do some pretty smart things with it.
He has gone in at a very high level here, and it is much easier than it appears with this lecture
Basic language has the capability to communicate with other languages by making an applet in Jva language for example.
Many developer has already interface the Basic language with the java base platform technology and lately for Android ,there are plenty of Free basic language to program on Android devices and even for I-phone all have a help and a huge library but some of them also provide more services like B4android and a paid version .
Reason I ask is, if you already know Java (I do), learning Visual Basic (which I've never used) doesn't sound like a good use of time unless there's a real compelling case in terms of e.g. library support.
I've been in the situation when I've reported bugs on the Forum, or asked for help with something, and I've got replies within SECONDS - often from Erel, the guy who started the whole project off - it's his baby.
Sorry I had to miss the lecture, but was the case made for why you'd want to use Visual Basic-like language for doing H/W interfacing on Android over just using Android Java, and finding and/or building native Android Java libraries to do the interfacing?
@Peter1 There's nothing really close to B4A for ease of use. It's been around for a few years, has a VERY dedicated and helpful set of users on the Forum, and is capable of some very powerful programming on Android Devices.
I know I sound like a bit of a FanBoy, but I went through the pain of trying to learn Java, program in Eclipse, blah blah blah - then I found B4A and it was a breath of fresh air. It is just like Visual Basic running under Visual Studio
Hmmm....any recommendations for learning to program Android for people who *don't* already know VisualBasic? I haven't programmed since plain old BASIC, and too much of this was unfamiliar. Where can I get caught up?
Buttons are just like buttons in Visual Basic. They are event driven. There is a great deal of similarity between VB for windows and B4A. You add a button to your "Form" and then you add code for whatever events you want to monitor for. All controls work in similar way.
Question. Standard BASIC uses just a single "=" for logic comparisons. Some newer languages use "==" for logic and "=" or ".=" for assignments. I noticed on the line of code that you said causes a problem that "==" was used. Is that normal for this IDE?
Jennifer, I'd argue that B4A opens up Android programming in a similar way that VB opened up Windows app programming. I struggled away with Java and Eclipse for ages not really getting anywhere, and then with B4A I was away within days.
So - any suggestions on how to get the audio? The work firewall blocks the audio stream so I thought I'd try via my Android phone. But the flash player plug-in does not work correctly on Opera, Dolphin, Boat, or the built-in browser. Ideas?
For those new to B4A, there are some very very helpful downloadable manuals at their website which help setting up and installing, and give some great tutorials for new folk. The folk on the forums there are some of the most helpful guys I've ever met on forums, and B4A really is worth making the effort to get to know - it's difficult for Fred to cover all of this here...
Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.
Would have been nice to have a preload test that would let one know of any issues before the actual webinar. Some of these issues require changes to web policies and require time to fix. Not something that I could do from my desk.
If you don't see the audio bar at the top even after refreshing your browser, try using FF or Chrome. Some people experience issues when using IE. Also, please make sure your flash player is updated with the current version.
The streaming audio player will appear on this Web page when the class starts at 2 p.m. EST. Note, however, that some companies block live audio streams. If you don't hear the audio when the class starts, try refreshing your browser.
Good afternoon everyone. Class is set to begin in 20 minutes. If you haven't done so, please go ahead and click 'Today's Slide Deck' under Special Educational Materials (above right) to download the PowerPoint for today's session.
Good morning from Clearwater, Florida. Looking forward to adding new abilities to my "bag of tricks" Fred. And thanks for making the slides available ahead of time so I can learn better and ask useful questions.
@ Ross_ValuSoft - Welcome to the CEC! This is an audio presentation where you'll follow along with Fred's PPT. He'll refer to the page # he's on as he's presenting. The streaming audio player will appear at the top of this page when the show starts at 2pm eastern. When you see it, just hit the play button. You will need to downlod the PPT by clicking on the 'Today's Slide Deck' link above (under the "Special Educational Materials" heading).
This should be interesting. I got questioned as to why I thought Android was a monster in a job interview. Mainly it is power problems and interactions between the different parts of Android. I have seen it done well by people that know Android (at Yahoo). I can not wait to see how B4A handles/addresses these issues. I am currently working in Augmented Reality, I can't wait to see how B4A handles that as well. These phone can do so much but the battery is always dead!
I'm really looking forward to the presentation. This looks like it will be an in-depth followup to your article in another publicaiton called "Walking the USB Bridge into Androidville". The bluetooth and TCP/IP parts are especially interesting- I just hope I can grasp it all!
This looks interesting. I have been playing with Eclipse already. The hardest part seems to be doing something someone has not already done. I am hopeful that by doing something with micoP support hardware to do something unique or to something someone has done only doing it uniquely or differently. I look forward to this lecture Fred.
Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.