Skip to content

LoyolaChicagoCode/primenumbers-android-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Download

Background

The goal of this example is to demonstrate the tradeoffs found in the mobile + cloud architecture, where one has a choice between doing work locally (on the mobile device) versus remotely (in the cloud) with different performance considerations in each case.

This is a very rough initial attempt and still needs significant work.

Learning Objectives

  • Show how CPU-intensive computation can be off-loaded from a mobile app to the cloud, by comparison to a mobile device, an unlimited resource for computation and storage.
  • synchronous local foreground tasks in Android (running directly in an event listener)
  • asynchronous local background tasks in Android using AsyncTask
  • asynchronous access of remote resources (usually RESTful web services) in Android using AsyncHttpClient
  • remote logging to a cloud-based exception monitoring service

See also the corresponding web service

Building and Running

Please refer to these notes for details.

Sample prime numbers to try

  • 1013
  • 10007
  • 100003
  • 1000003
  • 10000169
  • 100000007

Sample non-prime numbers to try

  • 999989

References

TODO

  • improve UI
  • improve architecture
  • architectural diagram
  • testing
  • define task in a way that it can be decomposed! (e.g. each task to check divisibility within a specific range)
  • typed AsyncTask that hides the need to use AnyRef for input and progress values
  • make more functional

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published