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

Move button panel above on-screen keyboard

While adding a contact, when the on-screen keyboard is displayed the panel containing the 'Done' and 'Revert' buttons scrolls up above the on-screen keyboard. How is this achieved?
JdV
  • 35
  • 2
0
votes
2 answers

EditText field appearence

The EditText fields in the Android emulator have an inner shadow and rounded corners. The same app on my Samsung Galaxy shows the EditText fields flat looking and perfectly rectangular. I realize there are differences between the versions of Android…
JdV
  • 35
  • 2
0
votes
3 answers

Problems sending and receiving data over TCP socket

I am having problems trying to use my android (Basic4Android) to communicate with my PC running a .net TCP server. I need to be able to have buttons that send 4byte commands to the server and receive back a response. When I run the program on the…
user925882
  • 11
  • 1
  • 1
0
votes
1 answer

Collecting emails

Below is (the main bit) of my code to collect emails and save them in a text file. But my text file isn't happening. Something wrong in my Sub Email_valid routine Any clues ? Thanks in advance, Steve Sub txtemail_EnterPressed Dim matcher1 As…
0
votes
1 answer

Using an Int in a string?

VERY new user here. I'm playing with Basic 4 android and having fun. Originally I wanted to do this ImageView2.Bitmap = LoadBitmap(File.DirAssets,thumb+".jpg") which doesn't work The following code works, but is there a more elegant way - I'm sure…
0
votes
2 answers

Timer issues in my project

In my project, I declare the timer in Process_Globals. I Initialize the Timer in the Activity_Create inside If FirstTime. I am not sure if I like to Initialize it in FirstTime due to issues I am experiencing. I do not know why! When my app is…
Scantech
  • 9
  • 4
0
votes
3 answers

Choosing a button from a view

I'm stuck with some syntax on figuring out which of 2 buttons in a view was clicked. I have multiple views - so what happens first is text is assigned to the 2 buttons based on the current view - then what I want to have happen is an action based on…
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

Quotes in a long multi-variable SQL request in Basic4android

All B2A users. Again about double quotes in SQL: how to be (replace quotes) in B2A long SQL INSERT\UPDATE request string, if this string is created dinamically, fields names and qty are variables (download by HTTP), and any value of them can be a…
0
votes
2 answers

Downloading some files

I want to download a file and save it into my app folder. I have to download different files with different formats, but only one each time. I've read that I have to use HttpUtils, but sample codes are to difficult for me (I'm too noob). Can anyone…
Manu
  • 1,130
  • 3
  • 10
  • 26
0
votes
1 answer

ScrollView with or without loading layout

Lets say in Designer I add a ScrollView to the activity, then I add a Panel with a height that is 2 or 3 time greater than the ScrollView. Next, I place views (EditText, buttons, etc.) into the panel. Now I have a large panel full of controls. I…
Bob G
  • 23
  • 2
  • 6
0
votes
1 answer

long - big numbers in map don't calc as should

i am using big numbers (18 digits), so i store it into long variables. I have found some misbehavior in my calculations, hence i made a simple test program. The calculation does not work as it should with big numbers... More precise it is linked to…
richard
  • 13
  • 4
0
votes
1 answer

GPS - how to set mock-location in Basic4android?

GPS - how to set mock-location in Basic4android ? how can we set the GPS location ? Why? to show a waypoint (52.5 , 13.44) (Berlin , Schlesische Str.) in my OFFLINE Navigon and Sygig Navigation Program -WITHOUT internet and google-maps this apps…
And
  • 73
  • 2
  • 7
0
votes
1 answer

Clearing stored usernames and passwords for webview Basic4Android

How do you clear usernames and passwords for a webview? Tried: reflect.RunMethod2("clearCache","True","java.lang.boolean") reflect.RunMethod("clearFormData") They still pop-up. Thanks, -Sean
0
votes
3 answers

How to get a list of all image files for a slide show

This code works, in the sense that it crawls the directories. However it gets an exception on all the sub directories, and fails to return any files. Is this a permissions issue, or is there something wrong in my code? ES file manager shows the…
GS106
  • 1
  • 1
  • 2
0
votes
1 answer

Custom notification icon overwritten

In the documentation it states to that a custom notification icon should be copied into the res/drawable folder. However I've noticed that every time I build the app the icon is deleted from the folder which in turn causes the app to fail. Any ideas…
jb11
  • 557
  • 5
  • 18