Let’s admit – the Android navigation library is a really cool thing but it has its own issues and drawbacks. One of the issues you can have is the TransactionTooLargeException. And here is how it happens.
Continue reading “Android navigation library and TransactionTooLargeException”Tag: Fragment
Approaches not to cause a crash when setting toolbar title on the activity through a fragment
Setting a toolbar title on the activity should be easy, right? But what about if you want do it through a fragment? Still easy? Well, not exactly.
The issue is that you may try to touch the toolbar in a moment where the activity is actually still not inflated. This will cause an exception immediately and your app will crash. What is the exact issue?
Continue reading “Approaches not to cause a crash when setting toolbar title on the activity through a fragment”Exporting Card.IO as a fragment
You probably know the famous card detection library called card.io. It is developed by PayPal and used worldwide. There is a lot of OpenCV usage behind it, but I will leave this for another article.
The problem
The problem is that the library can only be used as a separate module. You can call the card.io Activity and it will return you the results from the detection. But what if you want to embed the detection view inside your app? Well, sadly, there is no fragment for that. But the library is open-source so you can change everything to fit your needs. So let’s start then!
Continue reading “Exporting Card.IO as a fragment”