androidcordovadocumentviewer

Android - Is it possible to integrate phonegap app with non-phonegap app


What I tried:

I am developing an android application. Inside my app, I have to open -> show the microsoft office documents (doc, docx, xls, xlsx, ppt, pptx)content to the user. For this I have tried multiple ways(apachi-poi, docx4j). But I couldn't get it done.

Android - convert doc, docx pages and xls, xlsx sheets to html using apache POI

Android - docx4j build issue

So I have decided to show the documents using third part document SDKs inside my app.

Android - microsoft office viewer in my app

But this was not helped to me. Meanwhile I got some suggestions. By Using phonegap, Fileopener plugin we can open -> show the documents to the user.

What I need:

I have already developed a non-phonegap application. If I do the document viewer using phonegap, is it possible to integrate the phonegap app to my non-phonegap app?

I am new to the phonegap. If possible please give some ideas (or) steps to do that.


Solution

  • in your non-phoneGap application, when user wants to open a document (if you insist to use phoneGap for that) just open a webView and then open your phoneGap application (web pages) in that.