samedi 30 avril 2016

Has Back and Front Camera's & has Flash (inline Java code)

This is just some simple inline Java code to check if a device has a Back facing camera, a Front facing camera, and a Flash (it requires the JavaObject library to be enabled).

View attachment 43667

Code:
  #Region  Project Attributes
#ApplicationLabel: HasFrontBackCameraAndFlash
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region...
Has Back and Front Camera's & has Flash (inline Java code)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O5yHes
via IFTTT

MQTT Monitor

Hi all.
Thought I would share this before I customized it. It is the start of a monitor application to watch MQTT messages. I need it for one of my b4a apps for debugging purposes. I wrote another one in VB.NET 2 years ago but cannot find the source code. :) So... Lets do it in b4j!!!

A few notes:
1. Source is included as always.
2. Thanks to @rwblinn Thanks for sharing your code. You saved me lots of time. :)http://www.rwblinn.de/#
3. It is using...

MQTT Monitor

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WySJVk
via IFTTT

Liquidcrystal_I2C

Hi Erel,

Is there any plans for a rLiquidcrystal_I2C library.

I have a working Arduino library but don't know how to convert it to B4R.

Any help kindly appreciated.

Thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1X0RBKV
via IFTTT

OSMDroid - MapView for B4A

Here we have my latest library - OSMDroid provides a MapView for B4A.

More info on the original (native Android) OSMDroid project can be found here: osmdroid - OpenStreetMap-Tools for Android - Google Project Hosting.

Library reference is no longer included in this post due to limits on the number of characters allowed in a single post.

I have created some tutorials to show basic usage of the library and will update this...

OSMDroid - MapView for B4A

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TmlmAj
via IFTTT

textchange_event

Code:
  txtPos.Text=cVal     ' i had assumed txtPos_Textchanged event will fire immediatly after this
txtPos.Tag=cKey ' but the flow goes to next line and continues

txtTable.RequestFocus
txtTable.Text=
" "
txtTable.Text=
""

[\code]

above
is a part of a sub. The problem is the execution order of the txtPos_Textchanged and txtTable_Textchanged events.

i found that
in some occasions, txtPos_Textchanged event is executed first...
textchange_event

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O4RZ3B
via IFTTT

how to check Automatic date & time on the Changes ?

hi,
is there a way to check whether the Date & Time Setting change from Automatic to manual.
i want to force the user to set "Automatic date and time" and "Automatic time zone" to ON.

thank you.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1r718Dt
via IFTTT

OSMBonusPack

greetings where I can download OSMBonusPack comparible with 4.1 0 3.6 osm , and samples, thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O4yMz1
via IFTTT

Elements in multi-dimensional lists

What's the easiest way, in B4J, to refer to an element in a nested list?

So specifically, if you had

List1.AddAll( Array As String( "one", "two", "four" ) )
List1.AddAll( Array As String( "seventeen", "thirteen", "five" ) )
List1.AddAll( Array As String( "hundred", "eight", "zero" ) )


, and you wanted to obtain the "thirteen" at ( 1, 1 ),

is there a simple way to do that, with B4J syntax?

Also, if you wanted to replace the element at (1,1), what is the simplest way to to that?...

Elements in multi-dimensional lists

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1QIbLBR
via IFTTT

Appending Bytes from multiple JPEG's

Would it be possible to append the resulting Bytes from a camera image to an existing .JPG file and have the pics both show, linked either vertically or horizontally but in a single .JPG if that makes any sense. Might be a dumb question but thanks for any insight!

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1rq9BlV
via IFTTT

spi & i2c

How do we access the spi and i2c functions?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O4iTJ4
via IFTTT

Palette library (Palette.Builder)

Android has a library that generates a palette of colors from an image.

Please see:
http://ift.tt/1xWBoXe

Does anyone have any idea how to use it with B4a?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24ddYSQ
via IFTTT

File.Exist(......) always False

Sub Process_Globals
Dim SQL1 As SQL
End Sub

Sub Globals
Dim qry as String
End Sub

SQL1.Initialize(File.DirInternal,"Test.db",True)

If File.Exists(File.DirInternal,"MyTable") = True Then
qry = "Drop Table MyTable"
SQL1.ExecNonQuery (qry)
Else
qry="Create Table MyTable (MyField,Int)"
SQL1.ExecNonQuery(qry)
End If

First run: "MyTable" doesn't exist, table is created. Great!
Second run: File.Exists still = False and tries to...

File.Exist(......) always False

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24ddY53
via IFTTT

