mercredi 31 août 2016

Wemos SD card shield interface...

Dear friends,
I received my Micro SD Shield from Wemos http://ift.tt/2cq3v2C
I was able to write code for analog data logging using Arduino IDE using Wemos Mini. How do we do the same in B4R? Is there such a library for interfacing shields (using SPI) to Wemos Mini (ESP8266)?
regards,

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

AppCompat - Make Material Design apps compatible with older Android versions

This library is a wrapper for the Google AppCompat v7 support library.

B4A V6.0 or later is required!

The main reason for this library is to make your apps compatible with older Android versions and to use features in old Android versions which were implemented in newer Android releases. One big advantage of this library is that you can bring Material Design to pre Lollipop Android devices.

Setting up the library

AppCompat - Make Material Design apps compatible with older Android versions

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

FirebaseAuth - Authenticate your users

This library requires B4A v6+.

It allows the users to sign in to your app with their Google account (more identity providers will be added in the future).

View attachment 44939

Like all Firebase services it is quite simple to integrate this service in your app.

1. Follow this tutorial and make sure to add the Firebase Auth manifest snippet: http://ift.tt/1Oddipj

2. This service requires that the signing key SHA1...

FirebaseAuth - Authenticate your users

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

Soundpool sound not playing on first run...

I am using the Audio Lib 1.63. And I am using Soundpool to play a quick "beep" file.

This is my code:

Code:
  pid = VoiceIt.SP.Play(StartBeep, 1, 1, 10, 0,0)  
But, intermittently, the first time I try to play a file after the app starts, it wont play, other times it will. And all subsequent attempts to play the same sound in the same app session work 100%. So it just sometimes has issues on the first attempt to play something.

So, I added some retry and diag code:

Code:
  ...  
Soundpool sound not playing on first run...

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

How to limit app to only phones without a permission?

My app will indirectly send messages using an Intent to the user default SMS app. So, technically my app is not sending any SMS messages, the user's SMS app is.

But, from what I understand, by adding the SEND_SMS permission to my app, this will make sure my app is only visible to smartphone users in the Play Store (not tablets users without sms capabilities).

But having this permission, even though I am not actually using it, may make people think my app has the potential to do undesired...

How to limit app to only phones without a permission?

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

Connecting multiple clients to a ServerSocket

May i know how to connect multiple clients, having same PORT number, to a ServerSocket.
I could only get 1 client to connect at any time.
May i know what i do wrong?
Please advise. Thanks

B4A Server code

Code:
  Sub Process_Globals
Dim AStreams1 As AsyncStreams
Dim Server1 As ServerSocket
Dim Socket1 As Socket
End Sub

Sub Server1_NewConnection (Successful As Boolean, NewSocket As Socket)
If Successful Then
ToastMessageShow("Connected_Client", False)
Socket1 =...
Connecting multiple clients to a ServerSocket

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bWRkHo
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

Native Library Generator (C/C++ to B4A)

[​IMG]

Native Library Generator 2.92
Written in B4J, this program allows you to write or import C/C++ code and have all the functions compiled into a native (.so) library, which in turn is included in a ready-to-use B4A...

Native Library Generator (C/C++ to B4A)

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

Block phones or raspberry pi connected to my wifi hotspot

Is it possible to programatically block a device from connecting to my wifi Hotspot using b4A?
- On the Application level (b4a), is it possible? Thanks

Background: was tasked to have multiple Raspberry PI connected to a Mobile Phone (TCP Server, with hotspot turned ON). Hope to programmatically reject or accept wifi connection from the clients (Pi).

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

CustomView/TabStrip

I like what I have been able to do with CustomView/TabStrip. I just need to be able to make each page background a different color. I currently have five pages. I can't seem to get or understand why this isn't working. I would like add 4 buttons to each page also. My text scrolls great. I am still trying to make a HELP menu.

clv1.BackgroundColor(Colors.Red)
clv1.DefaultTextBackgroundColor=Colors.Cyan
Neither one of these seen to work??

Each 'TabStrip1.LoadLayout("Page","-PPS TOOL...

CustomView/TabStrip

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

[ABMaterial] Firebase Auth for Users in 1.20

