• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to run a activity in background?

Is this a programming question?
If so can you possibly provide some code to demonstrate what you're trying to do?
 
Are you trying to somehow piggy back an application on top of another one? Just think about the security implications of that, and realise why Google wouldn't allow it. Have you heard of a Trojan Horse virus?
 
You would need to install a receiver app on the target device, which is listening for the incoming data.
But I don't understand what you mean by 'execute it there'. What data are you talking about?
 
yes there will a receiver application installed on other device.
on other device application is not installed, so data processing is done in sender device.
 
Sorry I'm not really getting a clear picture of what you're trying to do. You cannot simply stream 'application code' across to another device and have it magically execute. There is absolutely no facility for doing that.
 
What are the main feature requirements for your team viewer application?
 
both users will install the application.
both will connect with each other.
and second user will see same screen as first user and second user can operate the phone of first user from his phone.
 
Sorry I have no knowledge of how to do this, but your question has now been clarified in case other people want to comment.
 
So I'm intrigued about this, and the technology behind it. I assume this involves connecting to the display server of the target device. In the past you could do this using X11 protocol, but I don't know if Android uses it. My web searches have drawn a virtual blank on the specifics of how to do it.

Anyway I stumbled across a page on the Teamviewer website. They do provide an SDK for screen sharing. This could be your best bet, as I think to implement it from the ground up will be technically very challenging, not least because of the lack of information on how to do it.

https://integrate.teamviewer.com/en/develop/screen-sharing-sdk/android-tutorial/
 
Back
Top Bottom