12-13-2012 05:01 AM
i want to upload the image from the device ...for this i am using filepicker()...i am getting the path. To the path i am using fileconnection() to open it...but it is throwing me exception as "controlled access exception".
can any one tell my why it is throwing exception in device....when i am trying in simulator the image is
sucessfully loading. Then why in device not?
12-13-2012 05:29 AM
12-13-2012 06:01 AM
12-13-2012 07:16 AM
What statement in your program are you executing when you get the exception?
Assuming this is some API call, then what does the Java doc for that API call say for that Exception?
12-14-2012 04:25 AM
I have not checked, but I don't beleive that any of the Dialogs will throw that exception. Are you catching the Exception and then displaying a Dialog? You need to look at the statement that caused the Exception to be generated.
If you can't find that statement, then i suggest that you debug on device, which will probably catch this Exception easier: