Embedding Droid Scan in another app

Information for developers

Embedding Droid Scan in another app

Postby droid scan dev » Wed Apr 04, 2012 9:37 am

[ UPDATE: This post has been edited because the feature it describes is now included in all versions of Droid Scan. ]


We need some document scanning functionality to support the fieldworkers who use our mobile app. Does Droid Scan have the ability to be embedded in another app?


Yes. There is support for this use case baked into the app as a result of previous work with partners. It was designed to support HTML-style apps with a file upload feature, so it responds to the type of "GET_CONTENT" intent that is used by the Android Browser. But, this type of intent can also be used by a custom app that is not web-based.

To use Droid Scan from a web app, just include a file upload feature in your Browser- or WebView-based app. When the user clicks on the upload button, Android OS will include Droid Scan in the list of file sources.

When it is launched using this method, Droid Scan adds a "Pick" option to its action menu and displays feedback to inform the user. The user can interact freely with the app until they are ready to return a result to your calling app. This would include using batch mode for automation. When the user activates the pick action, Droid Scan returns a URI to your calling app.

As noted above, this method can be used by any Android app that is compatible with the intent filter.

The intent filter looks like this:

Code: Select all
               android:name="android.intent.action.GET_CONTENT" />
               android:name="android.intent.category.DEFAULT" />
               android:name="android.intent.category.OPENABLE" />
               android:mimeType="image/jpeg" />
               android:mimeType="application/pdf" />

You should be able to experiment with this feature using the current release of Droid Scan, to see if it suits your purposes.

If you are looking for a more custom-designed interaction with Droid Scan, the developers are open to discussion about custom projects, depending on availability and time constraints.
droid scan dev
Posts: 114
Joined: Sun Mar 07, 2010 3:58 pm

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest