Android Question App Copying and Bluetooth among others....

atiaust

Active Member
Licensed User
Longtime User
Hi All,

I have a couple of questions regarding B4A Version 3.0.

1) While using B4A-Bridge on a HP Slate 7 tablet running Android 4.1.1 during testing and designing the HP Slate 7 periodically reboots. Any ideas as to what may be causing this?

2) I made some slight changes to the Bluetooth Example App (added a couple of buttons) and when the app runs on the Slate 7 the txtLog text box covers the whole width of the screen behind the buttons although on the layout it is shown only to the left of the buttons. Any idea what may cause this?

3)How can I copy a complete app that I have created to a new app? I copied the Bluetooth Example to a new folder gave it a new title, opened the layouts and saved them to the new location but when I run the app all the text appears in the txtLog box as red horizontal lines instead of text. I can’t see any variations in the properties for the text box?

4) I am using the Bluetooth Example to read data from a Bluetooth weather meter. I have been able to retrieve the data but the data strings are chopped into varying lengths and scroll down the txtLog box. Eg
Me: I?
You: Vers
You: ion 12
You: 345,
You: Seria
You: l 4567
You: 89000

The line should read:
You: Version 12345, Serial 456789000

Any advice would be appreciated.

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1) Are you connected with bluetooth or wifi? Bluetooth connection is less stable on some devices.

2) Can you upload your project (File - Export as zip)?

3) The simplest way it to use File - Export as zip and then unzip the the file in a new folder.

4) Go over the AsyncStreams tutorial. Especially the section about prefix mode. You can probably use AsyncStreamsText class in this case.
 
Upvote 0

atiaust

Active Member
Licensed User
Longtime User
Hi Erel,

Thank you for your reply.

1) I am using the Wireless connection. B4A Bridge is version v2.08

2) Attached are two zips and 1 jpeg. BluetoothKestrel.zip works but has the problem where the txtbox covers the screen and the buttons appear over it. The Kestrel.zip is the app that won't show the text. I have just realised that the red horizontal lines a spelling warning lines and the text is not visable at all. It appears that when I copied the layouts it has some how corrupted all the colours.

3) I will try as you suggest. Can I just rename the .b4a file to suit the new application.

4) I will play with the AsyncStreamsText class. I must have missed reference to it.

Thanks
Geoff
 

Attachments

  • Kestrel.zip
    10 KB · Views: 225
  • BluetoothKestrel.zip
    9.9 KB · Views: 186
  • ScreenShot.JPG
    105.5 KB · Views: 171
Upvote 0

atiaust

Active Member
Licensed User
Longtime User
2) Have you checked the designer script code? It probably sets the width of txtLog to 100%x.

3) Yes. The best way is to use File - Export as zip and then unpack it in a new folder (and rename the b4a file if you like).

Thanks Erel,
Yes the txtLog was set to 100%
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…