I am trying to setup Dynatrace UEM on my company Android Mobile App. I have followed the Dynatrace 6.0 implementation instructions. Adding the CompuwareUEm.jar file to the project libs folder using the Eclipse plugin. I see notes on configuring the connection to the dynatrace server referencing values set in the CompuwareUEM.class file.
Does this mean I need to expand the jar to get to the class files and then get a decompiler to decompile the CompuwareUEM.class file to set parameters then recompile and rebuild the jar?
I have not been able to find the CompuwareUEM.java file. I am reluctant to use a decompiler. The decompilers I have tried do not always decompiles the code as it was originally written. Any decompiler recommendations would be appreciated or alternative methods for integrating Dynatrace UEM into my Android APP.
Please share how you have done this in your Android applications.
Thanks
Tom Newsom
Answer by Tom N. ·
Thanks for all your help. It is working now.
My next steps are to figure out how to specify the Domain for the mobile app so I can sort User Action PurePaths by Domain. Currently Domain is -. And to setup a global capture for actions so I don't need to edit every function call in the app to capture user actions.
Answer by Tom N. ·
I have added the startup and this part looks to be working.
I added this to my onCreate()
CompuwareUEM.startup(this, "AndroidApp4", "https://mydomain.com/dynaTraceMonitor", true, null);
This is from my emulator logcat output
11-21 10:38:32.370: D/uemCpwrUEM(802): CompuwareUEM startup parameter: sApplId=AndroidApp4, agentPath=https://mydomain.com/dynaTraceMonitor, useAnyCert=true, keyStore=null
11-21 10:38:32.370: D/uemCore(802): CompuwareUEM version 5.6.0.5713
I have added the following to my app call - but do not see any results from the call.
UemAction a = CompuwareUEM.enterAction("search");
a.reportEvent("searchStart");
a.reportEvent("searchEnd");
a.leaveAction();
CompuwareUEM.flushEvents();
CompuwareUEM.shutdown();
I was hoping for something simple like I added to our mobile web app. Where the dtagent call captures everything and sends the UEM details to our dt server.
Hi Tom,
For the startup call parameter agentPath you do not have to put dynaTraceMonitor at the end. This is done by the agent automatically. Was there more output than the 2 lines? Have you turned on logging? If not please turn it on and set it to all.
The example you try to run - can you remove the shutdown? It shuts down the agent. Flush should not be needed either since putting the app into the background or closing the app flushes the collected data anyway.
Cheers Klaus
Answer by Tom N. ·
I found examples of adding calls to the CompuwareUEM class in the Dynatrace 6.0 documentation. I will post my own examples here once I have it working.
Hi Tom,
You definitely do NOT have to decompile something to make our agent work. The next steps for you are:
CompuwareUEM.startup(
this
,
"MyServiceApp"
, "http://yourdomain.com/pathToMakeItThroughTheFirewallsAndToAnInstrumentedWebServer/",
true
,
null
);
At the end of this documentation page there are some example if you miss one let me know so that we can add it.
Cheers Klaus
JANUARY 15, 3:00 PM GMT / 10:00 AM ET