Integrating Zxing Barcode Scanner With My Android App - Custom Action Name Issue - android

So I have successfully integrated Zxing into my application. However I want to make the entry Action name different so that users don't have to select between the barcode scanner app and my app for scanning if they have Zxing's apk installed. I figured I could do this by changingcom.google.zxing.client.android.SCAN to something else in my calling intent and my Android manifest.
It seems to work, except I am not getting a result from CaptureActivity. Instead, I am just getting results for the product in the scanner as if the app was not running via intent. I'm not sure if anyone has experienced this issue before. Any help is appreciated, and I can post more info if necessary.

I found the answer to this. I started thinking, and realized that the CaptureActivity would need to know that the action name was being called in order to determine the type of result. I didn't find it anywhere in the activity, so I did a project wide search of the original action name, and found Intents.java, which is a class of static intent action names to be used. I changed the scan action name in this file as well, and it works now.

Related

Flutter Huawei App Linking get info from link

i have implemented AppLinkin in my flutter app, and it works good, but i want to avoid the behaviour to open a new app instace
In android i'm using singleTask in launchMode
Also using this package app_links to handle the link each time the user tap the link. but I only get the link, without the info, like this: https://myApp.drcn.agconnect.link/linkId
I want to know if exist a way to get the info from the link, knowing that the api is already released
As confirmed by the team, the getAppLinking function is not supported in the singleTask launch mode. Currently, only the standard launch mode is supported.
For details, you could refer to this Docs :

Add Google Assistant routines from my app

I'm trying to develop an interactive "allspeech-based" application and I have found some troubles.
I would be able to do every task of my app without the touch input, only the voice one.
So, my idea was to use Google Assitant to open my app, and then execute tasks with Activities "allspeech-based". My only problem is open my app with a custom phrase like "Hello myApp".
I've noticed that Google only permit to define in Manifest in which developer can set predefined method like SEARCH_ACTION (I have to say "Serch cats in myAPP..."), ... and not custom action!
Then I had an idea: to resolve this I can define a new routine in my Google Assistant where Command is "Hello myApp" and action is "Open myApp", and it works!
But I don't want to force my users to add a new tourine in their Assistant, I want to do it from my app automatically at the first opening of my app (throught an Intent and a startActivity or something similar idk).
My question is: How can I do? Which Intent I have to invoke? With which extras? Is it possible?
Please answer, thank you.
There's no such intent which can directly create a new routine.

How to integrate mirrorlink common api in android Application

friends I am new in mirrorlink common Api.I don't know to enable mirror link service in android application.Please anyone tell me steps and any tutorial link.
I already do following things :-
I get developer account from mirrorlink.com.
I attached certificate with my app(that get from software that available from https://causeway.carconnectivity.org) Documents.
I saved device EMI number in my ACMS account (https://acms.carconnectivity.org)
Now I know I missing mirror link code for launching and terminate all this code and permission in manifest file.
Actually, I don't know how to code in the application for mirrorlink. please help me for step no.4
The launch and terminate UPnP code should be placed in the MainActivity. For certification purposes, your app needs to handle the Terminate intent without coming to the foreground (if it is in the background). Even if you don't respond to the intents, the app should be usable in MirrorLink.
You don't need to do anything extra to enable framebuffer streaming, or audio streaming. (Though providing context information via IContextManager.setFramebufferContextInformation and IContextManager.setAudioContextInformation is needed to make sure that the head unit knows what is being provided to it.)

Set my application title in the Contacts Quickbadge

I am using the third party Jabber Client(XABBER). I was able to integrate it into my application, but in the QuickContactbadge, it is showing the application name as Jabber.
I do not know where to find the code of changing the name.
I have verified manifest file. And there is no issue with it.
Could anybody please suggest which could be the Activity or Service which will be setting the app name as Jabber as shown in the screenshot.

Send a link to whatsapp group directly from browser (or from app)

I want to enable users to share a URL+ text with a WhatsApp group. I want this to work both from iPhones and Androids. However my app is in a browser (it's a website). I'm currently looking into 2 options, but both have issues:
1) The first potential solution - sharing directly from the browser.
I checked out WhatsApp's URL schema and used the following URL to share through my app:
"whatsapp://send?text=Hello%2C%20World!"
However there were several problems with this approach:
It seems to work only with iPhones and not with Androids. Is there a comparable solution somewhere for Androids?
It enables to choose who to send to only after you are redirected to WhatsApp, unless you know the address book ID (=abid) of the user. First, I do not know how to access the abid of users? Second, I am trying to send to a group, in which case there is no abid (right?), and therefore it seems impossible to do this. Is that true?
Also, what happens for Android apps? What is the comparable to the abid, for a group, and how do I get it?
2) The second potential solution - creating a native app which is identical with the browser-based app, but this specific part (where we do the "sharing") is native.
However, it seems to me that in this case I have very similar problems to the ones described above:
I can see how to do this for iOS on WhatsApp's website (see the link above). However, does the WhatsApp URL schema work with Android native apps as well?
Again, the address book ID issue is the same. How do I get it? It may be easier to get the abid on iOS given that we are now a native app, but does it exist for a group? And how about the Android app? Would this share to WhatsApp group work there?
Sharing directly from the browser works both in iPhone and Android if you use WhatsApp version 2.11 or higher. As you said it DIDN'T USED TO work in Android.
U can use the same URL
"whatsapp://send?text=Hello%2C%20World!"
Knowing abid is not possible as far as I know.
Hope this was helpful.
Thank You.
in Android you can invite friends from an app using Intent, see the following Code
final ComponentName name = new ComponentName("com.whatsapp", "com.whatsapp.ContactPicker");
Intent oShareIntent = new Intent();
oShareIntent.setComponent(name);
oShareIntent.setType("text/plain");
oShareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Your Message");
startActivity(oShareIntent);
I hope this solves your problem

Categories

Resources