sarriaroman / photoviewer

PhotoViewer Cordova Plugin
MIT License
156 stars 213 forks source link

Error Android #181

Open maxhsantos opened 5 years ago

maxhsantos commented 5 years ago

Hey guys! I am using the plugin and was unable to open images, the app always closed. So I noticed that when installing the plugin, it didn't create an activity in the manifest that was needed. So I created it manually and it worked. I'm leaving here if anyone comes across this error as well.

Solution, In android manifest:

maxhsantos commented 5 years ago

activity android:name="com.sarriaroman.PhotoViewer.PhotoActivity"

fermedina commented 3 years ago

It should be added by the plugin. But you can solve this problem with the next code in your config.xml file:

<config-file parent="/manifest/application" target="app/src/main/AndroidManifest.xml">
    <activity android:name="com.sarriaroman.PhotoViewer.PhotoActivity" />
</config-file>