Saturday, July 14, 2012

ADK 2012 for Android

Despite the popularity of the IOIO board for Android (a tool for adding external hardware to Android devices), which has the largest developer/hacker community, Google does not abandon its Accessory Development Kit (ADK). At Google I/O 2012, the team made another demo of ADK, using another board different from what we saw (or used) last year.



ADK 2011:



This time, you get some serious design:

ADK 2012:


The new Audio dock API and HID API seem to be the main interests of this ADK 2.0, which are very easy to implement.


The entire project is open-source as usual. If you want to make your own ADK 2012 board, please get the schematics and source code here:
http://developer.android.com/tools/adk/adk2.html#src-download

Once you get your ADK board, you can play with it using the official application available in the play store:


ADK 2012: https://play.google.com/store/apps/details?id=com.google.android.apps.adk2
ADK 2011: https://play.google.com/store/apps/details?id=com.diyphonegadgets.DemoKit


For example, for those of you who want to make an external audio dock for Android that is able to play audio over a USB connection, simply grab a device running Android 4.1 (API Level 16) or higher (e.g., Galaxy Nexus), prepare your ADK 2012 board, open your favorite Arduino IDE, and start your pleasant development now.

The ADK 2012 provides a reference implementation of this functionality for accessory developers. No software application is required to be installed on the connected Android device, accessory developers only need to support AOA v2. This implementation demonstrates audio output of 16bit, 44.1kHz stereo PCM source data compressed into a single channel due to the audio hardware available on the accessory.

Using the audio output features provided by the ADK library requires only a few function calls. The first few calls are in the accessory setup() routine, which prepare the accessory for USB connections and audio output, as summarized in the code example below:

ADK L;
void setup() {
  L.audioInit();
  L.usbh_init()
  L.usbStart();
}

For more information about the ADK::audioInit() function, see the libraries/ADK/Audio.c library file. For more information about the ADK::usbh_init() function, see the libraries/ADK/Usbh.c library file.

After completing this setup, the loop() function calls ADK::adkEventProcess() to handle audio output and other ADK functions:

void loop(void)
{
  ...
  L.adkEventProcess(); //let the adk framework do its thing
  ...
}

This call executes task queuing for the ADK and as part of the execution process, the task queue executes usbh_work() inlibraries/ADK/Usbh.c, which handles audio output requests. Review the implementation of this function for details. For additional implementation details on audio output, see the libraries/ADK/accessory.c library file.

Enjoy the official presentation here:


