in the methods onClick(), onLongClick(), and rollDice() i added the following:
try {
mCurrent = Integer.parseInt(dice.getText().toString());
} catch (NumberFormatException e) {
e.printStackTrace();
}
this finished the updated user input methods, based on the Android source code. the new input methods will only except numbers for entry. also the long press function
now increments / decrements the amount of dice every 300 ms.
i incremented the version / build number
from 1.0.0b12 to 1.0.1b13
25 lines
990 B
XML
Executable File
25 lines
990 B
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.TwentyCode.android.ExaltedDice"
|
|
android:versionCode="12" android:versionName="1.0.1">
|
|
<application android:icon="@drawable/icon" android:label="@string/app_name">
|
|
<activity android:name=".ExaltedDice"
|
|
|
|
android:label="@string/app_name">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<meta-data android:value="a14bad63772f7d3" android:name="ADMOB_PUBLISHER_ID" />
|
|
|
|
</application>
|
|
<uses-sdk android:minSdkVersion="3" />
|
|
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
</manifest>
|
|
|
|
<!-- android:screenOrientation="portrait" --> |