Just like Erel has added the Firebase Auth Service to B4A (http://ift.tt/1VUP30Y) you can also use it to login with your ABMaterial (1.20) WebApp.

For WebApps, the procedure is quite simple.

Setup:

1. In the Firebase console create a new Project: http://ift.tt/1OK0qH9
[​IMG]

2. Click 'Add Firebase to your web app'.

3. You get all the keys...

[ABMaterial] Firebase Auth for Users in 1.20

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

RDC problem

i'm a b4a beginners and i'm trying to make an android application that connect to mysql database.
when i compile/debug, i got this error :

B4A version: 6.00
Parsing code. (0.01s)
Compiling code. (0.29s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Generating R file. (3.29s)
Compiling debugger engine code. (3.93s)
Compiling generated Java code. (3.92s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added:...

RDC problem

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

Firebase, android:value="@integer/google_play_services_version" /> Error

Hi.

I followed the instructions to implement Firebase in my APP,

But in my Manifest Editor I have an Error when Compile the Proyect, in this line

Code:
  <activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
android:exported=
"false"/>
<meta-data
android:name=
"com.google.android.gms.version"
android:value=
"@integer/google_play_services_version" />
the subline with error is...

Firebase, android:value="@integer/google_play_services_version" /> Error

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

Capture complete Panel to imageview

Hi guys

i made a little code with lot of help from LucaMs (Thanks LucaMs :))

Subname: Panel Capture
Description: in this code you can capture a Panel with all his views to a imageview without saving the image and load again
Dependencies: Reflection Lib v2.40
Tags: Panel capture

Code:
  Sub Button1_Click
'capture panel to imageview
PanelCapture(Panel1,cardb2)
End Sub

'Capture Panel to imageview
Sub PanelCapture(pnl As Panel, Img2 As ImageView)

Dim Obj1, Obj2 As Reflector
Dim bmp...
Capture complete Panel to imageview

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

SEND TEXT --> DISPLAY BLUETOOTH

Hi all.
How can i send a string to a bluetooth device (device type of the car, advertising billboards, etc) that simply displays the string sent ??

Example i have this string: "Hi today is xx/yy/zzzz, you have discount XX%".
This message should be displayed on the device.
Thank you
Marco

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

Is this crash a B4A bug or the DynamicGrid bug?

In this post:

http://ift.tt/2bqppNA

A critical crash occurs and this is the line from the log:

java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.BA com.omnisoft.voiceit.main.activityBA' on a null object reference

Since the log line doesn't mention the dynamic grid, I was wondering if this error is "possibly' cause by something in B4A, or is it definitely caused by the grid I...

Is this crash a B4A bug or the DynamicGrid bug?

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

Base64 and Encryption library

Here's a library that, for the moment, can perform Base64 encoding and decoding and symmetric algorithm encryption and decryption. Tested symmetric algorithms are DES, Triple DES and AES (Rijndael).

As the Java encryption rountines are all byte array oriented you will need my ByteConverter library to run the demo.

EDIT :- Version 1.1 posted. Asymmetric algorithms, Signing and...

Base64 and Encryption library

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

Developer Console / Firebase compatible deobfuscation files

Now that both the Google Play Developer Console & Firebase allow the uploading of mapping files for obfuscated apk's, it would be great if B4A could export the mapping files in a format that was compatible. This would save a lot of time when looking at crashes that have been reported on these platforms. I thought I might be able to change the format myself, however I can't find any description of the format that the developer console & Firebase are expecting.

- Colin.

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

Tasty Toast

A wrap for this Github project.

View attachment 46627

View attachment 46622

View attachment 46623

View attachment 46624

View attachment 46625

View attachment 46626

Sample Code:

Code:
  #Region  Project Attributes
#ApplicationLabel: TastyToast - Wrapped by Johan Schoeman
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait....
Tasty Toast

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

ShapeImageView

A wrapper for this GitHub library http://ift.tt/2bOXnzb




[​IMG]


ShapeImageView
Author:
SMM
Version: 0.01

  • ShapeImageView
    Events:
    • click
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • Initialize...

ShapeImageView

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

1712 MaterialIcons in the Color you need

This is a wrapper for this github project.

Requirement: B4A 6+

You can see a overview of Icons here: http://ift.tt/1e4VvPC

MaterialIcons
Author:
DonManfred (wrapper)
Version: 1.5 (1712 Icons)

  • MaterialDrawableBuilder
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As...

1712 MaterialIcons in the Color you need

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

TextViewExpandableAnimation

A wrapper with some modifications to this GitHub project http://ift.tt/2bHyODP

Expandable TextView With Smooth Transition Animation

[​IMG]


NOTE
:

Code:
  @DependsOn(values={"android-support-v4"})  
TextViewExpandableAnimation
Author:
SMM
Version: 0.01
  • TextViewExpandableAnimation
    Events:
    ...

TextViewExpandableAnimation

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

StyleImageView

A wrapper for this project http://ift.tt/2c1RZGf

[​IMG]


Add styles and filters to ImageViews ... did not wrap the whole library .
Not fully tested :D

StyleImageView
Author:
SMM
Version: 0.01

  • StyleImageView
    Events:
    • click
    Fields:
    • MODE_BLACK_AND_WHITE As...

StyleImageView

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

Designer window on extended desktop - bug or driver issue?

- Summary:
When opening the designer window on the extended desktop , the designer window does not open correctly unless it is full screen. If not full screen, the window contains garbage. On another Dell laptop with smaller displays, the problem does not appear. If the window is moved to the primary display, it looks normal. If the designer window is maximized, it looks normal.
- Reproduction Steps:
The laptop is a Dell Latitude E7470 running Windows 7, 64 bit Enterprise,...

Designer window on extended desktop - bug or driver issue?

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

[Solved] What's the latest version of b4j?

Found it! at the bottom of the page.

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

ABMaterial.Show Part 1

What is ABMaterial.Show?

Eversince I discovered it, my curiosity grew about ABMaterial.

ABMaterial.Show intends to be a GUI RAD tool to create the UI designs of your web apps, you can then write the code for the rest.

I have been checking the code structure out in terms of how to build the apps. This seemed mostly repetitive and thus I thought of doing some RAD helper for it.

Part 1 of...

ABMaterial.Show Part 1

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

TreeviewC9 fails in the tree.bas file line 70

The TreeviewC9 example fails in the Tree.bas file line 70 - (If maxright > treeview.Panel.Width Then treeview.Panel.Width = maxright) - Java.lang.NullPointerException! Attempt to read from field"int android.view.ViewGroup$LayoutParams.width" on a null object reference.

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

Basic 3D Engine (Unfinished)

Once upon a time, I tried to build a 3D engine from scratch.

The moment I realized I needed to dive into some higher mathematics in order to perform proper rotations, I kinda walked away and left it unfinished.

Example 1: Opens and displays a 3D .obj file.
Example 2: A corridor of rotating cubes.
Example 3: All of the above.

Use drag-and-drop to move the camera.

Nevertheless, I might pick it up again someday, who knows... :)

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

folder in File.DirAssets

hi

can i add folders to File.DirAssets and read from them?

this seems not to work

Code:
  kidstr = "kid1\run\"
Log(File.Exists(File.DirAssets,kidstr))
For i = 0 To run_anim.Length -1
run_anim(i).Initialize(
File.DirAssets, kidstr & "run" & (i+1) & ".png")
Next
thanx. ilan

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

WalkieTalkie App and Server

Hello i will whrite a walkie talkie server in java and a communication app, but the communication quali is very bad i used Erels WalkieTalkie Example and i whrite a java server.. in the attach.

The ip adress of the running java server is: 89.163.255.87

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

CameraEX Zoom problem

Running the CameraEx example, I am trying to get the Zoom function working with a seekbar:

Code:
  Sub sbZoom_ValueChanged (Value As Int, UserChanged As Boolean)
If UserChanged = False Or camEx.IsZoomSupported = False Then Return
camEx.Zoom = Value /
100 * camEx.GetMaxZoom
camEx.CommitParameters
Log("Zoom Supported: " & camEx.IsZoomSupported)
Log("Zoom Max :" & camEx.GetMaxZoom)
Log("Zoom SB Value : " & Value)
Log("Zoom Value : " & camEx.Zoom)
End Sub
However, the...

CameraEX Zoom problem

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

Seekbar with start and finish

Been searching the forum but couldn't find a way (or an existing seekbar) which permits me to set a start and finish point.

Any ideas?

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

GoogleMap panel resize

I have moved to the new tutorial http://ift.tt/1TyudlH
Mapfragment1 is inside a panel and has horizontal and vertical anchor to BOTH so it fill the entire panel (in the designer)
I can in the code move the panel, but if I just resize it, the map does not resize.
Where I'm wrong ?

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

communication from php page to b4a app?

hi,
i want a php page on a web server (joint account) to notify a b4j program running locally, or if possible to notify a b4a app.
how is the best way to do this ? register a url in web database, and the php page opens a socket with this url ?
thanks.

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

DesignSupport - Additional Material Design components

This library is a wrapper to some of the objects of Googles Design Support library.

Requirements:

This library requires B4A 6.0 or above.
AppCompat 3.20 or above is recommended. (It will work with older versions but the examples are...

DesignSupport - Additional Material Design components

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

OkHttp - Ability to specify separate JobDone functions for separate jobs

It will be great to be able to specify JobDone function as an argument while initialising, so that code for different types of jobs can be kept separate.

Also, if a 'tag' can be passed as an argument, which is passed as it is to the JobDone function (for context).

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

aiuto per stampa

ciao a tutti, ho iniziato da poco a programmare in b4a. ho fatto una app per creare bolle di vendita, funziona tutto ma non riesco a stampare. Utilizzo un terminale pos PDA3505 con stampante termica incorporata (presumo seriale) ma non riesco in nessun modo a stampare, ne dalla app, ne tentando di stampare un file .txt che contiene i dati da stampare.
Mi piacerebbe stampare direttamente dalla mia app ma mi accontenterei anche di stampare il file .txt con un'altra app...
Qualsiasi soluzione o...

aiuto per stampa

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

How to distribute tab headers evenly in TabStripViewPager?

Hello All,

Apologies if this might be something quite obvious but I'm unable to figure it out.

I'm using a TabStripViewPager but the tabs appear to be left aligned at the top of the TSVP.

Please have a look at the Tabs in WhatsApp - they're all centered whereas look at the tabs in the screenshot below. How do I make the tabs take up an even amount of space on the tab strip?

Many thanks.
Haris.
View attachment 44475

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

TabStripViewPager - Better ViewPager!

How to change the width* of Indicator! I mean how to make it wide or narrow?Just the width or height!
The way I tried to do it is :
Dim jo As JavaObject = tabstrip
jo.RunMethod("setIndicatorHeight", Array(?????))
Will that work or not?

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

php and b4a socket programing

Hi i have a simple question
Can we comunicate with php over socket connection?and if is possible plz explain a bit for me about that(how is possible to handle events or which type of data is supported)
Thanx

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

Exit PreferenceActivity

Is there any way to exit preference activity without pressing Back Button?
I work with applications without navigation bar.

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

What is "_vvvvvvvvvvvvvvvvvvvvvvvvvvv2" event?

I am using Firebase Analytics. For my app, it has logged a crash as shown below.

But I can't figure out what the event/log line with the "_vvvvvvvvvvvvvvvvvvvvvvvvvvv2" means. Does anyone have an idea?

Exception java.io.IOException: setDataSourceFD failed.: status=0x80000000
android.media.MediaPlayer.setDataSource (MediaPlayer.java)
android.media.MediaPlayer.setDataSource (MediaPlayer.java:1269)
android.media.MediaPlayer.setDataSource (MediaPlayer.java:1231)...

What is "_vvvvvvvvvvvvvvvvvvvvvvvvvvv2" event?

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

Grid/Table and ListView Library

This library allows to create easely grids/tables and
from version 2.50
list views too!
Enjoy!
:)

The original post has been moved
http://ift.tt/1ibhM0k"

Version 2.50 beta
- Added support for multiline rows

Version 2.51 beta
- Bug fixes

Version 2.52 beta
- Added Typeface support for...

Grid/Table and ListView Library

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

HTML email not sending correclty

Hi,

I am trying to send a HTML email using B4J.

I have worked out how to send the email etc. but for some reason it's not displaying the email correctly.

I have a HTML page (demo.html) that I created using notepad and then I am opening that file in B4J and loading it into a string.

I then am converting variables in that file before sending it.

Here is my B4J Code I am using:

Code:
  Sub SendEmail(ToEmail As String, Subject As String, body As String)

SMTP.To.Add(ToEmail)...
HTML email not sending correclty

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

View Event Triggering after parent activity paused

This is a continuation of posts discussed here:

http://ift.tt/2c0rGAd

http://ift.tt/2bIY24x

I also just got the below error on line 344 (see log at end of this post) on the "End Sub" of the "Activity_Paused":

Code:
  341 Sub Activity_Pause (UserClosed As Boolean)
342
343
344 End Sub
Since all these errors...

View Event Triggering after parent activity paused

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

Voice (recording) Visualizer

It (partly) wraps this Github project. Don't let the name fool you - it is a visualizer driven by input from the device's microphone.

Posting:
1. B4A libraries
2. The Java source code - change it to your liking
3. B4A project demonstrating it.

View attachment 40209

Sample Code:

Code:
  #Region  Project Attributes
#ApplicationLabel: b4aVoiceRecordingVisualizer
#VersionCode: 1
#VersionName:...
Voice (recording) Visualizer

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

Subscribe to B4J library updates

Subscribe to this thread to be notified of B4J library updates.

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

(R) TM and the likes

Hello,

I named my binary puzzle game like the one that appeared in the belgian newspaper that I get each day.

Binairo.

The guy behind that company that sells puzzles to the newspaper sent me a mail today claiming that he owns the Binairo word and that I should take actions before the end of the month or legal action would be taken. :)

