has leaked service connection in activity that was originally bound here

by Marco Nelissen » Wed, 29 Apr 2009 22:56:41 GMT


Sponsored Links
 ou should unbind() when you're done.


On Wed, Apr 29, 2009 at 1:25 AM, mawei1981 <mawei...@gmail.com> wrote:


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



Other Threads

1. Installing an app offline using usb

When I bought my Nexus One, I took the card out of my G1 and put it in
my N1. I've developed an app and I know how it works on the Nexus but
I want to test it on my G1.

I wanted to see how my app looks on a G1 so I connected it to my
computer and put my .apk file into the downloads folder on my G1's SD-
Card. Ok, now my app is on my OFFLINE G1 but how do I install it? Can
I install it with only the native apps on my G1? Right now, I don't
see anyway to view the file.

I know I can take the chip out of my N1 and put it back into my G1 and
then simply download and install it but I would rather not do that.

Any help would be appreciated...al

-- 

2. Download a file from a URL extremely slow, am I doing it right?

Hello folks,

I tried to post this on the android-developers list twice but it
doesn't seem to ever show up and I'm not sure why that is, so I'll
post here in the hopes that someone can help me, or perhaps another
beginner like myself has also run into this problem.

I have the following code to download a binary file from a URL:

private static final int BUFFER_SIZE = 1024 * 1024;

BufferedInputStream stream = new BufferedInputStream(new URL(<MY
URL>).openStream(), BUFFER_SIZE);
BufferedOutputStream fos = new BufferedOutputStream(new
FileOutputStream(outputFile));
byte buf[] = new byte[BUFFER_SIZE];
int numBytesRead;
do
{
        numBytesRead = stream.read(buf);
        if (numBytesRead > 0)
        {
                fos.write(buff, 0, numBytesRead);
        }
} while (numBytesRead > 0);
fos.flush();
fos.close();
stream.close();
buf = null;

The file that I'm downloading is 6.5MB.  On the iPhone version of my
app it takes about a minute to download, maybe less on good days.  On
the Android Dev Phone 2 I'm testing on it takes 10 - 15 minutes to
download, it's EXTREMELY slow.

I am looking for any and all advice on how to speed up the download
for large binary files.

One thing I tried was to speed up the writing to the SD card by
filling up buf, and then only doing fos.write() when the buffer was
full (so roughly 6 and a half writes instead of lots of mini writes).
This seemed to have no effect on the overall process, which confirms
IMO that the slow part is definitely reading from the URL stream.

Thanks very much.

Robert Hawkey

-- 

3. Applying round corners to image in a image view

4. Is Google Evil?

5. Learn how to develop android apps

6. VFY: arbitrarily rejecting large method

7. Corrupted SharedPreference file