WP8 QR scan solution for App - windows-phone-8

Is there any way to launch another App from one APP
So, I need to scan a QR code, and do something with the code.
There are 2 type of solution,
Launch an QR code reader app from current app, scan, and return.
But I don't know it's possible or not.
Porting Zxing
Then hook up Zxing with the camera in WP
So I want to know is solution 1 possible?
Where I can find a sample about launch an app from an app

You can run your application from another application.
For example
Windows.System.Launcher.LaunchUriAsync(new Uri("viber:"));
But it's impossible to pick just so the results from another application.
Better for you to embed the code in your application to read.
There are libraries. For example, ZXing.Net 0.14.0.1

Yes there are many libraries out there in order to use the QR Scanning, where this sample from Wilcox could be helpful. Another option you could go with is to use the ZXing.Net.Mobile client for QR scanning.
Sample
Why don't you try launching the Bing Vision from your app in order to do the scanning?
Is it possible to access bing vision programmatically

Related

Accessing OMR Scanner through web application

I want to access OMR Scanner through web application. I have search for it in google and found ScanTool SDK, but I am looking for similar functionality but open source. My basic requirement is below:
There will a web interface for the user.
User can select OMR scanner from the web page drop-down.
User can do the scanning of the document
NOTE: I have seen similar functionality for TWAIN scanner. But I want it for OMR scanner. As TWAIN scanner generate image data but OMR scanner generate image as well as raw data of response present in OMR sheet.
Please see my answer her regarding scanning via the web:
How can I scan a document using ASP.net MVC 5 with the help of Twain
Basically you will need to install some sort of client side service that will interface with your scanner's driver in order to scan via the web as there is built in security functionality that prevents the browser from interfacing directly with the client's scanner.

is there a way to launch Bing Vision from windows phone 8.1 app using WinJS/WinRT

I am working on a windows phone 8.1 app using WinJS.
I need to scan a QR Code and I am thinking of launching Bing Vision lens from my app. I checked the url association is not available for camera.
Alternatively, I used File Open picker, so that I can use the camera button to launch camera, but this launch of camera doesn't provide options to switch lens.
Please help me on this..
Just found this question, even if its an older one, here is a working solution of mine.
As I understand correctly you want to implentent QR code scanning capability without coding an own QR code scanner.
I have developed a free app for this purpose. QR Scanner RS
But first you must be familiar with using URI association. Documentation can be found here:
https://msdn.microsoft.com/en-us/library/windows/apps/hh452691.aspx
Check also this sample:
https://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec/
You can launch QR Scanner RS using following URI scheme: "xyz-vida-rs:FREEvRSGBU="
C# example, (use WinJS equivalent):
await Windows.System.Launcher.LaunchUriAsync(new System.Uri("xyz-vida-rs:FREEvRSGBU=[URI of your App]"));
You need an own registered URI scheme for your app. Just replace [URI of your App] with your URI scheme.
Whats happening is pretty cool and simple.
You're launching QR Scanner RS from within your app. As soon as QR Scanner RS detects some QR code, barcode, ... and read it succesfully, it launches back your app (using your URI scheme) and transfers the QR code content to your app. You then just need to handle the result.
Hope this helps ;-)
One important note: QR Scanner RS will stay 100% free for this purpose!
You can send me your cantact data (eMail) using in app URI scheme request if you want to. I then can notify you about URI scheme extensions.

How to use Telegram API in Windows Phone 8?

I would like to use Telegram API for Windows Phone 8. Though unlike other platforms, Telegram doesn't provide source code for Windows Phone. This is unfortunate because it creates a lot of problems for those who want to use it. From my research people mention using REST Service to accomplish that. Though no one showed any exact solution for how to accomplish it. I also read about using RPC calls to accomplish it. I don't know how to do that and I would greatly appreciate someone who could explain step by step to how to implement Telegram in ones app. Big Thanks!
If you need to see source code of an app using the Telegram API you should take a look at github.
There are a lot of apps there using this API:
API, Protocol documentation
Documentation for Telegram API is available here: http://core.telegram.org/api
Documentation for MTproto protocol is available here: http://core.telegram.org/mtproto
Take a look at this one https://telegram.org/apps#telegram-for-wp
You can browser their source code there downloading the zip. Unfortunatelly Stackoverflow does not permit we post a step by step walkthrough of using an API.

Incorporate Google Drive solution in existing Android app project?

I have an existing Android app project which has been already published on the Google Play, and now I would like to incorporate in my app the possibility to use the Google Drive possibilities in order to download *.jpg files directly to the sd card when the app is opened or load for the first time. Like this I liberate the internal memories of the phones where this app is installed (All the images are stored in the resources of the app actually which is >~ 20MB). I have read a lot of forums concerning the Google Drive SDK or API subjects and I can say that I'm a little bit lost on the manner to manage it for my present app. Some ideas or suggestions would be very very very appreciated.
Thank you very much).
Please see this question for the basics on how to integrate your Android app with Google Drive SDK: Access to Google Drive from self implemented Android application
In it, I reference a good Google+ tutorial on how to get started, and it's easy enough to take the concepts and apply them to an existing app. (That's how I did it too.) Before you get started, sign up for the Google APIs (https://code.google.com/apis/console/), get into the API Console, and turn on both the Google Drive API and Drive SDK. This'll make coding go a lot smoother. Let me know if you have any problems.
One addendum for your specific case relating to *.jpg files is you could set a MIME type for fetching strictly the pictures. It'd go something like this:
request = service.files().list(); // .setQ("mimeType=\"text/plain\"");
Unfortunately setQ is commented out because it would fail to return any results when I used it. However, you may have better luck with the image/jpeg MIME type.

Authenticating the application in embedded systems - Google Drive SDK

Is there any way to authenticate the application to use the Google Drive API without a native browser in an embedded system?
I'm looking for a solution to the user accepts and put your password and username using the OAuth2.0 without browser interactions... Is it possible?
My applications is build in Java Code.
Thanks in advance.
I am presently trying to do just this and I don't think it is possible because:
To authenticate in embedded device you need to use this process:
https://developers.google.com/accounts/docs/OAuth2ForDevices
the problem with this, is that it only accept limited range of scopes like:
--https://www.googleapis.com/auth/userinfo.profile
which works OK
but when you try with scope like:
--https://www.googleapis.com/auth/drive.*
you get invalid_scope.
If you find a solution please let me know, I have the same problem my device is embedded, has no screen, and is not available with remote desktop of the like.
thanks for any feed back.
Use the OAuth 2 device flow which is designed for cases where a browser isn't available on the device. It allows the user to complete the login & authorization on a separate, more capable device (phone/tablet/laptop) where a browser is available.