Binder fix of "binder_alloc_buf, no nma" errors

by Pantelis Antoniou » Thu, 22 Apr 2010 17:22:42 GMT


Sponsored Links
 -- 



Other Threads

1. HTTP Post works in activity but not in service

Hello,
I am trying to do a http post to a php script. the method works if I
place it in the onCreate event of the application but gets a
ConnectionTimeOut error when it tries to execute it from the service.
Here is an example of my method

String url = "http://myurl/" +
                "?tmpl=javascript" +
                "&mode=recieved" +
                "&id=" + id;
                URI uri = null;
                try {
                        url = url.replace(" ", "%20");
                        uri = new URI(url);
                } catch (URISyntaxException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                }
                HttpGet httpGet = new HttpGet(uri);
                HttpParams httpParameters = new BasicHttpParams();
                // Set the timeout in milliseconds until a connection is
established.
                int timeoutConnection = 10000;
                HttpConnectionParams.setConnectionTimeout(httpParameters,
timeoutConnection);
                // Set the default socket timeout (SO_TIMEOUT)
                // in milliseconds which is the timeout for waiting for data.
                int timeoutSocket = 10000;
                HttpConnectionParams.setSoTimeout(httpParameters, 
timeoutSocket);

                DefaultHttpClient httpClient = new
DefaultHttpClient(httpParameters);
                try {
                        HttpResponse response = httpClient.execute(httpGet);
                } catch (ClientProtocolException e) {
                        System.out.println(e.getLocalizedMessage());
                        e.printStackTrace();
                } catch (IOException e) {
                        System.out.println(e.getLocalizedMessage());
                        e.printStackTrace();
                }

I have no idea why the service would get a time out error but the
application activity would not. I am baffled.

-- 

2. Launching separate projects

Thanks for Dianne and Mark for  the SharedUserID information and
feedback.

I have two separate projects (I own both of them) that at runtime
write
files back into persistent memory ( in their private app space). Each
of them will need to access these files.

So are these the options I have?
(1) Should I use a SharedUserID in the two manifest files, signed the
apps with the same key and allow them to access each other files?
(2) Should I write these files in the /sdcard where they can both
access them (I know this data is in danger of being lost but for the
purposes of a prototype that is not an issue)

Is there a way to launch both apks in the same process from a single
icon? Is that possible since they each have their own activity
classes?
Wouldn't it be better to try and merge the code - I know this would be
a last resort as it will be a lot of rework.

Thanks

-- 

3. turning on Camera Flash

4. froyo: Android porting problem - LCD BPP

5. how to use eglCreateImageKHR?

6. How to update a

7. in-app purchase with single-click checkout service?