• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing and Testing Android application

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am a Java Developer and want to learn Android. Please share some starting steps that can also teach me some with some hands-on examples.

Also, how do I test my application, is there some IDE / simulator available. Can I test my application on actual HTC handset that has android on it. Is it safe for a newbie to test application on android.

Thanks.
 
Ranch Hand
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can download Android SDK from here.
 
Rakesh Jhamb
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please reply with some more details.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What specifically are you looking for that is not covered by the extensive SDK documentation?

The SDK includes an emulator.

You can test apps on your own devices.

Define "safe". For example, if you write an app that deletes files from the SD card, and it doesn't work right, then all your files may be lost.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also a new to Android... but you could check their samples. They have code samples as well as documentation for each sample. I found those very useful and exposes many libraries and techniques to help you start programming in android.
I used the sdk in eclipse. and the projects were really easy to run.
http://developer.android.com/resources/samples/index.html
 
author
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rakesh,
Great questions especially about testing. First you can go to http://developer.android.com/index.html and download the SDK and if you use Eclipse you can also the ADT plugin for Eclipse which greatly helps in development. There are also numerous examples at the site to help you get started. Or you could by Android in Action which walks you through getting setup, started, and developing real applications.
Now as for testing there are many different forms of testing as well as things like quality assurance. For the most basic forms of testing, unit testing (via JUNIT), the Android ATP plugin for Eclipse has this built in so that you can exercise any application you develop. You can also use Android’s Emulator which comes with the SDK. The Emulator allows you to run virtual instances of Android so that you can test and debug your applications before you put them on a phone. Also you can put your application on your phone and test with little fear as long as you are not using the API to do things like delete files, change system settings, and the like. Generally if you get to that stage you want hardware you can test on that you do not mind if you accidentally overwrite all your contacts and such. Android also supports functional testing via JUNIT and others have integrated different testing frameworks with Android. Thus you can lets say have a database with various test data and then have your tests pull that data and exercise your application to perform functional testing. Furthermore you can use tools like Hudson, Maven, Ant etc to integrate with the SDK and Emulator and even, automatically on a build server, kick of builds and tests in a continuous integration development environment to maintain quality in larger projects. In the case of testing security you can even integrate tools like Sulley to automatically perform fuzzing of applications or Android. As such more or less anything you want to do in the form of testing you can do on Android either in the emulator, or on a handset, and automate it to your hearts content.
Does that help?
 
Rakesh Jhamb
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for very useful explanation.
 
Ranch Hand
Posts: 128
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm curious about how you develop UIs in Android Apps?

Some have said that since there is no 'visual designer' for Android developing your UI can be rather tedious. Can you tell me ...
  • Is this your experience too?
  • What do you use to develop your UIs?
  • Is there a tool/tools you recommend for building UIs?
  • Didn't Google recently acquire a vendor who makes Android UI tools?




  • PS: Just bought your book, from what I've read so far (a few pages in the bookstore) ... I like it ...
    I've never done any Android development but I know Windows Phone 7 has Visual Studio AND Expression Blend for rich, drag & drop UI building .... XCode has Interface Builder ... Andoid need something ... I think
     
    Ulf Dittmer
    Rancher
    Posts: 43081
    77
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Keith Flo wrote:I'm curious about how you develop UIs in Android Apps?


    One option is DroidDraw.
     
    Ranch Hand
    Posts: 75
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Try these:


    http://www.vogella.de/articles/Android/article.html
     
    Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic