cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Need help for monitoring android app

ankit_kumar-sri
Newcomer

Hi All, I am trying to test Android app monitoring using Dynatrace. Apache web server is available which is instrumented with agent. I am working with auto-instrumentation.

Added DTXAgentStartupPath=http://localhost:90 where 90 is port of my webs server.


  1. Run instrument with apk and prop parameters:
    cd <appProjectDir>/app
    <MobileAgentUnzipDir>/Android/auto-instrumentor/instrument.<cmd_or_sh> apk=app-release.apk prop=app-release-APK-Instr.properties

As per above comment, I created a new APK and installed in mobile device and did few clicks on app but dont see any data in dynatrace.

Please suggest.

Thanks,

Ankit

8 REPLIES 8

Babar_Qayyum
DynaMight Leader
DynaMight Leader

Hello Ankit,

If you have an hybrid application, I would suggest you to follow the below step-by-step blog and you can also watch the video to not miss any configuration.

http://apmblog.dynatrace.com/2016/07/21/user-exper...

https://www.youtube.com/watch?v=uLIuPeFbXBA

Regards,

Babar

Hi Babar, Thanks for quick reply.

Yes I have gone through above links and trying same in my local. I am using native app.

I am also wondering, if this is because of trial version.

Thanks,

Ankit

Hello Ankit,

I am not aware about the limitations of trail version.

If you have a pure native app then I would suggest you to go with the manual method and then check the status.

I guess that the auto-instrumentation is for the hybrid applications only because recently I instrumented our two different hybrid applications through auto-instrumentation and those are working perfectly.

The below screenshot as an example.

By the was after instrumented which below package did you use:

  • Original
  • Final
  • Signed

Please see the below link.

https://community.dynatrace.com/community/display/...

Regards,

Babar

anders_lundin3
Inactive

Maybe I am missunderstanding here, but it you are sending the posts back to localhost so if you are really using a real mobile device then the agent can probably not send it back to "localhost" (at least that is not where an agent is listening for data).

Hello Anders,

Yes I will second you and I don't know why I overlooked the path http://localhost:90

Thank you for bringing in the notice.

Regards,

Babar

Thomas_Wirth1
Dynatrace Pro
Dynatrace Pro

For the DTXAgentStartupPath property you must use a (public) url, that is reachable from your device. Therefore "http://localhost:90" will not work. If you test your app in an internal network, you can use the ip address from your Apache web server.

ankit_kumar-sri
Newcomer

Will it not work, even with Android emulator in same machine? Anyway I will try to provide a public URL and then test it.

Thanks,

Ankit

ankit_kumar-sri
Newcomer

One query I have related to Dynatrace hosting. I can see monitor Mobile application in SaaS model but when I install Dynatrace server locally, I dont see such options there. Only place I can see through Dyntrace client.