당신은 POST를 사용하여 웹 서버에 컴퓨터에서 데이터를 전송하는 Python을 사용할 수
import urllib2, urllib
mydata = [('one','1')] #The first is the var name the second is the value
mydata = urllib.urlencode(mydata)
path = 'http://localhost/new.php' #The URL you want to POST to
req = urllib2.Request(path, mydata)
req.add_header("Content-type", "application/x-www-form-urlencoded")
page = urllib2.urlopen(req).read()
print page
하는 PHP를 사용하여 서버에있는 파일에 쓰기 : 이제 개발
<?php
$file = "path/to/file/here" ;
file_put_contents($file, $_POST['one'], FILE_APPEND | LOCK_EX);
?>
당신의 파일에서 값을 읽는 Android 앱. 모든 데이터를 저장해야하거나 데이터를 바꾸려면 추가 또는 다른 것을 사용하십시오.
그렇지 않으면 기기간에 직렬 데이터를 전송하기 위해 Bluetooth 연결을 사용할 수 있습니다. Bluetooth (ANdroid 개발자)를 참조하십시오.
또한 Simple Android and Java Bluetooth Application에 관심 Data transfer between Android and Arduino via Bluetooth에있을 수 있습니다.
어떻게 Android 앱을 개발하고 싶습니까? 많은 것은 그것에 달려있다! – Anze
무엇을 의미합니까? 이클립스와 자바 안드로이드 애플 리케이션을 개발하고 싶습니다 –
그럼 왜 PHP가 아니라 자바 귀하의 질문 태그가? – stark