Debug help for intent

revver

New member
Error Message -
Send Intent Failed
No Activity found to handle intent
{ act=android.intent.action.VIEW
flg=0x10000000
pkg=com.google.android.apps.maps }


How do I find out what flg=10000000 refers to?

Additionally, how do I activate a macrodroid macro using ...intent.action.VIEW ? What pkg, class, data etc. do I need?
Is there a way I can find all this sort of stuff without bothering you guys?
 

MacroDroidDev

Administrator
Staff member
To launch google maps you can use the android.intent.action.VIEW and then in the data field enter. http://maps.google.com

If you want to launch an app, you need to indentify the main application activity and explicitly launch that in the class field, for example
 

revver

New member
Sorry, your example didn't appear in your post. Maybe it was a "." that didn't appear.
In any case, I tried adding the class info which resulted in -
Send intent failed
Unable to find explicit activity class {com.google.android.apps.maps/http://maps.google.com};
have you declared this activity in your AndroidManifest.xml?

Looked for the manifest without success. Where do I find it?
The file explorer app I use (My Files) does not have a search function so, for future reference, can you suggest one which does?
 

dsnz

Well-known member
you must enter the


in the Data field
and leave all other fields empty (except action of course)

what you described in your first post
ie Package = com.google.android.apps.maps
and all other fields empty (except action of course)
should work ! (it works for me)

it's better that you attach screenshot of your intent configuration screen
 

revver

New member
Thanks! That worked. Apart from a popup asking which "browser" to use to open maps, Maps or DuckDuckGo. That's no biggie but if there is a way to avoid this without choosing "Always" I'd like to know.
Thanks again.

Oh, BTW, if I want maps to open at specific Lat/Long do I just append location to the uri with something like [v=LatLon]?
Also, moot point now, but I am using my PC to post here. How do I get a screenshot and where does android store it? I can then tether phone and transfer the file to the PC.
 

dsnz

Well-known member
1. if you select "always" then the popup should not pop (!) again

2. the classic maps url is

maps.google.com?q=37.987069,23.757493

ie. maps.google.com?q=lat,lon

by googling you can find other urls but which are useful only on web
for your purpose the classic old url is perfect

I don't know how you can pass lat,lon if you use the Package option but I suggest that you experiment (the url option is fine though)

3. really you have never taken a screenshot ??
long press power button then a small menu will slide into the screen from the side where is the power button, there you can find a screenshot option

alternatively press volume-down and power buttons both at the same time

screenshot is saved in "Download" folder in external storage, should be last file by date modified
 

dsnz

Well-known member
see also this post by @FrameXX
on how to open maps location using intent with Package

 

revver

New member
I haven't been able to make it work using either the ?q= method or the FrameXX method.
To isolate the problem I created a fresh macro with a dummy torch off followed by intent (1) then intent(2) and both intent methods failed. Screenshots included of
Screen_1 the macro,
Screen_2 intent(1)
Screen_3 intent(2)
Screen_4 notification screen showing both errors
//the first failure was updated to maps.google.com?q=[v=CarLocation] but also failed
Screen_5 System Log

I am now officially stumped. What do I try next?
 

Attachments

  • Screen_1.jpg
    Screen_1.jpg
    324.6 KB · Views: 26
  • Screen_2.jpg
    Screen_2.jpg
    275 KB · Views: 24
  • Screen_3.jpg
    Screen_3.jpg
    277.4 KB · Views: 26
  • Screen_4.jpg
    Screen_4.jpg
    206.6 KB · Views: 25
  • Screen_5.jpg
    Screen_5.jpg
    232.9 KB · Views: 23

dsnz

Well-known member
in your code you use

/q=

instead of

?q=

and finally you are messing the setup
it should be

package:
com.google.android.apps.maps

data:
"http://maps.google.com?q=37.987069,23.757493"

(data must not include beginning and ending quotes ", I had to add them in post because it was converted to url image)

my mistake is that I didn't write the

http://

in the beginning in the example I gave you (I thought it would be understood that it's mandatory)

your screen 2 is nearest to correct but data field should be as I give you above

see also forced location message line in your log !

PS. on June 8 you said it worked for you (without the location)
so you keep it as it was then and just add the data field correctly
 
Last edited:
Top