I added one more game, cricket.
This game may not be popular in the hard darts game, but major one in the digital darts.
But one option remains, the mark handy-cap is new feature. It will be supported in the next version.
2011年7月29日金曜日
2011年7月14日木曜日
Small banner in the application detail page
When you browse the application detail page with Android browser, there is a small banner in left-top.
That banner is specified as a small promotion icon in the developer console.
I didn't set the promotion icon because it was option. But it is necessary to show the application detail page better.
2011年7月12日火曜日
kidz darts counter version 1.0 released
I released my first application, "kidz darts counter" version 1.0 on Android market.
https://market.android.com/details?id=jp.kidz.dartscounter
https://market.android.com/details?id=jp.kidz.dartscounter
initial focus in views
The description "requestFocus" is prepared for Android layout file. But button view cannot focused by only that description. You need to set the "focusableInTouchMode" attribute true.
<Button
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:text="Start Zero-One"
android:id="@+id/startZo"
android:focusableInTouchMode="true">
<requestFocus/>
</Button>
Add one more game
I could add one more game, zero-one game on the application. It's the most major game of darts.
Relatively, coding zero-one game is easy, with using the module of count-up game.
So now, I decide to upload my application on the Android market.
Now I'm building it with sign, preparing the promotion icon and note, and testing more.
Relatively, coding zero-one game is easy, with using the module of count-up game.
So now, I decide to upload my application on the Android market.
Now I'm building it with sign, preparing the promotion icon and note, and testing more.
2011年7月11日月曜日
avoiding an exception with the back key
When the back key is pushed at the activity called by startActivityForResult(), the application will be stopped with an exception. Then you need to override onBackPressed() and call setResult() in it.
Like this;
Like this;
@Override
public void onBackPressed(){
Intent result = new Intent();
Spinner rounds = (Spinner)this.findViewById(R.id.CuNumRound);
result.putExtra("ROUNDS", Integer.parseInt((String)rounds.getSelectedItem()));
CheckBox bonus = (CheckBox)this.findViewById(R.id.CuBullBonus);
result.putExtra("BULLBONUS", bonus.isChecked());
setResult(RESULT_OK, result);
super.onBackPressed();
}
Dialog activity
Android can create two types of dialog.
Dialog can be created temporary in the code.
One more, dialog can be created as an activity.
Like this in AndroidManifest.xml;
Dialog can be created temporary in the code.
One more, dialog can be created as an activity.
Like this in AndroidManifest.xml;
<activity android:name=".SetupCuActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Dialog">
</activity>
登録:
投稿 (Atom)