摘要:
public class MainActivity extends Activity { private EditText studentno; private ServiceConnection conn = new StudentServiceConnection(); private IStundent iStundent; private TextView resultView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(save... 阅读全文
摘要:
public class PhoneService extends Service { @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { super.onCreate(); TelephonyManager telephonyManager = (TelephonyManager) getSys... 阅读全文
摘要:
/** * 采用FTP上传文件 */public class FTPUpload { Socket socket = null; BufferedReader reader = null; BufferedWriter writer = null; public synchronized void connect(String host) throws IOException { connect(host, 21); } public synchronized void connect(String host, int port) th... 阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
Activity是系统组件,所以每个Activity都要在清单文件中进行配置。 阅读全文