How to preview a PDF file in Android from a url

I’ve been working on a recent project where users receive certificates for their achievements and I wanted them to be able to open these PDF files inside the app without having to be redirected to an outside app that will handle opening the PDF file. So I was searching for an Android Library that could handle this task for me and I actually found a good library that can do just that!

I’ve stumbled across this library “PdfViewPager” through one of Stackoverflow posts where one of the users was recommending it. The good thing about this library is that in…


In this article I’m going to show you how to add GIFs to your Github README.md. All you need to do is create a free account on Giphy Website.

Use Giphy as a Free Cloud Hosting Website for GIFs

Here is the link to Giphy Website:

After You’ve signed up, you can just upload your GIF to Giphy by clicking on the “Upload” button at the top right corner as shown below.


I remember when I first started learning to program and had to upload my first project on Github, I wanted to add screenshots of my app to the README section. I kept on searching the internet, and I actually found a way that was suggested by some to store your images in your git repo and then refer to them, but this option would take a lot of steps for every screenshot and was kind of overwhelming for me. That’s why I decided to write this article to show you how to add a screenshot to your Github READMe.

Use Imgur as an External Free Cloud Hosting Website

I…


I’ve been introduced To EasyPermissions Library for Android lately and I’ve liked the fact that it’s actually very easy to use, with few lines of code you are good to go. The library handles runtime permissions for you!

I’m going to create a simple app here that will show you how to use this library. The app consists of one screen/activity with a button and an imageView and when the user clicks on that button we want to open a photo picker and access the photos on his/her phone. Then when the user chooses a photo, we will display that…


Watch out this error if you are using Firebase with DataBinding or ViewBinding!

I’ve been using Firebase in my Android apps for a while and everything was going smooth, until one day suddenly an error kept appearing when I tried to connect a new Android project to Firebase that I have not encountered before. I’m writing this article in case you’ve encountered the same error and was not sure what was going on!

The error in the above image kept showing up every time I try to connect my project to any of Firebase products. I kept checking my build.gradle file and I could not find the source of error, all the dependencies…


There are two ways to embed code in Medium articles. The first is to embed it directly by copying and pasting it and the second one which is the preferred way is to use Github Gists to embed the code in the article.

Embedding Code Directly in Medium Article

The first is just press the following :

1- Command+ Option+6 if you are using Mac

2- Control + Alt + 6 if you are using Windows or Linux

and a grey window like the one shown below will appear and where you can just paste your code in it:

public class MainActivity extends AppCompatActivity{   @Override protected…


According to LinkedIn , there are over 19 million Company Pages on LinkedIn. If yours isn’t not one of them, you’re missing opportunities to get your content in front of the audience that matters most to your business.

Your LinkedIn Company page is more than just “About us” page, it’s usually one of the first pages LinkedIn members visit to learn about your company. It’s your marketing tool to build awareness for your brand, establish your company as a thought leader, engage your employees and prospects, publish and share content and drive high-quality leads. …


Google Primer

Learning new skills can be very difficult especially that we’re all busy and let’s face it, who wants to spend one or two hours studying everyday. I mean school is over, right!

So here I’m going to share with you a great app that you can use to expand your knowledge and gain new skills in just five minutes a day. It’s Google Primer app, but what’s Google Primer? Google states on their website:

“The Primer app delivers a fast, easy way to learn business and marketing skills. Its bite-sized, jargon-free lessons are designed for time-crunched business owners and ambitious…


Source: LinkedIn Marketing Solutions

As you all know when it comes to LinkedIn, it’s the World Largest Professional Network with around 575 million members and 9 billion content impressions per week, impressive right!


Photo by Jonathan Daniels on Unsplash

I have come across the University of People (UoPeople) Website through an Ad on YouTube that I’ve just watched yesterday, the guy in the Ad was talking about how the entrepreneur Shai Reshef had the dream of helping millions of people worldwide who had no access to education because of the lack of resources like money or time.

As his dream was to help them in getting high quality accredited and free education, so Shai launched the UoPeople in 2009 as the world’s first non-profit, tuition free, and accredited online American University. …

Doha Kash

Developer/Digital Marketer/ Writer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store