Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

2. Manual Integration

prabhjot-singh edited this page Nov 7, 2015 · 28 revisions

The Android SDK can be integrated in minutes to enable reporting of key application metrics. Setup

##Manual Integration

NOTE: Please include Android v4 Support Library (revision 19.1.0) or greater in your application project. Click here for more information on support libraries.

  1. Obtain a Pyze App Key for your Application
  2. Download the latest version of the Android SDK
  3. Drop the jar file into your app project's lib directory
  4. Add the jar file to the project’s build path
  5. In your application’s AndroidManifest.xml, add the Pyze App key as Meta Data
  • Via Android Studio:

  • Via Eclipse: Select AndroidManifest.xml from the Package Explorer. Select the Applications tab. Under Application Nodes, click Add. Select ‘Meta Data’ and press ‘OK’. Select the new ‘Meta Data’ item from the list and change its name to ‘pyzeAppKey’ and set is value to the key you obtained in step 1.

  • Manually: In AndroidManifest.xml, add the following inside the application tag:

<meta-data android:name="pyzeAppKey " android:value=" Key Obtained in STEP 1"/>

  1. In your application’s AndroidManifest.xml, ensure that Internet permissions are enabled for the application. (If your app already supports internet access, this permission should already be listed). Via Eclipse: Select AndroidManifest.xml from the Package Explorer. Select the Permissions tab, Click Add. Select Uses Permission and hit OK. Under Name, enter android.permission.INTERNET. Manually: In AndroidManifest.xml, add the following after the other uses tags:

<uses-permission android:name="android.permission.INTERNET" />  

Enablement

  1. In your app project’s Main Activity, make the following additions.

a. Add the following import statement

import com.pyze.android.library.*;

b. Add the following initialize statement in the onCreate method

`public void onCreate(Bundle savedInstanceState) {

Pyze.initialize(getApplication());

}`

#Troubleshooting

If after following the above steps, you are unable to view application data in the Pyze Intelligence Platform, we suggest enabling debug Logs to determine the cause for non-reporting of data. Debug Logging can be enabled by calling “Pyze.enableLogs(true);” prior to initializing Pyze.

`public void onCreate(Bundle savedInstanceState) {

   //Enable Logs for troubleshooting 
    Pyze.enableLogs(true);   
Pyze.initialize(getApplication());

}`

Clone this wiki locally