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:


59 comments:

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

    ReplyDelete
  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. 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
  18. thank you for a great post. Android gaming

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

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

    ReplyDelete
  21. 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
  22. 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
  23. 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
  24. 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
  25. The blog and data is excellent and informative as well
    showbox apk 4.92

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

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

    ReplyDelete
  28. 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
  29. I'm really excited about this topic and thanks for sharing and discussing with us have a good day. online marketing

    ReplyDelete
  30. 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
  31. 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
  32. Thank you for sharing this information. This particular article appears to have a large number of visitors.
    Sweet Water Supply Dubai

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

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

    Get best solution to Fix AOL Mail Not Working Issues

    ReplyDelete
  35. Make your event successful with Eventify's AI-based event matchmaking platform.

    W: https://eventify.io/

    ReplyDelete
  36. Hello! I recently would like to provide a massive thumbs up for that wonderful information you’ve got here during this post. I will be coming back to your website for additional soon. Liferay online course

    ReplyDelete
  37. If you need a professional solution for all of your development requirements, Front End App Development is the ideal choice since they have the greatest team of specialists that can provide you with the finest answers for all of your development needs.

    ReplyDelete
  38. We are Super Logo Designs, Whether starting a new business or revamping an established one, we will make your full scope of digital dreams a reality. With an extensive range of custom services and carefully curated team of experts, we take your online and offline presence to the next level.

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

    ReplyDelete
  40. Book Writing Services is a well-known ghostwriting agency that helps writers and businesses excel through top-notch writing services for a wide range of project requirements. Based in the US, we know what clients around the world expect when they ask for high-quality writing services for their projects. Offering interesting content with your personalized touch is a promise we fulfill. But along with that, we also provide the final content for all projects on time, every time.

    ReplyDelete
  41. Speed up application development and deployment by executing DevOps approaches on the AWS cloud

    ReplyDelete
  42. Wow! This is an incredible and helpful post. I absolutely adore it. It's absolutely fantastic. I'm just astounded. I hope you will continue to do this type of work in the future. Thank you! Do you know about Putty software? It's an amazing and useful software for screen sharing. It establishes a secure connection to your computer using SSH and telnet. You can download Putty for Windows here.

    ReplyDelete
  43. The all-in-one event app management platform that makes your in-person or virtual B2B events & conferences more successful than ever before. Registration & ticketing, event networking, attendee check-in and many more. https://eventify.io

    ReplyDelete
  44. TeksMobile is a state of the art Mobile App and Web Development company on a mission to upgrade your mobile and web experience. Teks Mobile has always been, and will forever be, a mobile app company that accords first-priority to its clients’ wishes. Their support has helped us grow, and we look forward to more challenges, more success, more appreciation… and more scopes to serve clients across the world.


    APP DEVELOPERS IN UK

    SOFTWARE DEVELOPMENT COMPANIES IN UK

    MOBILE APP DEVELOPMENT COMPANY

    ReplyDelete
  45. Eventify is a great event software and registration platform. Use our customisable event planning software to build engaging mobile event app and websites. Eventify brings to you a comprehensive set of features to boost user-engagement levels. Build an event app and/or an event website, incorporate these features, and get your attendees really involved with your conference on our conference app. It's an amazing apps for events.
    https://eventify.io/event-app

    ReplyDelete
  46. ADK 2012 for Android is a fantastic new mobile game that has a distinct design and feel. It's a traditional match-3 game with hundreds of levels and interesting new features. Now take a shattered lives saga stories 2022 in nearly your stores.

    ReplyDelete
  47. Check out the main features and USP of our cutting-edge event app builder platform. You can use Eventify to create fully customised mobile event and conference apps. https://eventify.io/event-app/

    ReplyDelete
  48. The new and improved Pivot - a ruggedized smartphone designed for outdoor activities, provides an easy and safe way to view the world around you. The phone features a flexible design that easily wraps around your arm, so you can always see your surroundings. Pivot also features a camera and a built-in mic, so you can capture the world around you.

    ReplyDelete
  49. I additionally value the outside pursuits you recommend individuals take part in to upgrade their wellbeing and prosperity. Keep up the extraordinary work! Townhouses For Rent In Dubai

    ReplyDelete
  50. Eventify, the all-in-one event app, offers seamless event ticketing and management, making organizing and attending events a breeze!

    ReplyDelete
  51. I love going shopping for school supplies during Back to School Supplies season because it makes me think about fresh beginnings. The arrival of a new school year brings with it the allure of new notebooks, vibrant pens, and the prospect of endless possibilities. It's not only about the tools; it's about the possibilities for innovation and achievement that accompany appropriate equipment. Here's hoping for an amazing academic year!

    ReplyDelete
  52. Although I'm not too familiar with Android, based on the photographs in this post, it looks like a different and intriguing design. Given that Android is a well-known brand, I believe using it will be durable.
    Business Listings

    ReplyDelete

Disqus for DIY Phone Gadgets