Showing gif in android

Good start. Gotta make it more useful for loading different gifs after being added to the view and for either assets or resources. Also, for devices with hardware acceleration I was getting blank views, so I turned it off for this GIFView. Also, be sure to put animated gifs in the res/drawable-xhdpi directory (or assets … Read more

R function not returning values

To return df, simply write return(df): IMDBmovierating <- function(movie){ link <- paste(“http://www.omdbapi.com/?t=”, movie, “&y=&plot=short&r=json”, sep = “”) jsonData <- fromJSON(link) df <- data.frame(jsonData) return(df) } or, even simpler in this case, omit the last assignment: IMDBmovierating <- function(movie){ link <- paste(“http://www.omdbapi.com/?t=”, movie, “&y=&plot=short&r=json”, sep = “”) jsonData <- fromJSON(link) data.frame(jsonData) } If the last expression … Read more