1 / 55

Mobile Applications at NOCCCD

Mobile Applications at NOCCCD. Brad Rippe NOCCCD. Goal. Provide insight into developing and deploying mobile applications with Sungard’s Mobile Connection. Brad Rippe IT Project Leader North Orange County Community College District brippe@nocccd.edu. Smartphone Statistics.

kolton
Download Presentation

Mobile Applications at NOCCCD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mobile Applications at NOCCCD Brad RippeNOCCCD

  2. Goal Provide insight into developing and deploying mobile applications with Sungard’s Mobile Connection.

  3. Brad Rippe IT Project LeaderNorth Orange County Community College Districtbrippe@nocccd.edu

  4. Smartphone Statistics Source: Google Analytics Source: University Colorado Boulder

  5. Mobile Connection 1.0 1.0 Release Support multiple mobile platforms Built on Open Source Software Integrates with LDAP and Banner Data Quick Start m-Apps (Feeds, Grades, Schedule, Restaurant)

  6. What features? 22 College/University iPhone apps News - 21 Directory - 18 Maps - 18 Events - 13 Videos - 9 Courses - 6 Sports - 6 Photos - 5 Library - 5 Twitter - 4 8 vendor solutions University Texas at Austin; Stanford; Harvard; Boston College; Saddleback; Irvine Valley College; Mt. Hood College; Rice University; more

  7. 1.0 Planned Features m-Apps Student’s Daily Schedule Grades Restaurants News Feed Staff Directory Class Schedule Campus Map

  8. Mobile Connection 1.0.1 Java Development Kit (JDK) 1.6.21+ Grails 1.3.6 - http://www.grails.org Spring Hibernate Groovy Rhodes Framework 2.2.5- http://rhomobile.com/projects/rhodes Ruby/Rails Android SDK and NDK Blackberry JDE iOS SDK/Xcode

  9. Android Requirements Android SDK Android 2.2, API 8http://developer.android.com/sdk/index.html Android NDK r4bWindows -http://dl.google.com/android/ndk/android-ndk-r4b-windows.zipMac - http://dl.google.com/android/ndk/android-ndk-r4b-darwin-x86.zipLinux - http://dl.google.com/android/ndk/android-ndk-r4b-linux-x86.zip

  10. MC Architecture Mobile Server request API response Banner Luminis IV LDAP NOCCCD Basic Configuration

  11. “The Plan” 3 institutions 3 platforms ~ 4 months

  12. Setting up the “Team” TEST Cypress District/SCE Fullerton

  13. Collaborating

  14. Collaborating

  15. Repository Structure

  16. MC Directory Structure

  17. Android Emulator # Android config - android doesn't respond to localhost security_service_url= 'http://10.0.2.2:8001/mobileserver/rest/security' grade_service_url= 'http://10.0.2.2:8001/mobileserver/rest/grade' schedule_service_url= 'http://10.0.2.2:8001/mobileserver/rest/schedule' feed_service_url= 'http://10.0.2.2:8001/mobileserver/rest/feed/' http://bit.ly/psZ8G7

  18. News Feeds

  19. Updated Feed

  20. Feed Client 2.

  21. Feed – show.erb <form action="<%= url_for :action => :index %>"> <select name="id" onchange="submit()"> <% if ::Rho.get_app.feedId&& ::Rho.get_app.feedId== 'cypress'%> <option selected value="cypress">Cypress College News</option> <% else %> <option value="cypress">Cypress College News</option> <%end%> <% if ::Rho.get_app.feedId && ::Rho.get_app.feedId == 'fullerton'%> <option selected value="fullerton">Fullerton College News</option> <% else %> <option value="fullerton">Fullerton College News</option> <%end%></select></form><hr/> … More …

  22. Feed – application.rb require 'rho/rhoapplication' class AppApplication < Rho::RhoApplication attr_accessor:feedId # more code in here def initialize super end end

  23. Feed – feed_controller.rb def index ::Rho.get_app.feedId = @params['id'] url= "#{@serviceUrl}" url << "/#{::Rho.get_app.feedId}.json" #More code result = Rho::AsyncHttp.get( :url => url, :callback => (url_for: action => :feed_callback)) redirect :action => :wait end

  24. Feed – Config.groovy feed.location = [ cypress:"http://cypresscollege.edu/rss.xml", fullerton:"http://www.fullcoll.edu/rss.xml", sce:"http://sce.edu/rss.xml ] sghe{ plugins { banner { jdbc{ … } } } }

  25. Back Issue

  26. Back Issue – feed_controller.rb def index ::Rho.get_app.feedId = @params['id'] url= "#{@serviceUrl}" url << "/#{::Rho.get_app.feedId}.json" #More code result = Rho::AsyncHttp.get(:url => url, :callback => (url_for: action => :feed_callback)) redirect :action => :wait end

  27. Back Issue – feed_controller.rb # Original Method deffeed_callback app_info "feed_callback: #{@params}“ # log feedId # parse json response # send browser to show view but still have wait in history?? WebView.navigate(url_for :action => :show) end

  28. Fix Back Issue deffeed_callback app_info "feed_callback: #{@params}“ # parse json response # send browser to show_feed method WebView.navigate(url_for :action => :show_feed) end defshow_feed render :action => :show, :back => '/app/Mshell' end http://bit.ly/p44ghq

  29. MC 1.1.1 – Back Issue def index feedId= @params['id‘] Rho::AsyncHttp.get( :url => url, :callback => (url_for :action => :feed_callback)) @response["headers"]["Wait-Page"] = "true" redirect :action => :wait end

  30. app_info or app_error Android rake emulator:android:getlog BlackBerry C:\Users\<username>\net\rim\fledge-2\3.0.0.118\sdcard\Rho\<application_name>\RhoLog.txt iPhone /Users/<username>/Library/Application Support/iPhone Simulator/4.3/Applications/<GUID>/Documents/RhoLog.txt

  31. Server Side Of Things

  32. Class Schedule Plugin

  33. ClassScheduleUrlMappings class ClassScheduleUrlMappings { static mappings = { "/rest/getCampuses"(controller:"search", action:"getCampuses") "/rest/getAllTerms"(controller:"search", action:"getAllTerms") // continued… } }

  34. SearchController class SearchController { defclassScheduleService defgetCampuses= { if ( classScheduleService == null ) { // code here, handle null classScheduleService } else {defcamps = classScheduleService.getCampuses() if (camps != null && camps.size() > 0) { response.setContentType("text/json") render camps as JSON } else { // send no information 404 error } } } …

  35. ClassScheduleService class ClassScheduleService { defdataSourceBanner//defined in the server’s Config.groovy file defgetCampuses() { defsql = Sql.newInstance (dataSourceBanner) defquery = " " "select stvcamp_code, stvcamp_desc from stvcampwhere stvcamp_codein ('1', '2', '3') order by stvcamp_desc"" " defcampuses = [] // list of Campus objects try { sql.eachRow(query) { defcampus = new Campus() campus.campusCode= it.stvcamp_code campus.campusDesc= it.stvcamp_desc campuses.add(campus) } } catch(Exception e) { log.error"Exception ${query} - ${e}“ } return campuses } // end getCampuses

  36. ClassSchedule Request /service/rest/getCampuses GrailsDispatcherServlet request ClassScheduleService response SearchController Campus

  37. Automatic Marshalling 1 import grails.converters.* class SearchController{ defgetCampuses = { if ( classScheduleService == null ) { // code here, handle null classScheduleService } else {def camps = classScheduleService.getCampuses() if (camps != null && camps.size() > 0) { response.setContentType("text/json") render camps as JSON } else { // send no information 404 error } } } … 2

  38. JSON output? [ {"class":"edu.nocccd.Campus","id":null,"campusCode":"1","campusDesc":"Cypress College"}, {"class":"edu.nocccd.Campus","id":null,"campusCode":"2","campusDesc":"Fullerton College"}, {"class":"edu.nocccd.Campus","id":null,"campusCode":"3","campusDesc":"School of Continuing Education"} ]

  39. Server BootStrap.groovy import grails.converters.JSON import org.codehaus.groovy.grails.plugins.GrailsPluginUtils import edu.nocccd.Campus class BootStrap { definit= { } def destroy = { } }

  40. Init – Override Converters class BootStrap { definit= { servletContext -> JSON.registerObjectMarshaller(Campus) { defreturnArray = [:] returnArray['campusCode'] = it.campusCode returnArray['campusDesc'] = it.campusDesc return returnArray } // continued for each domain object } … }

  41. Result JSON [ {"campusCode":"1","campusDesc":"Cypress College"}, {"campusCode":"2","campusDesc":"Fullerton College"}, {"campusCode":"3","campusDesc":"School of Continuing Education"} ]

  42. Objects with in Objects Sections Multiple buildings Multiple meeting times Default converters Skip internal data render sections as JSON Bldg 1 MATH 030 F Bldg2 Meet 1 Meet 2 MATH 100 F

  43. SearchController def sections = classScheduleService.getSections(cCode, tCode, subCode, courNum) if (sections != null && sections.size() > 0) { defsectionList = new ArrayList() sections.each{ section -> defsectionMap = new HashMap() sectionMap.put "crn", section.crn def bldgs = new ArrayList() // Done for meetings too! section.buildings.each{ bldg-> defbldgMap = new HashMap() bldgMap.put"bldgCode", bldg.bldgCode bldgMap.put"bldgDesc", bldg.bldgDesc bldgMap.put"roomCode", bldg.roomCode bldgs.addbldgMap } sectionMap.put"bldgs", bldgs } sectionList.addsectionMap

  44. JSON Response [{"instructor":"Danufsky, Joshua","wDropDate":"11/20/2011","waitAvailable":10,"bldgs":[{"roomCode":"624","bldgDesc":"Math/Comp Science - FC","bldgCode":"600"}] ,"meetings":[{"startDate":"08/15/2011","wednesday":null,"thursday":null,"monday":null,"sunday":null,"beginTime":null,"saturday":null,"endDate":"12/16/2011","friday":null,"tuesday":null,"endTime":null,"arrangedHrs":"Plus arranged hours"},{"startDate":"08/15/2011","wednesday":" Wed ","thursday":null,"monday":" Mon ","sunday":null,"beginTime":"1:00","saturday":null,"endDate":"12/16/2011","friday":null,"tuesday":null,"endTime":"2:50 PM","arrangedHrs":null}]]

  45. Render Results

  46. Mobile Server Apache Tomcat 6.0.32 Run Non-Root User Apache JMeter JVM Options VisualVMhttp://visualvm.java.net/

  47. PSI-Probe http://code.google.com/p/psi-probe/

  48. Tips - Build for Devices Rhoconfig.txt MaxLogFileSize=0 to 50 MinSeverity=1 to 3 local_server_port=8080 build.yml version: 1.0 to 1.0.0 rake device:android:production

  49. version: 1.0 AndroidManifest.xml <manifest xmlns:android='http://schemas.android.com/apk/res/android' package='com.north_orange_county_community_college_district.cypresscollege' android:installLocation='auto' android:versionCode='26' android:versionName='2.2.5'> … </manifest>

  50. version: 1.0.0 AndroidManifest.xml <manifest xmlns:android='http://schemas.android.com/apk/res/android' package='com.north_orange_county_community_college_district.cypresscollege' android:installLocation='auto' android:versionCode='10000' android:versionName='1.0.0'> … </manifest>

More Related