mardi 31 mai 2016

[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

serversocket listening on a single IP

Hi,

Is it possible to have the serversocket to listen on a given port on a single IP if the PC it is running on has multiple IP addresses ?

Thanks

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

Faild to build a release app with iOS production Certificates

Code:
  /Applications/http://ift.tt/1TWDwM3.4.sdk -L/Users/dev_xia/Desktop/B4i\ 上架环境/macserver/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/dev_xia/Desktop/B4i\ 上架环境/macserver/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/dev_xia/Desktop/B4i\ 上架环境/macserver/UploadedProjects/<user...  
Faild to build a release app with iOS production Certificates

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

Inline C / C++

As in the other B4X tools you can embed C or C++ code in the project.

Example:

Code:
  Sub Process_Globals
Public Serial1 As Serial
Private Result, N1, N2 As Int 'ignore
End Sub

Private Sub AppStart
Serial1.Initialize(
115200)
Log("AppStart")
N1 =
10
N2 =
20
RunNative(
"Add", Null)
Log("Result: ", Result)
End Sub

#if C
void Add (B4R::Object* o) {
//lower case variables
b4r_main::_result = b4r_main::_n1 + b4r_main::_n2;
}
#End if
The native method...

Inline C / C++

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

[Library] B4aGridView v3.60

Hi guys, B4AGridView is updated to v3.30 whit new Image Loader engine.

The zip include:

the library.

1: GridView Demo
1: GridView with B4APhotoPager Demo
1: PDF Explanations

******************** GridView v3.50 ********************

1: Library
1: License


A big thanks goes to ( Sergey...

[Library] B4aGridView v3.60

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

Any view available for 360 degree view of images ?

Hi,

Is there any view available for B4A that can display 360 degree view of images ?

For eg. To demonstrate a product, vehicle etc. I found similar view in another android app available on Playstore. By dragging the image, a 360 degree view is displayed on the screen.

Regards
Anser

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

It's time to learn a new programming language?

Background
I use VB6 for my first job as a programmer 12 years ago. I love VB6 very much. It was(is) a good RAD IDE and I am still using it to develop desktop applications. Even some programmers hope to bring back classic VB. Later on I have extended my knowledge to ASP to develop web application. Now I mostly code in ASP.NET for web...

It's time to learn a new programming language?

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

[ABMaterial] Show materialboxed in table

How does one show a MaterialBoxed image when the image is contained in a table?

Code:
  public Sub BuildImagefixed(page As ABMPage, id As String, image As String, opacity As Double, Caption As String) As ABMImage
Dim img As ABMImage
img.Initialize(
page, id, image,opacity)
img.IsMaterialBoxed =
True
img.IsResponsive =
True
img.Caption = Caption
img.SetFixedSize(
160,120)

Return img
End Sub

Code:
  ' adding image to table
If...
[ABMaterial] Show materialboxed in table

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

TTS ID (Text To Speech)

Hello everyone.
A couple of days ago I need some features that I did not find the TTS library by @Erel .
They are simple functions, so I decided to use the Compile Library to share with you.

The functions are basically the same as the tts of @Erel with some additional.

NEW
- AllAvailableLanguages
- isSpeaking
- TextToAudio
- IsAvailableLanguage
- MaxSpeechLength
- GetEngines
- SetEngineByPackageName

The other functions are the same as the original TTS...

TTS ID (Text To Speech)

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

PulseIn, PulseOut

Hi,
I'm using Proton Basic compiler to develop MCU projects for PIC micros, this compiler has PulseIn function to measure incoming pulse width on user-defined pin, also it has a PulseOut statement to output pulse with some parameters i.e. width and start state. Are there any similar functions in B4R?

Thanks

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

Today I will receive bad words from Erel ^_^

[​IMG]

ArgoUML, open source.

If you choose Java, as I did, you get Java language source code ("Sorgente"). You could choose:
View attachment 44388

Soon B4J, B4A, B4X too

:p

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

progressdialogshow disappears prematurely

Hi,

I start the ProgressDialogShow in a SUB, and run the ProgressDialogHide in another SUB.

The problem is that this ProgressDialogShow disappears before run the ProgressDialogHide.

I have this code

Code:
  Sub SELECT_update(r As Map)
Dim Campos(r.Size) As String, i As Int
Registros=Registros+
1
ProgressDialogShow(Registros & " rows processed")
If PrimerRegistro=1 Then
Dim Cabeceras(r.Size) As String
PrimerRegistro=
0...
progressdialogshow disappears prematurely

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

Configulator Calculator with source code

This is an updated version of the project previously posted. Many bugs fixed, screen and screen font updated. This version has the option of changing it's appearance by the user saving 5 small .png files to the phone DownLoad folder. Sample graphic files are attached. The user can create their own look by making similar graphics, naming them the same and saving to the phone DownLoad folder.


Regards Roger

1 June 2016
Further updated Zip [Configulator12]
Programs can now...

Configulator Calculator with source code

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

sqlite exception in Raspberry PI2

Hi

My application run in windows7 is ok but i run in debian8 have following exception ?

Exception : org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V

current us sqlite --->>> #AdditionalJar: sqlite-jdbc-3.8.10.1

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

How to clear contents of ImageView

I have an ImageView that needs to show an image based on certain conditions otherwise it should be blank.

Code:
  ImageView1.Visible=False  
is not the right solution for my needs.

How do I clear the bitmap contents of an Imageview?

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

DatePicker for Android

hi .

Are any DatePicker control to B4A ?

I need a DatePicker for Android

Regards

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

Integrated Windows Authentication, NTLMv2 solution?

I need to create an app to access a server within a company's secure intranet that serves ASP.NET web pages but it is authenticated via Integrated Windows Authentication. I thought why not try B4J. I have made it as far as soltypio did in http://ift.tt/1ZGWmrL getting back 401's. Forum searches are coming up short, I've read what I could find on JCIFS, OKHttp/Utils2.

Is there a solution to...

Integrated Windows Authentication, NTLMv2 solution?

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

Available fonts in spinner?

I'd like to have all available fonts name in device, add it to an spinner so user could choose, then assign the selected font to a label, for example.
But I can't even start how to get the font listing! I've search the forum but found nothing.

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

CustomRSSView

This library will allow you to display RSS feeds "Magazine Style" on a nice custom view.

Requirements:

- B4A 3.8

- Internet connection

How to install:

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

Usage:

Code:
  Private rssView As CustomRSSView

'Initialize the CustomRSSView
rssView.Initialize(Activity, Me, "rssView", 50dip, 100%y - 50dip)

'Enter the URL of the RSS feed you want to parse...
CustomRSSView

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

Decode BASE64 encoded ZIP file received by http

Hello,
My app receives a ZIP file as a BASE64 encoded text file. It´s just a 80k file with a .db file inside.
The file is encoded by a PHP web app using standard functions. I dont´t have access to this server, so I can't change anything. I just receive the file as is.
I save this file as zipfile.txt to DirDefaultExternal.
I need to know how I can decode this file back to zip.
I have no idea how can I do this, not even in my windows notebook.
I know how to open the ZIP in my app, after it is...

Decode BASE64 encoded ZIP file received by http

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

Drawer under Actionbar (or even titlebar of activity)

I´m working on a wrap for a MaterialDrawer. It is working but the drawer shows up under the activity title bar or actionbar


View attachment 44557 View attachment 44558

Any hints are highly welcome ;)

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

On multiple panel play Youtube-The same video

I have three panels. I play first Youtube video. In the other two panels simultaneously, can I show a portion of the first panel? So the only video will be the only sound. For example, in the first panel 800x600 size. I want to play a part in the second panel 100x80 like. Is it possible?

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

Translation: From developer to developer!

I think that can be a great service if will be add a section in forum in which anyone can upload their string.xml (or other) and anyone can translate the code in his language. So, for example, if i am english and i want to translate my app, i upload my string xml and anyone can help me :D

Sorry for my bad english, i am Italian, if i wrote wrong you are free to translate it in right english :D

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

iAdMob

iAdMob v1.10 adds support for interstitial ads (full screen ads).

In order to show an interstitial ad you need to first request an ad and wait for the Ready event.
If Success is true then there is an ad ready to be displayed. You can then call iad.Show(Page) to show it.
You can also call iad.RequestAd again to request a new ad.

Note that you can show test ads by calling:

Code:
  iad.SetTestDevices(Array("121212121212")) 'id that is displayed in the logs  
The ready event:
Code:
  Sub...  
iAdMob

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

Change the app to other language with google translate

Is there anyway to change the words in the app to a different language?

That is to change the app words like you can change the web page words into another language with google translate?

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

[Lib] Accelerated surface

This library provides a dedicated drawing surface embedded inside a view, which benefits from the hardware acceleration. With it, you get the speed of OpenGL for 2D without the complexity.
It includes many Canvas methods (with anti-aliasing, matrix and camera) and a few useful methods for Bitmaps and Drawables (AlterColors, Crop, LoadNinePatch, ReduceColors, SetDensity, etc.). You can import the Matrix, Camera, Paint and Path objects from another library (if they are not wrapped)....

[Lib] Accelerated surface

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

color animation used for Btn_LongClick works 1 time only

I used color animation for LongClick but it works only 1 time. If I press second time it doesn't work. I used exactly same for iOS and it works. What can be the problem?

Code:
  ub BtnSOS_LongClick
BtnSOS.SetColorAnimated(
1000, 0, 100)
BtnSOS.Color =
Colors.Black
Event = "sos"
End Sub


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

Nice free hoster (no adverts) with php & MySQL

A thread here brought me to http://ift.tt/LBB4fF

Just choose your location and create a free account with 2 GB webspace, 2 databases, mail, etc. Good for an IoT project which needs to communicate over the www or to test your apps when you don't want a local installation. Just played arround and after 5 minutes I had my first db connected to one of my examples.

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

Can NOT initialize camera.

I want to take a picture when the PanelCamera is visible. But I can not initialize camera. When I press on the BtnCamera, program crashes. How can I sole this problem? My codes are given below;

Code:
  Sub BtnCamera_Click
PanelMain.Visible =
False
PanelCamera.Visible =
True
btnTakePicture.Enabled =
False
camera.Initialize(PanelCamera, "Camera")
End Sub

Sub Camera_Ready (Success As Boolean)
If Success Then
camera.StartPreview
btnTakePicture.Enabled =
True...
Can NOT initialize camera.

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

Bluetooth LE Manager_DeviceFound - error

I have a Bluetooth LE device that advertises every 3 seconds. The following is the beginning of the sub that handles it when found:

Sub Manager_DeviceFound (Name As String, Id As String, AdvertisingData As Map, RSSI As Double)
Log("Found: " & Name & ", " & Id & ", RSSI = " & RSSI & ", " & AdvertisingData)
If Name = "Etesian" Then

Everything works fine - for a time, an then seemingly randomly the app crashes. The log states:



Found: Etesian, F6:01:67:24:72:09, RSSI = -72,...

Bluetooth LE Manager_DeviceFound - error

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

AdMob library

This library requires some configuration. Please see the tutorial: http://ift.tt/1KxGpjh

Reference: Basic4android - AdMob

AdMob v2.00 - Based on Google Play Services. This version requires B4A v3.20.

AdMob v1.40 - Add support for SIZE_SMART_BANNER.
These ads will fill the whole available width:...

AdMob library

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

timer and service module

Hi

I've seen some post that suggests not put a timer on a Service Module.

In the application of Android "Kiosk mode" tutorial a timer is used in the Service Module. ( http://ift.tt/1SYPh5b )

I have to make a "kiosk mode" application, 24 hours run, it is advisable to put a timer of 500 milliseconds in the service module? Or is it better to use the StartServiceAt

regards

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

Stream metadata

Can anyone translate this into B4i code?
http://ift.tt/1XMMT3u
I'm using VideoView.LoadVideoUrl("http://example.com") for stream.

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

[INFORMACÓN] OkHttp - Remplaza la librería Http (HttpUtils2)

Les comento para los que están usando la librería HttpUtils2 desde android 6.0 hacia arriba dejara de funcionar su aplicación ya que Google la remplazo por OkHttp y ya no se dará soporte a la HttpUtils2.

Para poder solucionar esto podrán agregar la nueva librería OkHttpUtils2 y OkHttp a la carpeta librería de B4A y dejar de utilizar...

[INFORMACÓN] OkHttp - Remplaza la librería Http (HttpUtils2)

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

B4Agoodies: a maintained library/class/code module/... inventory (last updated 2016-05-31)

Hi all,

I, like many others in the forum, wanted to know what the most recent versions are of the non-core libraries I'm using in my apps, without having to resort to manually checking these libraries' forum posts to check their versions. Eventually I took things a step further and thought I'd create an inventory of all the excellent stuff that's being provided by the community, in a sustainable and easily maintainable way (i.e. with minimal manual effort). Enter B4Agoodies, an Excel...

B4Agoodies: a maintained library/class/code module/... inventory (last updated 2016-05-31)

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

Detecting if an audio or video is being played back

Hi all,

Is it possible to detect if user is listening an audio or watching a video, doesn't matter whether local or streaming media, as long as we know user is listening or watching some sort of media?

Thanks

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

Intent response or onActivityResult?

This is my first time trying intents, so please be gentle with me ;)

I'm trying to get a response from another (not my app) activity that I start with an intent, but when my app resumes the intent extras is empty and the Intent.GetData is null.

I know the intent is being handled correctly as I see the activity I am starting show up, and my app resumes when it closes. Their example test app seems to communicate with their app just fine. It's a pretty simple request:

Code:
  Dim poIn As...  
Intent response or onActivityResult?

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

MaterialDrawer wrap

Hello,
Is it possible to wrap the new version of this interesting lib http://ift.tt/1voac2P ?
I know that thedesolatesoul made a primary wrap but now the lib has changed and resolved a lot of problems and add some features (like compatibility with android >5)

Thanks

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

Appodeal questions

Although I have not published apps (but surely I will do this within the next 20 years :p), I would like some clarification from those who have used Appodeal.

For the moment I limit my questions about the "Rewarded Videos".

To reward someone who has completely seen an Ad Video I could use a "non-skippable" video (I could give the award in the event xxxFinished). This part of the code could be modified by a hacker (he may also change the amount of some data, for example the remaining lifes,...

Appodeal questions

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

HttpUtils2/PHP: GET vs POST methods

Of course there is more about to secure data transmissions between clients & servers. Please take this tutorial to think about to secure your communication as good as you can.


With HttpUtils2 you can make requests to servers running PHP (Apache) or other components. This tutorial is about

- the common methods "GET" and "POST" in PHP
- the corresponding methods in HttpUtils2
- where the difference is
- security

Some contents were taken from...

HttpUtils2/PHP: GET vs POST methods

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

[Class] Baloon labels

Seeing the way SMS are displayed in my device, I thought we should have baloons also.
Here is my way of doing it.
There are two labels in the baloon, each can be styled like a label.
The height of the labels is automatically calculated per the text allocated to it.
The baloon can be rotated to have the tip in each of the four corners.
There are two types of baloons - "SAY" and "THINK" - see example and photo.
If the background is not black - there is a method to adapt the background to...

[Class] Baloon labels

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

\google_play_services\libproject\google-play-services_lib\res does not exist

Hi all.
I bought a new PC and then installed B4A. I have the following problem. When I'm going to fill the message as indicated in Point 1:

but it seems...

\google_play_services\libproject\google-play-services_lib\res does not exist

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

Reading / Writing text files and where is the Files Tab?

I am attempting to read and write to a singe line text file. The program crashes with "file not found" error. I created a text file with Windows XP accessory Notepad. Could not find the "Files Tab", so instead used the IDE menu Windows->File Manager to include the file in the project.

I was able to find the file using Android utility file manager. Its path is:

sdcard/Android/data/b4a.BreezeView/files/virtual_assets/LastID.txt

I tried using both this path, and the recommended path:...

Reading / Writing text files and where is the Files Tab?

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

Send message greater than 160 chars PhoneSms.Send2

How can I send an SMS greater than 160 characters using PhoneSms.Send2?

The code below does NOTHING. We don't get a crash, and the PE_SmsSentStatus is never called with success or error.

Sub PE_SmsSentStatus(Success As Boolean, ErrorMessage As String, PhoneNumber As String, Intent As Intent) As Boolean
Log("MessageSentStatus: " & Success & " " & ErrorMessage & " " & PhoneNumber & " " & Intent.ExtrasToString)
End Sub

sub SendSMS
Dim p As PhoneSms
dim Mobile as string = "00000000000"...

Send message greater than 160 chars PhoneSms.Send2

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

lundi 30 mai 2016

Betterdialog change text of title and btnOK, btnCancel at runtime?

Hi all,

I want to use a betterdialog to choose the language of the apps UI by the user. I have a ultimate listview (ULV) in the pnlBody. In each entry of the ULV is a banner and a text of a country and its language. If the user clicks on an entry in the ULV I would change the text of the title and the btnOK and btnCancel to the selected language. This will be at runtime.

How can I change the text of title, btnOK and btnCancel at runtime.

Lutz

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

Timer issue

So my code is running along and at the end of a sub It runs END SUB. Then it goes to Sub Timer1_Tick. There is no reason why it should. It doesn't get initialized yet. Any ideas?

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

How to detect button color and change?

I try to detect button color and change it to another color but I couldn't do. My codes are given below. If the button color is red and pressed on it, button color should change to green. If the button color is green and pressed on it, button color should change to red. What is my fault here?

Code:
  ub BtnSystemOnOff_Click
If TextFieldimei.Text.Length = 15 Then
BtnSystemOnOff.Tag = BtnSystemOnOff.Background
If (BtnSystemOnOff.Tag = Colors.Red) Then
BtnSystemOnOff.Color =...
How to detect button color and change?

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

Text with two bitmatps

What can I do to have a value from a database and then an EDIT and DELETE icon on the same line?

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

application loader error

When trying to upload Archive.Zip via Application Loader I get the following error:

Could not find a CFBundlePackageType within the Info.plist; or the package is missing an Info.plist.

Open the ipa file with 7zip. No Info.plist inside. ( just dsym.zip and result.ipa )

what I miss and how to do

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

Receiveing content shared from another app

Hi,

I want to add a functionality in my app so that it can receive shared content (mainly links but also other content like images, text, etc) from another app.

This is basically on the other end of what the share library does. (http://ift.tt/23trUT1)

So if for instance, someone was in say Safari, and wanted to share a website with my app, they could press the iOS share...

Receiveing content shared from another app

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

I can't see views or anything

Hi guys,

I figured I'd try B4J but I just cant figure this out. I am trying to run the B4J examples but I dont see anything. I get a blank page. Is this because I have not connected to an external bridge app? I just want to run the app in my own pc to test, so i dont really want to connect it to a rpi or anything like that right now. Thanks!

View attachment 44533

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

input dialog and keyboard

When the Inputdialog opens can I make the keyboard open at the same time?

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

Adafruit_PWMServoDriver Example

Hi All,

Is there an example using the Adafruit_PWMServoDriver?

Can't seem to find anything except the library.

Thanks

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

Playing sound

Sound doesn't always play like it should. Can anyone see the problem in the code below?

Code:
  If lblTimer.Text <= "10" Then
lblTimer.textColor =
Colors.red
Sound.Initialize(
2)
ticksnd = Sound.Load(
File.DirAssets,"beep.mp3")
Sound.Play(ticksnd,
1, 1, 10, 0,0)
End If


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

Real Time Clock RTC_DS1307

Hi All,

Attached are the libraries for use with the RTC_DS1307 real time clock module for Arduino. This communicates via the I2C bus.

Have tried to write the C++ RunNative without much success.

Can someone assist.

Thanks

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

Couldn't find a place to say thank you.

Thank you for making B4R. It feels very natural and easy to use after having used the Arduino IDE and alternatives. I was gearing up to do some more Arduino projects but was not looking forward to using the Arduino editor and then, along comes B4R to make programming fun again. Thank you for all the wonderful work you do.

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

B4A, B4i, B4J and B4r API documentation - B4X Object Browser

API documentation - B4a, B4i, B4J and B4R (i.e. B4X) Object Browser (which also includes Code Snippet Management)

Hi everyone,

As you may or may not be aware, I have embarked on a project to bring better documentation to us all.

The first problem I have had is that the official and semi-official documentation tools aren't what I was hoping for. Not saying they aren't good, they just aren't what I need.

My first thankyou was called the B4a Object Browser. This version was...

B4A, B4i, B4J and B4r API documentation - B4X Object Browser

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

Very useful services website

If you want to calculate a value fast to use it as fixed variable, but don't want to do the math, then this website is handy and rich with many online functions for conversions and calculations.. I thought to share the url with you.

http://ift.tt/196yxBL

enjoy!

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

How to turn on LED with just a few controllers!

View attachment 44124

Thanks Erel for the great product of B4R, and congratulations with the release of version 1.0

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

csv -> bestimmten Wert abfragen

Hallo,

ich habe verschiedene csv dateien, die sind alle gleich aufgebaut:

wert1;wert2;wert3;wert4;wert5;wert6;wert7;
5;6;7;3;1;0;66;

Länge ist immer unterschiedlich, kann auch schon mal 2000 Werte haben.
Ist immer nur ein Datendatz (Zwei Zeilen, Überschrift und Wert)

Wie kann ich ich den hier einzelne Werte auslesen?
Beispiel aus wert4 den Inhalt: 3


Vielen Dank für einen Tipp!

Manfred

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

Circular Text in Canvas?

I had a request from a friend, to design a simple circular stamp that include the circle, of course, and the text surrounding the inner circle, and maybe something in the center.
I can do that, but no the circular text one.
Does anybody has something like that? thanks

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

x,y inside a path??

hi

i am creating a path (no specific shape, could be triangle, rect,..)

and in activity touch i would like to know if my x,y are inside that path

is that possible?

do we have some good math experts here? :)

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

Mysql question

Hello,

I searched the internet but i couldnt find any info. I need something like this:
My database has many entries lets say a sample data is :

id value success
1 1.45 1
1 1.80 1
1 1.70 1
2 2.40 2
2 3.20 1
2 2.50 1
3 1.60 1
3 1.30 1
3 1.20 1
4 1.40 2
4 1.90 2
4 1.60 1

first, to group by the id all entries
I can do this simply with
select * from tbllist group by id

Now , what i need is :

1) determine the grouped id whichs all the values for...

Mysql question

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

Although DONE button is pressed for EditText, cursor still blinks at the end of the text in EditText

I have a EditText in my app. I click on EditText and write numbers and press on DONE button at the keyboard. Keyboard is closed but cursor is still blinking at the end of the text written in EditText. What can be the problem?

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

Call Recorder - Material Design

Hi

this is an app i did for a client. It is a Call Recorder for Android.

If you could download it a leave a nice review i would be very thankful

Regards, ilan

I would like to thanx all beta testers (especially @lemonisdead :))

