Archive for the ‘sdk’ Category

  • Ye Olde Android adventure – Day 2

    Date: 2010.06.15 | Category: android, classdroid, google, ICT, primary, Primary School, Primary School ICT, school, schools, sdk | Response: 0

    Today as I ventured towards Droidville I met a sage who reminded me about some useful keystokes.

    Eclipse: Control Alt Down duplicates line
    Emulator: Rotate screen – Control F11

    As I moved closer to Droidville the air began to fill with hope, thousands of hopeful children and teachers poored into the streets, so I quickly hid and jumped into Bar Youtube (Part of the Starbucks chain) and watched another video to further my understanding of the power of Android, another good one this time by Ye old O’Reilly

    Building my team to fight the forces of evil

    I got in touch with a developer through rent-a-coder called Kumar Bibek who has 3 years experience fighting the forces of evil (developing Android apps). We had a conversation that went something line:  ”I can make the bow, can ye make the arrow?”  We agree’d on 100$ for the array (final bits of the work that were out of my skill set).

    Overview of the bits I’m doing:
    Making Classdroid look fit for a princess (Layout design/User interfaces)
    Making Classdroid easy to use  (Application flow)
    Making Classdroid link together (Intent assignments)
    Designing how Classdroid will save our princesses minions (Database design)

    Overview of the bits he’s doing:
    Not shooting the messenger (Code to read/write preferences/settings to/from SQLite)
    Carrier Pigeon nurturing (Control method for post to WordPress)
    Controlling the Eye of  Gondor (Camera SDK modifications)

    In the Sage’s library I found a piece of parchment with some notes scribbled on it:
    Resource = text,pictures, sound objects, layout….
    Intent = change the page
    View = new page layout/display
    \n = newline when using text elements

    Very cryptic clues, maybe I will need them to enter the great hall of Droidville?

    It’s been a long day…..

    As the day drew to a close and the Sun nestled the hills of Azrowilsden I discovered WordPress have an android application that does 80% of what I want to do from a control point of view so I’m going to hack into that to save me needing to write the function that posts the RPC over XML to WordPress.  This is why the world should embrace more open source, it empowers us all instead of dumbing us down like iLem users who are too scared to google how to create an android application (or don’t see it being a valuable use of their time).

    As the iLem users fall off their platform I am gently warmed inside by the knowledge that we are creating a better, more open world without any corporate borders.  One application at a time.

    Enhanced by Zemanta
  • Quick start developing for Android using SDK

    Date: 2009.07.29 | Category: android, cheat sheet, developer, developing, example, hello world, mobile, phone, sdk, simple | Response: 0

    1. Download Android SDK from http://developer.android.com/ (.180MB file)

    2. Extract to c:\android

    3. Download Eclipse IDE for Java EE dev from http://www.eclipse.org/downloads/ (.180MB file)

    4. Extract to c:\eclipse

    5. Start – Run – type: cmd

    6. Type –> Cd \ – CD android – CD tools

    7. Type –> android create avd –target 2 –name my_avd

    8. Hit enter

    9. Right click My computer – properties – advanced – Environment Variables – Under System Variables add ;c:\android\tools

    10. OK / OK

    11. Run c:\eclipse\eclipse.exe

    12. Click OK

    13. Click Help

    14. Click Install new software

    15. Add

    16. Name = Android

    17. Location = https://dl-ssl.google.com/android/eclipse/

    .18. OK

    19. Wait for it to finish “Pending”

    20. Click Developer Tools

    21. Click Next

    22. Click Next

    23. Read the T&C’s

    24. Click I accept

    25. Click Finish

    26. Click yes to Restart Eclipse

    27. Click OK

    28. Click Windows – Preferences

    29. Click android

    30. Click browse

    31. Browse to c:\android

    32. Click Apply/OK

    33. Click File/New/Project/Android/Android project

    34. Package Name: hello

    35. Select Android 1.1

    36. Applicationame = helloworld

    37. PackageName = hello.world

    38. Create Activity = hello

    39. Min SDK Version: 2

    40. Expand out Hello > src > Hello.World > Hello.Java

    41. Paste over the current code visible in the centre of the screen:

    package Hello.World;

    import android.app.Activity;

    import android.os.Bundle;

    import android.widget.TextView;

    public class hello extends Activity {

    /** Called when the activity is first created. */

    @Override

    public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    TextView tv = new TextView(this);

    tv.setText(“Hello, Android”);

    setContentView(tv);

    }

    }

    42. Click Run / Run / Android Application

    43. Click Yes to save changes

    44. Wait quite a while – Tada…