Android Question Dual monitors

Theera

Expert
Licensed User
Longtime User
Hi all,
Is there example about coding manage dual monitors which displays different contents?
Best Regards,
Theera
 

Attachments

  • Screenshot_20230818_192304.jpg
    Screenshot_20230818_192304.jpg
    115.2 KB · Views: 272

Theera

Expert
Licensed User
Longtime User
Why you need to buy it?
Do you have customer yet? If no, i think better don't waste your time on it.
Try what you can afford.

Maybe the more economically way is to develop a second app to install to second tablet (normally cheaper) and the main app in first tablet send the price to the second app through some kind of protocol (eg. Bluetooth, WiFi, MQTT or use timer to pull data from a first tablet database).
I think apps like Loyverse has another "Customer Display" app. No need fancy integration SDK.
Refer to my background.
I'm a agro chemical saleman. The first time,I was looking to learn coding Windows Mobile app and need to learn English. I love appforge for VB6.0 ,it's easy to learn,but it stopped delvelopping. And then I found Erel's basic4ppc. But,the lastest decided,I selected B4A. I love Erel's products. I hope only to learn them.My business is not used technology. Because I don't have more customers.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Refer to my background.
I'm a agro chemical saleman. The first time,I was looking to learn coding Windows Mobile app and need to learn English. I love appforge for VB6.0 ,it's easy to learn,but it stopped delvelopping. And then I found Erel's basic4ppc. But,the lastest decided,I selected B4A. I love Erel's products. I hope only to learn them.My business is not used technology. Because I don't have more customers.
It doesn't matter about your background.

It does not make sense to me if you don't have a target or any existing hardware for development.

Why I said you don't need to buy one. I just contacted my local distributor for Sunmi through their Facebook page. I am requesting for a loan unit by telling them I am a software developer that I want to do development. I am waiting for their reply.

If you really want to explore retail POS business, don't hesitate and try look for ways to work with local distributors. I think some will come back to you.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
Look, the question is what your goal actually is. It is important to realize that VB solution only works on a Windows PC, while you always talk about Basic 4 Android (B4A) and show a picture that looks very much like a Windows PC.

A low budget solution has already been indicated to use a cheap standard tablet as a second user screen. Of course, you could first start working out your idea as a Proof-Of-Concept (POC). This is possible with a tablet where you temporarily print the screen output on log. If you get stuck with this POC, there's no point in delving into displaying anything on the second screen.

Whatever you should ask yourself whether you only want to show something, or whether you also want the customers to look up something. The answer largely determines the complexity of the solution.

If the POC seems to be successful, you can use your programming experience to see how you can realize a second screen connection. There are two obvious possible solutions for this. The first is to "mottle" a chat solution over WiFi. Chat examples can be found on this forum. Another possibility is to connect two tablets and let them communicate with each other with a "crossed" USB cable. I think the first suggestion is easier to implement

SO TAKE A PIECE OF PAPER AND FIRST WRITE DOWN WHAT YOU WANT TO ACHIEVE, THEN CHOP EVERYTHING INTO SMALL PIECES, THEN THINK HOW YOU CAN POSSIBLY REALIZE THOSE PIECES AND THEN SEARCH FOR EXAMPLES IN THIS FORUM AND WORK THEM OUT.

If you run into a specific programming problem, post your code and your problem on this forum and there will undoubtedly be someone who is able to help you further.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Hello MicroDrie,
Due to my English is badly,so I used google translate your massage,but I try to write respond to you myself. I had never coded 2 monitors before in any platforms. I tried to study how to do in VB6.0 for having the idea.
I'm interested in B4A how to do. I don't know how to extend monitor in android device. I tried to study in youtube and websites. I found only how to make android to be the second monitor of Windows,Mac. I think my this tread should closed because I don't have more information to ask others. Thank you all of you.
Best regards,
Theera
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Sometimes I feel frustrated when my messages are being ignored.
What you have asked have been answered.

