As far as I know, there is not a way to accomplish what you are explaining. You can see in the Phonegap Doc that the possible options are the two you mentioned. I faced the same problem and ended up opening a dialog letting the user to choose the source of the picture.