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. Solution suggestions

Hello. I'm wondering about the best way for android (on a mobile
device) to handle the equivalent of a web-app. Let's say a client
wants a version of their website (which contains server side
capability - database, a framework like struts/spring, ajax calls etc)
on a mobile device. How would you go about putting something similar
onto an android mobile? What are the options, and the technologies you
could use?

Would you a) simply make a new front end sitting on the existing web
servers, written using a simplified XML which android can display
appropriately? So all you had to do was call the appropriate web
address to view the android version of the website.

Or b) would you write a new app entirely for the device, which had a
version of the database loaded into it?

Or c) would you write a new app for the device, which made calls
across the web to the existing server side functionality. If you did
this, what technologies would you use for the communication?

I hope this isn't to vague. I would appreciated any pointers to the
technologies I need to be looking at to achieve this. Thanks!
--~--~---------~--~----~------------~-------~--~----~

2. Still no paid apps in Android Market for Belgium

Would, by any chance, anyone have a clear explanation about why the
Android Market in Belgium still won't allow for paid apps ?
Since June, network operators such as Proximus and Mobistar have
officially introduced the HTC Magic and HTC Hero, but there is a lot
of frustration due to no paid apps being available.
Belgium is a small country, and what I see today are developpers
prefering to develop for the iPhone because they know they will get
money for the apps thru the AppStore.

We are a small company considering the develop skills on Android in
Belgium and selling our services to Small Businesses, but as long as
no paid apps are accessible in Belgium, we will continue to develop
our skills on the iPhone.

Add to this the paid apps market issues with HTC Hero (issues with
copy-protected apps), and you get into a situation which is somehow
even more silly than the obscure apps aalidation processes of Apple.
Clearly, as of today, the Android Market is a counter-adverstising for
Android. Too bad.


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

3. WebView Catch 22 - Same Window, Except For New Domain]

4. intent filter issue

5. stack overflow exception on certain sequence of UNICODE characters, I DONT HAVE TOO MANY LAYERS!

6. how is /proc/mtd generated

7. Is G2's kernel the same as G1?