In this course you will learn how you can build your first professional application in Android
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
public class ResponseMovies { | |
private int id; | |
private int page; | |
private List<Result> results = null; | |
private int totalPages; | |
private int totalResults; | |
} |
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
public class Genre { | |
private int id; | |
private String name; | |
} |
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
public class GenerosResponse { | |
private List<Genre> genres; | |
} |
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
public class CollectionsMovies { | |
public Genre genres; | |
public ResponseMovies movies; | |
} |
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
public static Map<String,String> getPropertiesUri(Uri uri){ | |
String[] params = uri.getQuery().split("&"); | |
Map<String, String> map = new HashMap<>(); | |
for (String param : params) { | |
String name = param.split("=")[0]; | |
String value = param.split("=")[1]; | |
map.put(name, value); | |
} | |
return map; |
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
import android.app.Application; | |
import android.content.Context; | |
import android.content.res.AssetManager; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Properties; |
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
public class MainActivity extends AppCompatActivity { | |
private int count; | |
private int last=0; | |
private int current = 1; | |
int value; |
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
package hackro.tutorials.com.salesfacebook.widget | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.drawable.BitmapDrawable | |
import android.os.Handler | |
import android.support.v7.app.AppCompatActivity | |
import android.util.AttributeSet | |
import hackro.tutorials.com.salesfacebook.R |
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
package crackingcodeinterview; | |
public class Exercise { | |
static String textString = "this is a random text of example"; | |
public static void main(String[] args) { | |
filterLetters(0, ""); | |
} |