56 comments:

  1. very nice post I just enjoy reading it
    thanks for sharing it here

    ReplyDelete
    Replies
    1. Great Article
      android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. I am very interested in your post. The information in your post is very benefitable for me. Thanks for share this post.

    ReplyDelete
  3. wow just got this app DIY and loving the possibilities..makes me want to become a developer!

    ReplyDelete
  4. Looking at the images in this post it seems that this would be completely different and interesting design from Android this time. Hope I will be one of the luckiest developers to get this kit.

    ReplyDelete
  5. I want this ADK board and i want to run my official application . Thank you for give me a chance to get technology reviewsthis useful product. I am really thankful to you.

    ReplyDelete
  6. This sort of article is fascinating and enjoyable to peruse. I cherish perusing and I am continually hunting down useful data Visit Website

    ReplyDelete
  7. Let be honest, pretty much every phone call that we get is an interference. When we are occupied with a transaction, this can be a genuine bother.free-lookup.net

    ReplyDelete
  8. steam cleaners can clean lots of dirty clothes in a very short period of time that is why i always prefer to use them., wholesale custom phone cases

    ReplyDelete
  9. The blog is great. Basically love the way how all the composed function has been put.
    telephone lookup

    ReplyDelete
  10. The quality of your blogs and conjointly the articles and price appreciating.www.whichandroid-phone.info

    ReplyDelete
  11. Thanks for the post. Visit Kanhasoft - Android App Development Company if you want to develop Android app at affordable rates. For more visit our site.

    ReplyDelete
  12. Development of Android applications has unlimited benefits to your business or organization. And with developers being specialized in the most current operating systems, they will make sure your app is up to par with the rest, taking in all of your suggestions.appmirror

    ReplyDelete
  13. Apps like Latitude allow you to share your exact whereabouts with family and friends.
    traceur de telephone

    ReplyDelete
  14. There are some interesting points in time in this article but I don?t know if I see all of them center to heart. There is some validity but I will take hold opinion until I look into it further. Good article , thanks and we want more
    how to use kingroot

    ReplyDelete
  15. Your website is really cool and this is a great inspiring article. Showbox APK 5.14

    ReplyDelete
  16. Cool article it's really. Friend on mine has long been awaiting just for this content. showbox apk

    ReplyDelete
  17. It is interesting to read your blog post and I am going to share it with my friends.aybabg

    ReplyDelete
  18. great guy awesome article spotify premium apks info you can use this site also to download latest app spotify for free with all premium tracks

    ReplyDelete
  19. thank you for a great post. Android gaming

    ReplyDelete
  20. GBWhatsapp apk Download Latest Version 2018. Download Latest GB Whatsapp for Use 2 Whatsapp in One Mobile.  GBWhatsApp App

    ReplyDelete
  21. Buy android installs Very neat article post.Really looking forward to read more. Will read on...

    ReplyDelete
  22. Watch Here Indian Dramas Colors Tv Sony Tv StarPlus and Zee Tv Dramas Latest Episodes Online
    Yeh Rishta Kya Kehlata Hai Watch Online

    ReplyDelete
  23. Watch Here Online Pinoy Reply Shows Hd watch latest Pinoy Shows as well as GMA Network Tv episode of Pinoy lambingan
    Ang Probinsyano Pinoy

    ReplyDelete
  24. Thanks for sharing this blog, this blog is very helpful information for every one. You can Watch here Colors Tv Star plus and Zee Tv Episodes
    Watch Kulfi Kumar Bajewala Online

    ReplyDelete
  25. Very good article thank you for sharing this useful information You casn See Here all Piony Tv Shows
    Halik Pinoy Replay

    ReplyDelete
  26. Thank you for sharing great information about Android. I would like to say thanks once again for this information. Keep posting all the new information.
    What is Android
    What is android system webview
    Android News
    Android Apps

    ReplyDelete
  27. Thank you for sharing great information about Android. Bingotel lets everyone in the world connect at a cheap rate. Bingotel users are enjoying free call, text, and able to send photos and locations with each other worldwide for free with no subscriptions or purchases.
    Bingotel
    Messaging App
    Cheap Calling Rate

    ReplyDelete
  28. Very Helpful and informative blog! Keep sharing such blogsSoftware Development Company in India

    ReplyDelete
  29. Me2call4u is free Video chat, video call app is ideal for one-to-one conversations that you can meet and match fun and interesting single all over the world in seconds.

    ReplyDelete
  30. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog..

    showbox android

    ReplyDelete
  31. hi
    This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. hank you for sharing great information about Android. Bingotel lets everyone in the world connect at a cheap rate.
    nreplisplus

    ReplyDelete
  32. Blogs are usually a brief explanation of a theme or issue, in corporation it can be applied to advertise a pertinent web-site. Blogging might help improve the visibility of a websites and it`s services and products. With accelerated visibility come`s enhanced viewers and together with the boost in viewers, the possibility of prospective clients is accessible. obsolete electronic

    ReplyDelete
  33. Thank you dear, I found your information really useful. I would like to say thanks once again for this information.
    Keep posting all the new information.
    SEO Expert Pakistan
    Sofa Cleaning Services Dubai
    Sofa Cleaning Dubai
    Sofa Cleaning Sharjah
    Sofa Cleaning Ajman
    Sofa steam cleaning
    Commercial carpet shampooing
    Sofa steam cleaning


    Thank you dear, I found your information really useful. I would like to say thanks once again for this information.
    Keep posting all the new information.
    SEO Expert Pakistan
    House deep cleaning Dubai
    move in/out cleaning Dubai
    Sofa Cleaning Sharjah
    interlock and tiles Dubai
    PAinting Services Sharjah
    home maintenance Sharjah Dubai Ajman
    Painting Services Ajman
    Sofa Steam Cleaning Dubai

    ReplyDelete
  34. Nice post. I learn something tougher on different blogs everyday. It will always be stimulating to study content off their writers and exercise a specific thing from their store. I’d would prefer to use some with all the content in my blog regardless of whether you don’t mind. Natually I’ll provide a link for your web weblog. Thank you for sharing. Cara hack FB

    ReplyDelete
  35. Hello, Neat post. There’s an issue together with your web site in internet explorer, might test this… IE nonetheless is the market chief and a big portion of people will pass over your wonderful writing due to this problem. cara membobol wifi

    ReplyDelete
  36. The blog and data is excellent and informative as well
    showbox apk 4.92

    ReplyDelete
  37. I have read your excellent post. This is a great job mobdro 2.0.52

    ReplyDelete
  38. This comment has been removed by the author.

    ReplyDelete
  39. I read your post. This is very informative and useful post. Thank you for providing such information. Checkout here more info about app tillverkare

    ReplyDelete
  40. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    Online Data Science Classes
    Selenium Training in Pune
    AWS Online Classes
    Python Online Classes

    ReplyDelete
  41. I'm really excited about this topic and thanks for sharing and discussing with us have a good day. online marketing

    ReplyDelete
  42. Youre so cool! I dont suppose Ive read anything like this before. So nice to find any individual with some unique thoughts on this subject. realy thank you for beginning this up. this website is something that is needed on the net, someone with a little originality. useful job for bringing one thing new to the web! berita tekno

    ReplyDelete
  43. This particular submit appears to obtain a great deal of site visitors. How do you obtain people to this? That gives a nice distinctive perspective about things. I guess getting some thing authentic or even significant to offer information on is an essential factor. macam macam processor intel dan tingkatannya

    ReplyDelete
  44. Thank you for sharing this information. This particular article appears to have a large number of visitors.
    Sweet Water Supply Dubai

    ReplyDelete
  45. The blog written is extremely impressive, with a great topic. Thanks for sharing.Windshield Repair El Paso, Texas

    ReplyDelete
  46. Hi there to every single one, it’s actually a nice for
    me to go to see this web site, it contains useful Information.
    SEO services Pune

    ReplyDelete

  47. This was a very meaningful post, so informative and encouraging information, Thank you for this post.
    online meal kit delivery services

    ReplyDelete
  48. Thanks for Sharing Useful information. Bright Future is the #1 Best Institute in Dubai(UAE). We are Providing English Language Course in Dubai & English Training in Dubai . Thanks!

    ReplyDelete
  49. Informative content. Thanks for sharing your knowledge.

    Get best solution to Fix AOL Mail Not Working Issues

    ReplyDelete

Disqus for DIY Phone Gadgets