You are on page 1of 3

1/22/2017 Android Applications: How does the Share It Android app work?

 ­ Quora

Android Applications Mobile Applications

Android Applications: How does the Share It Android app
work?

6 Answers

Karuppiah Natarajan, Novice. Love Connected Devices. Love Networking in
Android.
Updated Feb 9, 2016
If you are asking about the implementation. Well, I have created a file sharing app myself.
It's all about networking concepts. There is a receiver and a sender. One of them creates a
WiFi hotspot. And the other connects to it. Now a local network is formed. Both will have IP
addresses. Now, sender can select a file and then click send. The file is transferred through
TCP and the receiver is identified by the IP address ( TCP - I m guessing it. It's because when
I tried UDP myself, many packets were lost. Many. )

Now, the high speed part, well, the file is actually sent in chunks, and the progress is shown
based on how much chunks are sent.

Share It app optimizes the chunk size I suppose and i suppose it also optimizes on reading
the file at sender side and writing file at receiver side. I don't know how. I m experimenting
on it, for my app and have some extra features to add.

But I have created my app with simple concepts and I have achieved speeds up to 6 MB/s .

Search for questions, people, and topics Sign In
And the maximum link speed when connected to an android hotspot, is usually 65 Mb/s
which is about 8 MB/s ( note the 'b' and 'B'. B - Byte. b - bit. ) , may be there are devices which
have better WiFi NIC cards that provide better maximum link speed. So, even if you utilise Related Questions
the full bandwith, and send the file, it will be sent at about 8 MB/s speed. So, I think, in my
app, even 6 MB/s is good. And the sharing speed is dependent on many factors! Here are a What are some must have Android apps?
few that I found out ( so, basically, they are just theories. But I found good reason in the
theories. ) : How do Android App updates work?
1. Link speed of the connection. Link speed differs based on the distance between the
How do Android Instant Apps work?
devices. I mean, it's based on WiFi signal strength. That's why I used the word "maximum"
along with "link speed". Is IFTTT working on an Android App?
2. Reading speed of the internal storage or sd card, where ever the file is stored ( at sender
side ) and Writing speed of the internal storage or sd card where ever the file is going to be How do I track a missing phone without any app?
stored ( at receiver side )
How do I retrieve deleted Snapchat messages?
3. Size of the chunks being sent
4. How much bandwidth is being used by the app to send the file. It's good if it's able to Will the Twilight app work with Android 5.1?
utilise maximum bandwidth. It is because, I could guess some stuff that can actually stop
How do I make Android App and make it work?
the app from using full bandwidth. I am yet to recheck and confirm using network
analyzers. But I think I am right about this guess. This is the only explanation I could find Android Application Development: How do I develop a
for drastically varying speeds for different transfer sessions, while I transfer files between file sharing app in Android?
the same devices. So, this is the guess. Like, when a receiver connects to a sender's hotspot,
some of the apps in the receiver which are running in background, will detect this WiFi ( Is there any application for sharing pics from gallery
to my story in Snapchat in Android ?
they detect whenever network state of the device is changed ) and think it's an Internet
connection and will try to send requests to their servers to get data for showing
notifications, but only after trying to send a good amount of requests, it will understand
that there is no Internet connection. And will stop trying to send requests. There will be
many apps like this. For example Whatsapp, Hike, YouTube, etc. Since these requests are
trying to be sent , it actually uses the bandwidth of the connection and our sharing app will
not be able to use full bandwidth.

If you are an android app developer and you want to know how to code and stuff. First, you
gotta learn socket programming in Java, and try them at PC level. Then learn how to
implement network operations in Android, you can't just put in the Java code that you tried
at PC level , you gotta use threads or services and do some extra stuff. Ask me if you are into
such stuff and want to know more.

13.7k Views · View Upvotes

https://www.quora.com/Android­Applications­How­does­the­Share­It­Android­app­work 1/3
1/22/2017 Android Applications: How does the Share It Android app work? ­ Quora

Related Questions More Answers Below

What are some must have Android apps?

How do Android App updates work?

How do Android Instant Apps work?

Is IFTTT working on an Android App?

How do I track a missing phone without any app?

Sumitkumar Maji, developer
Written Oct 7, 2015
ShareIt app creates a virtual wifi hotspot from the sender phone.And by scanning the bar
code of another phone ,it allows the receiver phone to connect. As its a peer to peer
connection,thus logical speed can get upto 10 MBPS.The wifi hotspot can transfer the data
via wifi using the P2P connection and thus its very efficient to transfer data as the speed gets
pity high

13.1k Views · View Upvotes

Gaurav Sant, I am a novice in android development world
Written Jul 23, 2015
The app uses Wifi P2P function to connect to other devices by creating a network. This page
by Google might help you to know in detail : Wi-Fi Peer-to-Peer

