Files
MINDdroidCV/MINDdroidCV_MINDSTORMS/bin/com/lego/minddroid/NXJUploader.class

99 lines
8.9 KiB
Plaintext
Raw Normal View History

2011-10-12 13:16:02 +02:00
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<01>com/lego/minddroid/NXJUploaderandroid/app/Activity'com/lego/minddroid/UploadThreadListener!com/lego/minddroid/DialogListener
 com/lego/minddroid/BTConnectable
DIALOG_NXTI ConstantValue DIALOG_FILEpreinstalledNXJstring[Ljava/lang/String;REQUEST_CONNECT_DEVICE<03>REQUEST_ENABLE_BT<07>mNXT#Lcom/lego/minddroid/BTCommunicator; uploadThread!Lcom/lego/minddroid/UploadThread;handlerLandroid/os/Handler;progressDialogLandroid/app/ProgressDialog; uploadStatus runningDialogpairingZbtErrorPendingbtOnByUs<clinit>()VCode)java/lang/String+ AlphaRex.nxj- MINDGameZ.nxj /  1 $"LineNumberTableLocalVariableTable<init>
6 4& 8 #"this Lcom/lego/minddroid/NXJUploader;onCreate(Landroid/os/Bundle;)V
> ;<
A BCsetContentView(I)V
E F&
initLayoutH!com/lego/minddroid/BTCommunicator
JLK"android/bluetooth/BluetoothAdapter MNgetDefaultAdapter&()Landroid/bluetooth/BluetoothAdapter;
P QR getResources!()Landroid/content/res/Resources;
GT 4U|(Lcom/lego/minddroid/BTConnectable;Landroid/os/Handler;Landroid/bluetooth/BluetoothAdapter;Landroid/content/res/Resources;)V W Yandroid/os/Handler
X6 \ ^com/lego/minddroid/UploadThread
]` 4aK(Lcom/lego/minddroid/UploadThreadListener;Landroid/content/res/Resources;)V c 
]e fgsetBluetoothCommunicator&(Lcom/lego/minddroid/BTCommunicator;)V
]i j&startsavedInstanceStateLandroid/os/Bundle;onStart
o m&
Jq rs isEnabled()Zuandroid/content/Intentw/android.bluetooth.adapter.action.REQUEST_ENABLE
ty 4z(Ljava/lang/String;)V
| }~startActivityForResult(Landroid/content/Intent;I)V enableIntentLandroid/content/Intent; StackMapTable onDestroy
<00> <00>&
]<00> <00>& requestStop
isBtOnByUs setBtOnByUs(Z)V isPairing <00> !" showToast
<00><00><00>android/widget/Toast <00><00>makeTextJ(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
<00><00> <00>&showmessageLjava/lang/String;toastLandroid/widget/Toast;
<00><00> <00><00>3(Landroid/content/Context;II)Landroid/widget/Toast;resIDshowProgressDialog(Ljava/lang/String;II)V <00> <00>android/app/ProgressDialog
<00><00> 4<00>(Landroid/content/Context;)V
<00><00> <00>CsetProgressStyle
<00><00> <00><00> setCancelable
<00><00> <00><00>
setMessage(Ljava/lang/CharSequence;)V
<00><00> <00>CsetMax
<00><00> <00>C setProgress
<00><00> maxProgresscurrentProgress initializeddismissProgressDialog
<00><00> <00>&dismiss
<00> <00>& initNXTButton
<00> <00>&initFileButton
<00> <00>&initUploadButton
<00> <00><00> findViewById(I)Landroid/view/View;<00>android/widget/Button<00> com/lego/minddroid/NXJUploader$1
<00><00> 4<00>#(Lcom/lego/minddroid/NXJUploader;)V
<00><00> <00><00>setOnClickListener&(Landroid/view/View$OnClickListener;)V
fileButtonLandroid/widget/Button; <00> com/lego/minddroid/NXJUploader$2
<00><00> selectNXT<00>%com/lego/minddroid/DeviceListActivity
t<00> 4<00>-(Landroid/content/Context;Ljava/lang/Class;)V serverIntentshowFileDialog<00> com/lego/minddroid/NXJFileDialog
<00><00> 4<00><(Landroid/app/Activity;Lcom/lego/minddroid/DialogListener;)V
<00><00> <00><00>refreshFileList([Ljava/lang/String;)IO
<00> <00>C <00>
<00><00>
fileDialog"Lcom/lego/minddroid/NXJFileDialog; dialogUpdate <00>android/widget/TextView
<00><00> <00><00>setTexttexttextViewLandroid/widget/TextView; com/lego/minddroid/NXJUploader$3
<00> uploadButtonhandleUploadThreadUpdate  com/lego/minddroid/NXJUploader$4

 4$(Lcom/lego/minddroid/NXJUploader;I)V
X post(Ljava/lang/Runnable;)ZstatusshowUploadStatus   H
android/content/res/Resources  getString(I)Ljava/lang/String;
 <00>zI
]" #$ getFileLength()I
]& '$getBytesUploaded
) <00><00>
+ <00>&
]- .$ getErrorCodeQ
1 2&showBTErrorDialogLN
]6 7&resetErrorCode9android/app/AlertDialog$Builder
8<00>
8= >?setTitle;(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
8B <00>?
8D <00>E$(Z)Landroid/app/AlertDialog$Builder;GOKI com/lego/minddroid/NXJUploader$5
H<00>
8L MNsetPositiveButtonl(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
8P QRcreate()Landroid/app/AlertDialog;
T<00>Uandroid/app/AlertDialogbuilder!Landroid/app/AlertDialog$Builder;onActivityResult(IILandroid/content/Intent;)V
t[ \] getExtras()Landroid/os/Bundle; <00>_ `<00>DEVICE_NAME_AND_ADDRESS
bdcandroid/os/Bundle e&(Ljava/lang/String;)Ljava/lang/String;!
bh ij
getBoolean(Ljava/lang/String;)Z
m n&finish requestCode
resultCodedatainfosaccess$0
u <00>&access$1
x <00>&access$2C(Lcom/lego/minddroid/NXJUploader;)Lcom/lego/minddroid/UploadThread;access$3#(Lcom/lego/minddroid/NXJUploader;)Iaccess$4access$5
<01> &access$6$(Lcom/lego/minddroid/NXJUploader;Z)V
SourceFileNXJUploader.java InnerClassesBuilder<01>/android/content/DialogInterface$OnClickListener<01>android/content/DialogInterfaceOnClickListener<01>!android/view/View$OnClickListener<01>android/view/View!     
      !"#"
