bantucracy / ayanda

Android Library to discover nearby devices Offline
https://sabelo.mhlambi.com/projects/ayanda
44 stars 21 forks source link

switch to using URI instead of file #30

Open n8fr8 opened 6 years ago

n8fr8 commented 6 years ago

Android doesn't really want direct use of File anymore, when it comes to accessing media throughout the system. Much better to use a URI.

n8fr8 commented 6 years ago

Also fixes an issue with discovery... if it fails, you don't need to call stop, as that throws a RuntimeEx

n8fr8 commented 6 years ago

More improvements... I integrated implementations of the server and client directly, since these are pretty standard reusable pieces of code.