Friday, February 13, 2015

HCE: The User Experience That Nobody Talks About

Host Card Emulation (HCE) is an incredibly enabling technology. For Android developers there are a few nuances to be aware of in the form of OS rules. Not understanding how these rules apply can have a negative impact and create an embarrassing or awkward customer experience if the system should render a 'payment failure'. Here are four scenarios to keep in mind to avoid point-of-sale issues.

Avoid The Embarrassment

The only limiting factor for the NFC radio in an Android device is whether or not the screen is lit up. What that means is that the NFC radio will turn on and could be ready for an HCE transaction is:

screen is dark:    NO
screen is lit:       YES

That rule alone is an Android rule, not an application rule, and so the application will have the ability to further limit this HCE experience if it wants to.

To support the best user experience, an application must be able to respond and complete an HCE transaction on demand if the screen is lit up. This should hold true even if:

1) application is running in the foreground
2) application is running in the background
3) application is NOT running at all because android has "repo'd" or removed it from running memory, or not started at all since a re-boot of the phone.
4) application is NOT running and a time based  Limited Use Key has expired since the application stopped running

The 1st and 2nd cases above are the easy ones as transaction data can be store in the running application memory space.

Here is how android works on the 3rd and 4th scenarios. When the phone antenna engages the terminal antenna and the terminal requests a particular AID, then the android OS looks at that AID request from the terminal and decides which Card Emulation Service to startup based on the "Tap and Pay" menu options.  That service is NOT your app, it is a component of your application that is expected to respond to APDU requests from the terminal. An APDU stands for Application Protocol Data Units.  The challenge is that the service will most likely not contain the APDU data to respond with as the rest of the application is not currently running at that time and the data required may not be loaded. It would require that the APDU data that the reader is asking for actually must be persistent in some way on the device so that the service could get access to it and answer the terminal properly with card data.

There are a few ways to store data locally, but the point is that it must happen in order to respond to the reader in time for a proper user experience. We have noted that simply expecting the application to be running on the phone at tap time is simply not reliable and that in a 24 hour window, it the app is not used, then Android has likely removed that application from memory.

