Tool: Eclispe
Tool: Sublime Text 3
Tool: Linux Mint
Tool: Linux Mint
find your personal item with your smartphone
Adviser: Prof. SHIH-TSUNG LIANG
Personal items are always nowhere to be found
Tool: Eclispe
Tool: LAMP on Linux Mint Server
Tool: ibeacon
Server
Items
Fragment
Phone
Fragment
Profile
Fragment
FragmentActivity
ibeacon
PHP & MySQL
Bluetooth
xml
Fragments
FragmentActivity
class Update extends AsyncTask<String, String, String> {
protected void onPreExecute() {
}
protected String doInBackground(String... args) {
}
protected void onPostExecute(String file_url) {
}
}
public void update() {
new Update().execute();
}
// prompt user to wait
// run
// acknowledge
private PagerAdapter pagerAdapter;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
pagerAdapter = new PagerAdapter(getSupportFragmentManager());
viewPager.setAdapter(pagerAdapter);
}
ItemsFragment
PhoneFragment
ProfileFragment
_beacons = new ArrayList<IBeacon>();
.ArrayList
.BluetoothAdapter.LeScanCallback
private BluetoothAdapter.LeScanCallback mLeScanCallback
= new BluetoothAdapter.LeScanCallback()
{
int newDistance = (int)calculateDistance(
newBeacon.getPowerValue(), rssi);
}
.iBeacon
.Edit
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("value", value));
1. ArrayList
2. JSONParser → makeHTTPRequest
3. PHP & MySQL
JSONObject json =jParser.makeHttpRequest(url,"POST",params);
$result = mysql_query("SELECT * FROM items
where user_id = '$user_id'")
.OFF → ON → 15% →BatteryService
1. GPS
locationManager = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation
(LocationManager.NETWORK_PROVIDER);
geocoder = new Geocoder(this, Locale.getDefault());
addresses = geocoder.getFromLocation(latitude, longitude, 1);
2. Location ← Longitude + Latitude
3. Google Map
.Edit
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("values", values));
1. ArrayList
2. JSONParser → makeHTTPRequest
3. PHP & MySQL
JSONObject json =jParser.makeHttpRequest(url,"POST",params);
$result = mysql_query("SELECT * FROM user_info
where user_id = '$user_id'")
Lost and Found
Python & Html & Css & JavaScript
under Prof. Chuan-Ju Wang
under Prof. SHIH-TSUNG LIANG
USA
Technology firm