Code example for Activity

Methods: getApplicationInfo, getPackageManager

0
	/** 
	 * Set the update check granularity level. Default is REVISION. 
	 *  
	 * <br> 
	 *  
	 * Can be REVISION, MINOR, or MAJOR. 
	 * 
	 * <br> 
	 * 
	 * App version format: MAJOR.MINOR.REVISION 
	 *  
	 * <br> 
	 *  
	 * Example: 
	 *  
	 * <br> 
	 * Current app version: 3.1.2 
	 * <br> 
	 * Newest app version: 3.1.4 
	 * <br> 
	 * Update notice will show if level is REVISION, because the revision code is higher. 
	 * <br> 
	 * Update notice will NOT show if level is MINOR, because the minor code is equal (or higher). 
	 *  
	 * 
	 * @param level granularity level 
	 * @return self 
	 */ 
	public MarketService level(int level){
		this.level = level;
		return this;
	} 
	 
	 
	/** 
	 * Set the destination url of the default update button. 
	 * 
	 * @param url url 
	 * @return self 
	 */ 
	public MarketService updateUrl(String url){
		this.updateUrl = url;
		return this;
	} 
	 
	 
	/** 
	 * Force the update dialog to a specific locale. Example: en_US, ja_JP. 
	 * 
	 * @param locale interface locale 
	 * @return self 
	 */ 
	 
	public MarketService locale(String locale){