Skip to content

Commit

Permalink
Fixing activity so the keyboard doesn't pop up at the incorrect times.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlkalberer committed May 16, 2013
1 parent 00bba29 commit c43ffd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
android:name="com.tappt.android.Tap"
android:label="@string/title_activity_tap"
android:parentActivityName="com.tappt.android.MainActivity"
android:windowSoftInputMode="adjustResize|stateVisible" >
android:windowSoftInputMode="stateAlwaysHidden" >"
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.tappt.android.MainActivity" />
Expand All @@ -55,7 +55,8 @@
<activity
android:name="com.tappt.android.WriteTag"
android:label="@string/title_activity_write_tag"
android:parentActivityName="com.tappt.android.AuthenticateUserForTag" >
android:parentActivityName="com.tappt.android.AuthenticateUserForTag"
android:windowSoftInputMode="stateAlwaysHidden" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.tappt.android.AuthenticateUserForTag" />
Expand Down
4 changes: 3 additions & 1 deletion src/com/tappt/android/Tap.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private NdefRecord createApplicationRecord(byte[] payload)
byte[] mimeBytes = new String("application/" + this.getPackageName()).getBytes(Charset.forName("US-ASCII"));

//return NdefRecord.createMime(mimeType, mimeBytes);
NdefRecord mimeRecord = new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, mimeBytes, new byte[0], payload);
NdefRecord mimeRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, null, payload);
return mimeRecord;

}
Expand Down Expand Up @@ -139,6 +139,8 @@ protected void onPostExecute(final String success) {
mNfcAdapter.setNdefPushMessageCallback(Tap.this, Tap.this);
} else {
// show error
Toast.makeText(Tap.this, "Could not get authentication key. The service may be down.", Toast.LENGTH_LONG).show();
finish();
}
}

Expand Down

0 comments on commit c43ffd0

Please sign in to comment.