The question is what your advertising looks like? Let's suppose you want to download some new info to be shown from web. To read text you can use something like:
InputStream is = null;
try {
is = OpenHttpConnection(URL);
InputStreamReader isr = new InputStreamReader(is);
int read;
String str = "";
char[] ib = new char[1024];
while ((read = isr.read(ib))>0)
{
String string =
String.copyValueOf(ib, 0, read);
str += string;
ib = new char[1024];
}
in.close();
} catch (Exception e) {
}
For images BitmapFactory has decodeStream method.
And finally use Toast to show your ads. It can be quite complicated, if you provide corresponding layout for it. Design your layout to have all info needed and show the toast:
Toast toast = new Toast(getApplicationContext());
toast.setGarvity(Gravity.LEFT | Gravity.BOTTOM, 0, 0);
toast.setDuration(Toast.LENGTH_LONG);
toast.setView(layout);
toast.show();