IP Cam Viewer     My Amazon IP Cameras    

launching app with task managers and other automation apps

Support for my free Android Applications.

Re: launching app with task managers and other automation apps

Postby stbi » Mon Apr 21, 2014 3:38 pm

spoteat wrote:Has anyone gotten this to work? I have been unsuccessful in my attempts.


Yes, for me it works now - thanks to iostream212!

In addition to iostream212's directions, "Target" has to be set to "Activity".

Here's my Tasker task as XML:

Code: Select all
<TaskerData sr="" dvi="1" tv="1.6u2m">
        <Task sr="task5">
                <cdate>1332005767888</cdate>
                <edate>1398122833130</edate>
                <id>5</id>
                <nme>Show Webcam</nme>
                <pri>10</pri>
                <Action sr="act3" ve="3">
                        <code>877</code>
                        <Str sr="arg0" ve="3">android.intent.action.MAIN</Str>
                        <Int sr="arg1" val="8"/>
                        <Str sr="arg2" ve="3"/>
                        <Str sr="arg3" ve="3"/>
                        <Str sr="arg4" ve="3">selectView:GALLERY_VIEW</Str>
                        <Str sr="arg5" ve="3">selectCameraName:Webcam</Str>
                        <Str sr="arg6" ve="3">com.rcreations.WebCamViewerPaid</Str>
                        <Str sr="arg7" ve="3"/>
                        <Int sr="arg8" val="1"/>
                </Action>
        </Task>
</TaskerData>


(Replace "Webcam" by your actual camera name.)
stbi
 
Posts: 5
Joined: Sat Mar 17, 2012 10:39 am

Re: launching app with task managers and other automation apps

Postby N4Spd » Thu May 22, 2014 9:49 pm

see this post for NEW automation APIs: viewtopic.php?f=8&t=5669&p=7296#p7296

make your requests for new APIs here.
N4Spd
 
Posts: 1320
Joined: Sun Feb 08, 2009 3:25 pm

Re: launching app with task managers and other automation apps

Postby erkme73 » Tue Dec 09, 2014 11:40 am

Thanks in no small part to iostream212, I have set up a tasker shortcut to launch a specific group's matix view.

In tasker, create a new task (call it what you like), then click + to add an action. Select "system", then "send intent". Once there, fill in as follows:

Screenshot_2014-12-09-14-35-05s.jpg
Screenshot_2014-12-09-14-35-05s.jpg (43.45 KiB) Viewed 31200 times

Screenshot_2014-12-09-14-35-20.jpg
Screenshot_2014-12-09-14-35-20.jpg (46.43 KiB) Viewed 31173 times


From there, you create a shortcut on your home screen to the task.

Note that in my example above, I used the second "extra" field to add a specific group name. If you have multiple groups, this is how you would differentiate between them.

Also... all of these fields ARE CASE SENSITIVE!

Works like butter...
erkme73
 
Posts: 10
Joined: Wed Dec 22, 2010 8:03 pm

Re: launching app with task managers and other automation apps

Postby N4Spd » Fri Dec 26, 2014 2:35 pm

in Android v5.7.x, you can now create the following shortcuts from the app itself!

1. create a shortcut to a camera on the home screen. goto manage cameras, click camera, select create shortcut

2. create a shortcut to a camera group on the home screen. goto manage cameras, click group icon, select create shortcut.
N4Spd
 
Posts: 1320
Joined: Sun Feb 08, 2009 3:25 pm

Re: launching app with task managers and other automation apps

Postby panste » Wed Apr 26, 2017 1:50 am

Hi I was wondering if there is an intent to enable the "Turn on all device on/off" and selecting the incamera MD (method 1 in cam and not method 2 in app).

The idea is to set up and entry exit task in tasker and enable and disable (accordingly) the incam detection
panste
 
Posts: 1
Joined: Thu Jan 19, 2017 9:38 pm

Re: launching app with task managers and other automation ap

Postby N4Spd » Mon Jun 22, 2020 10:01 pm

Here's a Tasker task which uses their Java Function to convert the above sample code to launch IP Cam Viewer Pro in matrix view.
Click the following link to import into Tasker:
https://taskernet.com/shares/?user=AS35 ... Task%3AIpc

Code: Select all
// launch matrix mode of paid version
       Intent intent = new Intent( Intent.ACTION_MAIN );
        intent.addCategory( Intent.CATEGORY_LAUNCHER );
        intent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
        intent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
       ComponentName cn = new ComponentName( "com.rcreations.WebCamViewerPaid", "com.rcreations.WebCamViewerPaid.IpCamViewerActivity" );
        intent.setComponent( cn );
        intent.putExtra( "selectView", "MATRIX_VIEW" );
        startActivity( intent );

N4Spd
 
Posts: 1320
Joined: Sun Feb 08, 2009 3:25 pm

Re: launching app with task managers and other automation ap

Postby N4Spd » Mon Jun 29, 2020 1:55 pm

Ok, here's an easier way to integrate with Tasker (instead of using app's built-in web server to control it):

You need IP Cam Viewer Pro v7.0.8 or newer:

---
Start app in Gallery View

Action Name: Send Intent (under System)
Action: android.intent.action.VIEW
Cat: Default
Extra: selectView:GALLERY_VIEW
Package: com.rcreations.WebCamViewerPaid
Class: com.rcreations.WebCamViewerPaid.IpCamViewerActivity
Target: Activity

Above is same as sending "/v1/cgi/getset.cgi?action=set&key=app_state.goto_screen&value=GALLERY_VIEW" to app's web server.

---
Start app in Gallery View showing an already enabled camera

Action Name: Send Intent (under System)
Action: android.intent.action.VIEW
Cat: Default
Extra: selectView:GALLERY_VIEW
Extra: selectCameraName:garage
Package: com.rcreations.WebCamViewerPaid
Class: com.rcreations.WebCamViewerPaid.IpCamViewerActivity
Target: Activity

Above is same as sending "/v1/cgi/getset.cgi?action=set&key=app_state.goto_screen&value=GALLERY_VIEW&extra=garage" to app's web server.

---
Start app in Matrix View

Action Name: Send Intent (under System)
Action: android.intent.action.VIEW
Cat: Default
Extra: selectView:MATRIX_VIEW
Package: com.rcreations.WebCamViewerPaid
Class: com.rcreations.WebCamViewerPaid.IpCamViewerActivity
Target: Activity

Above is same as sending "/v1/cgi/getset.cgi?action=set&key=app_state.goto_screen&value=MATRIX_VIEW" to app's web server.

---
Start app in Matrix View with specific Group

Action Name: Send Intent (under System)
Action: android.intent.action.VIEW
Cat: Default
Extra: selectView:MATRIX_VIEW
Extra: selectGroupName: home
Package: com.rcreations.WebCamViewerPaid
Class: com.rcreations.WebCamViewerPaid.IpCamViewerActivity
Target: Activity

Currently no way to select group while transitioning to matrix view using built-in web server api.

---
If you have IP Cam Viewer Basic, then use package "com.rcreations.ipcamviewerBasic" and class "com.rcreations.ipcamviewerBasic.WebCamViewerActivity"
If you have IP Cam Viewer Lite, then use package "com.rcreations.ipcamviewerUpgrade" and class "com.rcreations.ipcamviewerUpgrade.WebCamViewerActivity"

rob
N4Spd
 
Posts: 1320
Joined: Sun Feb 08, 2009 3:25 pm

Previous

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron