HelloSpinner Example!!

by weird0 » Sun, 26 Apr 2009 02:30:44 GMT


Sponsored Links
 I tried this simple example from HelloViews.

But the eclipse IDE gets stuck on this little thing and it does not
recognize ArrayAdapter. It states:-

"ArrayAdapter is a raw type. References to generic type
ArrayAdapter<T> should be parameterized"

For resolution on clicking the bulb:-

1. Add type parameters to 'ArrayAdapter'
2. Infer Generic Type Arguments

and two more.

I have imported two more... but ArrayAdapter is the bug in the
example. Why?

Android experts please suggest!!

Reagrds,
Android Beginner
--~--~---------~--~----~------------~-------~--~----~



HelloSpinner Example!!

by Roman Romano » Sun, 26 Apr 2009 04:26:08 GMT


 Aren't you supposed to put in between the < > what the array holds
(eg. <String>)?????

Regards

Roman




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


HelloSpinner Example!!

by Raphael » Mon, 27 Apr 2009 12:31:17 GMT


 Could you give us the exact source code line where this error occurs,
or maybe a short snippet function? That will allow us to understand
the error in context.

Thanks
R/




--~--~---------~--~----~------------~-------~--~----~



HelloSpinner Example!!

by weird0 » Mon, 27 Apr 2009 22:34:20 GMT


 Thanks Romano!!

ArrayAdapter<CharSequence> got the application to work. You can see
the code at developer.android.com in HelloView section.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Template for Activity

Hi All,
Is it possible to add the same element e.g ImageView, TextView to all
activity layouts ? Can I do it by specifying some kind of template,
theme maybe in order to omit adding the same component to every
layout.

Thanks,
--~--~---------~--~----~------------~-------~--~----~

2. CoolReader Open Source

CoolReader Open Source

source address : http://androidos.cc/bbs/viewthread.php?tid=675&extra=page%3D1

CoolReader? is based on the Android platform for readers, the current
version 0.7.0.0, the following documents in support of sdcard

browsing, support for Txt file reading, specific functions are as
follows
    * support sdcard file browser
    * support Txt documents read
    * support for large file read (up to test 50M)
    * to support the font settings
    * support custom background settings
    * to support the unlimited class bookmark
    * support bookmarks deleted, Jump
    * support percentages
    * support screen rotation
    * to support the keyboard and flip Scroll
    * to support the touch screen and flip Scroll

If you are a user directly download the installation package and can
install and use manual.

    Address: http://code.google.com/p/coolreader/downloads/list

If you are a developer, please use the Eclipse Ganymede 3.4 version,
SDK for RC2, ADT 0.8, JDK 1.6 Version

And Eclipse working directory encoding for UTF-8.

If you join us, the availability of the Android OS community training
and technical support.

    Address: http://androidos.cc/bbs
--~--~---------~--~----~------------~-------~--~----~

3. Using JNI to call C lib on android platform

4. dev phone: WPA Enterprise working / http proxy no luck

5. questions on builtin function call

6. dalvikvm-heap: Can't create VM heap of size 262144

7. eclipse in ubantu