How does the Teamviewer Android App gets the screen - android

in a project I want to send the screen of my Android device to a remote service. There are some possibilities how to do that. For example copy the grafic memory (root required) or get the current bitmap of my app.
Anyway either I need root rights or I only get the screen of my own App. I saw that the Teamviewer app does something like that too.
At the end my question. How?

I think you can just make a screenshot, send it to the other phone(or to a server). Make a screenshot 2x a second, and I think it will look fine. If you really want to know how Teamviewer does it, you have to decompile the .apk file(ofcourse, at your own risk).

Related

Take screenshots from other apps as image source

I'd like to offer an app to modify images. In order to have the user give an easy access to the that feature, it would be the easiest solution to just let him directly take a screenshot to have the source picture taken or respond to a screenshot event and access the latest screenshot.
Unfortunately it seems to be a problem, since an app or even a service from the app runs in background cannot easily react to events and I haven't found any solution that would go only little close to that kind of thing.
So my questions are (lets assume all necessary permissions are given from the user):
Is there a possibility to register my app as kind of standard screenshot app (or additional screenshot app triggered by another key combination of the device) and how ;-)
Can an app stay in a state to notice if a screenshot is taken and
can access it?
If not: Any ideas for an workaround other than let the user select a taken picture, which is rather kind of roundabout and annoying?
Any hints are very welcome! Thank you in advance!
(Since I had a misleading headline, I reposted this question - sorry!)

add another app inside my app?

my goal is to get a video from a usb connected device (an easycap video grabber) displayed. There is already an android app that does exactly that. However i need to add some buttons and some extra functions to it. So i came to the idea of displaying the app that already exists inside my app. Is that possible in any way?
I already tried to decompile the existing app to edit the code a bit but i didn't get anything to work with.
Do you have any other idea? If you know how to program that please let me know what i need to achieve that.
Thank you!
This cannot be done due to security reasons in the Android OS itself.
Android provides a security layer called the Sandbox in which the OS assigns a User ID for each app, so that an app will not have permission to access resources from another app.

Android: How to access display (Activity) of different app that is not shown in upper layer

Hello Android developers,
Im more or less expierenced in Android programming and now i want to create an app that is allowed to access the display of another app or the activity that is less my app. Both apps should be active, should run. My app shall access the display data of the other app (also can be android system display), change it a bit and then show it again.
Is it possible without root rights?
Is there any Android support class that could help me? Which way i can go?
I hope my problem is clear and you can help me!
Ok now I have a more detailed question: How can open my app and show a transparent RelativeLayout, so that you can see what is below my app?
Thankyou a lot
Martin
If both applications are yours, you can access the other Activity using a connection between them (sockets, pipes, shared files, etc.)
If you'd like to create an overlay and display something on top of the other app, you can do that using a 'system window' popup. For example: Popup window in any app
If the other app is an arbitrary software without any modifications, such thing is not possible as it would lead to security issues. Both applications are Unix processes running in their own sandboxes without any direct communication.

Change layout of the built-in application

Is it possible to change the layout of the built-in application of the Android?
I have Samsung S Duos and I want to change layout of some application(dialer, SMS messenger and phone book(contacts) are not so user-friendly for dual SIM cards)
Is it possible to make buttons of this applications bigger or smaller or to add a new option (sub menu)?
If yes, is there easier way than rewriting and compiling whole Android source? Or maybe there is an option to change the phone book(contacts) and reinstall it as a new application?
Any help is appreciated
Is it possible to make buttons of this applications bigger or smaller or to add a new option (sub menu)?
Somebody with sufficient experience could do this, yes.
is there easier way than rewriting and compiling whole Android source?
No. And even that is insufficient, as the result will not run on your phone without the requisite drivers.
Instead, find a ROM mod that can run on your phone, then start with that ROM mod's source and make your changes.
Or maybe there is an option to change the phone book(contacts) and reinstall it as a new application?
It is conceivable, though unlikely, that the maintainers of your chosen ROM mod have arranged for some of these apps to be buildable as SDK apps. Most likely, this is not an option for you.
I guess you can't just edit the application without having the source and recompiling it. You can modify your build.prop to edit your screen density value. If you change this, you will have more (Or less) buttons etc. on your screen. But editing this file is very dangerous and I don't recommend it.
Ok first off your the one that needs help so you dont have to be rude, secondly the source code is not going to be in your phone because its going to be a binary file. And unless you know how to convert a binary conputer kanguage fike to source code then your sol. This website is not a place where we write code for you. If you have no code to display then theres not much we can help with. And the only people that have the actual source code are going to be the developers that made the application which are the developers that made your phone. In this case shoot an email to your phones company which is samsung and see if they will release you an open source code that you can go off of. That should answer your question on how to get the source code. If they dont give it to you then you cant get it.

to get a current screen view from my own application

I am running one external application from my own application and when this application opens, i want to get a view of that external application in my own application. So that i can capture a screenshot of it. Please help me in this.
I dont think thats possible. The communication between applications or even activities is limited to passing data to each other through intents. I don't think sharing references to objects across applications is possible. Please correct me.
Such a thing would be possible if they allowed you to launch an external application in your own window.
I did some search and it is quite likely it may not be possible, however I have found a possible way. Take a look at this link, which states that
Or If you want to take a ScreenShot of your current device screen (any
application) then you have to root permission, and read framebuffer
for that which will give raw data of current screen then convert it to
bitmap or any picture file you can do it in your service.
Which means that whenever your application starts an application you will need to create a service that reads the framebiffer, but if an activity is used for taking the screenshot then it will not be useful because the screenshot will then be of that activity.
See this and this, these links are related to your question as well. And see if it works.
Hope this helps.

Categories

Resources