• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Tom N. · Nov 21, 2014 at 04:55 AM ·

Mobile APP Setup for UEM on Android?

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

 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Tom N. · Nov 25, 2014 at 01:44 AM

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. 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Tom N. · Nov 22, 2014 at 02:54 AM

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.

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Klaus E. ♦ · Nov 24, 2014 at 08:07 PM 0
Share

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

avatar image

Answer by Tom N. · Nov 21, 2014 at 05:53 AM

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.

 

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Klaus E. ♦ · Nov 21, 2014 at 06:12 PM 0
Share

Hi Tom,

You definitely do NOT have to decompile something to make our agent work. The next steps for you are:

  • check the app permissions and adjust them if necessary
  • Jump into the source code of your main activity and add there "CompuwareUEM.startup()"
    CompuwareUEM.startup(this, "MyServiceApp", "http://yourdomain.com/pathToMakeItThroughTheFirewallsAndToAnInstrumentedWebServer/", true, null);
  • Make a test Instrument using enterAction and leaveAction

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

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A