Created
June 10, 2014 04:00
-
-
Save Reacoder/5eccd0234dbd322a7f34 to your computer and use it in GitHub Desktop.
Gson get string from arrayList.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gson gson = new Gson(); | |
String videosJson = gson.toJson(playingVideos, | |
new TypeToken<ArrayList<PlayingVideo>>() { | |
}.getType()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment