Android doesn't support ad-hoc wifi through programming currently as far as 
i know. Either way, such a method requires users to choose to connect to 
each other just to establish a connection which isn't that different than 
just using Bluetooth.

The way you describe your application it seems to me like the pair of 
"finding similarities with near music libraries" sounds perfect for NFC. 
Although it is very short distance, but it makes the app more of a "social 
interaction" with those around you than just snooping on people and also 
makes the network setup and data exchange very simple.

If the distance is important for you, i guess you can set up some sort of 
local server in the app that looks up other instances of the app in your 
local network (WiFi obviously), not the easiest way.



On Wednesday, October 3, 2012 3:21:55 PM UTC+2, Henrique Rodrigues Granja 
da Cruz Lima wrote:
>
> Hello there! 
>
> I'm new here, and also relativelly new to mobile development so don't 
> bother the possible imprecisions of my speech.
>
> I'm currently developing a music application, which scans an user music 
> library and tries to find similarities with near music libraries using 
> lastfm apis.
>
> I put the process of scanning library and building a database with the 
> similar artists in a background service that wakes up when the user turns 
> the internet on. The objective is to only use network in this process.
>
> With the database updated, I only need a way of passing information 
> between different devices and it's important to me that this is a *offline
> * process (I think it's one of the valuable assets of my application).
>
> For my research, the only offline connection between devices I know is *
> Bluetooth* .
>
> However, as you know, this technology is kind of deprecated and it's not 
> always reliable, principally because you can only communicate in short 
> distances.
>
> Do you have a hint of doing this in other ways? I thought about 
> *socket*connections, but for that you need to have a network connection. I 
> also 
> thought about creating this connection using *ad-hoc* networks 
> programatically, but that I don't know if it is possible (at least, not in 
> earlu versions of the android OS).
>
> Thank you very much, it is a pleasure writing in this forum! 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to