Posting a tweet with an image

In this section, we will learn how to post a tweet with an image included in the message. In the previous section, we developed the Twitter client for text message status updates. This section is all about posting a media item.

To demonstrate this, we have made some changes to the code.

Product store with an image

The product store, where all our products have been stored, now points to a URL to display the corresponding images. Have a look at the following code:

package com.packt.product.store; import java.util.ArrayList; import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.packt.product.obj.Product; public class ProductStore{ public static List<Product> getAllListedBook(){ ...

Get Developing Responsive Web Applications with AJAX and jQuery now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.