Post Reply

CommMgrPro for Android (Rules Engine) [ 2012-06-20 V1.1.19 ]

OP danielherrero

22nd June 2011, 03:22 PM   |  #1  
danielherrero's Avatar
OP Senior Member
Flag Madrid
Thanks Meter: 231
 
3,241 posts
Join Date:Joined: Oct 2006
Donate to Me
Hi.
Market URL https://play.google.com/store/apps/d...9tbW1ncnBybyJd
I am porting CommMgrPro from Windows Mobile to Android.
This is the original post.
http://forum.xda-developers.com/showthread.php?t=299070

The goal of this project is to customize the behaviour of your device depending of many events, like time, date, position, battery state, calendar, radios states, and any environment element.

Rules Engine is a complete rules engine to customize your device behaviour automatically. The idea is simple and powerfull:
The device broadcast automatically events about many thinks
Hardware events like Bluetooth, wifi, battery level, cpu state, position events, time events, calendar events, phone ring state, screen state
And much more...
And the device can perform automatically many actions without user intervention:
Set hardware state, wifi, bluetooth, speaker, launch or kill a program, apply a predefined profile, send a SMS/Email, ringtones....
And much more...
With Rules Engine you can create many rules. Each one is composed of:
Conditions. Simple or complex conditions using AND/OR clauses. For example, if weekday is monday, between 7:00 and 9:00 and my current position is my office and battery level is higher than 20% then send an email .....
Actions. Actions to be executed when the rule passes from unmatched to matched and actions to be executed when the rule passes from matched to unmatched. User can set their order, delays, etc

Other features:
Profiles: These are set of actions that the user can select / unselect quickly from the main page.
Quick timed switchers: For example, set Bluetooth on, but put off again after 90 minutes

New actions and conditions are being added each day.
Current conditions:
Weekday and time
Wifi state
Speaker state
Bluetooth state
Flight mode state
Data connections enabled / disabled
AC power / Battery
Location. To be inside or outside of some place (defined by point and radius)
Screen state
To match or unmatch other rule
Some program is running or not
Battery level (min, max)
Bluetooth connected to an specified device
Phone status (ringing, in call...)
Calendar events. To be in a caleendar event that contains some word, like 'meeting"
Autorotation screen On/Off
Mobile network type in use (GPRS, HSDPA, CDMA, LTE, etc)
Data connection On/Off
Headphone plugged or not
Car mode activated / deactivated

Current action:
Set wifi state
Set speaker state
Set bluetooth state
Set flightmode state
Set connections enabled / disabled
Launch a program
Kill a program
Apply a profile (Set of rules)
Set autorotation screen state
Set screen bright state
Set auto sync accounts state (gmail, facebook, etc)
Play a song.
Send SMS
Send Email
Set car mode
Set wallpaper
Set ringtone (as user mp3 or android ringtone)

As we did with CommMgrPro for Windows Mobile I hope this project become a user driven project.
ThanksĦĦ

Known bugs
  • Empty
Next features being developed
  • Roaming condition
  • Condition connected to a specified hotspot


Attached Thumbnails
Click image for larger version

Name:	device-2011-10-26-122806.jpg
Views:	3569
Size:	24.6 KB
ID:	761863   Click image for larger version

Name:	device-2011-10-26-122836.jpg
Views:	2544
Size:	31.6 KB
ID:	761864   Click image for larger version

Name:	device-2011-10-26-122913.jpg
Views:	2233
Size:	39.4 KB
ID:	761865   Click image for larger version

Name:	device-2011-10-26-123011.jpg
Views:	2095
Size:	45.8 KB
ID:	761866   Click image for larger version

Name:	QR_Droid_28218.png
Views:	864
Size:	4.0 KB
ID:	1076292  
Last edited by danielherrero; 20th June 2012 at 12:40 PM.
The Following 12 Users Say Thank You to danielherrero For This Useful Post: [ View ]
23rd June 2011, 03:53 PM   |  #2  
short/y's Avatar
Senior Member
Flag Silly-con Valley
Thanks Meter: 58
 
617 posts
Join Date:Joined: Mar 2006
More
Was a CommMgrPro user for a long time on WM so I'm looking forward to how this turns out on Android, Daniel. Glad to see you're here!

For my part, I'd like to

1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)

Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.
24th June 2011, 08:15 AM   |  #3  
danielherrero's Avatar
OP Senior Member
Flag Madrid
Thanks Meter: 231
 
3,241 posts
Join Date:Joined: Oct 2006
Donate to Me
Quote:
Originally Posted by short/y

Was a CommMgrPro user for a long time on WM so I'm looking forward to how this turns out on Android, Daniel. Glad to see you're here!

For my part, I'd like to

1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)

Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.

ThanksĦ and happy to see you again
2nd August 2011, 09:08 PM   |  #4  
Rinoceros's Avatar
Senior Member
Thanks Meter: 73
 
169 posts
Join Date:Joined: Jul 2008
More
Thumbs up
Hi Daniel,

Great news that you are thinking of a port to Android. You will make me (and a lot of others as well) very happy with that. I am still using a bunch of programs to let at least do a part of what your program did for WinMo. After I finally ported my HTC HD2 permanently to Android (one of the things that was holding me, was the lack of your program for Android), but I am still missing CommMgrPro.

