Now, I have rarely used intents and I wonder if anyone could help me to get the following java-snippet working in B4A:
And what would I need to put in the manifest?
The idea is that the app detects a phone-number (this already works), and if the phone-number is a match, I simply want to get the google search open up. I would like to avoid having an activity in this app.
B4X:
'Intent intent = new Intent(Intent.ACTION_MAIN);
'intent.setClassName("com.google.android.googlequicksearchbox",
' "com.google.android.googlequicksearchbox.VoiceSearchActivity");
'Try {
' StartActivity(intent);
'} Catch (ActivityNotFoundException anfe) {
' Log.d(TAG, "Google Voice Search is not found");
'}
And what would I need to put in the manifest?
The idea is that the app detects a phone-number (this already works), and if the phone-number is a match, I simply want to get the google search open up. I would like to avoid having an activity in this app.