🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #347197

Re: Delphi 10.3 android skanowanie kodu barcode scanner zxing

#347197
From: Przemyslaw Rokicki
Date: Sun, 07 Nov 2021 19:39
40 lines
3117 bytes
piątek, 5 listopada 2021 o 19:59:00 UTC+1 Przemyslaw Rokicki napisał(a):
> piątek, 5 listopada 2021 o 19:36:46 UTC+1 Przemyslaw Rokicki napisał(a): 
> > Witam, ma ktoś gotowy kod i podzieliłby się ze skanowaniem 
> > poprzez wywołanie aplikacji barcodescanner zxing (zwykły ean oraz qr) ze zwrotem do aplikacji? Zastosowałem wbudowaną bibliotekę zxing, jednak bardzo wolno działa aparat. Nie mam doswiadczenia w programowaniu na androida i nie za bardzo wiem jak wywolywac z zastosowaniem wynikow zewnetrznych aplikacji . 
> > 
> > 
> > Pozdrawiam 
> > P.
> W lazarusie zastosował jIntentManager ktorego w delphi nie ma, wywolanie 
> 
> jIntentManager1.SetAction('com.google.zxing.client.android.SCAN'); 
> if jIntentManager1.IsCallable(jIntentManager1.GetIntent()) then 
> begin 
> jIntentManager1.PutExtraString('SCAN_FORMATS', ACodeType); 
> jIntentManager1.StartActivityForResult(0); 
> end else 
> begin 
> ShowMessage('Wymagana aplikacja skanera kodów kreskowych...'); 
> jIntentManager1.SetAction(jIntentManager1.GetActionViewAsString()); 
> jIntentManager1.SetDataUri(jIntentManager1.ParseUri('market://search?q=barcode+scanner')); 
> jIntentManager1.StartActivity(); 
> gApp.Finish; 
> end; 
> 
> i na glownej formie jest zdarzenie on ActivityResult 
> procedure TMainModule.MainModuleActivityResult(Sender: TObject; 
> requestCode: integer; resultCode: TAndroidResult; intentData: jObject); 
> 
> if (requestCode = 0) then 
> begin 
> (..._) 
> sBarCode := jIntentManager1.GetExtraString(intentData, 'SCAN_RESULT'); 
> i(....) 
> 
> i to chce do delphi przezrzucić. 
> 
> Pozdrawiam 
> P.

Nie było pytania
Technical Details
Message-ID: <e20d6319-f688-479c-88f3-3c79c163b24an@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!3.eu.feeder.erje.net!feeder.erje.net!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
References: <f5840d3c-44b4-48c1-a41f-51864cfc96f4n@googlegroups.com> <4607b947-cdfc-4f93-8642-985072bbf9aen@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Received: by 2002:ac8:7f83:: with SMTP id z3mr24799924qtj.138.1636313976050; Sun, 07 Nov 2021 11:39:36 -0800 (PST)
X-Received: by 2002:aca:3bd4:: with SMTP id i203mr32133353oia.69.1636313975918; Sun, 07 Nov 2021 11:39:35 -0800 (PST)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!3.eu.feeder.erje.net!feeder.erje.net!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.delphi
Date: Sun, 7 Nov 2021 11:39:35 -0800 (PST)
In-Reply-To: <4607b947-cdfc-4f93-8642-985072bbf9aen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=37.248.170.16; posting-account=lMchpAoAAABKV6gjDB4abWP8l2p_RN6g
NNTP-Posting-Host: 37.248.170.16
References: <f5840d3c-44b4-48c1-a41f-51864cfc96f4n@googlegroups.com> <4607b947-cdfc-4f93-8642-985072bbf9aen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e20d6319-f688-479c-88f3-3c79c163b24an@googlegroups.com>
Subject: Re: Delphi 10.3 android skanowanie kodu barcode scanner zxing
From: Przemyslaw Rokicki <dumpingowiec@gmail.com>
Injection-Date: Sun, 07 Nov 2021 19:39:36 +0000
Lines: 50
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit