This shows you the differences between two versions of the page.
|
osp:lectures:lecture-ndk [2016/11/07 00:11] vlad.traista [Practical] |
osp:lectures:lecture-ndk [2017/01/22 11:38] (current) laura.ruse [Lecture] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | *{{:osp:lectures:lecture-ndk.pdf | Lecture Slides - Part 1}} | + | *{{:osp:lectures:lecture-ndk.pdf | Slides - Part 1}} |
| + | *{{:osp:lectures:6.ndk_notes.pdf | Notes - Part 1}} | ||
| {{url>http://ocw.cs.pub.ro/courses/_media/osp/lectures/lecture-ndk.pdf}} | {{url>http://ocw.cs.pub.ro/courses/_media/osp/lectures/lecture-ndk.pdf}} | ||
| - | *{{:osp:lectures:lecture-ndk-2.pdf | Lecture Slides - Part 2}} | + | *{{:osp:lectures:lecture-ndk-2.pdf | Slides - Part 2}} |
| + | *{{:osp:lectures:6.ndk2_notes.pdf | Notes - Part 2}} | ||
| {{url>http://ocw.cs.pub.ro/courses/_media/osp/lectures/lecture-ndk-2.pdf}} | {{url>http://ocw.cs.pub.ro/courses/_media/osp/lectures/lecture-ndk-2.pdf}} | ||
| Line 26: | Line 28: | ||
| <note warning>If you do not have the Android NDK installed, you can downloand it and extract it from [[https://developer.android.com/ndk/downloads/index.html|this link]]. Afterwards in Android Studio you must set the NDK path if it is not set already. The path can be set by right clicking on the project and selecting the **Open Module Settings** menu item and setting the Android NDK location with a path similar to **/home/student/android-ndk-10re**. | <note warning>If you do not have the Android NDK installed, you can downloand it and extract it from [[https://developer.android.com/ndk/downloads/index.html|this link]]. Afterwards in Android Studio you must set the NDK path if it is not set already. The path can be set by right clicking on the project and selecting the **Open Module Settings** menu item and setting the Android NDK location with a path similar to **/home/student/android-ndk-10re**. | ||
| + | </note> | ||
| + | |||
| + | <note warning> | ||
| + | In order to successfully run an Android application with native support, you need to have [[http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|Oracle Java 7 SDK]] installed and configure Android Studio to use that SDK. | ||
| </note> | </note> | ||
| === Files === | === Files === | ||
| - | {{:osp:lectures:nativeapplication.zip|}} | + | {{:osp:lectures:introapplication.zip|}} |
| {{:osp:lectures:tasks.zip|}} | {{:osp:lectures:tasks.zip|}} | ||
| + | <note warning> | ||
| + | Abandon hope all ye who enter here for Android NDK is a mighty obstacle :D | ||
| + | </note> | ||
| - | TODO - needs refactoring | ||
| === Task 1 - Create a Native Project (1p) === | === Task 1 - Create a Native Project (1p) === | ||
| - | <note warning>Because NDK is not fully support on Android Studio yet, you will have to import the project from this archive: {{:osp:lectures:nativeapplication.zip|}} | + | <note warning>Because NDK is not fully support on Android Studio yet, you will have to import the project from this archive: {{:osp:lectures:introapplication.zip|}} |
| You should use this whenever a new project is required. You can find more information about NDK integration in Android Studio at [[http://tools.android.com/tech-docs/new-build-system/gradle-experimental|this link]]. | You should use this whenever a new project is required. You can find more information about NDK integration in Android Studio at [[http://tools.android.com/tech-docs/new-build-system/gradle-experimental|this link]]. | ||
| </note> | </note> | ||