Bug @ Bl*pkMark*t 1.2

by Alex Chandra » Thu, 22 Apr 2010 15:34:30 GMT


Sponsored Links
 Klo misalnya gw punya Smart Keyboard Pr* 1.27.. trus kluar apdet 1.28.2..
kan tinggal ke tab 'Update',  klik di app yg bersangkutan, trus tekan tombol
'Update'.. masalahnya, abis gw apdet, ke-detect-nya yg installed masih 1.27,
jadi Smart Keyboard Pr*-nya gak ilang dari tab Update.. -___-"

Yg laen pada ngalamin hal yg sama gak yah? soalnya blon prnah baca ad yg
complain masalah ini di milis.. :P

-- 
"



Other Threads

1. How do I sync MessageQueue thread in Android unit test?

Hi All

I'm writing unit tests for a ListActivity in Android that uses a
handler to update a ListAdapter. While my activity works in the
Android emulator, running the same code in a unit test doesn't update
my adapter: calls to sendEmptyMessage do not call handleMessage in my
activity's Handler.

How do I get my ActivityUnitTestCase to sync with the MessageQueue
thread and call my Handler?

The code for the Activity is somewhat like this:

public class SampleActivity extends ListActivity implements SampleListener {
    List samples = new ArrayList();

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sample_list);
        listView.setEmptyView(findViewById(R.id.empty));
    }

    private final Handler handler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            // unit test never reaches here
            sharesAdapter = new SampleAdapter(SampleActivity.this, samples);
            setListAdapter(sharesAdapter);
        }
    };

    public void handleSampleUpdate(SampleEvent event) {
        samples.add(event.getSample());
        handler.sendEmptyMessage(0);
    }
}

The code for my unit test is somewhat like this:

public class SampleActivityTest extends ActivityUnitTestCase<SampleActivity> {

    public SampleActivityTest() {
        super(SampleActivity.class);
    }

    @MediumTest
    public void test() throws Exception {
        final SampleActivity activity = startActivity(new
Intent(Intent.ACTION_MAIN), null, null);
        final ListView listView = (ListView)
activity.findViewById(android.R.id.list);
        activity.handleSampleUpdate(new SampleEvent(this));
        // unit test assert fails on this line:
        assertTrue(listView.getCount() == 1);
    }

}

TIA...

-- 
Ricardo Gladwell <ricardo.gladw...@gmail.com>
http://www.google.com/profiles/ricardo.gladwell

-- 

2. checkbox preference

Hello everybody,
I would like to override the checkbox preference so that:

   - the key and title are right aligned
   - the checkbox icon is on the left side

I think I have to modify the checkboxpreference.java, do you know how?
Thanks in advance.

-- 

3. checkboxpreference

4. Question for Admob users

5. Flickr upload API hangs in emulator

6. Support of JKS Keystore in Android

7. what's the best 2d engine and what's the tools I need to create a game?