Skip to content

Instantly share code, notes, and snippets.

public void onListingInfoPanelClick(View view) {
Intent dynamicIntent;
try {
dynamicIntent = new Intent(this, Class.forName("PropertyDetailsActivity"));
dynamicIntent.putExtra("listing", listing);
startActivity(dynamicIntent);
} catch (ClassNotFoundException e) {
// Broken world
}
}
public void onListingInfoPanelClick(View view) {
Intent dynamicIntent;
try {
dynamicIntent = new Intent(this, Class.forName("PropertyDetailsActivity"));
dynamicIntent.putExtra("listing", listing);
startActivity(dynamicIntent);
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
<plurals name="x_guests">
<item quantity="one">%1$d guest</item>
<item quantity="few">%1$d guests</item>
<item quantity="many">%1$d guests</item>
<item quantity="other">%1$d guests</item>
</plurals>
<plurals name="x_guests">
<item quantity="one">@string/x_guests_one</item>
<item quantity="few">@string/x_guests_few</item>
<item quantity="many">@string/x_guests_many</item>
<item quantity="other">@string/x_guests_other</item>
</plurals>
<string name="x_guests_few">%1$d guests</string>
<string name="x_guests_many">%1$d guests</string>
<string name="x_guests_one">%1$d guest</string>