Saturday, September 8, 2012

[android-developers] Google's Android developer tutorial problem

I'm a beginner and just started reading google's android tutorial and i came across a problem.
On this link: https://developer.android.com/training/basics/network-ops/connecting.html#AsyncTask
When i try to write a class which extends AsyncTask the class automatically implements the 'protected Object doInBackground(Object... params) { ... } but when i write 'protected String doInBackground(String... params) { ... } i get an error saying 'The method doInBackground(String...) of type MainActivity.DownloadWebpageText must override a superclass method'.
How do i get it to accept the String type?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment