Wi-Fi direct support in Android

by Sumanth » Thu, 19 May 2011 22:35:18 GMT


Sponsored Links
 Hi,

We intend to support for Wi-Fi direct with our hardware on Android.
As per 
 http://www.sfonge.com/forum/topic/when-will-android-open-wi-fi-direct-api ,
Wi-Fi direct support may be added in Ice-cream Sandwich.

Existing Android Wi-Fi uses Linux wpa_supplicant for Station mode and
netd for Access point mode.



Other Threads

1. ANR after stopping application

Hi,

I have a problem where the application goes ANR after it has been
shutdown (i.e. onDestroy() is called)
Specifically, it does not go ANR immediately, but if I try to open
another app, it gives the error.

I/Msntop  (  740): OnDestroy
I/ActivityManager(  563): Stopping service:
com.android.msntop/.services.PingService
I/PINGSERVICE(  740): in Destroy

W/ActivityManager(  563): Timeout executing service: ServiceRecord
{4374f708 com.android.msntop/.services.PingService}
I/ActivityManager(  563): ANR (application not responding) in process:
com.android.msntop
I/ActivityManager(  563): Annotation: Executing service ComponentInfo
{com.android.msntop/com.android.msntop.services.PingService}

"main" prio=5 tid=3 WAIT
  | group="main" sCount=1 dsCount=0 s=0 obj=0x40018e70
  | sysTid=740 nice=0 sched=0/0 handle=-1092596580
  at java.lang.Object.wait(Native Method)
  - waiting on <0x1ae810> (a android.os.MessageQueue)

Any thoughts. Oh more details and full logs are available at :-
http://code.google.com/p/msntop/issues/detail?id=13

TIA,
Devendra Laulkar.

--~--~---------~--~----~------------~-------~--~----~

2. Building a step-sequencer

Hey all.  This is my first post to the Android group.  I grabbed the
Android SDK a few days ago and have been playing around with it in the
time that has elapsed since.  I've built a few simple apps to get a
feel for everything and have been generally pleased.  In any case, I
am posting here because I am interested in building an app with a step
sequencer and am not quite sure how best to go about doing it.  My
idea is that the user would be presented with a row of 16 toggle
switches, a tempo control, and a few buttons to select instruments
(kick drum, snare, etc...this is basically an emulator of old-
fashioned drum machines).  Each instrument would have its own 16-step
pattern and when the user pressed a "play" button, all of the
individual patterns (which might more appropriately be called "parts")
would play back simultaneously.  Accomplishing all of this would be
relatively straightforward if Android/Dalvik had a javax.sound
implementation (it includes midi tools and audio playback tools) but I
know that it doesn't.  I was thinking, then, that the best way to go
about building my program would be to have a bunch of MediaPlayer
instances and some sort of scheme for representing patterns as strings
(maybe something as simple as 0s for "no-hit" and 1s for "hit").  I
was thinking I'd keep these pattern strings in an XML file and update
it every time the user changed the state of a toggle switch.  For
playback, I was thinking I'd parse the XML file such that I'd have a
16-element array of, let's say, 10 (if there are 10 instruments)-
element arrays of 2-element arrays where the 2-element arrays consist
of [(instrument), (hit/no hit)].  I'd then use a timer (set to user-
selected Tempo) to step through the 16 element array and, when an
instrument represented in the contained array had a "hit" state, call
the start method of the corresponding MediaPlayer instance.  So,
that's my fairly convoluted solution to the problem.  I am posting to
the group because I am so new to the SDK and figured that I should
probably ask of those more experienced whether there is some glaring
problem with this solution or, perhaps, if there is a far more simple
way to go about accomplishing what I'm trying to accomplish.
Thanks,
Nick

--~--~---------~--~----~------------~-------~--~----~

3. Is there a way to control the Android phone or do a automated test using a remote PC?

4. Build failure

5. SSL Certificate HTTPClient

6. Why the main menu of the app acore come out with a halt on my platform.

7. MediaController is not working properly with MediaPlayer