ETL with B4J

Hi,

Does someone made a kind of ETL tool with B4J?

Thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TlSiJb
via IFTTT

jfeinstein10 SlidingMenu library

This is a wrapper for jfeinstein10 SlidingMenu open source project. This is a popular implementation of sliding menus. Note that you can add any layout you like in each of the side menus.

View attachment 21810

View attachment 21809

It requires B4A v3.20+.

In order to use it you need to download the open source project: http://ift.tt/XbmwkO (press on the Download ZIP button).

Unpack the...

jfeinstein10 SlidingMenu library

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1RaVoln
via IFTTT

Inside a scrollview appears scaled??

I have a page that I added 2 scrollviews to so I can create my own drop-down menu selection list. The forms are almost identical, in fact one is a copy of the other, but one if them looks normal, while the other appears to have its content approx. 60% in size?? I cannot see why..

Private LocationPicker As ScrollView
Private IndustryPicker As ScrollView

LocationPicker.Panel.LoadLayout("ToPickLocations")
IndustryPicker.Panel.LoadLayout("ToPickIndustries")

IndustryPicker.contentwidth =...

Inside a scrollview appears scaled??

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1QHJU4y
via IFTTT

Slow Compile

Hi There

I am working on a relatively large project.
At a certain point (when the project was almost 2/3 of the Current size ), I started facing issues with the compiler being very slow and my PC shutting down (sudden death) during compile.

By changing the ini file to:
MaxRamForDex=1536

The issue was resolved.

Now that the project grew more in size, I Started facing the same issue again (PC Shutdown and very slow compile). It is important to mention that before the shutdown, the PC fan...

Slow Compile

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24cW6Hv
via IFTTT

Give me an Android TV, because I want to try... ^_^

I'm kidding, of course (but you can give me $ 1M :D)



from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1QH7nTD
via IFTTT

Android Vision Barcode Reader (Scan QR Codes and other 1D & 2D barcodes)

