| Reply | « Previous Thread | Next Thread » |
|
is anyone experiencing any problems with getsnapshot() on 6630? After taking 17 pictures, getSnapshot() mysteriously stops working. No Exception reported, not even OutOfMemoryError try{}catch() is caught. Sometimes, I get snapshot window and other times I don't. has anyone encountered this before?
Please HELP! |
|
can you paste the code of your app. ???
|
|
did you try with various encoding ?
it looks like out of memory anyway, so try to get the size of each picture, then change the encoding and you should be able to see if it hangs at the same size limit are you saving this to record store ? it may also be full |
|
I think i am running out of memory. Why? Because i am using jsr75 to read images from the gallery and convert them to thumbnails so midlet user can choose them. THe gallery has a lot of images in it. I think that everything you create an image you get an memory leak so after so many times the midlet dies. is there a way around this?
|
|
Hello:
I have problems too takin pictures with my 6630. I use this code: if (c == this.cambiarFoto){ //inside the commandListener try{ Player mPlayer = Manager.createPlayer("capture://video"); mPlayer.realize(); VideoControl mVideoControl = (VideoControl) (mPlayer.getControl("VideoControl")); Form form = new Form("Capturar Imagen"); Item item = (Item)mVideoControl.initDisplayMode(GUIControl.USE_GUI_PRIMITIVE, null); form.append(item); byte[] raw = mVideoControl.getSnapshot(null); Image image = Image.createImage(raw, 0, raw.length); form.setCommandListener(this); display.setCurrent(form); }catch (Exception ex) {ex.printStackTrace();} } but doesn't work :( what i'm doing wrong? |
|
I tried to get snap snapshots. Each time I try to get snapshop the phone asks permission to give the access to the camera. Is there any way to give the permission for the hole session of the work of the application or is there any way not to give such permissions at all?
|
|
find the application properties, there is one which defines the behaviour : 'ask first', 'ask always', or 'never allow'
with signed apps, you may also be able to 'allow always' |
|
Thank you very much for recent answers. This helps. So easy and workable
P.S. Sorry for double posting ;) |
|
pepper, try this :
create your videocontrol with USE_DIRECT_VIDEO instead of GUI_PRIMITIVE then videoControl.setVisible(true) player.start(); you should see your videoControl (at least it works for me |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia 6630 Specific questions related to jsr184 , m3g , etc | www.rzr.online.fr | Mobile Java Media (Graphics & Sounds) | 6 | 2006-04-10 11:37 |
| 6630 network connection on O2 | leisuresuit | Mobile Java Tools & SDKs | 0 | 2005-08-04 22:06 |
| Sending message between Nokia 6260 and Nokia 6630 problem | fgozman | Mobile Java Networking & Messaging & Security | 0 | 2005-03-18 12:10 |
| 6630 wallpaper bug | dakku | General Symbian C++ | 0 | 2004-12-29 21:45 |
| Cannot Sync through bluetooth or usb on 6630 | Un6rand3d | Bluetooth Technology | 0 | 2004-12-10 10:14 |