You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation getshapshot() acting up on 6630. - 2005-09-05, 01:16

Join Date: Mar 2003
Posts: 316
Location: IL/USA
Send a message via AIM to earamsey Send a message via MSN to earamsey Send a message via Yahoo to earamsey Send a message via Skype™ to earamsey
earamsey
Offline
Regular Contributor
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!
Reply With Quote

#2 Old Re: getshapshot() acting up on 6630. - 2005-09-27, 12:41

Join Date: Sep 2005
Posts: 119
Pepper_91
Offline
Regular Contributor
can you paste the code of your app. ???
Reply With Quote

#3 Old Re: getshapshot() acting up on 6630. - 2005-09-27, 14:49

Join Date: Mar 2005
Posts: 499
Location: Paris
njzk2
Offline
Regular Contributor
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
Reply With Quote

#4 Old Re: getshapshot() acting up on 6630. - 2005-09-29, 16:23

Join Date: Mar 2003
Posts: 316
Location: IL/USA
Send a message via AIM to earamsey Send a message via MSN to earamsey Send a message via Yahoo to earamsey Send a message via Skype™ to earamsey
earamsey
Offline
Regular Contributor
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?
Reply With Quote

#5 Old Re: getshapshot() acting up on 6630. - 2005-10-08, 11:08

Join Date: Sep 2005
Posts: 119
Pepper_91
Offline
Regular Contributor
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?
Reply With Quote

#6 Old Re: getshapshot() acting up on 6630. - 2005-10-12, 18:03

Join Date: Oct 2005
Posts: 7
AceInvest
Offline
Registered User
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?
Reply With Quote

#7 Old Re: getshapshot() acting up on 6630. - 2005-10-12, 18:08

Join Date: Mar 2005
Posts: 499
Location: Paris
njzk2
Offline
Regular Contributor
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'
Reply With Quote

#8 Old Re: getshapshot() acting up on 6630. - 2005-10-14, 11:44

Join Date: Oct 2005
Posts: 7
AceInvest
Offline
Registered User
Thank you very much for recent answers. This helps. So easy and workable
P.S. Sorry for double posting ;)
Reply With Quote

#9 Old Re: getshapshot() acting up on 6630. - 2005-10-14, 11:49

Join Date: Mar 2005
Posts: 499
Location: Paris
njzk2
Offline
Regular Contributor
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