Skip to main content

How to use PdfRenderer in android



This tutorial is about how to use the PdfRenderer API in android introduced in Lollipop, we are going to read from a pdf file stored in the assets folder , and render its pages in the imageview. Very basic and simple , if you want something more complex you have to deal with more complex code and surely external libraries, which we are not doing in this tutorial.



Source code : http://babblecase.com/2DHU



Tutorial about external storage(getCacheDir) : https://youtu.be/CQ8sM2Giqng

Tutorial about assets : https://youtu.be/A0HufeFDsFA



blog melardev.x10host.com

 twitter http://twitter.com/melardev

 blogger https://melardev.blogspot.com

 instagram https://www.instagram.com/melar_dev/

 Google+ https://plus.google.com/u/0/110174297675710954678

Comments

Popular posts from this blog

Android : Using Handler

How to use Handler in Android to perform asynchronous operations, Handler it is a really common construct used to communicate two threads in Android. I explain the theory as well as the practice with some example, The source code can be retrieved in my blogpost http://melardev.com/eng/blog/2017/04/02/android-running-in-the-background/ Remember this video is part of a playlist where I cover how to use different approaches for asynchronous programming on Android: https://www.youtube.com/watch?v=feciwDQCDb4&index=1&list=PLfkTJXI2Tk-c25WG8Uie3KFhxo8miWTcv&t=25s If you have any question, feedback, suggestion etc you can let it in the comments section. You can follow me on: blog melardev.com twitter http://twitter.com/melardev blogger https://melardev.blogspot.com Instagram https://www.instagram.com/melar_dev/ Google+ https://plus.google.com/u/0/110174297675710954678

Django: Architecture overview (MVT)

Video session where I explain the architecture of Django web framework, talking about MVT ( model, view, template) from a high-level point of view. The source code will be available on my blog(see below). Remember that this video is part of a playlist which you can find here: https://www.youtube.com/watch?v=dLXOPFlsD4k&list=PLfkTJXI2Tk-dniDJF4Cp6qIjAmdrtknJ3&index=1 So if you don't understand something I might be explained in one of my videos of that playlist, you can anyways let me any feedback, questions, etc. You can follow me on: blog melardev.com twitter http://twitter.com/melardev blogger https://melardev.blogspot.com Instagram https://www.instagram.com/melar_dev/ Google+ https://plus.google.com/u/0/110174297675710954678

Python DNS Lookups with DNSPython

How to perform DNS lookups with DNS Python The source code will be available on my blog: http://melardev.com/eng/blog/2017/11/06/servlet-jsp-playlist-tutorials-youtube-channel/ Remember that this video is part of a playlist which you can find in: https://www.youtube.com/watch?v=F9ysRgUgpC4&list=PLfkTJXI2Tk-e9U0eU98e_hGtiVLeVni89 if you don't understand something I might be explained in one of my videos of that playlist, you can anyways let me any feedback, questions, etc. You can follow me on: blog melardev.com twitter http://twitter.com/melardev blogger https://melardev.blogspot.com Instagram https://www.instagram.com/melar_dev/ Google+ https://plus.google.com/u/0/110174297675710954678