detect devices running same app OTA

by RthrBe » Wed, 02 Jun 2010 07:24:48 GMT


Sponsored Links
 Hello everybody,

I'm starting thinking about a new app to use Android 2.2 new features.
But I'm not completely sure this cousl be possible. Therefore I need
your lights about it.
I'll explain.

I would like to develop an app where a device can detect another phone
using the same app  to initiate - if owners are OK of course - data
exchange OTA.
I'm not sure about the best approach / architecture to do so.
Is Wifi tethering (with both a client and a server) could be the best
way ? But I'm worried about the performance / ressource impact of the
"detection".

If someone has tips or experience to shar, you're welcome !!

Thanks for your help !

Arthur B.


--



Other Threads

1. is there any API available to receive the broadcast receiver for app started.

Hi All,

I have one question.

I want to receive a broadcast receiver whenever any app is started.

for example:
I have an app which has the broadcast receiver which listens for the
app started event .

I installed this app on the device.

Now I have opened the Phone or Contacts app. Now my app which is
listening for this kind of event(app opened or started) has to be
invoked.

can any one tell me the solution?

Thanks,
Manoj.

-- 

2. Run AsyncTask from a non-ui Thread

I have a helper class that contains definition of an AsyncTask(inner
class). Other classes instantiate this class and call one of its
method which in turn instantiates, the AsyncTask and starts execution.

class TaskManager{

private class SomeTask extends AsyncTask<>{}

public void performTask(){
new SomeTask().execute();
}
}

//usage: new TaskManager().performTask();

I schedule Alarms which when triggered start a Service. When the
service starts it creates a Runnable and enqueues it in the work
queue. From this Runnable, I want to instantiate my helper class and
start execution of the AsynTask.

The problem is AsyncTask needs to be instantiated from main UI thread
I am getting errors as soon as the spawned thread calls the method of
the helper class. The exception is that AsyncTask cannot be called
from a thread that hasnt called Looper.prepare().

How do I avoid this?

-- 

3. How to get the Android OS version using adb

4. Corporate Email Closes Randomly

5. Access to databases from native code (for example mmssms.db)

6. Howto integrate 3rd party app to tabhost

7. Navigating between screens