Hope this helps


A2A , thanks

10k Views · View Upvotes · Answer requested by Manavi Garg
Search for questions, people, and topics Sign In

Anmol Verma Related Questions
Written Jul 25
"Share it" creates a connection between 2 or more than 2 mobile phones by using the wifi What are some must have Android apps?
feature of your mobile.
How do Android App updates work?
It is similar to wifi direct.
How do Android Instant Apps work?
As we all know, wifi is capable of transferring a huge amount of traffic as compared to
bluetooth or infrared singals that's why share it can transfer GB of data in couple of Is IFTTT working on an Android App?

minutes. How do I track a missing phone without any app?

That's how this amazing app works :) How do I retrieve deleted Snapchat messages?


1.4k Views · View Upvotes · Answer requested by Shashi Raz
Will the Twilight app work with Android 5.1?

How do I make Android App and make it work?
Chakri Sai, Novice @ Android...
Written Aug 12, 2014
Android Application Development: How do I develop a
As  we all know we use wi-fi hotspot for giving a free wi-fi for our friends for some time till file sharing app in Android?
we have the net balance and we acquire the internet ascess at home for our android devices
Is there any application for sharing pics from gallery
via wi-fi adapter(in-built) so now look at this description here basically our hot-spot adapter
to my story in Snapchat in Android ?
is transmitting the data whereas our wi-fi adapter is recieving the data at a larger speed
when compared to our speed of transfer of data via bluetooth hence the transmision of data
either recieving or sending necessarily must become fast through this method... Hence i
think for this reason the app is designed in such a way that as and when u power on that app
it automatically switches on our hotspot and wifi adapter for a faster tramsmission of
data.... This is jst my assumption i donno about the working mechanism of that app....
If anyone knows the actual working phenomenon they can please comment on my answer...

12.3k Views · View Upvotes

Related Questions

How do I retrieve deleted Snapchat messages?

Will the Twilight app work with Android 5.1?

https://www.quora.com/Android­Applications­How­does­the­Share­It­Android­app­work 2/3
1/22/2017 Android Applications: How does the Share It Android app work? ­ Quora
How do I make Android App and make it work?

Android Application Development: How do I develop a file sharing app in Android?

Is there any application for sharing pics from gallery to my story in Snapchat in Android ?

Is it possible for more than one person to work on the same app for android application
development?

How does the Airdroid app for Android work?

Which Android app shows live share market charts?

How do I get my app reviewed with a good rating and comments, as App2Top is not able to
deliver?

How do I launch an application in android app store?

Do the battery saver applications actually work? If they do, which is the best battery saver
application for Android?

How do I create a screen sharing app in Android?

Does the Android Assistant app really work?

How does the "Magicjack" Android app work?

Mobile Applications: What's the most innovative app?

Top Stories

What should you do if you find a Why would someone say they What do winning Olympians do


ticking nuke with only a few don't look at prices at the grocery with their medals after they win
minutes left on the clock? store? them?
Search for questions, people, and topics Sign In
Franklin Veaux, Decidedly non­ Kelley Spartiatis, This isn't a dating Steve Donie
hypothetical. site! Written May 16, 2012
Written Apr 20, 2015 Written Jan 12, 2016 Related Questions
My brother (Scott Donie)
Nuclear weapons are extremely complex I'm not rich but I don't check prices. I
won a silver in platform
devices that can only detonate if a shop at my local supermarket and it's What are some must have Android apps?
diving in Barcelona, 1992.
precisely controlled sequence of events reasonably priced, generally. If I want to How do Android App updates work?
The original is in a safe
happens in precisely the right way. buy a leg of lamb to cook then I'm going to
deposit box. My mom had a
How do Android Instant Apps work?
Seriously, it's surprisingly tricky to get a buy it. I'm not going to go home and say
cast made of it and a replica made. That
nuclear explosion. Most nuclear devices "The lamb was £20 so you are having Is IFTTT working on an Android App?
replica is in a picture frame in my parents
are implosion devices. There's a ball, chicken" I don't think that's extravagant or
house, along with a picture of Scott that
How do I track a missing phone without any app?
surrounded by explosives, all of which careless. I don't think others are wrong for
Read More Read More my Dad took. Read More
must detonate precisely at the same time being careful either. One thing that I do is How do I retrieve deleted Snapchat messages?

Will the Twilight app work with Android 5.1?

Sitemap # A B C D E F G H I J K L M N O P Q R S T U VHow do I make Android App and make it work?
W X Y Z
About ­ Careers ­ Privacy ­ Terms ­ Contact
Android Application Development: How do I develop a
file sharing app in Android?

Is there any application for sharing pics from gallery
to my story in Snapchat in Android ?

https://www.quora.com/Android­Applications­How­does­the­Share­It­Android­app­work 3/3

You might also like