suspend layout method in Android

by dave » Wed, 01 Sep 2010 05:19:21 GMT


Sponsored Links
 Hello,

I am trying to take control of the repainting of the view components.
I know in windows mobile sdk, there is a method of suspending layout,
and after the components are placed well, I can call resume layout
then to pain the whole screen in one shot.

Are there similar API in android SDK, or other ways to do it ?

Thank you very much.

Dave

--



Other Threads

1. Maximum number of http connection in Android is too small

I can check the maximum number of http connection on the web page
below.
=> http://www.browserscope.org/?category=network&v=top

I can also find the number, 4, in the source code of Android.


As I know, Maximum connection was 30 in Android version 0.5.
And, other browsers for mobile device, iPhone browser and Opera, allow
30 connections.

I want to know why Android allow only 4 connections.
If Android allow more connections, we can get better performance (fast
loading).

Is there anyone know why Google allow only 4 connections on Android?


Regards,
Joshua.

-- 

2. Intents:Battery Information

http://i-learnedandroid.blogspot.com/
  this source code is to read battery state and view it.










import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.widget.TextView;
 public class extends Activity (batteryInformation

         private TextView batteryTxt;
         private BroadcastReceiver BroadcastReceiver mBatInfoReceiver = new () (

           @ Override

              public void onReceive (Context arg0, Intent intent) (

                     / / TODO Auto-generated method stub
                    int level = intent.getIntExtra ("level", 0); //get the 
level 
battery
                    batteryTxt.setText (String.valueOf (level) + "%");
              )
         );

          @ Override

         public void OnCreate (Bundle Icicle) (
           super.onCreate (Icicle);
           setContentView (R.layout.main);
           batteryTxt = (TextView) this.findViewById (R.id.TextView01);
           this.registerReceiver (this.mBatInfoReceiver,
           New IntentFilter (Intent.ACTION_BATTERY_CHANGED));
         )


      

-- 

3. Javascript execution stops on scrolling or zooming any page

4. Why FileOutputStream cannot effect immediately

5. Battery level and memory inforamttion from Androd emulator

6. How to access and edit call phone voice stream

7. eclipse problem