3

In my Android application one Mob Phone will share the desktop screen with other Mob Phone both connected to the same network. So how it is possible to view all the files of One Mob phone from other Mob Phone through WIFI? is there any socket programming idea used, please elaborate the solution

Pir Fahim Shah
  • 10,505
  • 1
  • 82
  • 81
  • Why you are asking same question again ? http://stackoverflow.com/questions/14994865/how-to-share-files-with-other-mob-phone-connected-to-the-same-network-with-which – M-Wajeeh Feb 21 '13 at 12:14
  • 1
    Learn Client Server programming. Launch your server on one Mob and launch your client on other Mob, and then do whatever you want to do. – M-Wajeeh Feb 21 '13 at 12:16
  • @M-WaJeEh So, if want to get services from client as like server then will it b possible, for example as like a bluetoth where when device connected then they can share file from both side, so can i do this with socket programming – Pir Fahim Shah Feb 21 '13 at 12:46
  • I don't understand what you are trying to say but yes you can share anything using Client Server architecture and when I say anything then it includes file names, files, songs, images etc. In short anything that one Mob has can send to other Mob with this architecture. – M-Wajeeh Feb 21 '13 at 12:50
  • @M-WaJeEh that great, and the one thing which still stuck in my brain, will it be possible to communicate on both sides, as i have seen in many articles that one will be server and other will be client, and client will be send data to the server through its designated port no, so i think it will be in bidirectional. – Pir Fahim Shah Feb 21 '13 at 13:04
  • Communication will be bi-directional, who can start communication depends on who is server and who is client. Client can start communication anytime, server just sits and listen. Once communication is happening, its bi-directional. – M-Wajeeh Feb 21 '13 at 13:14
  • Do u want to watch screen of one phone on other's screen or share file over wifi? – WSS Feb 21 '13 at 14:01
  • @user1917769 i want both, but at this moment i want to see the screen of one on another, means desktop sharing. so how can i do it – Pir Fahim Shah Feb 21 '13 at 14:24

1 Answers1

2

use android screenshot library(http://code.google.com/p/android-screenshot-library/) for getting phone's screenshot and send them to other phone

WSS
  • 503
  • 5
  • 20
  • So i have connected two mobile phone through wifi and ASL library perform an action on one side and will send this pic to other side, so this ok...but when i'll click on any file of the image which i have received then how it will open that file in other Phone, actually i want that one device share his desktop with other and the other will control its file upto some extent, is it possible with sending mouse position findin – Pir Fahim Shah Feb 22 '13 at 16:44
  • 1
    what do u mean by clicking on any file of the image?If u want to control other phone then u will need rooting on that phone. – WSS Feb 23 '13 at 06:19
  • i don't understand "Rooting on phone". is this method will show me all the file of other device in my device and then i'll be able to control it. please elaborate little bit about that. thanks for previous comments that so helpful. – Pir Fahim Shah Feb 23 '13 at 09:11
  • 1
    rooting gives root access to user(http://en.wikipedia.org/wiki/Android_rooting).(1)If you want full control of other phone then 1st u need rooting on that phone to give ur application root priveleges that will accept data from ur 1st phone and will change it to needed actions.(2)If u want file transfer between phones then 1st send all file name to other device.Show them in a list manner,when user clicks on any item then start file transfer(rooting not needed) – WSS Feb 27 '13 at 06:34
  • thanks for continuous help from a long time. i have some idea about file transferring but have't about rooting, i will study it myself. when i'll get a problem, then will post here for your suggestion. – Pir Fahim Shah Feb 27 '13 at 09:11