Java frustrations learning Android

I have just started playing with Android and I am sorry to say its not been the greatest experience so far.

When you try the examples they probably will not work because they have changed the API since. And they have not documented the changes – well, if they do, they hide it very well.
I’m trying to run their Hello, Gallery tutorial, from their website,
http://developer.android.com/guide/tutorials/views/hello-gallery.html
and have got to the ImageAdapter Class and found that the android.R.styleable.Theme no longer exists in the android project, all I can use is android.R.style.Theme.

So ok we change that, but now the obtainStyledAttributes method has also changed, we have to send in 2 attributes or an int[], and the APi just says that the method gets the styled attributes, and not what can be sent in.

I’d love to hear from someone who has it working as I think I would learn more from them in an hour, than a week of constant tutorial work from the android website. What is your experience?

This post is part of our “Android Articles Index” series. In these articles, we aim to explore android in different ways. Have a look!

Related Posts:

The following two tabs change content below.
Chris developed much of the Forms handling code and also the hooks for the XFA.
Chris

About Chris Wade

Chris developed much of the Forms handling code and also the hooks for the XFA.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>