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

hidden (?) files

I'm writing an app that includes a folder/file explorer. That part is working. However, another app (Astro File Manager) has the ability to backup all of the installed apps to a backup location on the SD card. I cannot find or see the folder(s)…
0
votes
1 answer

ContentChooser does not work in one app

I am working on a slide show app. An earlier version using the ContentChooser in the phone library works perfectly. This larger app fails to load the ContentChooser. The actual code to call it is the same in both apps, and is identical to the B4A…
GS106
  • 1
  • 1
  • 2
0
votes
3 answers

How to retrieve a web page source code, either with web view or http?

I've been struging since yesterday on how to do a "simple" task, that is to retrieve a WebPage's html source-code... From what I can see, with WebView its just not possible, so I should use http instead, but albeit all my efforts, no luck... Can…
Cableguy
  • 1
  • 1
  • 1
0
votes
1 answer

Multiple Button ColorDrawable/State Syntax

Expanding upon my previous question, I am trying to reuse code to assign color/state to multiple buttons. In my last question I forgot the color portion of the code. Here is what I am trying - but getting a Undeclared variable 'buttonprs' is used…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

Reducing button statelistdrawablecode

I have this code working fine a few times in my project but was wondering the easiest way to allow it to be used for multiple buttons without repeating the code. For example - I have mybuttonBTN1 below and would like to add mybuttonBTN2, etc. - I've…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
2 answers

Android on-screen keyboard and B4A

I am wondering about the on-screen keyboard (osk). When I’m in portrait mode the osk shows up on the bottom of the screen and only covers up the lower portion of my app. This is ideal because you can still see my text box which is located in the…
Bob G
  • 23
  • 2
  • 6
0
votes
4 answers

Design Layout Changes do not appear in app

I've been trying out the designer for a while now but I'm thinking of giving up. The problem is that when I move or resize objects in the design window nothing changes in the app. I can't see why this would be the case as it would seem to make the…
Juncus
  • 11
  • 2
0
votes
1 answer

ToastMessageShow in Activity Create

My loading layouts is around 5 seconds. Instead of user seeing a blank screen, I decided to add this prior to loading layouts. ToastMessageShow("Loading, Please Wait...", True) DoEvents: DoEvents: DoEvents Activity.LoadLayout("any") I am not sure…
Scantech
  • 9
  • 4
0
votes
1 answer

center text vertically in twolinesandbitmap

I've attached some sample code with the issue. I create a listview with two lines and a bitmap. I disable the second label so I have just the image and one lable. I want to center the text vertically, can't seem to figure it out!! Sub Globals Dim…
0
votes
1 answer

radio button parent in code

In B4A, it is possible to add radio buttons to a parent (or group them) - such as a panel, instead of using designer? I have used addview to add 3 radio buttons to a panel but no luck. I was using designer and then decided to try 100% code but I am…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

Multiple activities, or..?

Very new to B4A and programming in general. I am creating an app that uses TabHost. On the main screen I will have about 25 buttons, each leading to its own screen. My question is what's the best way to go about doing this. Do I make each screen…
JonPM
  • 129
  • 1
  • 7
0
votes
1 answer

Optimized Dex Compiling

Version 1.70 is acting strange. The delay is taking longer. Few days back it would take 20-26 seconds and then for every 5 compiling i would get 120 seconds. Now, it is taking 120 seconds on every compiling. I don't mind the wait. Maybe it has…
Scantech
  • 9
  • 4
0
votes
3 answers

Multiple back key press "disables" panel button

Ok, I'm going to try to explain this one as easy as possible! I'm sure I'm overlooking something simple - but have been staring at the screen too long to identify. As always, thanks for helping! In my Main activity I have: Sub Activity_KeyPress…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
0 answers

Basic4Android - Get numeric value from Edit Text box?

I have an Edit Text box, with the Input Type set to DECIMAL_NUMBERS. I have declared a global Int that I want to add the value entered in the edit text box to. I have generated an EnterPressed member for the Edit Text box, but don't know how to…
PaulR
  • 706
  • 9
  • 27
0
votes
2 answers

how do you select an item from a listview and use it in say, a label or text using Basic4android

i want to scroll to an item in a listview and select that item to use in a label or text etc How do you code to select an item from a list say using a 'long click' or similar to highlight it?? I have found many responses to this question but I…
user1009135
  • 1
  • 1
  • 1