Search in sources :

Example 1 with MarketService

use of com.androidquery.service.MarketService in project androidquery by androidquery.

the class ServiceActivity method service_version_auto.

public void service_version_auto() {
    MarketService ms = new MarketService(this);
    ms.progress(R.id.progress).checkVersion();
    showResult("Nothing happends if current version is up to date.", null);
}
Also used : MarketService(com.androidquery.service.MarketService)

Example 2 with MarketService

use of com.androidquery.service.MarketService in project androidquery by androidquery.

the class ServiceActivity method service_version_force.

public void service_version_force() {
    MarketService ms = new MarketService(this);
    ms.locale(Locale.getDefault().toString()).force(true).progress(R.id.progress).checkVersion();
}
Also used : MarketService(com.androidquery.service.MarketService)

Example 3 with MarketService

use of com.androidquery.service.MarketService in project androidquery by androidquery.

the class ServiceActivity method service_version_locale.

public void service_version_locale() {
    String locale = aq.id(R.id.spinner).getSelectedItem().toString();
    MarketService ms = new MarketService(this);
    ms.locale(locale).force(true).progress(R.id.progress).checkVersion();
}
Also used : MarketService(com.androidquery.service.MarketService)

Example 4 with MarketService

use of com.androidquery.service.MarketService in project androidquery by androidquery.

the class IntentListActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    if (!init) {
        AQUtility.setDebug(true);
        AQUtility.setCacheDir(null);
        BitmapAjaxCallback.setPixelLimit(600 * 600);
        BitmapAjaxCallback.setCacheLimit(200);
        BitmapAjaxCallback.setIconCacheLimit(100);
        BitmapAjaxCallback.setMaxPixelLimit(10000000);
        init = true;
        ErrorReporter.installReporter(getApplicationContext());
    }
    super.onCreate(savedInstanceState);
    type = getIntent().getStringExtra("type");
    aq = new AQuery(this);
    setContentView(R.layout.empty_list);
    aq.id(android.R.id.list).adapter(getAA()).itemClicked(this, "itemClicked");
    if (type == null && debug) {
        forward();
    }
    AQUtility.debug("on create");
    if (isTaskRoot()) {
        AQUtility.debug("task root start version check");
        MarketService ms = new MarketService(this);
        ms.level(MarketService.MINOR).checkVersion();
    }
}
Also used : AQuery(com.androidquery.AQuery) MarketService(com.androidquery.service.MarketService)

Example 5 with MarketService

use of com.androidquery.service.MarketService in project simplefacebook by androidquery.

the class BaseActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    makeHandle();
    aq = new PQuery(this);
    //aq.hardwareAccelerated11();
    aq2 = new PQuery(this);
    transformer = new PTransformer();
    initView();
    init(savedInstanceState);
    if (isTaskRoot()) {
        MarketService ms = new MarketService(this);
        ms.level(MarketService.MINOR).checkVersion();
    }
}
Also used : PQuery(com.androidquery.simplefeed.PQuery) PTransformer(com.androidquery.simplefeed.callback.PTransformer) MarketService(com.androidquery.service.MarketService)

Aggregations

MarketService (com.androidquery.service.MarketService)5 AQuery (com.androidquery.AQuery)1 PQuery (com.androidquery.simplefeed.PQuery)1 PTransformer (com.androidquery.simplefeed.callback.PTransformer)1