Exemplo n.º 1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   View view = new Banner(this);
   view.setOnClickListener(this);
   setContentView(view);
   Log.d(TAG_NAME, "Banner View activated successfully!");
 }
Exemplo n.º 2
0
 @Override
 public void onClick(View v) {
   v.setOnClickListener(null);
   Log.d(TAG_NAME, "View: " + v.toString() + " clicked!");
   startActivity(new Intent(this, TocListActivity.class));
 }