Q: What steps do you need to take to disable JavaScript from a WebView?A: JavaScript is actually disabled by default with WebView! Just don’t enable it.

Q: What is the naming convention for test packages and test "variables"?

A: Append .test to the original package name

Append ‘Test’ to the end of your Activity name

Q: What different ways did we navigate in the Criminal Intent Project

Give an example of:

    • Descendant Navigation

    • Lateral Navigation

    • Ancestral Navigation

Q: What is the maximum size for apps on the Play Store? What methods can you use to work around the size limitation?

 A: Maximum size is 50 MB, but you can offer a secondary download or use APK expansion files for up to 2 GB of downloads - useful for large games.

Q: How could the following code be changed to improve performance?

public class Coordinates {

private int x;

private int y;

public Coordinates(int x, int y) {

setX(x);

setY(y);

}

public void setX(int value){

this.x = value;

}

public void setY(int value){

this.y = value;

}

….

}

 

A: public class Coordinates {

private int x;

private int y;

public Coordinates(int x, int y) {

this.x = x;

this.y = y;

}

public void setX(int value){

this.x = value;

}

public void setY(int value){

this.y = value;

}

….

}

 

Last modified: Tuesday, September 24, 2013, 3:37 PM