Free Android app covering all aspects of addiction, including prevention and treatment

Let your apps take a giant leap. A Tutorial

Api, OkHttp, Picasso, RecyclerView ebook tutorial, httpYou can grab the power of Flickr, Youtube, Twitter and thousands of other powerful online applications, presenting their data from within your apps. We’ll show you how with this simple, easy to follow tutorial app.

Our tutorial shows you how to use an image repository’s API’s to access their image gallery.

We also show you how to use the OkHttp library to do network uploads, downloads and queries.

Finally, we also show you how to use the Picasso library to download, cache and display images in a RecyclerView widget.

What you’ll learn?

  • Using API’s to increase the power of your apps
  • Using OkHttp to:
    • Upload an image
    • Download an image
    • Search the Imgur gallery for images
  • Using Picasso to download and display the images found
  • Using RecyclerView to display the images for Picasso
  • Working with Json

PLUS

An introduction to:

  • API’s
  • HTTP

PLUS

Lots of links to useful tutorials and documentation covering Imgur, Json, Api’s, Http, OkHttp, Picasso and RecyclerView.

Get the eBook PLUS the code for only US$ 1.49

 

What a partnership! Picasso and RecyclerView

Android RecyclerView and Picasso tutorial icon

If you display images in lists or grids then you should consider using Picasso and RecyclerView.

Picasso is a powerful image downloading and caching library package which you include in your app build. It simplifies working with images, reducing the code that you need to use to one line of code.

Picasso is fast and easy to use and it’s FREE!

The RecyclerView widget is essentially a container that you can use to display large sets of data. It’s very efficient as it only displays a few items at a time. Views that are no longer needed are recycled and reused.

Not having to keep on inflating views saves CPU resources and valuable memory is saved by not having to keep views alive in the background.

Combine Picasso and RecyclerView and your app will move at the speed of light!

Using the Picasso Library to load images into a GridView

Android GridView icon

A GridView is a ViewGroup. It lets you show stuff in a two-dimensional grid. You can scroll the grid if there are too many items to fit on the screen.

You can control the look of the grid either dynamically or in xml.

You use a ListAdapter to load the data into the grid.

Working with images can use a lot of memory and can cause your app to hang. Our tutorial will show you how easy it is to use the Picasso Library, which is Open Source and FREE, to efficiently load your images into a grid view.

Using Bitmaps efficiently

Using Images without killing your app

Android Bitmaps picasso list icon

Images take time to download and display. They can make your app unresponsive, especially when using them in list views, grid views and view pagers.

The solution is to download and process them off the main thread. Then resize and cache them for faster loading.

This takes quite a bit of coding, but there’s a simpler solution!

This tutorial will show you how to use the (FREE) Picasso Library to take care of everything for you. You just add one line of code! It couldn’t be easier!

Loading the Picasso library into your Android Studio project

Picasso is a powerful image downloading and caching library package which you include in your app build. It simplifies working with images, reducing the code that you need to use to one line of code.

Picasso is fast and easy to use.

Picasso takes care of all your image processing for you. It can also download images. 

We're using the Picasso Library in one of our tutorials. If you need help loading the library into your Android Studio project, then here's a quick tutorial for you.