Significance of "..." in doInBackground(Params...) of AsyncTask

by nikki » Mon, 30 Aug 2010 14:12:57 GMT


Sponsored Links
 Hi Group,

I was just going through the document over AsyncTask and came across
the notation "..." in the methods of Asynctask (For eg.
doInBackground(Params...)).

I was a bit excited to know whats the significance of "..." in this
notation.

Please help

Regards
Nihkilesh

--



Significance of "..." in doInBackground(Params...) of AsyncTask

by Romain Guy » Mon, 30 Aug 2010 14:16:02 GMT


 It's a notation called "varargs". See explanations here:
 http://download-llnw.oracle.com/javase/1.5.0/docs/guide/language/varargs.html 



>


Sponsored Links


Significance of "..." in doInBackground(Params...) of AsyncTask

by nikhilesh singh tak » Mon, 30 Aug 2010 14:53:42 GMT


 Hey Romain Guy thanks a lot for quick response and help. :)


Regards
Nikhilesh Singh Tak




>>



Other Threads

1. extend MapActivity not Working

I am trying to extend the MapActivity class, but it's stumping me
tonight.
Notes: The first
This post contains:
     -Working Code
     -Non-Working Code
            --I only change the extend MapActivity line and add
unimplemented isRouteDisplayed() --
     -Error Log

Any Insight is Appreciated. Thank you all so much!

(Imports omitted)
Working Code:
=========================================
---------Begin Working Code-------
public class GpsTest extends Activity{
    public String test;
        TextView mine;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mycontrols();

    }
public void mycontrols()
{

        mine = (TextView)findViewById(R.id.mytext);
    test = "Wassup";
        mine.setText(test);
}
}
--------End Working Code----

==========================================

--------Begin Non-Working Code---
//Now I'm extending MapActivity
public class GpsTest extends MapActivity{
    public String test;
        TextView mine;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mycontrols();

    }
public void mycontrols()
{

        mine = (TextView)findViewById(R.id.mytext);
    test = "Wassup";
        mine.setText(test);
}
//required override
@Override
        protected boolean isRouteDisplayed() {
                // TODO Auto-generated method stub
                return false;
        }
}

----End Non Working Code----

============================================

---- Error Log ---- (Truncated)


11-14 05:29:56.810: ERROR/AndroidRuntime(725): Uncaught handler:
thread main exiting due to uncaught exception
11-14 05:29:56.821: ERROR/AndroidRuntime(725):
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.android.gpstest/com.android.gpstest.GpsTest}:
java.lang.ClassNotFoundException: com.android.gpstest.GpsTest in
loader [EMAIL PROTECTED]

----End Error Log----

Any advice is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~

2. emulator isn't launching

Hi.
I have problem with android emulator when I'm launching application.
It's writing on eclipse console NAND: could not write file D:\Android
\android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space
left on device
I don't know what I should do :-(( I'm using windows vista and eclipse
version 3.4.1...

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

3. WebView and SSL

4. open intents sensor

5. Convert GeoPoint to ScreenCoord

6. Reference application for mms

7. Building Android Against glibc