Ponsel dengan Radiasi Tertinggi - HH Android nomer 2

by satrio » Thu, 18 Nov 2010 15:20:18 GMT


Sponsored Links
 betul..puanas banget tuh droid/milestone




-- 
===============
"



Other Threads

1. Unit testing context.sendBoardcast function

Hi,

I have the following test case which tests context.sendBoardcast() function:

public void testInstallFavorite() {
                Context context = getContext();
                
                IntentFilter filter = new IntentFilter();
                
filter.addAction("com.android.launcher.action.INSTALL_SHORTCUT");
                
                context.registerReceiver(new DummyBoardcastReceiver(), filter);
        
               Intent installShortcut = new
Intent("com.android.launcher.action.INSTALL_SHORTCUT");
               context.sendBroadcast(installShortcut);

                // count is a dummy variable which increments by 1
when DummyBoardcastReceiver::onReceive() is called
                assertEquals(count, 1);
}

But the  DummyBoardcastReceiver::onReceive() is never get called.  Can
you please tell me why? or if there is a better way to unit test the
code?

private int count = 0;
        
        class DummyBoardcastReceiver extends BroadcastReceiver {

                @Override
                public void onReceive(Context context, Intent intent) {
                        
                        Intent shortCutIntent =
intent.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
                        assertNotNull(shortCutIntent);
                        count++;
                }
        }

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

2. Android TabActivity customization

In short, Android developers made it hard to customize TabActivity.
All previous attempts don't work with the latest API release.

If you've been thinking about it but couldn't figure out the right
way, here's one of the solutions:

http://tourizo.blogspot.com/2009/02/android-tabactivity-customization.html
--~--~---------~--~----~------------~-------~--~----~

3. Port the Android onto x86 device, but /dev/block/sda2 cannot be mounted as ext

4. Need help in writing unit test for parcelable object

5. My Dev Phone is dead!

6. Code Repository

7. audio flinger performance