Aikataulu – Mobiilituotekehitys bus4tn008-6 – syksyllä 2016

Keksi ja koodaa oma Android-ohjelma. JavaScriptilla. Julkaise Google Playssa. Aiemmilla kursseilla menestyivät Cordovalla toteutetut Laurin Times Table Grid Game (yli 50 000 asennusta), Villen Hirsipuu Suomi (yli 10 000 asennusta)  ja Elmon SuomiSanakirja (yli 10 000 asennusta). Jos voitat Laurin … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Android Map with GPS Location – Using Cordova, OpenStreetMap and Leaflet.js

A Free Android map that centers on your GPS position. This is a programming example. It combines Cordova geolocation API, OpenStreetMap.org API and Leaflet.js map library. I have explained each of these technologies in separate articles.

Posted in Uncategorized | Tagged , , , , , , , , , , | 1 Comment

GPS GeoLocation in Cordova and Android – add permissions to Android manifest

Where in the world is your cell phone? With Cordova, you can write your app in JavaScript, build an Android apk and sell it on Google Play. This article shows you how to use GeoLocation (GPS) from Javascript. We show … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | Leave a comment

Hello Cordova – Develop Android Apps on Ubuntu Linux

Write Android Apps in HTML5 and JavaScript. Cordova allows access to hardware (GPS, accelerometer…) and packaging for Google Play.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | 6 Comments

12 000 Installs for Student Android Game

My student Ville Valta wrote a hangman game – and got 12 000 installs on Google Play. It’s in Finnish, Hirsipuu Suomi. But I like his Upstream Challenge even better. If you want to learn our weird language, Elmo’s SuomiSanakirja … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Processing.js Graphics in PhoneGap/Cordova – Example for Android

Create simple graphics and animations with Processing.js. You can publish your games and graphics as Android Apps with Cordova. Cordova (aka PhoneGap) allows you to write Android and IOS apps with HTML5 and Javascript.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Memory Game in Whole Helsinki

Play memory game – using the whole Helsinki as a map! My students Panu Koskela and Henry Kokko submitted their game to Apps4Finland. Competition entry on Apps4Finland Youtube video Free Android Download on Google Play

Posted in Uncategorized | Tagged , , , , , , , , , , , , | Leave a comment

Aikataulu – Mobiilituotekehitys bus4tn008-2

Tällä hetkellä kurssin latauskuningas on Ville Valta, yli 12 000 latausta eli suunnilleen Lieksan asukasluku. Mutta kuka voittaa hopeamitalin? Kurssilla opit tekemään kännykkäohjelmia PhoneGapilla (html5+javascript). Pääset myymään ohjelmaasi maailmanlaajuisesti Google Play:ssa. w43 Hello Cordova World! (w44 ei lähiopetusta TIP valintakokeen takia) … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 51 Comments

Hello PhoneGap – from xUbuntu 12.04 Live CD

Install PhoneGap development environment and emulator from scratch. Start writing Android applications with Javascript and HTML. Guru version Hello Android $ sudo apt-get -y install ia32-libs eclipse Eclipse: Help: Install New Software. https://dl-ssl.google.com/android/eclipse/. Install Android 2.2. New Android Virtual Device? … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 2 Comments

Teaching PhoneGap – Write Apps in Javascript and HTML5

I’ll teach the next mobile development course in PhoneGap. The Haaga-Helia course Mobiilituotekehitys bus4tn008-2 will be in Finnish. The course seems to be fully booked already, but you can get a place if someone cancels. I’ll teach the course with … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 2 Comments

Drawing to Canvas on Android – Code Example

Draw full screen on your Android phone This is just example code. For a throughout explanation, see Make Arduino Bots and Gadgets: Boxing Clock. package com.botbook.drawingoncanvas; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Align; import android.os.Bundle; … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Tee yksinkertainen peli Androidille

Tee yksinkertainen peli Androidille. Paljonko on 2*14? Mikä luvuista ei ole jaollinen kolmella? Haluatko ostaa vokaalin? Monennellako yrityksellä arvaat numeron? Paljonko 2 jalkaa 3 tuumaa on nykyaikaisissa yksiköissä? Mikä sana on kontiksi konoxlintti? Hymynaama Vapaaehtoinen lisätehtävä: Piirrä Androidilla hymynaama. Edistynyt … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Android Cheatsheet for Beginners

Also check out Boxing Clock for Android (and MABG), search Stack Overflow, read Android Developers Guide and Reference. Toast private void tToast(String s) { Context context = getApplicationContext(); int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, s, duration); toast.show(); } … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

TextViews in Android

TextView is a text field, usually user editable. You can read and write TextView values from code. You often have to cast between CharSequence, String, int and other types. Prequisites: Android Hello World Explained Read TextView final TextView q = … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Tee yksinkertainen laskin Androidille – Läksy kurssilla “Mobiili tuotekehitys” bus4tn008-1

Tee Androidille yksinkertainen laskin. Se voi laskea vaikkapa painoindeksin, huoneen tilavuuden tai muuntaa vanhentuneita mittayksiköitä nykyaikaisiksi.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Simple Button for Android – XML onClick + public method

Probably the simplest way to create Android Button. Create a new public method (e.g. goButtonClicked) and add it to your layout XML. Prequisites: Android Hello World Explained In Java, define a new public method that takes view as parameter. public … Continue reading

Posted in Uncategorized | Tagged , , , , , | 4 Comments

Lifecycle Code Example for Android – onCreate(), onPause(), onResume()

In Android lifecycle, methods are automatically called. This simple example toasts a message each time this happens. Create a new project SimpleStuff, package com.botbook.simplestuff. Run your program and see the states change. Press home button to stop the program. Hold … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Fix Android Build Problem with main.out.xml and strings.out.xml

When you edit an Android XML file in Eclipse, build fails and main.out.xml is created. Fix it by disabling XSL transformation build and set to always build the last build. Eclipse: Window: Preferences: Run/Debug: Launching: Launch Operation -> Always Launch … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

Shaking Tower Panda for Android

Update: Thousands of installs in just two weeks. Great review. Save the Panda! Kimmo and Ville created a new Android game. Panda is trapped on a tower and your goal is to get him back to the ground safely. Remove … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Aikataulu – Mobiili tuotekehitys bus4tn008-1

Tavoite tälle periodille: osaan tehdä Android-ohjelman ja julkaista sen. w43 Hei maailma! Kehitysympäristön asentaminen (w44 Ei lähiopetusta heti09-pääsykokeen takia) w45 Syntymästä kuolemaan eli Android-sovelluksen elinkaari (onPause…) w46 Hei Tero! Graafisen käyttöliittymän elementit ja koodi w47 Piirtelyä w48 Android Market ja … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 8 Comments

Android lectures in Universidad Rey Juan Carlos, Madrid

I’m currently giving workshops and lectures on Android programming. Update: You can read more about Android programming from Make: Arduino Bots and Gadgets, new book by me and Kimmo Karvinen. Android code examples are in BotBook.com. Workshops were done as … Continue reading

Posted in Uncategorized | Tagged , , , , | 23 Comments

Thesis on Developing and packaging for Android

My student Nur Sah Ketene started his thesis on developing and packaging Android software. You can follow his thesis on GitHub.

Posted in Uncategorized | Tagged , , , , , | Leave a comment
  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects