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
0
votes
1 answer

refresh a listview line item name

I have a listview with some single line entries such as... Sub MakeListView ListView1.AddSingleLine("Empty1") ListView1.AddSingleLine("Empty2") ListView1.AddSingleLine("Empty3") ViewPNL.AddView(ListView1, 0, 0, 100%x, 100%y) End…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

alternating panel animations inside a loop

I have two panels animating (blinking on/off) fine as heartbeats. However I want them to alternate beating instead of at the same time. So panel1 beats with a 10 count and then panel2 beats with a 10 count. I then want this to loop so it continues…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

Null pointer exception using DBUtils

Can you see what I did wrong in this code? I'm using DBUtils to populate some text boxes but I get a "Null pointer exception" on the line with the "Get". I also used a Toast to make sure that intCurrentId actually did have a value. Here's the code I…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
1 answer

Trying to set background image for panel

I am trying to set the background image of a panel that is added in the designer called PanelMaintenance but when the user enters the activity, the panel is not showing up with the image background. There are also no error messages and I was able…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
2 answers

Basic4Android - GPS in service apps

how to use GPS in service . i have activity work fine with GPS but in service not work. how handle this event in service : Sub GPS_LocationChanged (Location1 As Location) Dim Lat, Lon As String Lat = Location1.Latitude Lon =…
AbbasS
  • 99
  • 1
  • 1
  • 6
0
votes
2 answers

How To Connect To Another Device?

I have a program that has a few edittext boxes. Is there a way through bluetooth or wi-fi to allow two users to connect their devices to each other and when user1 types in their edittext, it updates on user2's edittext and visa-versa?
0
votes
1 answer

Need a small array help using GPS

Help!! I am at the final stages of a project and I am lost with a simple array issue. can someone give me a hand with this bit please? This sub fills a listview - (lvgps), from a database called locmessage - (location message). From that DB it…
netchicken
  • 355
  • 2
  • 7
  • 20
0
votes
1 answer

Can a property such as First Color be set using code?

Can a property such as First Color be set using code? I would like to do something like this: btnMyButton.drawable = "StatelistDrawable" btnMyButton.drawable.EnabledDrawable = "GradientDrawable" btnMyButton.drawable.EnabledDrawable.firstcolor =…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
1 answer

Looking for layout xml files for the project

I have saved several layout files with the designer but tried to look at them in Notepad and found they were not xml files. If I want to edit the xml layout files, can you tell me how to find the xml files so I can edit them in Notepad? Thanks.
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
2 answers

Can't update installed packages in AVD Manager

I've recently tried to add packages to the SDK through the AVD Manager but I get file not found as an error when the manager goes out to find available packages. I looked at the SDK website but didn't find any resolution. It looks like for some…
0
votes
1 answer

How to create a countdown timer in B4Android

I'm new to programing and to B4Android. I am trying to create an app that will let me insert the time into an EditText, display it on a Label and then start counting. How do I parse my result in EditText into Hours / Minutes using B4A? I would…
baythedog
  • 13
  • 1
  • 3
0
votes
1 answer

image disappear from panel

In my program I made many layouts and I use often to call a sub to change layout complete of labels and buttons (.bal). Every layout has a background image (image file) defined in designer (the images are in jpg format with a dimension…
0
votes
1 answer

How to programmatically access views?

I have a lot of views. And I like to have them placed in the program, taking the size of the screen in account. But I have a problem accessing the views in a loop. Now, I have to take one view at the time: view1.top = xdip view2.top = xdip What I…
WizardOz
  • 103
  • 2
0
votes
1 answer

get timestamp (date and time) from sd card file

Hello out there in B4A world! I'm trying to retrieve the timestamp from a file on the sd card. The function 'files' doesn't have a timestamp method but I see the usage of things like file timestamp in ftp operations. What am I missing?! Thanks
0
votes
1 answer

Sliding Panels by Erel/Corwin42

The sliding panel is great, but I can't get the Panels_Click or Panels_LongClick to get raised. Is there a workaround this? I really need both.
Scantech
  • 9
  • 4