Thanks treKing and Anurag now it's works.
--
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+unsubscr...@
Try it, If you want to paas any specific message to UI
then use message object for the same.
like Message msg = handler.obtainMessage();e fucntion
// set any value
// get the same value in hadleMessag
Complete code is here
ProgressBar bar;
Handler handler=new Handler() {
public void handle
On Sun, Apr 25, 2010 at 2:08 AM, pramod.deore wrote:
> I had tried followinfg but throws exception.
>
To get the best response, you need to post what this exception is and the
full stack trace you're getting in the debugger. Otherwise how are people
supposed to figure out what your problem is?
Hello everybody again,
Now my code runs in background anfd on foreground it shows progress
bar.But now I want to show another screen after sendFileToServer
method completes. I had tried followinfg but throws exception. Please
help me how to to do this?
public void onClick(View v)
{
Thanks Brion and Krox.
--
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+unsubscr...@googlegroups.com
Fo
Hi!
You probably want to use a Thread() to perform the dataupload, if it
is a big file that your are uploading a Service (bindService) might be
better since it will continue to run even if the activity is
destroy'ed . The following code till perform the data upload in a new
thread.
Thread t = new
Hi!
Using a thread is probably what you want, if it is a big file that you
are uploading you might even consider using a service instead
(bindService()) so it will continue to upload even if your activity is
stop()'ed (the user leaves it by pressing the home-button or
similair). The following code
Your sendFileToServer function should be in a separate thread, like
the background operation of an AsyncTask.
Your android application is doing everything in the main thread, the
UI thread, so it is doing your "file send", then, when it comes back,
it is updating the UI.
On Apr 24, 1:03 am, "pra
My main3 layout file is like
http://schemas.android.com/apk/res/android";
>
--
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 grou
9 matches
Mail list logo