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

Mirror Layout / Reverse Layout

Is it possible to miror/reverse the display. I am planning to make a app where I will show the display up to the windscreen of a car.
0
votes
1 answer

Reflection library - call to RunStaticMethod returns error

i am trying to call the MotionEvent.obtain Methode using the reflections library. But so far i am not very successful. Everything i try results in the same error... Here my code from a button-click: Dim upTime As Long Dim ev As Object Dim args(12)…
richard
  • 13
  • 4
0
votes
1 answer

Why is third argument necessary in DBUtils.ExecuteMap?

Dim m As Map m = DBUtils.ExecuteMap(SQL, "SELECT Id, [First Name], [Last Name], Birthday FROM students WHERE id = ?", _Array As String(value)) Why is third argument needed in DBUtils.ExecuteMap ? I tried looking in DBUtils code module but didnt…
SacGax
  • 157
  • 4
  • 10
0
votes
1 answer

Loading a part of PNG file without reading all of it to stay away from the memory limits

Is there any way of loading a part of PNG file without reading all of it to stay away from the memory limits? Any solution like Agraham's JPEG Lib that can do same for PNG files?
effe
  • 1,335
  • 3
  • 17
  • 26
0
votes
1 answer

Save canvas as a file and putting to scrollview as a search result

In short I would like to know how to do this: Saving a canvas with all the output of label/edittext/views as an (image)file on sdcard. Using a search function, it will catch this canvas and display it on a scrollview or listview. I hope someone out…
JackD.
  • 21
  • 4
0
votes
1 answer

Multi-line button labels

Is there an easy way to have two lines of button.text where you specify each line individually? Also, there seem to be large margins on the buttons so the text font needs to be quite small to fit. Is there a way to allow the text to use more of…
user975977
  • 1
  • 1
  • 2
0
votes
1 answer

GPS Specific questions for Service application

I am working on a simple application that I need to be run as a service and report gps position every 3 minutes. I already have a working example based on the tutorial, but still have the followin doubts. The starting of the service …
neavilag
  • 609
  • 1
  • 8
  • 20
0
votes
2 answers

Text Display Jumping Left-Right due to character width difference

I am using an EditText to display text received from a serial port which is updated 10 times a second, it works fine but one of the lines of text has a character that alternates beyween a digit and a dash (-). Becuase the dash is narrower than the…
Andrew Smith
  • 117
  • 9
0
votes
1 answer

What does Array as Object mean in Basic4Android?

SQL1.ExecNonQuery2("INSERT INTO table1 VALUES(?,?,?)",Array As Object("def",3,4)) I don't seem to understand why the argument list in the above statement is declared in the form of Array as Object('xx','xx''xx').How is it exactly being converted…
SacGax
  • 157
  • 4
  • 10
0
votes
1 answer

B4ABridge not working for most of files

I am trying several examples from the forum, most of the samples are not in my phone but are unable to be installed via the B4ABridge even it says it is connected. How can this be fixed? this is what it says: Installing file to device. …
neavilag
  • 609
  • 1
  • 8
  • 20
0
votes
1 answer

How to track direction of a motion?

How do I track the direction of a motion in Android ? Think WiiMote, it can track what direction you move it (not talking about the IR lamps), is it possible to do similar in android, if so, how? Some basic code in either Java or B4A is…
Adam
  • 81
  • 3
  • 7
0
votes
1 answer

Does anyone knows how to use root access in B4a?

Actually, I mean when an app has root permission, all its (dangerous) permissions run without limitation ? EG : Call Recorder-Skvalex. I found C codes in This app , Google has blocked or restricted third-party applications from accessing the…
Alex 1360
  • 1
  • 1
0
votes
0 answers

B4A How to popup a message box on top of non-related apps

I need to run a service that notifies an android phone user with a button/messagebox that there is a message waiting for them in a background app. I have a scheduler program that does this very thing. Can someone help me with the code or point out…
William
  • 1
  • 1
0
votes
1 answer

Please Help Me In Basic4Android

I'm learning Basic4Android. I want to use animation when I want to go to another activity. I Paste anim (animation files' folder) in my project folder/objects/res/. I wrote codes. When I compile my project, anim folder automatically be deleted. And…
0
votes
0 answers

item click custom listview basic4android

I made a customlistview in b4a but I can not fix the click event. I want when button clicks image to pause and other buttons image to play when click image button is changed but other button image not change. my code load Sub load For i = 0 To…