Monday, July 6, 2015

Mix-Panel Integration in android .


Step 1 - Add Google Play Services to your project.
Google play services are required to build the Mixpanel lib.
Step 2 - Download the latest Mixpanel library release
To use the Mixpanel library inside of Eclipse, download the latest library source from Github and extract it. ( )
Step 3 - Import the Mixpanel library into your project's workspace:
Step 4 - Associate the library as a dependency of your project:
(Google play services && Mixpanel library ) Google play services are dependency to Mixpanel.
Step 6 - Add permissions to your AndroidManifest.xml:
<!--This permission is required to allow the application to send events and properties to Mixpanel.-->
  <uses-permission android:name="android.permission.INTERNET" />
<!--  This permission is optional but  recommended so we can be smart about when to send data. -->
<uses-permission  android:name="android.permission.ACCESS_NETWORK_STATE" />

<!--  This permission is optional but recommended so events will contain information about
 bluetooth state -->
<uses-permission  android:name="android.permission.BLUETOOTH" />

Error : That is Facing at time of integration ;
1. Problem   :  import; (unable to resolve package name.)
          Solution  :  find Library in android_sdk\extras\android\support\annotations

At this point, you're ready to use the Mixpanel library inside Eclipse!

Getting Your Token  :
Go to website :
Create Project:
inside your project : user Profile : get your token : "1ef7e30d2a58d27f4b90c42e31d6d7ad"

No comments:

Post a Comment