dimanche 1 mai 2016

CallSubPlus - CallSub with explicit delay

In many cases you need to run a task in a few seconds. The solution for such cases is to create a timer and then execute the task in the timer's Tick event. This is good for a single task. However if you need to run multiple tasks then it becomes difficult to maintain.

This small class makes it much simpler. You just need to call CallSubPlus with the target sub and the delay.
Internally it uses a (one shot) timer together with CallSubDelayed or CallSub.

There are four methods:
CallSubPlus,...

CallSubPlus - CallSub with explicit delay

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

Google_Maps Marker Rotate

Hello, i am trying to create a marker with custom image and would like the image to rotate according to the direction/bearing of the street (eg Uber). please guide

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

CustomListView Update Item

Hi,

I am using the CustomListView and I am trying to work out how to edit an item once it has been added.

Below is the code I am using to create the list.

What I want to do is change the image of an item in the list.

Any ideas on how to edit only 1 item in list based on the lbl1.Text value?

For Example, if lbl1.Text = "Item: 3" then change img1 to another image.


Code:
  Sub CreateList
clv1.Initialize(Me,
"clv1", 100%X-20dip,True)
pg1.RootPanel.AddView(clv1.AsView,
10dip, 75dip,...
CustomListView Update Item

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

IndoorMap

This is a wrap for this github project.


IndoorMaps
Author:
DonManfred (wrapper)
Version: 1

  • BitmapLayer
    Methods:
    • Initialize (EventName As String, mapView As MapView, bitmap As Bitmap, location As PointF)
    • IsInitialized...

IndoorMap

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

Wrong BT MAC address with Serial on Android 6

Hi all

Some weeks ago i upgraded to Android M. Everything was OK before but now i doscovered that the Serial library doesn't show the correct BT MAC address of my device.

The code i use is simple:

Code:
  Dim MacBluetooth As Serial
MacBluetooth.Initialize(
"test")
ToastMessageShow(MacBluetooth.Address, True)
It displays "02:00:00:00:00:00" instead of the correct MAC address.

I am using Serial V. 1.23
Is out there another updated version?
How to get the mac address with other...

Wrong BT MAC address with Serial on Android 6

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

[B4j] Using Macro language

Hi

My idea !!
I could defined two variable(A,B) or more in WebAPP and I could key some expression in Webapp too. such as (a=100)and(b=100). this expression will send to Server side(Interpreter) running day by day and return true or false day by day. Tell me to do some thing.

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

Receive and check data from html add

Dear friends,

using
Code:
  HTTP.Execute(req,1)  
I can send html string to second device on some IP address. This is OK.

Now from the second device I am sending similar string to my device and I want receive this similar address and work with the string. For example:
Code:
  http://192.168.10.23:8020/page?id=1  
Hoc can I receive this address on my device, please? How can I take IP, port and number of id for this address? Can you give me advice for some tutorial,...

Receive and check data from html add

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