Differences between revisions 9 and 11 (spanning 2 versions)
Revision 9 as of 2016-02-01 10:06:57
Size: 7049
Editor: PeterPeters
Comment:
Revision 11 as of 2016-02-01 10:18:13
Size: 3832
Editor: PeterPeters
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:

---- /!\ '''Edit conflict - other version:''' ----
Line 27: Line 25:

---- /!\ '''Edit conflict - your version:''' ----
  * If you have no experience with Processing, you are advised to follow [[attachment:GetStartedWithProcessing.pdf]] to learn the basics (password protected PDF. if you need the password, send p.j.f.peters(at)tue.nl an email);

---- /!\ '''End of edit conflict''' ----
Line 54: Line 47:
Line 56: Line 48:
  * HTML5 Basics: [[attachment:DG241-HTML5Basics.pdf]]
 * Code: https://github.com/iddi/creativeapps
  * [[attachment:DG241-Processing-part3.pdf]]
 * Code
  * [[attachment:week3.zip]]
Line 60: Line 52:
  * Try out some HTML5 examples on the emulator or on your Android phone.
  * Create an interactive app using one (or more) sensors.
  * Create an interactive app with GUI and database/network access.
Line 69: Line 60:
  * User Interfaces for HTML5 apps: [[attachment:DG241-UI4HTML5.pdf]]   * The Intel XDK environment: [[attachment:XDK-part-1.pdf]]
Line 71: Line 62:
 * Homework:
  * TBD
  * What to be delivered (as one single ZIP file)
   * source code
   * screen copy of the output
Line 73: Line 69:
 * Presentation: [[attachment:DG241-AndroidNativeApps.pdf]]  * Presentations
  * ??
