Questions tagged [basic4android]

Basic4android (Basic for Android) is a simple and powerful development environment for developers of Android applications

Basic4android (Basic for Android) is a simple and powerful development environment for developers of Android applications

Site: http://www.b4x.com

It's called Visual Basic for Android too.

223 questions
2
votes
1 answer

OpenGl ES - How to map different textures to a grid of tiles

Just been learning some OpenGL on android learning the basics of making a game. The trouble I'm having is to do with mapping different textures "per tile" onto my grid. For instance: I have a grid of tiles - 8x8 - in my vertex array I define the…
1
vote
4 answers

Finish all activities in Basic4Android

I have an application with many activities, sharing the same Menu, which is created in a code module. This Menu has an option "Exit". How do I finish all running activities without using ExitApplication? Do I have to create a variable in the code…
adamioan
  • 81
  • 1
  • 10
1
vote
2 answers

Compile obfuscated error

when I 'm compiling my project in B4A using the obfuscated option, I get the below error: Compiling generated Java code. Error B4A line: 6 Dim ActivityResponse As String: ActivityResponse=\ javac…
adamioan
  • 81
  • 1
  • 10
1
vote
1 answer

Recommendation on saving information from a ListView to a file

I'm looking to save some information from a ListView to a file and was hoping for a recommendation. I have several items on my ListView and I would like to save at least 3 values for each - the position in the list view, the title (text) that the…
Tony Moreira
  • 93
  • 3
  • 18
1
vote
1 answer

How do you call a web site and parse the XML results returned?

I would like to call this web site with the following url: http://where.yahooapis.com/geocode?q=131+stedman+st,+lowell,+ma This will return the following XML results:
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
1
vote
1 answer

Basic4Android - Fill ListView and ScrollView after screen rotation

how can I save the ListView and ScrollView items that contain text and images, in order to restore them after screen rotation? The data are imported on run-time. Thanks in advance
adamioan
  • 81
  • 1
  • 10
1
vote
1 answer

fill entire area of tabhost tab with listview programmatically

Is it possible to directly fill a tabhost tab with a listview directly, or should the listview be placed on a panel first. Also, how/what sytax do I use to get the content on the tab to be 100%x and 100%y programmatically? So in other words - a Tab…
Tony Moreira
  • 93
  • 3
  • 18
1
vote
1 answer

How can I attach a label to a scrollview in Basic4Android?

How can I attach a label to a scrollview at design time (not in the designer) So I can create a label but the content of my 100% widthx 100% height label, the long text goes off the screen. Is there a simple way to make the label scroll without…
Heather McVay
  • 939
  • 3
  • 15
  • 31
1
vote
1 answer

DBUtils.ExecuteListView parameter for the WHERE clause is not working

I would like to use the value from an EditText box to filter a ListView. Can you look at my coding and let me know what else I need to do to get it to work? So far it only returns 0 rows. Sub ButtonSearchFilterEventHandler_Click ' Populate the…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
1
vote
1 answer

_Click on TabHost view is not working

On a TabHost view I found there are 3 events. Click, LongClick and TabChanged. I found that only TabChanged works and I would like to use Click since the user may tap a tab and go back to the home screen and may want to tap the same tab again. Here…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
1
vote
1 answer

Do you always need to initialize in basic4android?

Do I need to initialize everything before I use it in basic4android? Dim lbl as label Dim lv1 as listview lbl.initialize() lv1.initialize() lbl1.text = "Hello world!"
Heather McVay
  • 939
  • 3
  • 15
  • 31
1
vote
1 answer

Looking to assign a value to a variable at the time of declaring it

In VB you can both define and assign a value to a variable in one line. Can you do this in Basic4Android? VB code sample: Dim strMyVariable As String = "Some text is in here" Update: I tried this and got the following error: NumberOfColumns As Int…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
1
vote
1 answer

What is the correct way to install basic4android?

Few questions on installing: When installing basic4android, why is it recommended to use API 8 vs. Api 14 ? If I install Api 8, and someone is running android 2.1, Will they not be able to run the apk? Would it be better just to compile a seperate…
Heather McVay
  • 939
  • 3
  • 15
  • 31
1
vote
2 answers

Import project from Eclipse to B4A?

I'm a beginner trying to learn my way through making my first real Android app. I actually started an app using Eclipse and have gotten pretty far with it. I'd like to be able to continue its development using B4A. Is it possible to bring my work…
Todd Tabern
  • 13
  • 1
  • 3
1
vote
2 answers

Android is killing background process/activity - How can I avoid this?

I have made an app that runs in the background. The purpose is to intercept incoming calls. After a while Android kills the service/app if it's not "active" for a while. Any way to avoid this in basic4android?
Ronny
  • 11
  • 1
  • 2
1
2
3
14 15