This is just food for thought as you are thinking of designing your own HCE application or using a vendor like ST.  By the way, the SimplyTapp SDK supports all 4 scenarios listed above. The 4th is slightly more complicated, but i'll leave it up to you to noodle at.


  1. isn't your service going to receive the APDU payload as param? as, in order to be a HCE service, it must extend android.nfc.cardemulation.HostApduService

    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

  2. I will be reading about this article tomorrow in my classroom and then our teacher will review and explain to all of us about it. Thanks for this.

  3. Superb, what a web site it is! This webpage gives valuable facts to us, keep it up.
    iPhone contact number

  4. This comment has been removed by the author.

  5. I'm shakshi.I am working in India top most Escort serviceEscort service in Mumbai.If u want to join the all facility of escortsEscort service in Bhubaneswar.pls call me & whatssapEscort service in Puri
    visit the sites.Escort service in Cuttack

  6. What is it?
    Anthony Joshua defends his status as undisputed heavyweight champion of the world against Andy Ruiz Jr, his first fight since September 2018.

    When is it?
    The fight is on Saturday, June 1, but due to time differences UK viewers may be watching in the early hours of Sunday, June 2

    Where is it?
    Madison Square Garden, New York City. The Manhattan venue is steeped in boxing history having hosted fights involving Muhammad Ali, Joe Frazier and Mike Tyson.

    What TV channel will it be on?
    Sky Sports Box Office have exclusive pay-per-view coverage while viewers in America will be able to watch via streaming service DAZN.

    Joshua vs Ruiz
    Ruiz vs Joshua
    Joshua Ruiz
    Joshua vs Ruiz Live
    Joshua vs Ruiz Live Stream

    When is the Champions League final?
    The Champions League final will take place on Saturday, June 1.

    What time is kick-off?
    Tottenham vs Liverpool kicks off at 8pm, BST.

    What TV channel is it on?
    There is exclusive live coverage on BT Sport 2. Alternatively, you can bookmark this page and return on matchday to follow all the action on our dedicated live blog.

    There are several ways to access BT Sport. If you’re already a BT Broadband customer, you can add BT Sport for nothing for three months and then £10 a month thereafter. For new customers, broadband and television packages start at £34.99 per month.

    Champions League Final
    Champions League Final 2019
    Champions League Final Live
    UEFA Champions League Final

  7. The 2019 Belmont Stakes odds behind favorite Tacitus, who is 9-5. With so little separating the top two choices on Saturday, and plenty of other intriguing value selections on the board, you need to see the predictions from horse racing handicapper Hank Goldberg before making any 2019 Belmont Stakes picks of your own.
    GGG vs Rools
    GGG Rools
    GGG vs Rools Live
    Golovkin vs Rools
    GGG vs Rools Fight

    This story was written in collaboration with Forbes Finds. Forbes Finds covers products we think you’ll love. Featured products are independently selected and linked to for your convenience. If you buy something using a link on this page, Forbes may receive a small share of that sale.
    Belmont Stakes 2019
    Belmont Stakes
    Belmont Stakes Live
    Belmont Stakes Race
    Belmont Stakes Horses

  8. Hey, that's a very unique topic you covered. I wonder if the NFC tag also applies on Quickbooks applications from one phone to another transferring data over android ? that would be even great to know.
    In return you can check this informative blog on how to download and install Quickbooks Tool Hub in order to rectify all the errors that occur in Quickbooks app

  9. This blog is very useful for me, helps me learn a lot. I appreciate your kindness in sharing this useful with you and me!
    Verizon's email service is widely regarded as one of the best in the world. It has a powerful feature set and a fantastic user interface, making it a top-notch emailing platform.
    If you can't remember your Verizon password and are having trouble logging in to your account, you can easily Change Verizon Email Password by visiting our website and following our guidelines.

  10. Very Interesting and wonderfull game keep Download Ludo Online Game

  11. In order to enhance the effectiveness of the accounting it is necessary for the company to take the outsourcing outsourced cfo services

  12. Wow! What information is? I have no words to how to appreciate your knowledge. It’s such an outstanding post for all. Please keep sharing again with us this type of information.
    AOL is a popular email service provider all over the world. Users can easily set up their AOL Email account on your Windows 10 operating system. But Certainly, some users have complained about AOL Mail Not Working On Windows 10. If you are experiencing this issue in Windows 10, then you can contact our AOL Email Supports Technical Team via a toll-free number. They will provide you simple instructions to fix AOL Mail Not Working issues. For More Information, you may visit our website.

  13. Quickbooks is especially ravishing in assignments like following accounts, arranging deals, and helping with solicitations. We can see the brilliance of this software in each component it has. Notwithstanding its flawlessness, QB clients like you and me need to confront a few errors on occasion. It is once in a while frustrating as you need to keep down your significant works. One such issue that frequents Quickbooks is the quickbooks won't open error. It is a error that limits the client from opening the QB work area programming.

  14. Thank you for posting such a great article. Keep it up mate.

    nhts 2021

  15. quickbooks error 15106 is the most normal error, which is happening when refreshing finance. QuickBooks gives phenomenal alternatives to conquer the blunder and to put it plainly, dispose of it.

  16. You got a really useful blog. I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me. For instant support related to Common AOL Mail Login Issues please contact our technical expert for help


  17. Thanks for sharing this post .this is the best technical provider ,providing online technical support service including the phone calls and all other services if you are search these kinds of technical sites and all helpful services go through in
    error 1723 quickbook and click on the mentioned link

  18. Many aspirants face different type of issues with errors and if anyone is facing error regarding quickbooks unexpected error 5 so here is your solution for that you can go through this above mentioned page and gather the solutionsquickbooks unexpected error 5: A QBs Repairing Guide


  19. Thanks for sharing this post .this is the best technical provider ,providing online technical support service including the phone calls and all other services if you are search these kinds of technical sites and all helpful services go through inerror 1723 quickbook

  20. Thanks for sharing your post it helps me alot for my articles it helps me for better graphics and design for the most important data and more creative ideas you can just check on error 1723 quickbook for this site


  21. Hey, I am an IT student and thanks for updating us with this information this is really nice blog and very informative if you want more information about the article click on

    error 1723 quickbook to visit the site

  22. thank you for sharing your information. I really appreciate your efforts and Thanks a lot for sharing a piece of wonderful information which I am looking for for a longer period of is very helpful for the students because of the nice creativity and animations if you want more click on quickbooks error #15215

  23. Nicely written.
    QuickBooks and Quicken are the world’s most useable accounting software. if you own a little to medium enterprise then the quickbooks was best for you but if individuals and families then the quicken was best for you. here you can compare them quickbooks vs quicken

  24. why won't QuickBooks open might try to open your previous company. Press and hold the Ctrl key, then double-click the QuickBooks Desktop icon. Important: Don't release the Ctrl key until you see the "No Company Open" window unless QuickBooks freezes or gives you an error.

  25. Thanks for sharing this information with all of us actually i have been searching for that for so long and finally i found your page which clear me alot about this and if you want to know what is quickbooks error #15215 then must go to this mentioned link quickbooks unexpected error 5: A QBs Repairing Guide

  26. quickbooks point of sale desktop 12.0 crack has received lots of praise for for developing revenue and recorded sale. Retails can leverage this technology for simplifying the sale process and for recording, managing, and organizing inventory items.

  27. Such useful information. Thanks for sharing with us. Keep sharing again.
    If you face any problems related to Roadrunner Email Problems, then you can contact us for instant help to fix Roadrunner Email Issues.

  28. Hello, this is very useful material. This article is really inspiring me to do the same thing as you.. US Citizen Travel to Turkey fills an online visa form, you can fill out the Turkish eVisa application form in minutes, and then you are allowed to enter Turkey legally.

  29. Quickbooks is one of the leading accounting software providing its users best in class services but sometimes the user get rid of some error one of the error was Quickbooks unrecoverable error when opening the company file this error can occur

  30. Very interesting article. I have written a review on Mcafee antivirus on


  31. It’s really nice and meaningful. If you are looking for an ATT customer service phone number then it is the right place for you. At this place, you will get the customer service support and 24/7 helpline number of AT&T for this you just have to click on this link.

  32. May I simply just say what a relief to discover someone that actually knows what they are talking about online. You actually know how to bring an issue to light and make it important.

  33. A lot more people ought to look at this and understand this side of the story. It’s surprising you aren’t more popular given that you definitely possess the gift.

  34. I read your post. It is amazing and helpful information for me. Are you looking for a solution How to Delete Cache App Activity? Cash App Activity is a record of all transaction activity from sending or receiving the money to your contacts. To delete your cache app activity, you have it in the right place. If you have any questions regarding deleting Cash App transaction history, please contact us at our Cash App customer service.

  35. Thanks for sharing such valuable information with us. Keep sharing again this type of info.
    Students must take a look at the relevant High Salary Courses After 12th commerce. They can find various scopes of careers to grow efficiently. They can choose the B.Com- Bachelor of Commerce BBA- Bachelor of Business Administration. BA (Hons.) in Economics, Integrated Law Program- BBA LL.B. Apart from these, they can decide the courses according to their choice and secure their career with good opportunities.


  36. Have you been searching for the Cash app customer service number if yes then it is the right place for you. Here you will get the 24/7 helpline number of the cash app and if you have any kind of issue in using the cash app, then they can also be resolved by a single click on this link.

  37. he Indian education system is one of the most complex in the world. There are so many different types of exams, from state to national, that it can be difficult to keep track of what you need to do and when. Whether you're a student looking ahead at the next few years or a parent wondering how to get your child into a good school, this article will give you some insight into some of the Toughest Exams in India 2022.

  38. Very Informative Information. Thanks for sharing with us.
    Akshi Engineers Pvt. Ltd., a member of the Akshi Group and a power electronics leader, provides advanced industrial drive, and automation products. Industrial UPS has proven and rich experience as power conditioning and backup accessories for mission-critical applications in refineries, power generation, steel and metals, and process industries. In addition, we produce and supply fully tailored solutions for Drives & Automation Manufacturers in India.


  39. It’s really nice and meaningful. It’s really cool blog. Thanks for sharing and please update some more information here. Students need to gain relevant ideas about the Courses after 12th. The changing time has provided various career segments through which they can see their future. However, a substantial decision can be taken by evaluating one's own likings towards the career field. Students can select the courses after completing their 12th as per the subject they had taken in the 12th itself from a career point of view.

  40. The Indian education system is one of the most complex in the world. There are so many different types of exams, from state to national, that it can be difficult to keep track of what you need to do and when. Whether you're a student looking ahead at the next few years or a parent wondering how to get your child into a good school, this article will give you some insight into some of the Toughest Exams in India 2022.


  41. It’s really nice and meaningful. It’s really cool blog. Thanks for sharing and please update some more information here. Have you been looking for the Zelle customer service support, than you have arrived at the right destination. At this destination you will find the customer service help from zelle, and if you found some issues in using zelle, then you can resolve them by just a click on the given link.

  42. Amazing information. Thanks for sharing with everyone
    If you are looking for a Coin Master Free Spin and Coin Links then it is the right place for you. At this place, you will get the customer service support and 24/7 helpline number of Coin Master Free Spin for this you just have to click on this link.

  43. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.

  44. You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming.

  45. I like the many blogposts, I seriously liked, I want details about it, since it is rather wonderful., Cheers pertaining to expressing.

  46. All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts. Thanks!

  47. In a class, when the subject is pretty hard, the professor finds time to explain to everyone present. But if the topic seems easier, and an individual student faces problems handling the topic, the teacher will not always help. Students sometimes feel shy to ask for such explanations. This, in turn, harms the career of the student. The student needs to learn the topic, and at the same time, he needs to finish the assignment too! Hence, the student goes for java assignment help and spends the time learning the subject by heart. When the professors cannot explain the portions individually, the students need to take help from online teaching platforms or from the assignment service providers to understand a certain topic!

  48. This is an amazing blog. Loved it totally. Just visit the offical site of Intuit and click on quickbooks tool hub download and get all your quickbooks errors fixed

  49. What an outstanding post! “I'll be back” (to read more of your content). Thanks…Indian 30 days tourist visa or eTV for India is an online travel authorization. Foreign travelers whose sole purpose of visiting India is for leisure, sightseeing, religious work or casual travel to visit their friends or relatives can apply for an Indian 30 days tourist visa through the online India visa application system.

  50. Trains, subways, buses, cars, walls, road signs, statues and memorials, bridges, park benches, trees, and billboards are frequently targeted with graffiti. The growing issue of graffiti is predicted to propel the Anti-Graffiti Coatings Market.

    Also Read:

    Read More: Smart Waste Management Market, Europe Biodiesel Market, United States Vaccine Market

  51. This article is really very helpful for me and I really appreciate you for sharing it with me....India business visa Online that allows foreign visitors to come to India.