It seems to be BARCODE season....This is a (partial) wrap for this Github project. It also uses the Google Mobile Vision API to scan the codes. It also incorporates the Tracking functionality (I have not quite figured out what color "outlined" barcode is actually the one that will be returned to B4A when it is...

Android Vision Barcode Reader (Scan QR Codes and other 1D & 2D barcodes)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26DS3my
via IFTTT

Johan's Overview

Libraries:

1. SplitImageView
2. MusicPlayerView - follow the thread
3. CompassView
4. CrossView
5....

Johan's Overview

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1mM3lCh
via IFTTT

Android Vision Barcode Reader (QR Codes and other 1D & 2D barcodes)

It seems to be BARCODE season....This is a (partial) wrap for this Github project. It also uses the Google Mobile Vision API to scan the codes. It also incorporates the Tracking functionality (I have not quite figured out what color "outlined" barcode is actually the one that will be returned to B4A when it is...

Android Vision Barcode Reader (QR Codes and other 1D & 2D barcodes)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UnFBm2
via IFTTT

Change targetSdkVersion problem

Hi, I modified the targetSdkVersion to 15 in an old project (before this change it was set to 4!).
But I see that after this change the background of EditText and Spinner objects is set to black.
Furthermore, I had also created a personal TabHost (with Panels and Buttons), in which each panel is partially over the buttons, but after the change of targetSdkVersion the BringToFront is not respected correctly.

How can I fix this? Thanks for support.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UnFAyt
via IFTTT

File path while using emulator

If I am going to use File.DirDefaultExternal where would I place the file when testing with the emulator?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24chnkS
via IFTTT

ProgressDialogShow on Helper Class

Hi, is there some work around to call ProgressDialogShow/ProgressDialogShow2 on a process into my own helper class? (without any activity, just a process that read records)
Thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TBNEJE
via IFTTT

My 1st Wrapped lib - Problem

Hi all.

I am trying to wrap my 1st lib. It is http://ift.tt/1JThxjN
I am using the Simple library compiler and have run into this error. I have included my project.

Any help would be appreciated.

Thanks!



View attachment 43560

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O2TLlX
via IFTTT

Line Break to Button

Hello,

I want to make my button 2 lines. I am using line1 & crlf & line2 but line 2 is not visible. How do i do it ?

ty

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1Na5Pqx
via IFTTT

CustomTooltip

This library will allow you to add tooltips to EditText views.


Requirements:

- B4A 3.8x.

- The RichString library.


How to install:

- Copy the CustomTooltip.jar and CustomToolip.xml to your additional libraries directory.


Usage:

Code:
  'Initialize the CustomTooltip library.
Private tooltip1 As CustomTooltip

tooltip1.Initialize(
Activity, TextBox1, True)

tooltip1.Text =
"This...
CustomTooltip

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1W8e5GQ
via IFTTT

Configuration settings

I can't figure out what the best option is to have the user input some settings needed by the application ? And also: are there any Apple guidelines on this ?

Thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1pRHeLY
via IFTTT

B4XEncryption

This library allows you to encrypt or decrypt data using the AES encryption method.

It is simple to use and it is compatible with B4J jB4XEncryption library and B4i Encryption library (Encrypt and Decrypt method) which means that you can encrypt the data on one platform and decrypt it on a different platform.

Usage example:

Code:
  Sub EncryptText(text As String, password As String) As Byte()
Dim c As B4XCipher
Return c.Encrypt(text.GetBytes("utf8"), password)
End Sub

Sub...
B4XEncryption

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1RTiywa
via IFTTT

MSDynamicGridView Library

This library implements one kind of GridViews:

Android Version Support
This GridView doesnt work 100% on Andriod 2.3 and lower. The animations are not supported and also the events are not raised (due to a bug).

1. DynamicGridView
This gridview is very flexible. All items must be of the same height/width.
It can load layouts into a panel, so you can have different layouts in each grid cell. It is very flexible and powerful. More features include the ability to drag/drop....

MSDynamicGridView Library

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1ObxJPT
via IFTTT

For you b4r guys and gals

It fits in a AA battery holder.
http://ift.tt/1NJkJi5

[​IMG]

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1Uno8dr
via IFTTT

queryelement : Waiting for value

Hi

I wainting a long time when i click save button in clientside. following log message window has lot of Waiting for value. How could i reduce the time ?

View attachment 43642

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TBEw7O
via IFTTT

Pull To Refresh icon

Hi,

I am trying to work out how (if there is a way) to change the icon of the pull to refresh in a scroll view.

I have used the code from here: http://ift.tt/1WwZFCB

I have managed to add the pull to refresh for the ScrollView in my app, but want the icon to look more like the following when you pull the list down..

View attachment 43638


Currently it's showing the icon like the following...

Pull To Refresh icon

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WwZDdK
via IFTTT

Applying same backcolor to all views inside panel in scrollview when selecting a particular panel.

Hi Guys,

I have a label and image inside a panel in a Scrollview. On selecting a panel only the panel background changes, the label background remains same(which is by default).I want all views inside panel to change to same backcolor. I tried doing in click event but that fires later.
Any idea how to do this like thru reflector or something ?

Thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1pRqNPI
via IFTTT

Is IoT dead?

Well... I have 3 Raspberries and 5 ESP8266 and did a lot of funny things with them. Lighting LED's, remote control them, check the status of the GPIO's. I could do a complete home automation.

Last week I saw the "Raspberry goes to space" documentation. But even here they only measured temperatures, cabine pressure, orbital height. To me not "that wow feeling".

So to me it is just a toy which I play with. It is good for kids to learn how to develop sw but I don't think that there will a...

Is IoT dead?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1N9CMn8
via IFTTT

vendredi 29 avril 2016

AppUpdater (cl_appupdate)

I moved my site from a test laptop to a real Win 2012 R2 server and all is working fine EXCEPT for AppUpdater.

It worked perfectly on the laptop now I get the "Not Found" error from http response.
Tried it from the browser with same effect:

HTTP Status 404 - /apks/rd.txt

type Status report

message /apks/rd.txt

description The requested resource is not available.

Apache Tomcat/8.0.14

RDC works...

AppUpdater (cl_appupdate)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1VYoJnC
via IFTTT

AdMob library issue in local builder

I encountered these problems while compiling. I am using latest B4i and macserver version 2.5.1. I put Google's framework into Libs folder without success. When compiling at hosted builder, it is ok.

ld: warning: object file (../../Libs/libiPhone.a(B4IMessageComposer.o)) was built for newer iOS version (7.1) than being linked (7.0)
ld: warning: object file (../../Libs/libiPhone.a(B4IClipboard.o)) was built for newer iOS version (7.1) than being linked (7.0)
ld: warning: object file...

AdMob library issue in local builder

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1P9yhCT
via IFTTT

[WebApp] Hello World Web App

In this tutorial we will develop the following web app:

[​IMG]

There are three components to this solution:

Main module: configures the server and the handlers and web sockets.

In this case we have a single WebSocket. It is mapped to a url which we later need to set in the html file.
The WebSocket class name is HelloWorld.

Code:
  Sub Process_Globals
Public srvr As Server
End Sub

Sub AppStart (Args()...
[WebApp] Hello World Web App

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24r8r7Q
via IFTTT

[class] Spinner

I wrote this class to try to simplify porting a B4A app to B4i. The app uses Spinners, and I was frustrated by the lack of a suitable replacement. I tried Pickers, but they take up too much space. Also, a lot of fiddly changes/conditional compilation is required to handle differences between B4A and B4i, in particular differences in trivial things like the way you set the text size.

So, I wrote this class to mimic the B4A Spinner programming interface and hide a lot of the differences...

[class] Spinner

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1NI6C21
via IFTTT

Incorrect value after conversion

This is in reference to the thread http://ift.tt/1SNdoTg
I have a stringbuilder initialized with same value
If i ceck (example) the value to thirteenth position

Code:
  Asc(buffer_st.ToString.SubString2(12,13))  
the value is correct = 193 (0xc1)
but after conversion into buffer (byte)
Code:
  Dim b() As Byte
If buffer_st.Length = 0 Then Return
b = conv.StringToBytes(buffer_st,
"UTF8")
the value to thirteenth position is -61...

Incorrect value after conversion

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O2cZYX
via IFTTT

Designed for familly

Anyone submitted the app for the program designed for family ?
Any problems ? thinking of a regular app for kids ?

I see the privacy policy link is a step to register the app , did you added this link too ?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TBstHE
via IFTTT

Cupon valido

Muy buenas.
Disculpar que os moleste-
Alguien tendría un cupón Valido?
Muchas gracias

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TkKxmK
via IFTTT

B4J apps

I'm sorry for this stupid request :):

please, do not write "B4J app"; you could use "B4J SW" or "B4J application". I think that "App" should be used only for mobile softwares.

Thank you

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WwHUTU
via IFTTT

[B4J] Interact with bootstrap

Hi

Do you know how to interact with bootstrap about Event,Value ? :(

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1pQTkos
via IFTTT

DO NOT DISTURB mode

How can I determine if the "DO NOT DISTURB" mode is ON or OFF on the phone ?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26CVauK
via IFTTT

the debug mode of b4a is very instable

the rapid debug mode of b4a is very instable ,before version 5.8 i use the old debug mode ,but now the old debug mode has been delete .the rapid debug mode sometimes success sometimes fail in same code. can you recovery the old debug mode?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1XZ4seI
via IFTTT

Disable pins

I have a wish that all inputs and outputs be disabled before a new program replaces an old one and properly starts and stable.
At this time I see a flicker or short spikes at the pins.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26Crw97
via IFTTT

Determination of the mail address of the device

Hallo,

gibt es eine Möglichkeit, die EMail-Adresse, welche im Device gespeichert ist, abzufragen? Vielen Dank für euere Hilfe im Voraus.

Mit freundlichen Grüssen

Amalkotey

-------------------------------------

Hello,

is there a way, the e - mail address which is stored in the device to query? Thank you for your help in advance.

best regards

Amalkotey

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O1ly6b
via IFTTT

Help with Designer

Hi!!!

I can create an interface in Visual Designer, then extract the code for B4A ?

I created a simple interface in the Visual Designer , now want to extract the code automatically of the interface, positions of components.
Is possible?

Thank you very much

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26CiQzD
via IFTTT

SQL query question

The below query isn't returning anything. How can I get it to return something?

Code:
  If  SQL1.ExecQuerySingleResult("SELEct  ifnull(COUNT(*),'0') FROM  GamePlay GROUP BY   teamscore, teamround HAVING    COUNT(*) > 1") > 1 Then  


from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O1lwv5
via IFTTT

My first game (libGdx + Box2D)

Hello there.
After 5 months of work (first game ever, I've had to learn libGdx, box2D and some tools involved), I can say my game is almost done, and can proudly present it in society:



It's an Angry birds ( or Crush the Castle) like game, but medieval themed, and the knights have ragdoll physics implemented, I think it's funny, you can kill them in infinite ways
There is parallax scrolling, different materials,a shop, power ups, 4 different random time...

My first game (libGdx + Box2D)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UqEZMT
via IFTTT

B4j Report Writer

This is a Class and 4 custom views that implements a basic reportwriter for B4j. I have developed this for an app I am working on, I've tried to make it generic enough to be of use to others but it is certainly not fully tested for all possibilities as they could be varied.

The 4 custom views are:

StaticField
ColumnHeaderField
ColumnField
TotalField

You can create a columnar report that implements a subtotal and total row, or totally freeform report using just static fields, or a mixture...

B4j Report Writer

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TJaEaF
via IFTTT

Word (arraylist) is showing up messagebox

Please take a look at the image and tell me how I can remove the (arraylist) and Brackets from the message box. The code is below.

Code:
  aList.Initialize()   
Dim cursor As Cursor
cursor=SQL1.ExecQuery("select TeamName from GamePlay")
For i = 0 To cursor.rowcount -1
cursor.position = i
aList.add(
cursor.getstring("TeamName"))
Next
Msgbox(aList & " have tied.","Tie Game")
btngameplay.Text =
"Team " & SQL1.ExecQuerySingleResult("SELECT teamname FROM GamePlay where ID = '" & tid & "'") & "...
Word (arraylist) is showing up messagebox

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1VYaCOi
via IFTTT

MQTT - MQ Telemetry Transport for B4A

[​IMG]

This library was made based on MQTT Protocol


Installation instructions:
- Copy the .xml and .jar(s) files to your custom libraries folder
- Select in your REFERENCED LIBRARIES


[​IMG]



Version history:
V1.0.0 (First public release - Donationware):
- Initial version

V1.0.2 (Release - [COLOR=rgb(0, 0,...

[url='http://ift.tt/1SDCpxY - MQ Telemetry Transport for B4A[/url]

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1VYaCht
via IFTTT

Fragen zu einer App

Nabend liebe Community,
folgendes würde ich gerne programmieren und wollte fragen ob es so realisierbar ist:
Es gibt einen Ordner Mannschaften. In dem Ordner sind z.B. 10 Ordner enthalten die jeweils nach einer Fussballmannschaft benannt sind. Diese Ordnernamen sollen als Items in den Spinner geaddet werden.
In den Jeweiligen Ordnern sind dann 4-12 Bilddateien die nach Spielern der Fussballmannschaft benannt sind. So wenn ich jetzt z.B. Mannschaft 3 auswähle dann soll eine Imageview das Bild...

Fragen zu einer App

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1VYaA9p
via IFTTT

[Lib] Contacts

Hi everyone,

here is my first library "Contacts", written in the great B4A editor.
It's a redesign and enhancement of the great "ContactUtils" class from Erel.

What can you do with this library:


With this library you can add / remove / find / edit contacts.
In the contacts you can:
- add / get / remove address entries
- add / get / remove email address entries
- add / get / remove event entries
- add / get / remove im (Instant Messanger) entries
- add / get / remove nickname...

[Lib] Contacts

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UMDJ5T
via IFTTT

Newbie: Can't run B4A app in emulator

It's been almost 5 years since I used B4A so I decided to download the most recent eval and have a go.
I have the Android Emulator using HW Acceleration. I'm using Win7 and running as Administrator user.

Everything installed fine, but when I try to compile and run an app in the Android Emulator by pressing F5, I get:

B4A version: 5.80
Parsing code. (0.00s)
Compiling code. (0.25s)
Compiling layouts code. (0.00s)
Generating R file. (1.33s)
Compiling debugger engine code....

Newbie: Can't run B4A app in emulator

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1SzrCrU
via IFTTT

Creating a certificate and provisioning profile

Don't panic!
While this process can be a bit annoying it is not too complicated and you can always delete the keys and start from scratch (which is not always the case in Android).

Note that you must first register with Apple as an iOS developer (costs $99 per year).
The whole process is done on a Windows computer.

In order to install an app on an iOS device you need to create a certificate and a provisioning profile.

The certificate is used to sign the application. The provisioning...

Creating a certificate and provisioning profile

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1P7qfPo
via IFTTT

Calendar2 Reminder

Hi. I've been using the Calendar2 library (v 1.13), and I'm having a problem with the reminder. I'm using the CreateEventWithReminder event and pass 120 to have a 2-hour reminder. The event is created, yet, when I check the event in Google Calendar, the event is there, but no notification has been set. What am I missing?

Thanks,
Dan

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1SzrAQM
via IFTTT

Subscribe to library updates

Library / classes / tools developers: please write a short post in this thread every time you make an update (also remember to update the wiki when posting new stuff).

Users can subscribe to this thread to be notified when there are updates.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1NINltK
via IFTTT

Library YouTube V3

Hi all.
This is new version 2.00
Now is possibile NextPage and PreviousPage.
For any movie you have all details as:
Etag, Title, Description, PublisheAt, Urlpicture, categoryId, channelTitle, Definition, dimension, PrivacyStatus, dislikeCount, likeCount, viewCount, CommentCount, Duration
Note Duration return example: PT15M33S this is 15 minutes and 33 seconds.
And more.... this version is very fast look movie in youtube.


YouTubeList
Author:
Devil-App
Version: 2.00...

Library YouTube V3

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1ODBtYt
via IFTTT

AppUpdating - automate apps updating from a webserver

Note: version 1.25 breaks existing code so, please, read changelog in post #60 below.

Hi all,

this is my first contributing lib to this great NG.
How do I dare to publish such a low-grade stuff in an area where generally you may find real masterpieces of programming? Well, to be honest, I hope in your help to upgrade my work...

AppUpdating - automate apps updating from a webserver

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1PktQWC
via IFTTT

Compile non-ui, but don't run it yet

Building a headless app that I will wrap into an exe and run as a service, all is well compiling in debug mode, but when switching to release I want to compile to .jar but NOT run it. Workaround is to use task manage to kill it, which gets complicated if you have more than 1 java app running, so is there a way to compile in release without running?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26BId4k
via IFTTT

SOLVED: Send UDP from Genymotion emulator to desktop

I tried to send udp with string data from B4A on Genymotion emulator to desktop B4J app. UDP packets don't arrive in B4j app.
I managed to send udp from desktop B4J app to desktop B4J app, and from one GM emulator to another.
I tried to use wi-fi IP, VirtualBoxNet IP for desktop host, 10.0.2.2, 10.0.3.2, 192.168.56.1 - doesn't work.
I tried app "UDP sender" from Google Play from emulator and real device - doesn't work.

I found my solution for my problem: firewall settings

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TAKk1b
via IFTTT

Send UDP from Genymotion emulator to desktop

I tried to send udp with string data from B4A on Genymotion emulator to desktop B4J app. UDP packets don't arrive in B4j app.
I managed to send udp from desktop B4J app to desktop B4J app, and from one GM emulator to another.
I tried to use wi-fi IP, VirtualBoxNet IP for desktop host, 10.0.2.2, 10.0.3.2, 192.168.56.1 - doesn't work.
I tried app "UDP sender" from Google Play from emulator and real device - doesn't work.
Are there any other ideas ?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1SDi37W
via IFTTT

asyncstream close requirement

when i close the application from main activity i have the following question regarding the simplified code below.

1) do i need to close the asyncstream specifically when i stop the logger service?

i've read you should not reuse an asyncstream. however, since it is in the starter service (and assuming the starter service hasn't been killed) can i just initialize it again as shown?

Code:
  [starter service]
Sub Process_Globals
Public usb As UsbSerial
Public AStreamUsb As...
asyncstream close requirement

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WvARdZ
via IFTTT

BLE Blood Pressure Meter Pairing

I want to connect Blood pressure meter (BLE), but for pairing need to do the following functions
Slave Security Request
View attachment 43559

Pairing Response
View attachment 43558
How can i implement this? My code is below, i can see device name in paired list but device not sending data.

Code:
  Sub BroadcastReceiver_OnReceive (Action As String,  i As  Object)
Dim intnt As Intent = i
Dim BtPairingVariant As Int
Dim BtPinBytes() As Byte
Dim Bleomronpin As String...
BLE Blood Pressure Meter Pairing

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1SDi0Jt
via IFTTT

[ABMaterial] Framework for WebApps

ABMaterial is a new framework combining a tuned Materialize CSS with the free programming tool B4J. It allows creating WebApps that not only look great thanks to Googles Material Design, but can be programmed with the powerful free tool from Anywhere Software without any knowledge of HTML or CSS.

[​IMG]

ABMaterial has over 35 themeable controls and some useful helpers.

Components:

  • ABMActionButton...

[ABMaterial] Framework for WebApps

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1QSqlMV
via IFTTT

[IoT][ESP8266]GPIOs & total control with B4J/B4A/HttpUtils & ESP8266 Basic

What is a ESP8266?

It's a small Basic programmabe microcontroller with Wifi, TCP/IP stack plus server, GPIO's and... it's unbelievable cheap. For about 3€ you get it as a bulk version which you have to solder. For 5 more you get this one with a micro usb UART adapter and a voltage converter (5V will kill it).

http://ift.tt/1O0pNPo

Usually it comes with...

[IoT][ESP8266]GPIOs & total control with B4J/B4A/HttpUtils & ESP8266 Basic

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1Wvpumr
via IFTTT

It is possible to create a page for collect information but for the input in another panel maybe?

Hello everyone, I'm trying to develop an application in which the user must enter information , for text is not a problem , but when it comes to dates, times or numbers want the screen is split into two and the bottom of the user has the option to select , also shown in the images. I have seen some examples but I have not been able to achieve adapt to my needs. depending on the type of field should change the entry control . I really appreciate any help you could give me.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O0pMer
via IFTTT

Hosting Service & Control Panel Poll

I'm doing a poll to see if a planned project would be worth it.

Q: How many would purchase B4J "hosting" service?
Q: How much would you pay for the service?

Q: If you just needed a control panel (that would allow the easy creation of B4J web apps), would you purchase one?
Q: How much would you pay for a control panel?

Thanks,
CBL.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WvprHj
via IFTTT

Msgbox and Service

Hi

I have used the Starter service to do a simple counter which calls a sub in the Main to display the number.

In the Main I have a button_click sub which shows a MsgBox.

When the Msgbox appears, the counter stops. I thought Starter service allows background task to take place and I was expecting the counter to continue even when the Msgbox appears.

How do I make the counter continues even when the msgbox appears?

I have attached a zip file.

Thanks.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1r2dEUZ
via IFTTT

Can I execute a java code like this in B4A?

Code:
  Intent intent = new Intent();
intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(
Intent.createChooser(intent, "Select Picture"), SELECT_IMAGE);


from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26AKmNX
via IFTTT

Problem with types

I have several iconbuttons and mist find the one with a certain tag. But when I want to work with it, I get
"java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams com.phillipcalvin.iconbutton.IconButton.getLayoutParams()' on a null object reference"

Why?

Code:
  Dim clickedbtn as IconButton
For Each v As View In Activity.GetAllViewsRecursive
Try
' only check iconbuttons
If v Is IconButton Then
t=v.Tag
Log...
Problem with types

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1r2dzk2
via IFTTT

updpacket not received at specified port...bug?

I have a UDPsocket initialized on port 56000, I send a udpPacket initialized with port=56142. Wireshark confirms that the srcport=56000 and dstport=56142 as expected. The receiving end has UDPsockets on 56000 and 56142. The packet is received on the 56000 socket, not the 56142. Is this a bug, or a user error?

I'm using jnetwork v1.2

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26AKiOc
via IFTTT

prefecences activity with list with images

What is the best way to begin implement?

Thank you for ideas.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1r2duN7
via IFTTT

Add ContextMenu to ImageView

I´ve seen in Internal Designer, that ImageView has not the property ContextMenu, then i need to add this by code with ContextMenu and Menuitem objects, but ....

How to add menuitems to a menuitems to create cascading context menu??
How to set the menuitem selected (checked) or not?
How to add separators?
How to set shotrcuts?


Is possible to create a ContextMenu from Json string by code like Internal Designer??

Thanks in advance

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1qYCAfV
via IFTTT

switch Case como

Hola a todos, quería saber como se utiliza el switch Case en B4A, o es que en este lenguaje no existe el Switch?
Gracias de ante mano

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/26AKgFR
via IFTTT

[chargeable] MSMySQL - Yet another MySQL-Library (but a FAST one :-))

This Library can be used to connect your Device to a MySQL database. The Library use a direct connection to the MySQL databaseserver.

Requisites: The Database must be accessible from "outside"
DisAdvantages: Due to the app needs the Databasecredentials (including username and password). There Credentials must be included in your App. I suggest using this Library only for private or company intern use.


MSMySQL
Version:
1.06

  • MySQL
    Events:
    • ...

[chargeable] MSMySQL - Yet another MySQL-Library (but a FAST one :))

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1OnqPrY
via IFTTT

Wrapper erstellen (GitHub)

Hallo,
da ich mich mit erstellen von Library bzw. Wrapper nicht auskenne wollte ich mal Fragen ob mir jemand wo es kann 2 erstellen würde?

Ich weiß eigentlich gehört dies in Job Offers aber da weiß ich nicht ob einer wo Deutsch kann reinschaut.

Die erste wäre http://ift.tt/1rQDPrz
Die zweite wäre http://ift.tt/1UlzVsA

Ich würde die mühe als Spende entschädigen.

Gruß

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24p3qfO
via IFTTT

Correct way to stop / unload module

i'm having a lote of problem with functions in diferent modules.
how can a unload / stop module.

activity finish is not working.

regards,

Victor

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UlzVbX
via IFTTT

[RESOLVED] Appodeal Ads / incompatibility some library

Are some days that i try to solve with the support Appodeal ( very disponible ) some problem "compatibility" with some librarys B4A.
If library Appodeal work "alone" without another specific library ( that we all utilize ) all work without problem. But if you add some library have problem in compilation.
1. Problem with MSMaterialDrawer: Resolved. In Appodeal_xx.jar delete folder "android".
2. Problem with HttUtils2 + okHttp: Problem Pending ( support Appodeal working progress ). If i have...

[RESOLVED] Appodeal Ads / incompatibility some library

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1TOuvTK
via IFTTT

B4R beta is available for download!

I'm happy to release the first beta version of B4R :)

B4R is a new development tool for Arduino boards.
B4R is 100% free. The libraries are open source (MIT license).

Like all other B4X tools, B4R creates regular, native programs.
As the Arduino is a microcontroller and not a full computer it has more restrictions compared to the other B4X platforms.

Installation is simple:

Download and install B4R: http://ift.tt/24p3k82...

B4R beta is available for download!

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UlzU7T
via IFTTT

ANR and block statistic

I have 1500 users from whom I receive constant:
1 ANR /day
1 block/day
These values I get from statistics report not detailed reports , I have no data, or details from users .


Should I do something to modify this stat ?
Are you haveing apps with more than 1000 active users without having ANR or crashes ?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1NFyCU0
via IFTTT

Wettbewerbsrechtlicher Unterlassungsanspruch

Hallo Jungs,

ich habe heute ein Brief von ein Rechtsanwalt bekommen mit ein "Wettbewerbsrechtlicher Unterlassungsanspruch" von der Firma Chronocycle GmbH.

Die Firma hat nur eine App in Google-Play und diese App(ToDo-Manager) hat absolut nichts mit meine App "Speedpilt-Pro" gemeinsam.
Deshalb kann ich nicht verstehen wo ein Wettbewerb sein soll.
Meine Frage: was kann/soll ich tun, ein Rechtsanwalt fragen oder alles liegen lassen?

Es geht erstmal um 480,20 Euro. :(...

Wettbewerbsrechtlicher Unterlassungsanspruch

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1SOT3gc
via IFTTT

TabStripViewPager - Better ViewPager



This library is based on the following open source project: http://ift.tt/15256Bb
License: http://ift.tt/jtTJvY

It is an alternative to StdViewPager. It is simpler to use and looks better.
It is implemented as a custom view. It requires B4A v5.8+.

It is very simple to add a TabStrip to your app.

Add the TabStrip with the visual designer and configure it:...

TabStripViewPager - Better ViewPager

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1oCFm9A
via IFTTT

blank Webview

Hello,

I create a simple layer with buttons, imageviewer with Visual Designer. The same code works with B4A but I don't now why with IOS don't work. I try WebView1.LoadURL and WebView1.LoadHtml. I can see the buttons, the image but the webviewer don't show anything.

Code:
  Private WebView1 As WebView

Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize(
"Vista_web")
Page1.Title =
"Lectura"

Page1.RootPanel.LoadLayout(
"vista_web")...
blank Webview

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1NFyzHM
via IFTTT

Msgbox2 icon problem

Hi, I have a problem with icon in Msgbox2. This icon is a normal 64x64 jpeg.
In a 7" layout it is displayed correctly, but in a 10" layout it isn't visible. Why?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/23cHJNJ
via IFTTT

The path to the file when using the soft emulator

During initialization drawing or reading a text file on the emulator, I have problems. I suspect that when debugging and testing on an soft emulator, the standard DIR File.DirAssets or File.DirInternal - give errors. So I think in the code is necessary temporarily to print a different path. If I'm right do you can tell me how to describe the standard path to the files when use on the emulator. For me to use the emulator is very convenient so do not need me to discourage use of the emulator :)

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1VXsBo2
via IFTTT

Example for tab bar AND side menu

Hi
i am new to b4i and am experimenting with this fascinating tool. As far I managed to build an App with either tab bar or side menu but not both.
Does anybody have a hint or an example?

Kinde regards
David

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/23cHLVK
via IFTTT

jeudi 28 avril 2016

Error: invalid email address

Hi ALL,

just purchased B4A, got the download link, license.txt
install but getting invalid email address message.

emailed support@basic4ppc.com
no reply ....

what to do next ?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1Wtcz4q
via IFTTT