05-30 08:21:11.988 30828 30963 D Retrofit: Content-Type: application/x-www-form-urlencoded; charset=UTF-8
05-30 08:21:11.988 30828 30963 D Retrofit: Content-Length: 509
05-30 08:21:11.988 30828 30963 D Retrofit: cmd=app.log&User-Agent=Android-Ivory&idu=IDOWNER&idp=PWDOWNER&and_pn_reg=APA91bE8Hq0x3X7HlKO2vOIw_2qMiJV_-VfnMUv4IYeGhaklAWOTtHWDpsxWIawQnWuBNOA5ggUOFmiw8-7ZYWCBvvJgUGTi-5zV1JZLutrCgz44bAonU1M37WXpVOzVfsY14dPmbfui&idi=02%3A00%3A00%3A00%3A00%3A00&log_0=%7B%22mac%22%3A%22D4%3AB3%3A9A%3A98%3A5E%3A71%22%2C%22eventid%22%3A1%2C%22phonetime%22%3A1496125271%2C%22tsmb%22%3A0%2C%22batterylevel%22%3A100%2C%22errorcount%22%3A2%2C%22latchcount%22%3A107%2C%22unlatchcount%22%3A100%2C%22locktime%22%3A1496125328%7D
05-30 08:21:11.988 30828 30963 D Retrofit: ---> END HTTP (509-byte body)
Figuring out how to set the properties
If you can't find documentation for the activities you want to start, one way to figure out how to set the properties is to start up the activity manually and look at what appears in the Android System Log. For example, if you use YouTube to play a video, you'll see in the log:
I/ActivityManager( 86): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.youtube.com/watch?v=8ADwPLSFeY8 flg=0x3800000 cmp=com.google.android.youtube/.PlayerActivity }If you can find the "cmp=" string, then the ActivityPackage is the part before the slash, and the ActivityClass is is the entire "cmp=" part, without the slash character. As in the YouTube example, there may also be "dat=" information that can specify with the DataUri property.
Starting arbitrary apps
You can use the Activity Starter to start any activity at all if you know the package name and class name, or the appropriate intent. Some developers document these intents for the benefit of other Android developers. For hints on starting other apps using intents, see the Android API documentation or search the Android developer forums.
If you have an app on your phone and you don't have the source code, you might still be able figure out the package name and class name (and sometimes the intent) by launching the app and inspecting the Android system log, as indicated above.
I observed the logcat of the APP1 application and I found the Application Packeage and Class so that using the Activity Starter tool I was able to start the activity and to open the target app (APP1) and to reach the screen with the button commanding the opening/closing of the door. I wasn't able though to activate the command. I guess that this is a matter of giving the proper Parameters, intent action etc. to the Activity starter tool in order to accomplish this additional step. To this regard, by looking at the logcat I detected a string (the one enclosed in my previous message, in which was visible a HTTP POST which reminds me a command that should activate the lock). I thought it could have been input as a Datauri parameter and I tried to start the activity with it, but it was unsuccesful.
I would therefore be grateful to anybody can give me some advice on 1) if I am on the right path, 2) what can be the right syntax or way to input the Datauri command 3) if there are other elements that I should input in the Activty Starter to reach the goal.
Thanks to you Antonio and to anybody else that will help me
Luigi