Meeting Feedback uses the Office 365 endpoints in the Microsoft Graph to retrieve calendar events and send email's in behalf of the signed in user.
To run the sample, your device needs to meet the following requirements:
- Android API level 15 or later.
The sample includes an Android client and a Ruby on Rails server-side component. You also must setup an alias from where your users can get email notifications.
- Android Studio version 1.0 or later.
- An Office 365 account. You can sign up for an Office 365 Developer subscription that includes the resources that you need to start building Office 365 apps. If you get a developer subscription you also get an Office 365 account.
- A client id and redirect uri values of an application registered in Azure. The application must run the Send mail as a user and Read user calendars permissions. You can also add a native client application in Azure and grant proper permissions to it.
- Ruby 2.0.0
- Ruby Development Kit (for Windows installations only)
-
Go to the webservice folder in the O365-Android_MeetingFeedback repository.
-
Run the following commands to perform the following tasks:
- Install the builder gem
- Install the Meeting Feedback Ruby on Rails application
- Create the Meeting Feedback database
- Start the Meeting Feedback service on port 5000
gem install builder
bundle install
rake db:create && rake db:migrate && bundle exec foreman start -p 5000
The app sends an email notification to the meeting organizer when one of the meetings that he hosts gets reviewed. The email comes from a designated email address to keep the feedback anonymous. You must setup an Exchange group on Office 365 for this to work. To setup an Exchange group, follow these steps.
- Go to http://office.com and sign in with a tenant administrator.
- Click on the Admin tile.
- On the navigation bar, click Admin -> Exchange.
- Click groups in the recipients section.
- Click the plus sign to add a new security group.
- Add a display name, alias, and email address and save the group.
- Select the group and click the pencil icon to edit.
- Go to group delegation and give the users of the app the Send As permission as shown in the following picture.
- Update the value of the REVIEW_SENDER_ADDRESS value in the Constants.java file to match the email address of your group.
-
Install Android Studio and add the Android SDK packages according to the instructions on developer.android.com.
-
Download or clone this sample.
-
Start Android Studio.
- Select Open an existing Android Studio project.
- Browse to your local repository and select the O365-Android-MeetingFeedback project. Click OK.
-
Open the Constants.java file.
- Find the SERVICE_ENDPOINT constant and set the value to the machine IP address and port where you're running the Ruby on Rails service.
- Find the CLIENT_ID constant and set its String value equal to the client id you registered in Azure Active Directory.
- Find the REDIRECT_URI constant and set its String value equal to the redirect URI you registered in Azure Active Directory.
Note: If you have don't have CLIENT_ID and REDIRECT_URI values, add a native client application in Azure and take note of the CLIENT_ID and REDIRECT_URI.
Once you've built the sample, you can run it on an emulator or device.
If you'd like to contribute to this sample, see CONTRIBUTING.MD.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
We'd love to get your comments about the Office 365 Meeting Feedback sample. You can send your questions and suggestions to us in the Issues section of this repository.
Questions about Office 365 development in general should be posted to Stack Overflow. Make sure that your questions or comments are tagged with [Office365] and [API].
Do you want to read about our developer journey building this sample? Read our Medium article.
- Office 365 APIs platform overview
- Office 365 SDK for Android
- Get started with Office 365 APIs in apps
- Office 365 APIs starter projects and code samples
- Office 365 Connect sample for Android
- Office 365 Code Snippets for Android
- Office 365 APIs Starter Project for Android
- Office 365 Profile sample for Android
Copyright (c) 2015 Microsoft. All rights reserved.