I tried to study how to do in VB6.0 for having the idea.
For VB6 solution, as I have written, since it is a desktop windows application, it is easy to do.
You just need to set the Form startup position to x, y point which is on another monitor when the Display settings is set to Extend.
Let say the first monitor have resolution of 1024 pixels wide, then if you set the second form to display with position let say x = 1028 (adding some buffer gap, this is trial and error) then the second form will be appear in the second monitor. You need to adjust the form size accordingly to fit the screen.
My experience with my previous job is that the software was design in such a way and all the shops are using the same hardware, so there will be no compatibility issue. All terminal will be install (clone) from a workable windows image (Ghost).

But why you want to use VB6?
It won't work for Android! You can only try on a PC with 2 VGA or display ports.

I'm interested in B4A how to do. I don't know how to extend monitor in android device.
In Android OS and hardware, it is a different case.
I have already proposed several solutions.
eg. Bluetooth, WiFi, MQTT or use timer to pull data from a first tablet database
For me, MQTT is a good solution for 2 Android devices.

I don't know why you ask this question at the first place.
If you are just curious, you get short answers.
If you are serious to get a solution for business purpose, then there are much for discussion.

However, I don't see you are keen and easily give up. Language barrier for me is not an issue at all as we can use translator.

I understand people with low self-esteem or imposter syndrome because I am/were one. I also a shy person and have lack of confidence most of the time.
But if you believe you want to create something, just don't easily give up.
People replied to you because they want to help you.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
1. why you want to use VB6?
I have a little knowleage of VB6.0 before. (Usually,eveyone always starts learning what he has.)
2. others'questions
I think that what PC can do ,Android should can do as well. Many my cases ,I always use my imagine.

I'm sorry that my English. I can't more explain that.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
I don't feel I want to spoon feed anyone at this moment.
Whenever you feel better,I ready to learn your code. Your code really make me hungry to learn.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Whenever you feel better,I ready to learn your code. Your code really make me hungry to learn.
I have given the direction. Go for MQTT.
It is not easy to understand but it gives a solution so depends on you.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
@Theera I have built the exact thing you are looking for. Got it working on the Sunmi. It's a java wrapper library that I built on Eclipse. Let me know if you are still after it, I can share it.
I would like to learn, If you please to share it, Many thanks a lot.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
@Theera I have built the exact thing you are looking for. Got it working on the Sunmi. It's a java wrapper library that I built on Eclipse. Let me know if you are still after it, I can share it.
Please don't post to old threads.
I suggest you create a new thread and link back to this thread.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
@Theera
You have been on the forum long enough to know that you should really create a new post with your question, then add a link to this old post.
Hi Peter,
It was not Theera who is posting a new question on existing old thread.
I am referring to AneeshJay who replied on post #31 above.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
&?
I'm not in the dam mood for this, good bye.
Sorry. I just want to point out that you misquoted a member.
If you have time on one day to read from the beginning, I am actually more frustrated than you to answered Theera's questions.
I already suggested him to learn to get a solution.
Btw, I just shared 2 solutions earlier today, after 1 year+ from this thread started, in Tutorial & Examples.
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Sorry. I just want to point out that you misquoted a member.
If you have time on one day to read from the beginning, I am actually more frustrated than you to answered Theera's questions.
I already suggested him to learn to get a solution.
Btw, I just shared 2 solutions earlier today, after 1 year+ from this thread started, in Tutorial $ Examples.
You caught me at the wrong time, sorry about that?

My frustration is a simple one. All the answers are already on the forum and have been for years, a library is NOT necessary. Android solution work great (MQTT is not really a solution for him but still a good idea). He can simply create a B4J dual screen solution using a computer/laptop and 2 monitors, then in the future when he can afford it, buy a cheap windows AliExpress POS terminal with dual screen and run the B4J code on there. These are all extremely simple solutions that the basic code is already available on the forum in one form or another.

Yes, I've also created Android POS solutions for a local firm that sell them onto their customers, not difficult as the forum search box works great. But I personally prefer the dual screen Windows solutions, that is what I prefer but customer can pay me to do either.

I've deleted my previous posts including the test source code I put together for him which was only a few lines long. Code examples are easy to find on the forum with a quick 60 second search.

Anyway, I've now got to walk into a meeting with a company and explain to them why I refused their project offer as they want me onboard but I do not want to be.

I'll message you later @aeric
 
Upvote 0
Top