A1: Java Function [
Return: installTime
Class Or Object:CONTEXT
Function: getPackageManager
{PackageManager}().getPackageInfo(net.dinglisch.android.taskerm,0).firstInstallTime
]
A2: Java Function [
Return: %installtime
Class Or Object: f
Function: getLong
{long} (Object)
Param: installTime
]
I expect a timestamp to be returned in %installtime. A2 fails with the following error:
12.41.33/Variables doreplresult: |%installtime| -> |%installtime|12.41.33/E Java Function: %installtime -> %installtime12.41.33/E Java Function use app context12.41.33/JU analyse: target: f expected: null12.41.33/JU target: analyse done: f: class: ??? obj: null partWithoutMods: null static: false const false casted: false12.41.33/JU analyse: returnval: long expected: null12.41.33/JU returnval: analyse done: long: class: long obj: null partWithoutMods: null static: true const false casted: false12.41.33/JU initClass: class: long obj: null partWithoutMods: long static: true const false casted: false12.41.33/JU initClass: retnovar: init with array handling -> long12.41.33/JU initClass: class: ??? obj: null partWithoutMods: f static: false const false casted: false12.41.33/JU initClass: target: null: class: ??? obj: null partWithoutMods: f static: false const false casted: false12.41.33/E Java Function: failed to init target class f12.41.33/E result: stop task (error)12.41.33/E Error: 112.41.33/MacroEdit action finished exeID 20 action no 1 code 664 status: Err next 1
I am trying to get the first installed date for a specified package using the code at:
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CADuUTArCmzewL3QkPJ0-CbTQKoWp%3Dn0PV5LN5xzMbX%3DUORF1tg%40mail.gmail.com.
A3: Java FunctionReturn: %install_timeClass Or Object: pac_info.firstInstallTimeFunction: assign{long} ()
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CADuUTArYHEOyYCyAX--uS1Q%2BCeroq7hCYSAabV5ad0snnHx74g%40mail.gmail.com.
Sure, see attached.
You can get this directly with the App Info action if you enable the Get All Details option :)
As always - great work João ..