As I predicted this might happen I looked up the registered name a few months ago.

As I'm not a legal expert but know some english it still appears to me...

(R) TM and the likes

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

jGauges

[​IMG]

This is a wrapper for Medusa gauges library: http://ift.tt/1Kjj4y7
License: http://ift.tt/2bRDuH5

It includes many types of gauges. The gauges are implemented as custom views.

The gauges can be further customized. You can use JavaObject to access the various methods (see the source code of Gauge.java:...

jGauges

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

Camera library v2.20

The camera library was updated.
It now also supports the front camera.

There were several internal improvements required for the CameraEx class.

Installation instructions:
- Unzip the attached file and copy both files to the internal libraries folder.

Edit:
V2.20 is attached. Adds Camera.AutoFocus and...

Camera library v2.20

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

JRDC2 and sqlite-jdbc-3.7.2.jar



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

afollestad MaterialDialogs reborn

This is a wrap for this github project. It is a completely new written wrap and it is similar to this library written by @tchart

The advantage of this wrap is that you, the developer, now have much less work to implement the material dialogs into your app. Only copy four files to additional libs folder, no need to add...

afollestad MaterialDialogs reborn

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

JRDC2 and sqlite-jdbc-3.7.2.jar

a greeting to all
I saw that there are updates to
sqlite-jdbc-3.7.2.jar
example
sqlite-jdbc-3.8.7.jar
it is advisable to switch to this?
Thank you

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

Dove poter mettere le immagini da utilizzare per un gioco

Ciao ragazzi, ho un piccolo ma grande problema, ovvero sto progettando un videogioco basato su immagini ma queste sarebbero davvero troppe da salvare sul dispositivo dell'utente, sarebbero più di 500 e non penso sia il caso, quindi vi chiedo gentilmente se potreste darmi qualche idea su come procedere. Grazie mille :D

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

B4J, framework ABMaterial, come usarla.

Sto cercando di testare questa libreria per delle web-app.

Dato per assodato che si apre il progetto come NON-UI, il designer non è disponibile per costruire il layout.

Leggendo la documentazione si afferma che "but can be programmed with the powerful free tool from Anywhere Software without any knowledge of HTML or CSS".

E' qui che mi sono arenato. Dicono che non serve sapere nulla di Html e Css.
Dunque come si crea la parte 'presentation' "without any knowledge of HTML or CSS"?

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

[B4X] CloudKVS - synchronized key / value store

CloudKVS solves a difficult and common problem. The user needs to work with online data, however as this is a mobile app we cannot assume that the device will always be connected to the remote server.

[​IMG]

With CloudKVS the app always works with a local database. If the device can connect to the remote server then the local store will be synchronized with the online store.

The store is implemented as a key/value...

[B4X] CloudKVS - synchronized key / value store

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

Parsing package occurred problem -WiFi

Hello.
I have a problem during the installation of B4A the Wifi. Bridge Wifi works and is online. In Debug mode is released when you try to install the compiled application I have a bug on your phone:
"Parsing package occurred problem"

After ABD USB I do not have this problem, which could be the reason? The phone operates under the CM13.

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

Download files to a folder and zip

Hello,

Basicly I want my app to download 10 txt files and zip them all. My question is where should i download them ? When i use httputils to download files , where do they automaticly downloaded ? If they are downloaded to file.dirdcouments or file.dirtmp , when i zip the whole folder with iarchiver , i will be also zipping unwanted files in those folders. So is it possible to create a folder under on of these syustem folders like : "myproject" , download the files , zip the folder and...

Download files to a folder and zip

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

mardi 30 août 2016

Transfer data back and forth from Multiple Tablets

Hi everyone, after a bit of advice if I may?

I have developed an app, my first, for a company that will have 160-200 tablets out in the field collecting data and looking to send it back in batches to base, where it will be processed and put into a main SQL database developed system.

I am new to Android, so it has been quite a steep learning curve, but basically I have a static data file which holds all the info on the clients, addresses and so forth, and a data file which holds the user...

Transfer data back and forth from Multiple Tablets

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

GooglePlayService troubles

My app uses Googlemap and needs GooglePlayServices present to run.
One year ago or so I found some new devices does not have GooglePlayServices and then discovered I needed to install Google+ and all was working then.
After some months I found some new devices with Google+ installed but GooglePlayServices not present, then I discovered I needed to update Google+ and all was working then.
Again after some months I found some new devices with Google+ installed and updated but but...

GooglePlayService troubles

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

B4J on headless Pi3 in terminal window

I have a B4J app which controls a series of motors. The control is via a B4A app and bluetooth on a tablet.
I am still in the debug stage. Using bridge on both systems I can see the log as expected. Now I am one stage further and have the B4J app installed in the menu on the RPi. If I start the app, it will run in a terminal window and I can see the outputs without bridge. So far so good.

I need the B4J app to start at boot and have added it to rc.local. The only problem is that the...

B4J on headless Pi3 in terminal window

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

Wemos SD card shield interface...

Dear friends,
I received my Micro SD Shield from Wemos http://ift.tt/2cq3v2C
I was able to write code for analog data logging using Arduino IDE using Wemos Mini. How do we do the same in B4R? Is there such a library for interfacing shields (using SPI) to Wemos Mini (ESP8266)?
regards,

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

b4j posting file using httpUtils erroring

This is not a question for b4j actually. The code I have worked great until 2 weeks ago. In fact it still works when I try to upload very small files.
I'm using httpUtils, to postFile to my server (which is not maintained by me).
If I send a, say 5kb file, everything runs ok.
If I send a file of 800kb, I get this:

INFO: I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: socket write error

Again, everything worked great until two weeks...

b4j posting file using httpUtils erroring

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

Any interest in Open Spherical Camera?

Are there any members interested in using the Open Spherical Camera API?

I've had my Ricoh Theta S for a couple of months now and want to be able to remotely take a picture using a bluetooth controller.
I can then keep my mobile safely in my pocket while out and about taking panoramas.
The...

Any interest in Open Spherical Camera?

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

MteEval - B4X Expression Compiler and Eval Library (Open Source)

B4X Expression Compiler and Eval Library

MteEval is a library for compiling and evaluating expressions at runtime. Expressions are converted to bytecode and then executed on demand with a simple virtual machine.

There are three editions of the library: Android (B4A), iOS (B4i), and Java (B4J).

Application

The ability to create and evaluate expressions at runtime is a powerful tool, allowing calculations and program flow to be customized after installation...

MteEval - B4X Expression Compiler and Eval Library (Open Source)

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

Similar application like UBER

Greetings, i wanted to know which parts would need BA4 and b4j to develop a similar application to UBER , for a service local taxis, thanks.

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

Text in Statusbar

Hallo!

Ist es möglich Text in der Statusbar auszugeben? Z.B. die aktuelle Temperatur oder GPS Koordinaten.

mfg pjo12345

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

JSON to PHP Server

Can anyone give me an example of how to send JSON Array to PHP Server?
I have data from android sqlite and I want to send the data to Mysql database.

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

B4A chat app

This is a dirt simple app that connects to the live b4a chat channel. Source project is also attached. More than anything else, it's just a way to remind folks that live help is available for questions or if you want to help others, or just hang out on the chat server.

[​IMG]

--- Jem

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

[B4A] [Tutorial] Módulos de Servicio

Hola a todos

Después de ver que hay bastante foreros interesados en el tema, e incluso entolium me pidio hacer un tutorial sobre esto, abro este tutorial para intentar aclarar los conceptos mas generales de los Módulos de Servicios.

Si eres nuevo en B4A te recomiendo que antes leas la "Guia rápida del Ciclo de Vida de Android."...

[B4A] [Tutorial] Módulos de Servicio

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

Soundpool sound not playing on first run...

I am using the Audio Lib 1.63. And I am using Soundpool to play a quick "beep" file.

This is my code:

Code:
  pid = VoiceIt.SP.Play(StartBeep, 1, 1, 10, 0,0)  
But, intermittently, the first time I try to play a file after the app starts, it wont play, other times it will. And all subsequent attempts to play the same sound in the same app session work 100%. So it just sometimes has issues on the first attempt to play something.

So, I added some retry and diag code:

Code:
  ...  
Soundpool sound not playing on first run...

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

Wifi connect library (WEP,WPA,Open)

I am still missing library which enables me to connect to any type of secured wifi. So I made this code, but unfortunately due my lack of Java knowledge (actually its Eclipse which gives me headache) I am unable to build it.

Wifi connect library (WEP,WPA,Open)

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

How can you exclude code from debug mode?

I have some blocks of code that are too large for debug mode, as such I haven't ran debug mode in over a year. Is there a way to get debug mode to just skip them without commenting/uncommenting them on demand?

EDIT: I tried commenting out the offending code and got

How can you exclude code from debug mode?

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

Beginner problem with Files Tab

I went through the tutorial and created both programs there successfully. So I started on a new one from scratch. I created two different layouts with Designer and saved each one to a different filename ('Main' and 'EditCard'). I see those two files in the Files folder (each with extension .bal).

When I open the project after saving it, I am told it cannot create these two files because they already exist. I'm confused.

I see them in the Files Tab and see them in the Files folder.

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

transmitter and receiver

Hi,

I have these and I want to write a program to send data from transmitter to receiver

@Erel Can you help me ?

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

CustomView/TabStrip

I like what I have been able to do with CustomView/TabStrip. I just need to be able to make each page background a different color. I currently have five pages. I can't seem to get or understand why this isn't working. I would like add 4 buttons to each page also. My text scrolls great. I am still trying to make a HELP menu.

clv1.BackgroundColor(Colors.Red)
clv1.DefaultTextBackgroundColor=Colors.Cyan
Neither one of these seen to work??

Each 'TabStrip1.LoadLayout("Page","-PPS TOOL...

CustomView/TabStrip

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

how to make a game via canvas?

hi

i tried to make a game just using a canvas but it seems like it is impossible.
when i draw 2 bitmaps to the canvas i already get a fps of 25-27
(bitmaps size are very low! less then 1kb)

drawing 10 bitmaps will get me 5 fps (RELEASE MODE)

is there a way to turn on hardware acceleration?

i really would like to understand how he did it: http://ift.tt/2bTX5Wn

such a smooth game only via canvas?? how??

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

Simple question about recycle imageview

Hi all.
I tried a few things about recycling here in the forum but nothing very clear and explained.

what is the right way to use multiple images in a ImageView?

for example
i want to show a imageview where i will load around 50+ images with size 600x600 or more.

1 - the recycle its the correct function on this case?

What should I do to load all those images without memory crash or any other type of crash?

as I think it is
- Open app
- Show image on imageview
- Use recycle to...

Simple question about recycle imageview

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

Server.GetMyIP return the address of my VirtualBox network adapter

I try to implement a simple ServerSocket but when I ask for the IP address, it return the address of my VirtualBox Ethernet adapter instead of my real network IP address. How can I force it to use a particular Ethernet adapter?

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

Translation ENG -> x (excel file included)

hallo b4x community

i have a small job for you guys.
i would like to translate my game to some languages like:

Russian, français, español, Japanese, Korean, Italian, Brazilian Portuguese, Turkish, العربية , 简体中文(大陆中国), 繁体中文(台港澳)

(Any other language is also welcome)

excel file is included, please tell me your price before you start translating. lot of words are repeating them self but still there is some work to do :)

