O'Reilly logo

Developing Responsive Web Applications with AJAX and jQuery by Sandeep Kumar Patel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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(){ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required