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

B4a Listview TwoLines Vertical Centering

i need to use ListView1.TwoLinesAndBitmap and i have strange problem to set lable,SecondLabel,imageview in center Vertically as i see all examples set the itemheight to something like : 60dip but when i test listview in some Hight resolution and…
Arman
  • 1
  • 1
  • 5
0
votes
3 answers

How to get the elements of an array in B4A?

I have this code but it seems that the "randomChar" is unused variable. Dim validchars(3) As String Dim i As Int validchars(0) ="+" validchars(1) ="-" validchars(2) ="*" Dim idx As Int = Rnd(0,…
Ikaros
  • 169
  • 2
  • 7
0
votes
1 answer

Basic4Android How change background Color of AutoCompleteEditText

it`s really Weird that that there is no option or setting for set background Color of AutoCompleteEditText in BASIC4Android my app have a white theme and design , so i set the AutoCompleteEditText edit-box background color to white and then set…
Arman
  • 1
  • 1
  • 5
0
votes
2 answers

B4a Listview how change color of Divider (seprator)

in Basic4Android i really need to change the color of Divider of Listview cause my theme is Grey and the divider seems to be have a very similar color and cant be seen at all how can i do this thanks
Arman
  • 1
  • 1
  • 5
0
votes
1 answer

Does Basic4Android support named parameters like Visual Basic?

Since Basic4Android is based on Visual Basic, can it support named parameters to make the code more readable?
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
0
votes
2 answers

How to reduce size of jpeg image in basic4android

Hello at this time camera capturing image size is more than 1 mb. I want to reduce it to 20kb. Please help me. Sub Camera1_PictureTaken (Data() As Byte) camera1.StartPreview DateTime.DateFormat ="HH.mm.ss.SS_dd-MM-yy_" …
ching lee
  • 11
  • 7
0
votes
1 answer

How to store camera capturing images directly to the sqlite in basic4android

Hi I want to store all camera capturing images directly to the sqlite database in basic4android. I have created database and table also. Please tell me how I can insert all images to the sqlite database? Please help me. Sub…
ching lee
  • 11
  • 7
0
votes
2 answers

Basic4android - Jsonparser

I have json format like below : {"response":[{Pasien={id=24, name=Erren}, Detailtransaksi=[], Upk={name=Poli Umum}, Pendaftaran={antrian=1, id=1, user_id=9, modified=2015-03-01 14:08:46, keterangan=demam tinggi, pasien_id=24}}, {Pasien={id=21,…
LuckyMan
  • 1
  • 2
0
votes
1 answer

basic4android android.os.networkonmainthreadexception error

Im trying to Contol LEDs using my android device and I'am using Basic4android for the app. I got things working but everytime I press a button to turn an LED on/off.. I got this error saying "android.os.NetworkOnMainThreadException" ... This is my…
CaldwellD
  • 1
  • 1
0
votes
1 answer

How to save the input of Edittext to be used as global variable in basic for android program?

I want to save the user's input in Edittext as a global variable so it can be used in other activities. I am using basic4android program. Thanks, I used this code First Activity Sub Process_Globals 'These global variables will be declared once…
Rim
  • 11
  • 3
0
votes
2 answers

How to add images to scrollview in basic4android

I want to load some images in a ScrollView in basic4android. This happened only once. My Code: Activity.LoadLayout("main") Dim b As Bitmap Dim iv As ImageView For i=1 To 10 b.Initialize(File.DirAssets,"1.png") iv.Initialize("") iv.Bitmap =…
Salar Ashgi
  • 128
  • 2
  • 13
0
votes
2 answers

Connecting B4A Android Application to Desktop using VB6

I am using basic4android and have created an application which simply stores and pushes all mobile phone keystrokes. This is functioning when I storing and dumping the data remotely online, however I am attempting to store the data to display on a…
0
votes
1 answer

how to start bult-in downloader of android system with basic4android

I want to develop an application for the android platform with basic4android that can download some files from my server. How can i use android's download manager like it is used in chrome browser (thats name is downloader) ? I mean, the one when…
Saeed
  • 3
  • 2
0
votes
1 answer

basic4android call additional library's method

I added java library to my project. now I want to use Reflector lib to call an static method of the added java library. The way this method is called in java lib was: Adad.setTestMode(true); Now I am wondering how I could call this method in…
Elnaz
  • 1
  • 1
0
votes
3 answers

basic4android Server Socket

I'm trying to do a two ways communication between a PC running .NET Client-Server and an Android device, (the code is made with Basic4Android). Sending from Android to PC works fine, the problem occours when i try to send from the PC to Android. I'm…
user2959923
  • 144
  • 1
  • 2
  • 14