Giter Site home page Giter Site logo

dynamicscrm / android-activity-tracker-for-dynamics-crm Goto Github PK

View Code? Open in Web Editor NEW
19.0 11.0 10.0 601 KB

An app for accessing contacts in Dynamics CRM and managing contact activities. This sample app demonstrates how to access the CRM web services from an Android app.

License: Other

Java 100.00%
microsoft-dynamics-crm android android-activity-tracker java dynamics-crm

android-activity-tracker-for-dynamics-crm's Introduction

Android Activity Tracker Sample App for Microsoft Dynamics CRM

These instructions describe how to build and run the sample Android Activity Tracker application.

Register the application

Applications that access CRM business data, using the OAuth identity provider of the organization web service, must be registered in Active Directory. For an on-premises/IFD CRM deployment, AD FS 3.0 (or later) is used to register the app. With CRM Online, Microsoft Azure Active Directory is used for app registration. The result of application registration is a client ID value and a redirect URI that must be placed into the sample application's code where indicated in the next section. These values are used in the authentication process to determine whether the app has permission to access the organization's data.

For information on how to register an application, see Walkthrough: Register a CRM app with Active Directory.

For internal app testing, you can share a single app registration across multiple apps. An app registration contains a single client ID, but can include multiple redirect URI's. For testing, you can add a redirect URI for each app you are developing. Once you are ready to publish an app to the Apple Store, the app need's its own registration.

Build the application

If you will be running the app in the Intel HAXM emulator, you will need to set the memory limit the emulator uses to 2048 MB. This is accomplished by installing the emulator with the -m 2048 command parameter.

To build the sample app, follow these steps. You will need to download (git clone) the Mobile SDK library, which is a dependency for this application.

  1. Load the app's project, located in the ActivityTracker folder under the project’s root folder, into Android Studio.
  2. Include the Mobile SDK library as a new module by going to File > Import Module… and selecting the path to your local crm-mobilesdk-library-for-android/CRMMobileSDK folder. If Import Module… is not in the File menu, you can locate that action by choosing Help > Find Actions and entering “Import Module…” as the action to find.
  3. In the project view, expand app > java > com.microsoft.activitytracker > Classes.
  4. Edit the Constants.java file.
  5. On line 7 in the code file, change the provided value of CLIENT_ID to the client ID value from your app registration.
  6. On line 8 in the code file, change the provided value of REDIRECT_URI to the redirect URI value from your app registration.
  7. Build the application.

Run the application

On the mobile device where you deployed the app, choose the Activity Tracker app to start it. The following screens show how to access the features of the app.

Page Visual Navigation Description
Server and account ![Server URL and username](./_images/1A - Server URL.png) Enter the https:// root address of your CRM server, including the name of your domain, and the username of the logon system user account. If you do not know the URL, you can find it in the CRM web application by navigating to Settings > Customization > Developer Resources. An example URL would be: https://mydomain.crm.dynamics.com. Choose Start Login to continue.
Logon credentials ![Logon credentials](./_images/2A - Logon.png) Enter your the system user account password, for the organization that you specified on the previous page, and choose Sign in.
Search ![Search results](./_images/4A - Contact list.png) The main page is initially blank with no contacts showing. Choose the search icon and enter one or more letters to find all contacts whose full name contain those letters.
Contact details ![Contact record](./_images/5A - Contact record with activity.png) From the search results, choose a contact to display the details for that contact. On the details page, you can choose the street address to see that location on a map, the phone number to call the contact, or the email icon to send an email. All activities for that contact are shown below the command bar. Note that only the check mark command is enabled. The other commands are just place holders.
New activity ![New activity](./_images/6A - Adding an activity.png) Choose the check mark icon on the details page to create a new activity for the contact. Enter the requested information. Choose the check mark again to save the activity record and return to the details page.

android-activity-tracker-for-dynamics-crm's People

Contributors

jimdaly avatar w9jds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-activity-tracker-for-dynamics-crm's Issues

Provided dependencies can only be jars

i have imported the ActivityTracker app for android in my studio and import the crmsdk2015 in it.
now when i try to build ActivityTracker its showing following error

Error:Project crmsdk2015: provided dependencies can only be jars. com.android.support:appcompat-v7:aar:24.0.0 is an Android Library.

please see the attachment
07-10-2016 5-31-06 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.