Link: http://ift.tt/1NZGIHw




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

tone() function

Here is a tone function that does Arduino's tone()
The buzzer is connected between pin 6 and ground :

Code:
  Private Sub AppStart
Serial1.Initialize(
115200)
Log("AppStart")
Delay(
1000)

tone(
6 , 500, 500)
Delay(
100)
tone(
6 , 750, 500)
Delay(
100)
tone(
6 , 1000, 500)
Delay(
100)
tone(
6 , 1500, 500)
End Sub

Sub tone(Pin As Byte, freq As Int, duration As ULong)
Dim sound As Pin
sound.Initialize(Pin,sound.MODE_OUTPUT)
Dim d As ULong =...
tone() function

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

Panoramic View

Hi
I want to develop an app , wherein I want to load a full panoramic (360 degree) image and when we move the mobile to right, left , up , down the relevant portion of the image shall be displayed. Can anyone point me to right direction for the b4a library or any sample code ? Thanks

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

Starter Service and multiple activities and their resources... my doubts

Hi guys...

I'm finally decided to bring to completion my long thought app...
I'll be having a few dozens of bitmaps, some used only once, some used very often
Since the entry point is something I am worrying about, I decided to post my doubts here!

Is it better to declare and initialize my bitmaps in the starter service?
I would hate to bring to front an app with half the graphics resources missing!

