How to bypass printer dialog box in android application ? I have already tried the PRINTER API from android but it prompts me a preview box Checked many things then found it is possible through google cloud print but not sure if anyone an confirm and guide the same. Will be really greatful thanks in advance
Bypassing dialog box or Silent print
1.9k Views Asked by Anmol Kohli At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in GOOGLE-CLOUD-PRINT
- How to print multiple items using the same PrintAttributes
- How to send file to google cloud printing app via intent in android 5?
- Android : java.lang.RuntimeException: android.accounts.AuthenticatorException: UNREGISTERED_ON_API_CONSOLE
- Bypassing dialog box or Silent print
- Google Cloud Printer API - the meaning of type
- Google Cloud Print from Web
- Google cloud print get access token
- iOS: Printing PNG files to Google Cloud Print using GTM
- Is it possible to connect thermal receipt printer to Google Open print?
- How can I directly print from web application(using Spring and angular 2) to local printer?
- Send raw ZPL data over Google cloud print
- Google cloud print reports document missing
- Printer settings with Google Cloud Print
- Google Cloud Print - Python Code Sample - GaiaLogin returns None
- Can't print from device
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far as I know, the documentation on https://developers.google.com/cloud-print/docs/android explains two possible options to integrate GCP functionality in your app:
Using the Android.Print API will always result in a call to the OS Print Dialog, where you will be prompted to select the printer from the list and the print settings. In this case, the list of printers is provided by the different print services the user has installed in their device, and Google Cloud Print is one of them.
Having said that, there's still a way to achieve what you call silent print. You may need to implement the Google Cloud Print API calls in your own application. I've done it as part of a Java applicatio, so it won't be very different in Android.It requires 2 things:
You'll find all the required info on https://developers.google.com/cloud-print/docs/appInterfaces
More information on OAuth 2.0 to access Google APIs on https://developers.google.com/identity/protocols/OAuth2