Having an issue with my Android method that is being called from JavaScript to retrieve selected file path information from the phone gallery. The problem arises when I try to send the file path name back to the JavaScript method, as it always returns the last file path info instead of the current one. It seems to be related to callback functions. If I attempt to call a JavaScript method to send the file info after obtaining the file path, it shows an error on the debug console:
"05-04 22:07:50.274: ERROR/Web Console(331): ReferenceError: Can't find variable: SetImageFileName at undefined:1"
Below is the code snippet of what I have implemented so far...
public class Hello extends Activity {
/** Code implementation here **/
}
Would appreciate any help or suggestions regarding this issue.