How do I access these resources? I NEVER USED SERVICES BEFORE!

Since this is a service,...

Starter Service and multiple activities and their resources... my doubts

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

Asynchronous MariaDB/MySQL Library

There are a couple of MySQL libraries already available. They all perform network functions on the main thread however which means you are limited to using target API's that are pre Honeycomb level. This is an asynchronous library so it should work with the higher API levels (it has only been tested on Jellybean and KitKat though).

This library uses the MariaDB JDBC driver. It also works with MySQL as MariaDB is a fork of the open source version of MySQL....

Asynchronous MariaDB/MySQL Library

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

Beep on raspberry

I'm tring this code for play a beep (or sound) on raspberry

http://ift.tt/23NzTKO

but doesn't work, i have checked play function with aplay.

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

Any view available for 360 degree view of images ?

Hi,

Is there any view available for B4A that can display 360 degree view of images ?

For eg. To demonstrate a product, vehicle etc. I found similar view in another android app available on Playstore. By dragging the image, a 360 degree view is displayed on the screen.

Regards
Anser

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

CallSub & CallSubDelayed

ciao ragazzi,
che mi spiega l'uso e l'utilità dei vari callsub .. callsub2... callsubdelayd.. ecc.
possibilmente con esempi in B4J

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

Using custom B4A libraries in B4i