thanx, ilan...

Translation ENG -> x (excel file included)

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

DateUtils.PeriodBetween help please for a countdown timer?

Hi

I am trying to count down to a particular future date. For example, today is August 30, 2016 at 17:00, my future date is October 1, 2016 at 15:00

I want to do a timer with a countdown every second of how many days, hours, minutes and seconds from today i.e. August 30, 29016 until October 1, 2016

This is what I have done currently.

Code:
  Dim speriod as period
speriod = DateUtils.PeriodBetween(sdatetimeEnd,
DateTime.now)
log(speriod)
and the output is...

Code:
  [Days=20,...  
DateUtils.PeriodBetween help please for a countdown timer?

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

Help, i cant get my head around this

I have some code which pulls in data from a web server and this is in binary so i need to parse it manually.

So for stage 1 I have made up an array of ints to simulate the data

Dim testCmd = Array As Int ( 0x41, 0x01, 0x00, 0x0a, 0x42, 0x02, 0x22, 0x22, 0x0a )

Here is the walk code
Sub ProcessInputFromServer2( inp() As Int , length As Int) As Int
Dim offset As Int

offset = 0
Do While length > 0
offset = offset + 3 + inp( offset + 1)
length = length - ( 3 + inp( offset +...

Help, i cant get my head around this

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

Ignore, wrong section

Sorry ignore

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

[Class] AnotherDatePicker - A simple "web style" date picker

AnotherDatePicker is an inline date picker:

[​IMG]

The advantage of this class over the built-in dialog (DateDialog from the Dialogs library) is that you can easily customize it as needed.

Most of the layout is created with the visual designer and designer script.

ADP.GetDate returns the selected date.

The months names and days names are based on the device locale.

In order to use this class in your code you should...

[Class] AnotherDatePicker - A simple "web style" date picker

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

[Class] Flexible Table

This thread will be used by Erel, Melamoud and myself to discuss / post new releases of the Table class.

The table class is a flexible UI component that enable scrollable table like UI, with sortable columns, multiselect rows etc

the table is very efficient, maintaining labels only for visible rows

old thread with details : http://ift.tt/1gvcZWF

The class...

[Class] Flexible Table

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

237POS

237POS is a Point of Sale app that has a user friendly interface that everyone can use without difficulty. The POS can be used on , Android tablets or ChromeBooks Say goodbye to ugly, expensive, outdated POS systems and enjoy the ZAR POS web interface designed for the modern retailer.Beta testers still needed.Thanks to those who have already tested this app.Espaicially @Peter Simpson ....

237POS

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

Help, i cant get my head around this

I have some code which pulls in data from a web server and this is in binary so i need to parse it manually.

So for stage 1 I have made up an array of ints to simulate the data

Dim testCmd = Array As Int ( 0x41, 0x01, 0x00, 0x0a, 0x42, 0x02, 0x22, 0x22, 0x0a )

Here is the walk code
Sub ProcessInputFromServer2( inp() As Int , length As Int) As Int
Dim offset As Int

offset = 0
Do While length > 0
offset = offset + 3 + inp( offset + 1)
length = length - ( 3 + inp( offset +...

Help, i cant get my head around this

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

Error description: Input string was not in a correct format.

Hello,
Please Help me to fix this error, please see attached image
View attachment 47409

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

Image(url)

Would it be possible to have image from url added ?
equivalent to java

Code:
  public static Image ImageFromURL(String url){
return new Image(url);
}
I have coded it in the #if java block, but it's a pain to have to use runmethod(...) etc to access it.
So it could become
Code:
  Dim img As Image
img = ImageFromURL(theURL)
As I am currently trying
Code:
  img.Initialize("https://...","")  
but this changes the slashes and you get a file not found error when the...

Image(url)

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

libphonenumber/

Hi Erel,
I am also creating a library for B4A based in http://ift.tt/1cFwCBH

Here is my code:

Code:
  package com.firpas.fmphonevalidator;
import anywheresoftware.b4a.BA.Author;
import anywheresoftware.b4a.BA.DependsOn;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
import com.google.i18n.phonenumbers.*;
import...
libphonenumber/

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

Whats the accepted policy on making apps available in other countries?

I am developing an app that is in English.

If the app becomes profitable, then I can justify the extra effort to do translations for other languages.

But, is it still OK to release my app in the Play Store to ALL countries initially, or should I just limit releasing my app to just certain countries because the app is just in English for now? (And if I should only release just to certain countries for English, what countries would that be?)

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

JpegUtils library gives access to Exif data

This library contains an ExifData object that allows you to read and write the EXIF data in a Jpeg file. It is a very thin wrapper over the Android ExifInterface class.

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

java.lang.NullPointerException: null receiver

What this error mean ?

Line 192 is the latest line "End Sub" of
Private Sub JobDone (Job As HttpJob) in the class that downloads by OKHttputils2 built-in lib v.2.20 (not a class). B4A v.6.

Job is successful, but error in the end of the sub. And error only in DEBUG mode at first start, if to restart "running previous successful shell app" - NO ERROR ! Release looks OK, but sometimes the black screen and app is closed.
Job result is

Code:
  CallSubDelayed2(Client, "Refresh_tab", m)  
...

java.lang.NullPointerException: null receiver

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

ADB Connect to IP Address Option in Tools Menu

I'd love to see a Tools option that allows us to connect ADB via an IP address. See the following thread to see why that would be useful:

http://ift.tt/2byGx6G

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

How to record front video

hi, i need to record video from front camera. i need to start recording after a few seconds and stop recording when users press a button.

i cant find any solution and i saw there is no news from 2014...
can anyone help?

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

WebViewExtras2 version 2.20 sample codes

I can't seem to find an example on how to use the ReceivedError event of the WebViewExtras2 library.

I tried to use it to replace WebViewExtras (the old one) but I am getting a lot of errors. They seem to have different methods and ways of initializing.

Can anyone help please? An example on the following would be of great help for everyone trying to use the new WebViewExtras2 (version 2.20) library.

a. How to load a URL
b. How to check if there is error 404
c. How to execute Javascript in...

WebViewExtras2 version 2.20 sample codes

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

Basic 3D Engine (Unfinished)

Once upon a time, I tried to build a 3D engine from scratch.

The moment I realized I needed to dive into some higher mathematics in order to perform proper rotations, I kinda walked away and left it unfinished.

Example 1: Opens and displays a 3D .obj file.
Example 2: A corridor of rotating cubes.
Example 3: All of the above.

Use drag-and-drop to move the camera.

Nevertheless, I might pick it up again someday, who knows... :)

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

Rect class should have Width and Height properties

The current Rect class has the properties:
Bottom, CenterX, CenterY, Left, Right, Top

I'd like to see Width and Height properties added so if you set Width, it will automatically adjust the Right property wrt Left property. If you read the Width it will return Right-Left. Similar for Height. So it does not have to store Width or Height, but when writing to Width/Height it will adjust the current Right/Bottom properties. When it reads from Width/Height it will just calculate the value from...

Rect class should have Width and Height properties

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

[class] jRDC2 - B4J implementation of RDC (Remote Database Connector)

RDC is a middleware server that makes it simple to safely connect clients and SQL database servers (of any type).

The first implementation of RDC server was implemented in Java: http://ift.tt/1OwEjUj
If you are not familiar with RDC then go over that tutorial.

jRDC was later rewritten as an implementation of the...

[class] jRDC2 - B4J implementation of RDC (Remote Database Connector)

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

About the java runtime...

I recently had a talk on the java runtime with someone. I was just wondering if I gave the right advice so that they don't have Adware installed with it (both on Mac and Windows!).

1. Use the offline versions, not the online ones: http://ift.tt/1h8zgnv
2. install the installer with the param 'SPONSORS=0'
3. Disable the setting 'suppress sponsor offers when installing or updating java' in the settings panel:...

About the java runtime...

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

Automatic backup of source files to zip after each compilation with Custom Build Action and 7zip

Here' s a batch file that will back up all your source files and zip it with 7zip with the datetime stamp. Only external prerequisite is 7zip which is free.

It will serve as a simple automatic version control and backup to cloud if your source files are on Dropbox/ Gdrive / Skydrive.

  1. Copy attached batch file to your computer.
  2. Add the following line to your project

    #CustomBuildAction: 4,Drive:\PathToYourBatchFile\Auto7Zip4B4A.cmd, ..\ ..\BackupFolder\


  3. Compile your...

Automatic backup of source files to zip after each compilation with Custom Build Action and 7zip

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

NFC - Reading and Writing

NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags.

The NFC library provides three features:
- Reading Ndef tags based intent filters: Reading NDEF data from NFC tags
- Sending data between two devices (Android Beam): http://ift.tt/1nwzf5O
- Low level access to the tag.

This tutorial explains how you can use the low...

NFC - Reading and Writing

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

CSV to SQlite accented characters

Hello everybody. I import some csv data into a sqlite db with this code.

Code:
  sub readcsv
Dim Reader As TextReader
Reader.Initialize(
File.OpenInput(Main.PthIO, nomefilelocale))
Dim line As String
line = Reader.ReadLine
'nella prima linea c'è l'intestazione
line = Reader.ReadLine
Do While line <> Null
DoEvents
Dim sColumn() As String
sColumn =
Regex.Split(";",...
CSV to SQlite accented characters

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

Writing to internal storage

Hi,

I'm having trouble writing to my samsung 10.1 tablet, internally.
Something like :
Writer.Initialize(File.OpenOutput(File.DirInternal, "Test.txt" , False))...

Have tested all file.* combinations etc., code runs fine, but the test.txt shows up nowhere.
Upon examination it always seems to want to write to "mnt/SD-card.... "
I don't want that, I'd like to select a dir within my tablet that is NOT an SD card.
What don't I understand ?

thx,
Paul

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

MaterialDateTimePicker

this is a wrap for this github project.

I´m VERY PROUD to present you this Date- and TimePicker Dialog library! I have tried to wrap about 20 different Date and TimePickers in the past 1,5 years. ALL UNSuccessfully. :-(

But this one i got working :D



MaterialDateTimePicker
Author:
DonManfred (wrapper)
Version: 1.5

  • Calendar
    Fields:
    ...

MaterialDateTimePicker

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

ESP8266 Internet Clock

My first B4R project using WeMos D1 mini (ESP8266), 8x8 LED matrix, buzzer and a touch switch. It's work together with my old B4J raspberry pi iClock project as a companion device. The raspberry pi clock located in my living room and this ESP8266 located in my bed room. (or any other remote location with WIFI connected)

This device communicate with the raspberry using MQTT to get the time info as ESP8266 don't have real time clock, it have 3 mode:

1. Clock Mode : Display time information...

ESP8266 Internet Clock

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

[ABMaterial] New in 2.00 preview

Scoop! ABMaterial has proven to be an excellent asset in creating WebApps in B4J. For version 2.0, I'm trying to do the same for WebGames. Integrated in ABMaterial, there will be a complete new framework that will allow you to make games using the excellent PIXI library. This is the fastest WebGL renderder on the planet and is used by other frameworks like Phaser. And from ABMaterial 2.0 on, you will be able to do it in your favorite B4J tool!

This is in the early stages, so...

[ABMaterial] New in 2.00 preview

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

Developer Console / Firebase compatible deobfuscation files

Now that both the Google Play Developer Console & Firebase allow the uploading of mapping files for obfuscated apk's, it would be great if B4A could export the mapping files in a format that was compatible. This would save a lot of time when looking at crashes that have been reported on these platforms. I thought I might be able to change the format myself, however I can't find any description of the format that the developer console & Firebase are expecting.

- Colin.

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

Simple Animation is done only in last duration seconds...

Well, the title is a bit off, but it's basically that...

I'm using the standard animation lib to achieve a simple curtain effect on a Panel... I initialise the scale animation, set its duration and start it assigning the panel as target view...
The animation sort of works... But only in the last moments of the duration...
If duration is 1000 (1s), it happens almost instantly in the last milliseconds of the duration, if I set duration to 15000 (15s), the actual animation takes place only in...

Simple Animation is done only in last duration seconds...

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

java.lang.RunTimeExep - ImageView not initialized

Hi,
I've got a problem that has just started happening since I changed device to Samsung galaxy S3.
I have succesfully ran this project many times on this device, so not sure why it's started now.
Everything is fine on my Nexus 7.

So when I enter one of my activities and load the layout, I get this error:
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
at...

java.lang.RunTimeExep - ImageView not initialized

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

My Password Box

Hi, this is my latest b4i app (still waiting for review)

as you already can tell from the title it is a Password generator app (including storing passwords and lots of function)

link: (will be added soon)

Have you ever asked your self how secure your accounts are?

A strong password is very important this days. Are your password to all of your private content really strong enough?

Most people use almost the same username and password to all of their accounts...

My Password Box

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

Conectarme a SQL SERVER con Libreria

Alguien tiene un ejemplo que funcione para conectarme a SQL SERVER

Si es con servicios mejor pero que funciones

Saludos

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

Tutorial for localization of app name ?

Hello,

With the release note of 2.80 , we have a chance to localize the app name. Does someone know how to do it ?

TY

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

Desactivar botones virtuales

Hola buenos dias, queria saber si hay alguna manera de desactivar los botones virtuales, es decir que si el usuario aprieta el boton virtual de retroseso o de home no haga nada.

Si alguien lo sabe y me puedo ayudar se lo agradezco!

Saludos!

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

Sniper Effect

Hi.
I need to implement a "sniper effect" on my image cropping code. I mean, it needs to behave similar to WhatsApp image selection...
I have a circle that limits the desired part of the pic, but i need to shadow the rest of the screen that is not inside this circle...
Thanks in advance.

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

Gesture Sensor APDS-9960

Hello, I would like this sensor "SparkFun RGB and Gesture Sensor APDS-9960" use in a Project. Is it planned the available arduino lib porting to a B4R-libary for ESP boards ?
monki

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

Get the APK signature at runtime

This code returns the SHA-1 hash of the signing key certificate used to sign the APK.
It is the same value that you can see under Tools - Private Sign Key:

[​IMG]

You can use it to test whether someone has rebuilt your app and signed it with his own key.

[​IMG]

Code:
  Sub GetSignatureHash As String
Dim jo As JavaObject
jo.InitializeContext...
Get the APK signature at runtime

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

Cosa usare Cloud, Dropbox ... ?

Ciao a tutti,

Luca mi ha consigliato di usare nella mia App "SimpleNote" questo:

Io non ho mai usato una cosa del genere e non saprei cosa sia meglio.
A me interessa implementare quello che per gli utenti sia più semplice da usare.

C'è qualcuno che usa qualche cosa del genere(cloud, dropbox, ...) e sappia come sia l'accettanza dei clienti?

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

FirebaseAdMob - Admob ads integrated with Firebase backend

This library required B4A v6+.

This library allows showing AdMob ads. It is integrated with Firebase services so you can better track and analyze the results.
http://ift.tt/20eojYm

It supports banner ads and interstitial ads (full screen ads).

First you need to follow the Firebase integration tutorial: http://ift.tt/1Oddipj
Make sure to include the Ads manifest snippet.

Full example that...

FirebaseAdMob - Admob ads integrated with Firebase backend

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

lundi 29 août 2016

Firebase - Parse Error

Parse Error: There is a problem parsing the package.

I am getting this when add the Firebase modifications to the manifest editor. I have read the other threads on this to no avail. This error occurs on the device and the app does not install using the debug B4A Bridge.

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

HAXM issue

I keep getting this error message when attempting to run an Android emulator from AVD:

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.​

SDK Manager says HAXM installer is installed. Windows 10 shows Hyper-V is off....

HAXM issue

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