How to reverse the childs position in RelativeLayout

by GPU » Fri, 30 Oct 2009 20:45:05 GMT

Sponsored Links
 By reversing the  mRules - result : not working in all places

By changing the child.onLayout - mLeft and nRight? not getting the
childs exact position

By changing applySizeRules()
like changing getRelatedViewParams(rules, LEFT_OF); to
getRelatedViewParams(rules, RIGHT_OF);

or is their any other way to reverse it;


Other Threads

1. Queries on developing an android SSL socket client program

I am new to android and I need to develop an Android application
client that connects to my server through socket programming. The
server is SSL secured with its own self signed certificate generated
using Java Keytool.
I did the following:-
1. I grabbed the PEM eoncoded public certificate of my server
2. Created a keystore for the cert in BKS format

I now need to write a custom android  client program that uses the
custom store for making SSL connection with the server. I dont find
any samples of the SSL client and server code to do this. It would be
great if I could get any pointers.
Thanks for the help in advance.


2. String being truncated when its long

I am trying to get a JSON response from our server and the response
string seems is always being truncated when the string length reaches
to around 5525 characters.

HttpClient httpClient = new DefaultHttpClient();
HttpPost post = new HttpPost(URL);
ResponseHandler<String> responseHandler= new BasicResponseHandler();
String testResponse = httpClient.execute(post, responseHandler);

I also tried this by using HttpEntity and reading the response stream.
But that also truncates the string at approximately that length.

            HttpClient httpClient = new DefaultHttpClient();
            HttpPost post = new HttpPost(URL);
//          HttpGet get = new HttpGet(URL);

            HttpResponse response = null;
            HttpEntity entity = null;
            InputStream inputStream = null;
            BufferedReader reader = null;
            String result = "";
            try {
                response = (HttpResponse)httpClient.execute(post);
                entity = response.getEntity();
                if(entity != null){
                    inputStream = entity.getContent();
                reader = new BufferedReader(new
InputStreamReader(inputStream), 8000);
                StringBuffer builder = new StringBuffer("");
                String line = reader.readLine();
                while(line != null){
                    Log.v(tag, "int max::::::::: "+Integer.MAX_VALUE);
                    Log.v(tag, "LINE::::::::: "+line
                    Log.v(tag, "reader::::::::: "+reader.toString());
                    line = reader.readLine();
                result = builder.toString();
            } catch (ClientProtocolException e) {
            } catch (IOException e) {
            } finally{
                if(inputStream != null){
                    }catch(IOException e){

Please let me know how I can handle this problem. I used this post as
the reference while creating this.

I tested the link in my browser and it does return the complete JSON.
So I am sure the issue is with my code in android.

Thank you.


3. On clear notification, stop sound file.

4. Android RelativeLayout height not following GridView height

5. Problem with CreateBitmap returning a bitmap with width and height of -1

6. I registered a broadcast to detect sd card status, but it only works on the device below 2.1(include 2.1)

7. Google TV Developers