Guest User

Untitled

a guest
Sep 2nd, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. confirmPhoto.setOnClickListener(new OnClickListener() {
  2. public void onClick(View v) {
  3.  
  4.  
  5. try{
  6.  
  7. bitmapResult.recycle();
  8.  
  9. bitmapResult=null;
  10. }
  11. catch(Exception e)
  12. {
  13. e.printStackTrace();
  14. }
  15.  
  16.  
  17. Intent i = new Intent(getBaseContext(),
  18. SendPhoto.class);
  19. startActivity(i);
  20. finish();
  21. }
  22. });
  23.  
  24. backTakePhoto.setOnClickListener(new OnClickListener() {
  25. public void onClick(View v) {
  26.  
  27.  
  28. try{
  29. bitmapResult.recycle();
  30. bitmapResult=null;
  31.  
  32.  
  33.  
  34. }
  35. catch(Exception e)
  36. {
  37. e.printStackTrace();
  38. }
  39. Intent i = new Intent(getBaseContext(), TakePhoto.class);
  40. startActivity(i);
  41. finish();
  42.  
  43. }
  44. });
Advertisement
Add Comment
Please, Sign In to add comment