$"%&'F<05>(Y*SY,S<>.<03>0<>20 1/?)34&'<
*<2A>5*<03>7<>2)> )3 
9:;<'<00>Q*+<2B>=*?<3F>@*<2A>D*<2A>GY*<01>I*<2A>O<>S<>V*<2A>XY<58>Z<>[*<2A>]Y**<2A>O<>_<>b*<2A>b*<2A>V<>d*<2A>b<>h<>2& GH IL#M.O>PIQPR3Q9:Qklm&'m *<2A>n<>I<>p<><15>tYv<>xL*+ж{<7B>2VX YZ\3 9:<00><00><00>&'> *<2A><00>*<2A>b<><00><>2cf g3  9: <00>s'$<04>0<>2o3 <00><00>'3<1A>0<>2
wx3 $"<00>s'/*<2A><00><>23 9:<00>z'R *+<03><00>M,<2C><00><>2<00><00> <00>3  9: <00><00><00><00><00>C'R *<03><00>M,<2C><00><>2<00><00> <00>3  9: <00> <00><00><00><00>'<00>N6*<2A><00><>*6*<2A><00>Y*<2A><00><><00>*<2A><00><04><00>*<2A><00><03><00>*<2A><00>+<2B><00>*<2A><00><1C><00>*<2A><00><1D><00><04>
*<2A><00><><00><>22 <00><00>
<00> <00><00>!<00>)<00>1<00>9<00>A<00>F<00>M<00>34N9:N<00><00>N<00> N<00> K<00>"<00><02>1<00>z'|+*<2A><00><>&*<2A><00>Y*<2A><00><><00>*<2A><00><03><00>*<2A><00>+<2B><00>*<2A><00><><00><>2<00><00><00><00>#<00>*<00>3+9:+<00><00><00>*<00>&'S*<2A><00><>*<2A><00><><00>*<01><00><>2<00><00><00><00>3 9:<00>F&'C *<2A><00>*<2A><00>*<2A>DZ2<00><00><00> <00>3  9:<00>&'S*ʶ<00><><00>L+<2B><00>Y*<2A>Ӷֱ2<00>
<00><00>39:
<00><00><00>&'S*ܶ<00><><00>L+<2B><00>Y*<2A>߶ֱ2<00>
<00><00>39:
<00><00><00>&'P<14>tY*<12><><00>L*+<03><>{<7B>2<00> <00><00>39: <00><00><00>&'~'<27><00>Y**<2A><00>L+<2B>.<2E><00><> *<12><><00><> *<04><00>+<2B><00><>2<00>
<00><00><00>"<00>&<00>3'9:
<00><00><00> <02><00><00>z'<00>?*<2A><00><>:**<12><><00><><00>M,+<2B><00><>*<00><00><><00>M,+<2B><00><>2<00><00>&<00>+<00>.9>3*?9:?<00>&9<00><00>&'T*<04><00><><00>L+<2B>Y*<2A><07>ֱ2
 39: <00> C'J*<2A>[<5B>
Y*<1B> <0C>W<>2
&039: &'U<00>*<2A><15>H)**<2A>O<17><18><1E>&**<2A>O <20>*<2A>b<>!*<2A>b<>%<25>(<28>*<2A>**<2A>b<>,<2C>T!$<CM<>:*<2A><00><> */<2F><00><>)*<2A>0<>"*<2A>0<>*3<><00><>*<2A>0<>
*4<><00>*<2A>b<>5<>2b8:*;-=8>??F=I@LBPExG{I<00>J<00>L<00>M<00>O<00>P<00>R<00>S<00>U<00>V<00>X<00>Z<00>[3 <00>9:<00> ' 2&'<00>K*<2A>7<>F*<04>7<>8Y*<2A>:L+*<2A>O;<3B><18><*<2A>O@<40><18>A<03>CF<>HY*<2A>J<>KW+<2B>O<>S<>2"bc de#f4gCnJp3K9:5VW<00><01>JXY'{<1B>y<03><07>O<02>\-<2D>Z<>^<5E>a:*-<2D>Zf<>g<><00>*<12><><00><><00>:<04><00><>-<1C>)<29><><EFBFBD><EFBFBD><04>0<>*k<><00>*<2A>l<>26 tw!y-z;{F|M~P<01>h<01>l<01>o<01>v<01>z<01>3>{9:{o {p {q<00>- r<00>F<00>0
s<00>'%*<2A>t<>2<00>3v<00>'%*<2A>w<>2<00>3yz'%*<2A>b<>283{|'%*<2A><15>2;3}'&*<1B><15>2;3~<00>'%*<2A><>263<01><01>'&*<1B>7<>2>3<01><01><01>B8T<01> <01><01><01> <01><01><01> <00><00>
H