Page 1 of 1

Android App - Auto start & auto upload

Posted: Thu Dec 21, 2017 2:51 pm
by dusterz
Hi,
Until now I've been focused 100% on my Raspberry Pi WarDriving Rig http://www.pi-resource.com/?page_id=378 but it lacks the ability to collect Cell Site data.
I have therefore just purchased a Samsung Galaxy III 4G to sit along side my Pi and run the Android Wigle WiFi. The phone will live in the boot of the car, permanently plugged in, and will therefore shutdown once the battery runs out. When i start my car, the phone will be powered and turn on. Thus, my questions are:
- How can I autostart the app when the phone first powers up.
- How can I configure it to auto upload the data to Wigle (I don't want to have to click a button)
Thanks,
Dusterz.

Re: Android App - Auto start & auto upload

Posted: Thu Dec 21, 2017 7:01 pm
by arkasha
Heya Dusterz,

Thanks for your interest! I think Tasker is the common solution to the auto-start question - we have action hooks built for intents to shut down the app from events as well - see viewtopic.php?f=3&t=1717&p=9351. We haven't built out auto-upload yet, but that's one of the ultimate goals of a lot of the work we've done on the client over the last few months - watch this space!

-Cheers,

-ark and the WiGLE team

Re: Android App - Auto start & auto upload

Posted: Wed Dec 27, 2017 8:24 pm
by arkasha
Auto upload as a broadcast intent will be included in the next release of the Android client (2.27).

the action name will be:

Code: Select all

net.wigle.wigleandroid.UPLOAD
once more, just like with waze and our termination receiver you can set it up using that action name and target will be:

Code: Select all

BroadcastReceiver

Re: Android App - Auto start & auto upload

Posted: Wed Jan 03, 2018 3:22 pm
by mobileshaun
Wow awesome thread!
I was looking for somethung like this, but something that would be nice is to have a little lcd screen showing how many networks found on a particular run, to make sure everything is logging properly

Re: Android App - Auto start & auto upload

Posted: Wed Jan 03, 2018 4:05 pm
by arkasha
I think the android-wear stuff can send status updates via intents, but I can't imagine any of us want buy a hackable watch! ;)

There's a longer discussion about a stats- or even data-bus between networkable Android devices/other devices that aardvark11 was suggesting here! Participate in the discussion, help refine our ideas. Also: Pull Requests are always welcome on github!

Re: Android App - Auto start & auto upload

Posted: Wed Jan 03, 2018 4:08 pm
by arkasha
oh, and pardon my copypasta - the intent name will be

Code: Select all

UPLOAD
NOT

Code: Select all

END
like I initially posted! That would be silly, since we already use that one.

Re: Android App - Auto start & auto upload

Posted: Sun Jan 07, 2018 2:41 pm
by dusterz
Fab - Keep up the good work.

Re: Android App - Auto start & auto upload

Posted: Sun Mar 11, 2018 6:08 pm
by arkasha
This should be released now, btw - feedback welcome!

Re: Android App - Auto start & auto upload

Posted: Wed Aug 21, 2019 8:39 pm
by dnc
I am trying to configure tasker to auto upload to wigle when some conditions are met but I have been receiving this error:

Code: Select all

08-21 15:35:01.640 711 750 W BroadcastQueue: Background execution not allowed: receiving Intent { act=net.wigle.wigleandroid.UPLOAD flg=0x10 } to net.wigle.wigleandroid/.listener.UploadReceiver
I think the Background execution not allowed was introduced on Android Oreo (8).
is there any other way to automate the upload to Wigle?

Re: Android App - Auto start & auto upload

Posted: Thu Aug 22, 2019 2:16 pm
by dnc
Solved the problem by specifying the package on the intent configuration.
Below are the images of the working configuration in case you are having the same problem:

Image
Image

Re: Android App - Auto start & auto upload

Posted: Thu Aug 22, 2019 5:31 pm
by arkasha
awesome - we were struggling to reproduce the issue.
mind if we we include your images in the sticky "How to do automation" topic?

viewtopic.php?f=1&t=2707&p=10297#p10297

Re: Android App - Auto start & auto upload

Posted: Thu Aug 22, 2019 10:17 pm
by dnc
Please go ahead! :D