@@ -0,0 +1,1467 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage my.home.lehome.asynctask;%0A%0A%0Aimport android.content.Context;%0Aimport android.nfc.NdefMessage;%0Aimport android.nfc.NdefRecord;%0Aimport android.nfc.Tag;%0Aimport android.nfc.tech.Ndef;%0Aimport android.os.AsyncTask;%0Aimport android.util.Log;%0A%0A/**%0A * Created by legendmohe on 15/12/29.%0A */%0Apublic class NfcWriteNdefAsyncTask extends AsyncTask%3CString, Void, Result%3E %7B%0A%0A    private static final String TAG = %22NfcWriteNdefAsyncTask%22;%0A%0A    private WeakReference%3CContext%3E mContext;%0A    private StateMachine mStateMachine;%0A    private Tag mTag;%0A%0A    public NfcWriteNdefAsyncTask(Context context, StateMachine statemachine, Tag tag) %7B%0A        mContext = new WeakReference%3CContext%3E(context);%0A        mStateMachine = statemachine;%0A        mTag = tag;%0A    %7D%0A%0A    @Override%0A    protected Result doInBackground(String... params) %7B%0A%0A    %7D%0A%0A    @Override%0A    protected void onPostExecute(Result result) %7B%0A        %0A    %7D%0A%7D%0A

Create NfcWriteNdefAsyncTask.java