-
Archives
- January 2020
- May 2019
- April 2019
- March 2019
- February 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- September 2014
- August 2014
- June 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- April 2010
- February 2010
- December 2009
- November 2009
- August 2009
- May 2009
- January 2009
- December 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- April 2006
- March 2006
- January 2006
- December 2005
- November 2005
- October 2005
- April 2004
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 android, cheatsheet, mobile, pick
Comments Off on Android Cheatsheet for Beginners
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
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
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
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
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 android, announce, game, kimmo, mobile, panda, Shaking Tower Panda, ville
Comments Off on Shaking Tower Panda for Android
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
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.
Meego Day – a Brief Report
Meego Day in Haaga-Helia, (estimated) 250 students filled the auditorium. Experts from Nokia and Accenture lectured for three hours and gave two hours of technical workshops. It’s a bit much to cover, but here are some highlights. Meego is a … Continue reading