Persistent data even when app uninstalled

by Marco Nelissen » Sat, 03 Oct 2009 00:47:12 GMT


Sponsored Links
 The other side of that of course is that persistent storage like you
describe would allow the phone to be filled with data that the user
has no visibility in to and no way to remove.







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



Other Threads

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



Try switching to HttpClient. You can use this as a basis:

package org.apache.http.examples.client;

import org.apache.http.client.ResponseHandler;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;

/**
 * This example demonstrates the use of the {...@link ResponseHandler} to
simplify
 * the process of processing the HTTP response and releasing associated
resources.
 */
public class ClientWithResponseHandler {

    public final static void main(String[] args) throws Exception {

        HttpClient httpclient = new DefaultHttpClient();

        HttpGet httpget = new HttpGet("http://www.google.com/");

        System.out.println("executing request " + httpget.getURI());

        // Create a response handler
        ResponseHandler<String> responseHandler = new
BasicResponseHandler();
        String responseBody = httpclient.execute(httpget, responseHandler);
        System.out.println(responseBody);

        System.out.println("----------------------------------------");

        // When HttpClient instance is no longer needed,
        // shut down the connection manager to ensure
        // immediate deallocation of all system resources
        httpclient.getConnectionManager().shutdown();
    }
}

You'd need to create a BinaryResponseHandler class that gave you a
byte[] of data. I did this once for a consulting client -- it was an
extremely short class IIRC. Or, skip the ResponseHandler pattern, call
httpclient.execute() and use the resulting HttpResponse object.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 

2. SERIOUS problem w/ uninstalled apps and update notifications

I have now gotten two 1-star reviews and {*filter*} comments from idiot-
users who blame me for the fact that after uninstalling my app they
still receive update notifications from the market.

It seems obvious from my point of view that I have absolutely no
control over this but I am open the suggestion that I have done
something wrong.

Does someone from Google want to pipe in and tell me how I can avoid
this situation?  I'm taking a lot of flack for it.  What could I have
possibly done in the implementation of my app that causes the market
to send people update notifications after they uninstall it?  What can
I change to avoid this?

Thank you.

-- 

3. Installing an app offline using usb

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

5. Applying round corners to image in a image view

6. Is Google Evil?

7. Learn how to develop android apps