Sony should create mini tutorials as usable for things like this u.u
/**
* This is an example of how to update the entire layout and some of the
* views. For each view, a bundle is used. This bundle must have the layout
* reference, i.e. the view ID and the content to be used. This method
* updates an ImageView and a TextView.
*
* @see Control.Intents#EXTRA_DATA_XML_LAYOUT
* @see Registration.LayoutSupport
*/
private void updateLayout() {
mCount = 0;
mIconImage = true;
String caption = mContext.getString(R.string.text_tap_to_update);
// Prepare a bundle to update the button text.
Bundle bundle1 = new Bundle();
bundle1.putInt(Control.Intents.EXTRA_LAYOUT_REFERENCE, R.id.btn_update_this);
bundle1.putString(Control.Intents.EXTRA_TEXT, caption);
// Prepare a bundle to update the ImageView image.
Bundle bundle2 = new Bundle();
bundle2.putInt(Control.Intents.EXTRA_LAYOUT_REFERENCE, R.id.image);
bundle2.putString(Control.Intents.EXTRA_DATA_URI,
ExtensionUtils.getUriString(mContext, R.drawable.icon_extension48));
Bundle[] bundleData = new Bundle[2];
bundleData[0] = bundle1;
bundleData[1] = bundle2;
showLayout(R.layout.layout, bundleData);
}