0

I am writing an app that does live streaming. Can I make a bitmap field go full screen when clicked?

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Mr.Noob
  • 1,005
  • 3
  • 24
  • 58
  • If you want to read the images from RssFile,Initially read the RssFile and display the images in a GridView and finally display the single image from Gridview(if you click on an image from GridView) to a new Screen. – String Nov 16 '12 at 10:31
  • I am doing live streaming images from an ip camera. I just need to put up a click event that will make the bitmap field go on full screen. – Mr.Noob Nov 16 '12 at 11:04

1 Answers1

2

The easiest way to do it (that I could think of in 2 minutes):

  • Make your bitmap clickable (described here)
  • When the bitmap field is clicked, scale it into a new bitmap the size of the whole screen:

Bitmap scaled = new Bitmap(Display.getWidth(), Display.getHeight()); originalBitmap.scaleInto(scaled);

  • Create a new Screen, containing only a BitmapField (with your scaled bitmap)
  • Push the new Screen.
Community
  • 1
  • 1
G B
  • 2,951
  • 2
  • 28
  • 50
  • How do i create a new screen? for this? should i extend the main screen? – Mr.Noob Nov 16 '12 at 10:46
  • You can also use a MainScreen object directly, without extending: screen = new MainScreen() and then screen.add(bitmapField). – G B Nov 16 '12 at 11:03