use of android.app.Application in project Genius-Android by qiujuer.
the class KitActivity method init.
private void init() {
//Application kitApp = Kit.getApplication();
Application application = getApplication();
//showLog(TAG, "Kit.getApplication() eq getApplication() is:" + (kitApp == application));
Cmd.init(application);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileWeatherPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
Jackson2ObjectPersisterFactory factory = new Jackson2ObjectPersisterFactory(application);
dataPersistenceManager = factory.createObjectPersister(WeatherResult.class);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileWeatherPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
SimpleSerializerObjectPersisterFactory factory = new SimpleSerializerObjectPersisterFactory(application);
dataPersistenceManager = factory.createObjectPersister(Weather.class);
TEST_TEMP.setTemp("28");
TEST_TEMP.setTemp_unit("C");
TEST_TEMP.setWind(new Wind());
TEST_TEMP2.setTemp("30");
TEST_TEMP2.setTemp_unit("C");
TEST_TEMP2.setWind(new Wind());
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileWeatherPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
GsonObjectPersisterFactory factory = new GsonObjectPersisterFactory(application);
dataPersistenceManager = factory.createObjectPersister(WeatherResult.class);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileStringObjectPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
inFileStringObjectPersister = new InFileStringObjectPersister(application);
}
Aggregations