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
2 answers

DateFormat - Allowable formats?

I have the following code returning the time in a 24 hour format like "13:10:23" DateTime.DateFormat = "h:mm a" now = DateTime.Now t = DateTime.Time(now) lblCurrentTime.Text = t But I'd like…
Ian Campbell
  • 48
  • 1
  • 9
0
votes
1 answer

Saving and reading int values in case of app close

I've created an application which contains settings as int values... Basically my app contains multiple layouts. When the user presses the "back" key, the app returns to the first panel (which is the main screen!). If pressed on the main screen, the…
0
votes
1 answer

Is there a way to set a type's attribute to a default value?

type raygun( currentCharge as int, maxDamage as int, minDamage as int) I couldn't find any examples demonstrating how to set the type's attribute to a default value when it is initialized. For example in this instance it would make sense to default…
dbergusa
  • 5
  • 1
0
votes
1 answer

Layout loading delays

I clocked my layout loading time around 4-5 seconds. My processor is not one of the best. I have 3 panels with lots of buttons, labels, and few other components. I like to keep my project simple and gather all components in 1 form. Is this bad…
Scantech
  • 9
  • 4
0
votes
1 answer

Using custom styles with Basic4Android

As a follow on to the hide activity questions here, I started looking through the Andoid documentation for more information on styles and themes and found it is possible to apply different themes for different API levels. With this I can get my…
stevel05
  • 28
  • 5
0
votes
1 answer

ImageView not receiving Click events

I was modifying a layout in the designer, and changed the parent of an imageview from a panel to the Activity. The imageview that previously was in the panel will not respond to clicks. A breakpoint placed in the sub is never reached. I tried both…
0
votes
1 answer

What causes variations in x/y (Left/Top) positions between devices?

I've noticed that hard coded Top/left positions (gathered via code) from the avd do not correspond to the same points on my android device. Basically I have a map image as a panel with another panel containing a position indicator (like x marks the…
dbergusa
  • 5
  • 1
0
votes
1 answer

Basic4Android PNG compression

Android seems to visibly reduce the quality of PNG files at compile time. I have an aplication working with a canvas object. The process writes canvas data over a PNG file which has smaller dimensions than the canvas. Writing process repeats…
effe
  • 1,335
  • 3
  • 17
  • 26
0
votes
1 answer

Basic4Android Vibration pattern

I'm trying to create an application that have different vibration patterns. I've seen that the PhoneVibrate class has only a Vibrate(TimeMs as Long) function. I've also seen that there also is another java function that supports patterns (see here:…
ottomano
  • 13
  • 4
0
votes
1 answer

basic4android button click and Phone Call?

I wish to make a button inside the App That click will lead To call specific number , Open The Phone dialer with Specific Number Or Open SMS with specific Number. How can i do ot ?
0
votes
1 answer

Using a WebViews cookies with an HTTP Client

This is with reference to using Google Contacts Data API. It requires that the application gets authentication view a WebBrowser/WebView (in the case of android). Therefore the RequestTokenUrl is passed to the webview which will show a Google…
thedesolatesoul
  • 138
  • 1
  • 6
0
votes
1 answer

Does ALL content in the Files folder get packaged?

This problem has baffled me for a while. One day I ran my program. It went through the normal steps in the console. Finally it got to installing to my device. It would time out and then give me an error saying to restart adb. I restarted adb…
0
votes
2 answers

Stop httputils service in basic4android

I am using basic4android and I made an application that uses httputils services. Sometimes a remote error occurs (possible server overload or limited internet connection) and the application exits with the error message box. The activity closes but…
adamioan
  • 81
  • 1
  • 10
0
votes
1 answer

Using Rnd with specific numbers rather than a range

Is it possible to generate a random integer from a list of numbers or predefined set - that may not be in order. For example - generate a random number from 1,2,4,5 (no 3 allowed).
Tony Moreira
  • 93
  • 3
  • 18
0
votes
1 answer

Serial data over bluetooth - getting chopped up?

Is there more detailed information available on the serial library? The reason I'm asking is that the serial data I'm receiving is getting chopped up into seemingly random sized chunks. I know it's fairly continuous, but perhaps small time delays…
user975977
  • 1
  • 1
  • 2