Android Open Source - Youtubemysongs Song






From Project

Back to project page Youtubemysongs.

License

The source code is released under:

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...

If you think the Android project Youtubemysongs listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.aanchal.youtubemysongs;
//from  w  w  w. j  a v a 2  s .c o  m
// Store Song Information
public class Song {
  public Song(String title, String album, String artist) {
    this.title = title;
    this.album = album;
    this.artist = artist;
  }
  public String getAlbumQueryString()  { return (title + " " + album).replace(" ","%20"); }
  public String getArtistQueryString() { return (title + " " + artist).replace(" ","%20"); }
  public String getArtistAlbumQueryString() { return (title + " " + artist + " " + album).replace(" ","%20"); }
  public String getTitleQueryString()  { return title.replace(" ","%20"); }
  public String title;
  public String album;
  public String artist;
}




Java Source Code List

com.aanchal.youtubemysongs.AppRater.java
com.aanchal.youtubemysongs.JSONParser.java
com.aanchal.youtubemysongs.MainActivity.java
com.aanchal.youtubemysongs.SongLogger.java
com.aanchal.youtubemysongs.Song.java