Java Question library generation request; java code given

leitor79

Active Member
Licensed User
Longtime User
Hi,

I've been looking a way to take screenshots from a service, and I've found that there is no way on android to take screenshots of other apps (here; I could't find the "many other threads" referring to that maybe because the word "screenshot" is used in many contexts). I've trying for hours using and example with JavaObjects I've found here, getting exceptions, until I've found (I believe) that the example is made for B4J because some "awt" libraries doesn't exist on android (true?).

Looking for a bit more I've found some java class that claims to take screenshots on android without even being the device rooted (here). I've read the manual to convert that java code into a b4a library but I think I'ts too much for me since 1) I don't know java (that's why I'm using b4a) and I have difficult following the library creation tutorial, 2) I don't even have eclipse installed and 3) I'm just playing around to get familiar with b4a; it's not like I'm learning java for this; this "project" doesn't worth installing eclipse on my overloaded-developer-pc.

So, because maybe is useful for someone (it would be for me), now or in the next years, someone could convert the java library provided into a b4a library before I do it when I get time (sometime after 2018 I think)

Also; would that library be able to take screenshots, once converted? Or with just a look one could say it won't work?


Regards!
 

leitor79

Active Member
Licensed User
Longtime User
Thank you very much, Erel.

However, I've seen some apps claiming to take screenshots. When you say "it is not possible", you mean, using b4a?

Regards,
 

thedesolatesoul

Expert
Licensed User
Longtime User
Thank you very much, Erel.

However, I've seen some apps claiming to take screenshots. When you say "it is not possible", you mean, using b4a?

Regards,
No, he means using any Android device.(B4A can do anything that any other IDE can do)
This question has been asked many many many many times before.
 

leitor79

Active Member
Licensed User
Longtime User
Hi thedesolatesoul, thank for your answer.

The thing is that is hard to find related topics because "screenshot" is an ambiguous term here. Most topics I've found are about taking a screenshot from b4a IDE. And since I've found some code I didn't want to change subject from the most recent topic I've found (the one I've linked).

I've asked the possible question because there are also so many many many apps on the play store claiming to take screenshots (most of them says they require rooted devices, but some don't say it). I'll test some of them on a non-rooted phone and I'll post the results back.

Thank you very much.
 
Top