: [[attachment:XDK-part-2.pdf]
Line 75: Line 72:
  * Follow the tutorial and try out the examples at: http://www.vogella.com/tutorials/Android/article.html
  * Try to create a Currency Converter (USDEUR)
   * Hint: learn from “Temperature Converter” from the tutorial.
  * If the Currency is too easy for you: (not required)
   *Create a simple calculator.
  * TBD
  * What to be delivered (as one single ZIP file)
   * source code
   * screen copy of the output
Line 82: Line 78:
 * Tutorial: Accelerometer. see http://www.vogella.com/tutorials/AndroidSensor/article.html
  * Source code: [[attachment:SensorAcc.zip]]
 * Tutorial: Socket connections
  * Andorid code: [[attachment:SocketClient.zip]]
  * Processing code: [[attachment:server.zip]]
 * Presentations
  * ??: [[attachment:XDK-part-3.pdf]
Line 88: Line 81:
  * Improve the SocketClient example, by implementing a GUI for configuring the server ip and port.
    {{attachment:SocketClient.jpg}}
  * Combining SensorAcc and SocketClient, to shuffle the background of the Processing stage by shaking the mobile phone.
   * You might want to Google for "java socket printwriter" for sending a line of text, and check out how to readString and readStringUntil in Processing (https://processing.org/reference/libraries/net/Client.html).
  * TBD
  * What to be delivered (as one single ZIP file)
   * source code
   * screen copy of the output
Line 95: Line 88:
 * Every week you will get homework and you are supposed to compete the work before the next lecture.
 * Deliver your work to creativeapps.submission@gmail.com, with your full name in the subject (so that we can find all your work later easily).
 * Deliver your work always in one ZIP file attached to your email.
 * You don't have to deliver every week. It can be delayed, until one week after the last lecture.
 * Every week you will get homework and you are supposed to complete the work before the next lecture.
 * Deliver your work to creativeapps.submission@gmail.com, '''with your full name in the subject''' (so that we can find all your work later easily).
 * Deliver your work always in '''one''' ZIP file attached to your email.
Line 102: Line 94:


---- /!\ '''Edit conflict - other version:''' ----
Line 109: Line 98:
 * TBD

---- /!\ '''Edit conflict - your version:''' ----
=== Processing installation ===
 * Download and unpack processing from https://processing.org/download/

=== Intel XDK Installation ===
 * TBD

---- /!\ '''End of edit conflict''' ----


---- /!\ '''Edit conflict - other version:''' ----
=== An alternative emulator ===
 * If you are fed up by the slow emulator, you may want to try this one:

---- /!\ '''Edit conflict - other version:''' ----
  * https://www.genymotion.com

  

---- /!\ '''Edit conflict - your version:''' ----
  * http://www.softpedia.com/get/Mobile-Phone-Tools/Others/Genymotion.shtml

  

---- /!\ '''End of edit conflict''' ----

---- /!\ '''Edit conflict - your version:''' ----
=== ANDROID_AVD_HOME ===
 * When starting the android emulator, if it complaints that it can not find the <name of the AVD>.ini in "ANDROID_AVD_HOME" or "HOME" locations:
  1. find out where your ANDROID_AVD_HOME actually is. In AVD manager, select the AVD, then press the button "Details". In the picture below, the path in the red ellipse is actually where ANDROID_AVD_HOME should be.
   * {{attachment:avddetails.jpg}}
  1. Go to Control Panel\System and Security\System, then Advanced system settings, Advanced, Environment Variables, in the lower part of the dialog box about "System variables", press "New..." or if the ANDROID_AVD_HOME exists, press "Edit", make sure it looks like the following. Note: you have to fill out what is actually your ANDROID_AVD_HOME from Step 1.
   * {{attachment:avdhome.jpg}}
 * Download the Intel XDK from https://software.intel.com/en-us/intel-xdk and install.
Line 147: Line 102:
  * https://www.genymotion.com

=== How to speed up the emulator ===
Thanks to Sven Ebens.

 * need an intel chipset, that supports VT-X
 * need to enable virtualization technology (or simular) in BIOS
 * snapshot is not necessarily faster, because it still takes basicly the same time to boot, but you get to continue where you left off
 * Disable Driver Signature Verification:[[attachment:disabledirver.pdf]]
 * Faster emulator: [[attachment:fasteremulator.png]]
  

---- /!\ '''End of edit conflict''' ----
  * http://www.softpedia.com/get/Mobile-Phone-Tools/Others/Genymotion.shtml

Creative Apps 201602 (NOT OPERATIONAL YET !!!)

1. Planning

  • schedule.png

  • Week 1: Installation Processing with Android Mode, initial programming for Android
  • Week 2: Sensors, user interfaces
  • Week 3: Database access / networking??
  • Week 4: Installation XDK, initial programming with XDK
  • Week 5: User interfaces
  • Week 6: Android Native Apps II

2. Week 1

  • Presentations
  • Code
  • Homework and deliverables
    • If you have no experience with Processing, you are advised to follow GetStartedWithProcessing.pdf to learn the basics (password protected PDF. if you need the password, send p.j.f.peters(at)tue.nl an email);

    • Try out some examples from the Processing programming environment, to see how these examples would behave on the emulator or on your Android phone.
    • Create full screen visual art on Android, using Processing. See below some examples. (To get inspired, you may want to have a look at http://openprocessing.org)

    • Create an Android app, display "Hello Eindhoven" in the center of the screen.
    • What to be delivered (as one single ZIP file)
      • working source code
      • screen copy of the output

3. Week 2

  • Presentations
  • Code
  • Homework and deliverables
    • Try out some examples using the Ketai library on the emulator or on your Android phone.
    • Android phone owners: Create an interactive app using one (or more) sensors.
    • Emulator only: Create an interactive app using touch (=mouse) input
    • What to be delivered (as one single ZIP file)
      • source code
      • screen copy of the output

4. Week 3

  • Presentations
  • Code
  • Homework and deliverables
    • Create an interactive app with GUI and database/network access.
    • What to be delivered (as one single ZIP file)
      • source code
      • screen copy of the output

5. Week 4

6. Week 5

  • Presentations
    • ??: [[attachment:XDK-part-2.pdf]
  • Homework:
    • TBD
    • What to be delivered (as one single ZIP file)
      • source code
      • screen copy of the output

7. Week 6

  • Presentations
    • ??: [[attachment:XDK-part-3.pdf]
  • Homework:
    • TBD
    • What to be delivered (as one single ZIP file)
      • source code
      • screen copy of the output

8. Deliverables

  • Every week you will get homework and you are supposed to complete the work before the next lecture.
  • Deliver your work to creativeapps.submission@gmail.com, with your full name in the subject (so that we can find all your work later easily).

  • Deliver your work always in one ZIP file attached to your email.

  • Please send your feedback request to one (not all) of the lectures according to this spreadsheet. Registrations.xls

9. Installation

9.1. Processing installation

9.2. Intel XDK Installation

9.3. An alternative emulator

CreApps: FrontPage/CreativeApps201602 (last edited 2016-04-18 14:57:55 by PeterPeters)