Skip to content

UrQA/UrQA-Client-Android-Gradle

Repository files navigation

UrQA-Client-Android history

  • UrQA android client sdk which is changed project for Eclipse into Android Studio
  • SDK only checks the READ_LOGS permission to capture the log only below jellybean version

Android Client SDK

This is the client sdk for android application to report the crash to the UrQA server when the runtime exceptions or errors are occurred

To build & release the android client sdk for java

  1. set the library version inside the below files
  • update the variable of "SDKVersion" in "UrQA-Client-Android/app/src/main/java/com/urqa/common/StateData.java"

SDK Version

- update the jar library name at the task "exportJar" in the "UrQA-Client-Android/app/build.gradle"

SDK name

2. click Gradle on the right side of the IDE window, then The Gradle tasks panel appears

SDK name

3. double-click the "UrQA-Profile-Client-Android/app/Tasks/other/exportJar" task

SDK name

4. the build generates an jar library file named "file name.jar" in the "UrQA-Profiler-Client-Android/app/release” directory

SDK name

5. release the jar file

To build & release the android client sdk for ndk

  1. define the APP_STL as "gnustl_static" in the "UrQA-Profiler-Client-Android/app/src/main/jni/Application.mk"
  2. click Gradle on the right side of the IDE window, then The Gradle tasks panel appears
  3. double-click the "UrQA-Client-Android/app/Tasks/other/ndkBuild" task
  4. the build generates two static library files below in the directory of "UrQA-Client-Android/app/src/main/obj/local"
  • armeabi/liburqanative.a
  • armeabi-v7a/liburqanative.a
  1. rename two static library files as below
  • armeabi/liburqanative_gnustl.a
  • armeabi-v7a/liburqanative_gnustl.a
  1. define the APP_STL as "stlport_static" in the "UrQA-Client-Android/app/src/main/jni/Application.mk"

SDK name

7. click Gradle on the right side of the IDE window, then The Gradle tasks panel appears 8. double-click the "UrQA-Client-Android/app/Tasks/other/ndkBuild" task 9. the build generates two static library files below in the directory of "UrQA-Client-Android/app/src/main/obj/local” - armeabi/liburqanative.a - armeabi-v7a/liburqanative.a

SDK name

10. copy the directory of “UrQA-Client-Android/app/src/main/jni/header” 11. delete *.cc files in the directory and and all levels of subdirectories 12. create a zip archive of the below directory - armeabi - armeabi-v7a - header

SDK name

  

SDK name

  

SDK name

  

SDK name

  

SDK name

   13. release the zip file

How to use the function

  1. join the site of 'http://ur-qa.com/urqa'

  2. create a project by clicking the '+' button on the right side

  3. download the lastest version of the UrQA client library

  1. import the UrQA client library

    1. copy the library file in the libs folder. Make sure you are in the Project view mode (Top left corver of the Project window)
    2. Right click on the UrQA client library file and select the last option "Add as library" on the pop up window
  2. Add the “Internet” and "READ_LOGS" permission to your manifest file to capture and upload the crash log data file to the server

  3. write the code

    1. import com.urqa.clientinterface.URQAController
    2. initialize the function
      URQAController.InitializeAndStartSession(getApplicationContext(),/* APIKey */); you can get the "APIKey" when you create a project at the step 2

About

UrQA android client sdk which is changed project for Eclipse into Android Studio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published