1) In B4A I use a custom calculation library that consists of two files: calc.xml and calc.jar.
Is this possible to use those in B4i iOS project?

2) How to use OSX shared libraries (*.so) in B4i projects?
It would be wonderful to a code example.

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

Picasso-Transformations - an Image processing library (30 May - update in post #5)

This was requested by @ilan. It is a wrap for this Github project. I have added 14 of the available filters thus far and will add some more as and when time permits. Posting the following:

1. The B4A project demonstrating the 14 filters (comment / uncomment some of the code to see the various filters. I have only fitted 8 on the display of my device)
2. The Java code as it is at present
3. The B4A...

Picasso-Transformations - an Image processing library (30 May - update in post #5)

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

Droidcon Presentation!

Hello to all!!

The second Droidcon Greece will take place in July 7-9 in Thessaloniki. As it is my hometown and i have a lot of b4a experience i thought it would be a good idea to propose to the organizing committee a presentation of basic4android as a rad crossplatform development tool. I am very happy and surprised that my proposal was accepted and i am gonna be one of the speakers at droidcon.

I believe it's a great opportunity to introduce and promote the b4x community in Greece! Now...

Droidcon Presentation!

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

[Material Design] "Chips" idea?

According to Googles "Material Design" Guidelines you should use "Chips" to represent complex entities in small blocks.

View attachment 44521

Before I start building my own "ChipView" I would like to know if anyone knows an existing library or class for this one.

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

iTesseract- Simple OCR

Name: iTesseract

Version: 1.0

Description: iTesseract is a wrapper of the Tesseract IOS Framework and allows you to recognize text from images (OCR- optical character recognition).

License:
  • Tesseract-OCR-iOS:...

iTesseract- Simple OCR

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

clsfloatingwindows problem

I am using Informatix's puzzle version of his demo (the 9 square matrix).
I am trying to slide a tile from its original position to the adjacent tile and get them to swap their position.
This means I have to detect the movement of the tile, which I can with UnDock.
But I can not see how to swap the stickyedge addresses so that when the animation begins they will change places.

Can anyone help.

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

GifDecoder library for B4J

Hi All,

I've tried to convert Andrew Graham GifDecoder library (B4A) for use with B4J on desktop devices, so I made some changes and instead of using some Android classes I've used some JavaFX classes, example I've used:

  • javafx.embed.swing.SwingFXUtils
  • javafx.scene.image.Image
  • javafx.scene.image.PixelFormat
  • javafx.scene.image.PixelReader
  • javafx.scene.shape.Rectangle
  • java.awt.image.BufferedImage
  • javax.imageio.ImageIO

Library compiles without error...

GifDecoder library for B4J

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

New Net library - Android FTP, SMTP and POP3

The Net library supports FTP, SMTP and POP3 protocols. This library replaces the FTP library. Both regular connections and SSL connections are supported.
SMTP - Allows you to directly connect to SMTP mail servers and send mails, including Html messages and attachments (more complicated than it may sound ;))
POP3 - Allows you to directly connect to POP3 mail servers and download messages. Currently the messages are not parsed. The raw string is returned. You can use MailParser class to parse...

New Net library - Android FTP, SMTP and POP3

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

[Class] Treeview Class (Tree and Node)

After finding how to communicate between classes I improved the previous version and since it is completely different, I opened a new thread for it.

There is a Tree class, in which you have to define the nature of the tree (what database it displays). This class manages the nodes which are defined by another class.

I implemented a horizontal "scroll panel" to compensate for the scrollview's lack of it.

The main is a demo with one tree in portrait and two trees in landscape node.

Edit:...

[Class] Treeview Class (Tree and Node)

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

How to Print PDF Using Android Printing Framework

Hi all.
I read this post :
http://ift.tt/1WrtXrX
on that post describe how to print using android printing framework. but we need printing pdf
and as we know webview cannot load pdf.
i know there is many ways to print in here.
but i want my apps print using android printing framework.

if found some code form net to use this framework. but in java . i don't understand java :(:(
so anyone can converting java to b4a ..

and this...

How to Print PDF Using Android Printing Framework

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

Have 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...
Have Back and Front Camera's & has Flash (inline Java code)

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

B4Agoodies: a maintained library/class/code module/... inventory (last updated 2016-05-27)

Hi all,

I, like many others in the forum, wanted to know what the most recent versions are of the non-core libraries I'm using in my apps, without having to resort to manually checking these libraries' forum posts to check their versions. Eventually I took things a step further and thought I'd create an inventory of all the excellent stuff that's being provided by the community, in a sustainable and easily maintainable way (i.e. with minimal manual effort). Enter B4Agoodies, an Excel...

B4Agoodies: a maintained library/class/code module/... inventory (last updated 2016-05-27)

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

Appodeal - monetization booster questions

Hi guys,

My name is Diana. I am from Publisher Success Team in Appodeal. If you would like to talk about how to monetize your app, how to increase/double/triple your mobile revenue, discuss some questions and/or concerns YOU ARE VERY WELCOME.

I am here to answer all your questions and will be more than happy to do so!

To start with let me please share some information about our product which we have developed....


Appodeal - monetization booster questions

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

[B4I] double zusammenrechnen klappt nicht

Hallo ich möchte auf einen double etwas drauf rechnen, bei b4a klappt das aber bei b4i rechne ich immer 0.5 dazu aber es bleibt immer auf 0.5

Code:

Code:
  Sub adClick(i As Double)
If Premium Then
Return
End If

If werbeint < 7 Then
werbeint = werbeint + i
Else
werbeint =
0
showAD
End If
Log(werbeint)
End Sub
aufruf:

Code:
  adClick(0.5)  
und im log kommt immer 0.5 raus

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

Spinner "gelöscht" nach Pause/Resume

Hallo,

erst mal kurz zur Erklärung. Ich lasse in meiner App eine Tabelle (aus einer SQL DB) erstellen. Diese kann der Nutzer filtern, z.B. nach Datum. Das funktioniert problemlos. Für die Auswahl der Filterkriterien nutze ich Spinner.

Nun zum Problem:
Wenn ich in der App Pause/Resume mache (z.B. durch eine Orientierungsänderung) wird die "Liste" der Spinner gelöscht. Das äußert sich so, das mir die Abfrage Variable=Spinner.SelectedItem eine Fehlermeldung liefert:...

Spinner "gelöscht" nach Pause/Resume

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

getDefaultSize

I should translate this into B4A. I stopped on "getDefaultSize (mVideoWidth, widthMeasureSpec);"
The code is:

Code:
  2     protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
4 int width = getDefaultSize(mVideoWidth, widthMeasureSpec);
5 int height = getDefaultSize(mVideoHeight, heightMeasureSpec);
6 if (mVideoWidth > 0 && mVideoHeight > 0) {
7 if ( mVideoWidth * height > width * mVideoHeight ) {
8 //Log.i("@@@", "image...
getDefaultSize

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

Translate into B4A

I should translate this into B4A. I stopped on "getDefaultSize (mVideoWidth, widthMeasureSpec);"
The code is:

Code:
  2     protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
4 int width = getDefaultSize(mVideoWidth, widthMeasureSpec);
5 int height = getDefaultSize(mVideoHeight, heightMeasureSpec);
6 if (mVideoWidth > 0 && mVideoHeight > 0) {
7 if ( mVideoWidth * height > width * mVideoHeight ) {
8 //Log.i("@@@", "image...
Translate into B4A

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

Descargar tabla completa de web service y remplazarla

Hola buenos dias,

Estoy desarrollando una app para una table, que tiene una base de datos interna en SQLite. Para el modelo de negocio existe otra base de datos online, donde se actualizan los clientes, productos etc.

Lo que quiere es que en un momento determinado, y cuando la tablet tenga acceso a internet, se puede copiar la tabla Cliente de la base de datos online y reemplazarla por la interna.

Alguien sabe como podria hacerlo? Desde ya muchas gracias!

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

Object should first be initialized (Label) error

I give up. I have been trying to find information here about the error about initializing a label but can't find anything that helps :(
I have labels in a view that I load using acivity.loadlayout. I have seen replies here about not using the initialize if you have it in a view but I have done both and nothing helps. I started out the project with the GPS sample so I have the lblLat and lblLon.
They are defined in sub globals and I load the
Sub Activity_Create(FirstTime As Boolean)...

Object should first be initialized (Label) error

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

another UsbSerial - baudrate question

hello,
I'm using usbserial with an FTDI device , I can send and receive data , but only at baudrate of 9600 .
Now I noticed that the baudrate parameter in usb.Open is ignored if the connected device is an accessory .

Code:
  Dim usb As UsbSerial
Dim dev As Int
dev = usb.Open(
19200)
in my code dev = 2 ( usb_accessory)

How come you can't change the baudrate of an accessory ? And why is my ftdi device recognized as an accessory and not as an usb_device, can I change this ?

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

Analog Read Example

Hi,

a simple analog read example which reads the temperature from sensor TMP36 and logs the result.

Code:
  Sub Process_Globals
Public Serial1 As Serial
Private TempSensorPin As Pin 'Output pin connected from the TMP36 sensor
Private TempSensorPinNumber As Byte = 0x00 'Pin number used is A0 (Analog)
Private MeasureTimer As Timer 'Timer for the sensor measurement
Private MeasureTimerInterval As ULong = 2...
Analog Read Example

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

How to light on a led on usb port ?

Hi,
I'ld like to light on/off a led on usb port (on android device).
My first thought was to use an arduino (chip not board) and an usb library but is there a simplier way to do that ?
Thank you for your help.

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

RX/TX use with Arduino UNO

Hi,

why I cant use the Pin 0/1 for RX/TX on the Uno board with b4r ?
In the Adriano IDE it works fine to send data to a bluetooth shield.. See code/image

Code:
  #include "DHT.h"
#define dht_pin A5 //Pino DATA do Sensor ligado na porta Analogica A5
#define DHTTYPE DHT11
DHT dht(dht_pin, DHTTYPE);

void setup()
{
Serial.begin(9600);
delay(
1000);
dht.begin();
}

void loop()
{
float h = dht.readHumidity();
float t = dht.readTemperature();

// Mostra os valores lidos, na serial...
RX/TX use with Arduino UNO

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

Google Play Services - Installation & Tips

More and more services rely on Google Play Services library.
For example the following libraries depend on it: AdMob, GoogleMap, Google Play Game Services, Google Analytics and others.

Installing Google Play Services

- Open Android SDK Manager and download the latest version:

[​IMG]

- Copy google-play-services.jar from <android...

Google Play Services - Installation & Tips

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

Download a text and log

hi

how can i download a text from a url and show in log ?

i ahve ethernet shield !

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

java.lang.NullPointerException: Inflater has been closed

Does somebody knows, what it means? It happens, when I try to upload a string at first time to my webserver. It only happen in release-mode, not in debug:

Code:
  2016-05-23 14:00:06.214:INFO::main: Logging initialized @878ms
2016-05-23 14:00:06.429:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT
2016-05-23 14:00:06.474:INFO:oejsh.ContextHandler:main: Started...
java.lang.NullPointerException: Inflater has been closed

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

Drag & Drop a view

:sign0104:

Hi. Im new to B4A, downloaded the trial last week and liked it a lot (bought it the next day)...

Is there any way of dragging & dropping a view e.g. the user presses and holds button1 then slides their finger right the button moves with the finger.

How would i go about recording the cursor position, i know that a touch is a click... however if the finger is held down is there a way of getting the position the finger is held at. or anything similar?

Any help would be...

Drag & Drop a view

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

Ami DuOS and B4A debugging

I installed Ami DuOS on my PC and am running my App under it just fine (it has shown me some bugs in my code that do not appear when using my App on my Samsung S3 or Tab 3)

A couple of places I forgot to use dip after a number and the screens looked fine on the S3 but on in the DuOS I saw that something was wrong and fixed it.

OK now on to my question. Is it possible (has anyone tried it or is doing it) to debug using the DuOS environment?

My PC only has a hardwired internet connection...

Ami DuOS and B4A debugging

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

rSd lib dont work when adding rSoftwareSerial lib

Hi,

when I use the rsd lib all works fine. When I only add with the the rsoftwareserial lib
with the lib manager, without putting any new code in the sketch,
sd.openreadwrite always return FALSE.

I want to use the Softwareserial lib for accessing a bluetooth modul.

What I do wrong ?


<code>

filename = "test7.dat"
If sd.OpenReadWrite(filename)=True Then
....
end if

</code>

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

Writing data to a sd card

Hi,

when a file DONT exists it will be created on the sd card.
When you write a line into the file with writeBytes , the line is two times (doubled)
in the file.
The sd.CurrentFile.Size shows in that moment : 11 bytes
correct should be 0 bytes.


This only happens when you run the sketch from b4r IDE.

When you delete the file on the sd card again , and start the Adri. Uno alone, like pushing the reset button, it works fine.

The sd.CurrentFile.Size shows in that moment : 0 bytes, thats...

Writing data to a sd card

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

[ABPlugin] Live plugin library for your apps

This little library makes it possible to create Live plugins for you own apps. This means you can create plugins that can be added/removed while your app is running. Note it is a little experiment that shows the power of B4J. The 'compile to library' feature of B4J is very handy to create plugins.

Things to know when watching the video:
I've added the ABPlugin library to the DemoApp, but this is not in the video. Notice the DemoApp keeps running while I write a new 'divider'...

[ABPlugin] Live plugin library for your apps

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

export excel xy chart

Hi

How could i export data be xy-chart into excel as following ?

h[​IMG]

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

AndroidManifest.xml:43: error: Error: No resource found that matches the given name ..

Hello

I am trying to update a old project. When i try to compile i get :
AndroidManifest.xml:43: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.MMTransparent').

It has stg to do with the manifest but i cant figure it out. I searched the forum 1-2 people experienced the same but did not write how they solved it. Any ideas ?

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

App crash on inapp billing

Hello,
i maked a test buy over testflight and always the app crash...

the complete code:

Code:
  Sub store_PurchaseCompleted (Success As Boolean, Product As Purchase)   
If Success Then
Dim no As NativeObject = Product
Dim b() As Byte = no.NSDataToArray(no.GetField("transactionReceipt"))

Dim bc As ByteConverter

acc.setPro(
email,md5Passwort,Success,bc.StringFromBytes(b, "UTF8"),secID)
End If
End Sub


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

How to set icons for action bar, notifications and launcher?

Hi all,

I developed an app special for tablets. In the Play Store I get a message after uploading:

"Your APK file should contain custom drawable assets for popular tablet dot densities" (translated from german with Google translator)

"As a minimum, supply a version of each icon and bitmap asset that's optimized for at least one the following common tablet screen densities:

  • hdpi"
action bar: 48x48 px
notifications: 36x36 px
launcher: 72x72 px

In B4A I can only...

How to set icons for action bar, notifications and launcher?

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

App crash from inapp billing

Hello,
i maked a test buy over testflight and always the app crash...

the complete code:

Code:
  Sub store_PurchaseCompleted (Success As Boolean, Product As Purchase)   
If Success Then
Dim no As NativeObject = Product
Dim b() As Byte = no.NSDataToArray(no.GetField("transactionReceipt"))

Dim bc As ByteConverter

acc.setPro(
email,md5Passwort,Success,bc.StringFromBytes(b, "UTF8"),secID)
End If
End Sub


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

Vitamio 5 (Suspended)

Vitamio5

Important news/update. Please see:
http://ift.tt/21VXuYN


This is an update of Vitamio and wraps version 5 of Vitamio. The original java-sources can be downloaded from Vitamio's web-site.

As you may know, the previous version of Vitamio posted here on the forum is not any longer allowed by Google. Many of you have received from Google the security notice (which I...

Vitamio 5 (Suspended)

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

Facebook

This library will allow your apps to interact with Facebook.


Requirements:

1- B4A 3.x

2- Facebook account.

3- Copy the Facebook.xml and Facebook.jar to your additional libraries directory.


Usage:

Code:
  'Initialize the library
Dim FB As Facebook

'Get the following 3 fields from Facebook after creating a Facebook app.
Dim AppID As String = "<APP_ID_FROM_FACEBOOK>"
Dim AppSecret As String = "<APP_SECRET_FROM_FACEBOOK>"
Dim myWebsite As String =...
Facebook

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