Quote:
Originally Posted by short/y

1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)

Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.

I do totally agree with this. Lets start with cell-tower switched on and off, of 3G, WiFi and GPS. One of the biggest problems with Android is the huge amount of battery drain. This will make a good start. I know, there are a lot of programs which does it in a simular way, but CommMgrPro has a lot more to offer, after some time. And Daniel, you have the proof and skills of a very good programmer

Thanks!
Last edited by Rinoceros; 2nd August 2011 at 09:10 PM. Reason: mistakes
26th October 2011, 11:36 AM   |  #5  
danielherrero's Avatar
OP Senior Member
Flag Madrid
Thanks Meter: 231
 
3,241 posts
Join Date:Joined: Oct 2006
Donate to Me
Hi.
Right now there is a fully working version. I am testing it myself and works very well. In a few days I will post it. Then I will fix bugs and will add more features. Basically:
1) More conditions to trigger a rule. Battery level, incomming call from XXX, incomming SMS, etc
2) More actions to be executed when a rule is matched: run or kill a process, etc
Thanks
The Following User Says Thank You to danielherrero For This Useful Post: [ View ]
9th November 2011, 10:31 PM   |  #6  
Crake's Avatar
Member
Flag Maia
Thanks Meter: 1
 
75 posts
Join Date:Joined: Sep 2007
Gigabyte Gsmart G1345
I will be locking forward to get this working on my device.
It is really needed.
I sincerely hope that it could work on my device with Android 2.3.4.
12th November 2011, 10:39 PM   |  #7  
Martinhdk's Avatar
Senior Member
Thanks Meter: 30
 
813 posts
Join Date:Joined: Mar 2007
God damn D man :) you finally turned to the dark side. Thought you had abandoned development. CMP was the only thing that kept me on WM until Jan this year. Have looked for CMP for android a couple of times but now you are ready. Cool man. I have started to use Tasker, and have some pretty crazy rules, but some things are not possible with Tasker, so I hope that you make it possible to integrate with Tasker as a plugin.

Anyway D. Its good CMP have not died.

One thing I miss. Being able to run my CMP as a service. Actually I believe tons of apps could save battery if they were better programmed and just called the part of the app that is needed. Maybe its nonsense, as I am not a dev, but I look forward to have you back on the train D.

---------- Post added at 11:39 PM ---------- Previous post was at 11:30 PM ----------

Just went to the CMP page. MAN, memories from good old wm days. I really spent many hours tweaking CMP. :)

I miss the possibility to see all cell towers in a time scheme, and then add them to different profiles..... Is that part coming?

By the way, what phonie are you having?
12th November 2011, 10:49 PM   |  #8  
danielherrero's Avatar
OP Senior Member
Flag Madrid
Thanks Meter: 231
 
3,241 posts
Join Date:Joined: Oct 2006
Donate to Me
HI answer in my next post (5 minutes)
The Following User Says Thank You to danielherrero For This Useful Post: [ View ]
12th November 2011, 11:02 PM   |  #9  
danielherrero's Avatar
OP Senior Member
Flag Madrid
Thanks Meter: 231
 
3,241 posts
Join Date:Joined: Oct 2006
Donate to Me
Hi Martin. Time passes hehehehehhe
Well, as I posted before I didn't want to waste your time with buggie releases.
Answering your question, positions are given by location + radius. But I will develop a simple way to provide cells. It is a old way but has a good advantage. It doesn't require internet connection. You teach CMP which cells are near your home so CMP doesn't need internet. Well, currently you define a point and a radius.
As you know CMP is a rule engine. The device gets thousand of events (battery levels, positions, week days, hardware status, calendar events) so you can create complex rules to launch actions (set hardware status, launch programs, kill processes and much more.

The program will be FREE and will probably contain ADDs. There will be a donate version (0.99$) to avoid ADDs to support me.
Don't forget Martin, post suggestion about conditions and actions. Rememeber, one rule = Condition 1 AND Condition 2 AND condition 3.......and if matched then execute Action1 and Action 2 and ACtion 3......
There are other rules programs, but this one will what we really need (from programmer to programmer)
andddd just sold my galaxy S2 to buy a galaxy note. I ve iPhone 4s to develop projects for old and busy customers (you know, MAC=MONEY)
Last edited by danielherrero; 12th November 2011 at 11:05 PM.
13th November 2011, 10:49 AM   |  #10  
Martinhdk's Avatar
Senior Member
Thanks Meter: 30
 
813 posts
Join Date:Joined: Mar 2007
Don't worry, I will come up with suggestions if something comes up. Like your way to always answer our good and sometimes stupid questions, but important to me is flexibility. I know there is is problem calling GPS functionality, but Secure Settings solved that by an external plugin that could be called from Tasker and others. So are you planning an SDK or similar to let CMP interact with other software? In my head CMP could be a standalone app, but also the app that could be used in bits or integrated with other software.

Have another...:)

One thing I miss on android is being able to copy screen press like calling an app and then copy the button interactions. I will send you thoughts on this in a pm later when more thinking have been done as it could be a standalone app you could develope later.... And perhaps make some earning on.

Note..I am thinking about buying it, so I look forward to hear your thoughts about it.... When do you get it?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software Development by ThreadRank