Button callback in C++

Hi,

I’m new to flipabit, and I’m trying to make a small app to control my home theater devices.

They offer an API that allows them to be controlled with IP commands.

I already made some standalone Windows programs that can do what I want.

I designed a very simple Android app that has a few buttons, each assigned to a single task.

How can I create a callback for each button that will be called when I press on the button?

Can it be written in C or C++?

Thanks.

I guess this the Action panel?

I set Action to Execute and Arguments to Script code.

I get this template:

function () {
return “”
}

Here, I’m stuck.

Is there a IDE similar to VisualStudio for example to write and debug code?

Also, when I try to generate an APK, I get a message telling there has been an error.

I see this:

BUILD SETTINGS
	TARGET OS=2
	ICON=
	COLOR=#FFFFFF
	BUILD_COLOR_RED=1.000
	BUILD_COLOR_GREEN=1.000
	BUILD_COLOR_BLUE=1.000
	ORIENTATION=1
	PROJECT FILE=https://pmas.s3.amazonaws.com/12662267d61f15d71db9b80a6160b095/ba74f0d851caf68a6e6fe1beb4790bbe/app.flp
	DEVELOPER PROVISIONING PROFILE=
	DISTRIBUTION PROVISIONING PROFILE=
	DEVELOPER CERTIFICATE=
	DEVELOPER CERTIFICATE ID=
	DISTRIBUTUION CERTIFICATE=
	BUILD_VERSION_SHORT=1.0
	BUILD_VERSION=1.0.4
	BUILD_NUMBER=3
	BUILD_NUMBER64=4
	PACKAGE_NAME=ControlHT
	PACKAGE_ID=com.sedit.ControlHT
	KEYSTORE_EXIST=true
	KEYPASS=3f518e006992a2b257872d3ec6d6d850
	GOOGLE_ANDROID_EXIST=false
	GOOGLE_IOS_EXIST=false
	PID=4925bd0214d96535a481bf997d70c0b7
	FACEBOOK_APP_ID=null
	NSMicrophoneUsageDescription=This app requires access to the microphone.
	NSCameraUsageDescription=This app requires access to the camera.
	NSPhotoLibraryUsageDescription=This app requires access to the photo library.
	NSBluetoothPeripheralUsageDescription=This app requires access to the bluetooth.
	NSBluetoothAlwaysUsageDescription=This app requires access to the bluetooth.
	NSPhotoLibraryAddUsageDescription=This app requires access to the photo library.
	NSContactsUsageDescription=This app requires access to the contacts.
	NSLocationWhenInUseUsageDescription=This app requires access to the location.
	NSLocationAlwaysAndWhenInUseUsageDescription=This app requires access to the location.
	NSUserTrackingUsageDescription=
	DEVICE_PLATFORM=1
	FASTLANE_KEY_ID=
	FASTLANE_ISSUER_ID=
	FASTLANE_P8_EXISTS=false
	FASTLANE_CER_EXISTS=false
	FASTLANE_UPLOAD=0
	BUILD_APPSTORE=-1
	FLIPABIT_VERSION=251026

START DOWNLOADING PROJECT FILE
	PROJECT FILE CRC/SIZE: 955275161 6750 cloud-flipabit-1/data.pma

START DOWNLOADING ICON
	ICON FILE CRC/SIZE:


	FOLDER SETTINGS
	ADMOB_APP_ID:
	MAGAZINE_SRC: app-os/app-1-simple
	ANDROID_BUILD: app-os/build-android-1-simple

START DOWNLOADING CERTIFICATES
	Keystore exist
-rw-r--r--
	Generate android private key
	SHA1 is 454E026A184897AF1A8A600BC72DB15110254F3B
	FACEBOOK_SHA1 is RU4CahhIl68aimALxy2xURAlTzs=

START BUILDING

APK INFO

APK SIGNATURE
NO BUILD FOUND

I don’t see what is the error, and how to correct it.

One more problem that could be blocking the use of Flipabit:

The action needs to communicate with my devices with raw TCP sockets.

Is that possible?

2024-11-08_09-57-03

Да такая проблема сейчас у всех
Yes, everyone has this problem now.

So, it’s not possible.

That means I won’t use Flipabit, too bad.

I’ll try VS2022, but it lacks the drag&drop facility to build the UI.

Thanks for your input.

Не спешите убегать. VS2022 тоже много проблем. Ошибка скоро будет исправлена
Don’t rush to run away. VS2022 has a lot of problems too. The error will be fixed soon

Oh, you were speaking about the build error, I understand. I can certainly wait for that to be fixed.

But my main issue is using raw TCP sockets in an Action. Is this possible?

Я с этим не работал, придется дождаться ответа от представителей flipabit
I haven’t worked with this, I’ll have to wait for a response from flipabit representatives

After searching on Internet, I think that the best tools for me are Uno and Figma.

Thank you for your help.


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.