我刚刚设置了我的debian挤压服务器。但是现在我遇到了一个小问题,我无法通过我的域(在本例中是example.com)访问服务器。
我还用Namec堆注册了一个名称服务器,它“连接”到我的服务器ip。
这是我的bind9 named.conf
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
我有一个应用程序,当用户在特定区域时发送通知。我正在实现LocationListener,在onLocationChanged方法中,我有类似这样的东西。
public void onLocationChanged(Location location) {
Cursor cursor = new DatabaseHelper(this).getAll(); //Gets data from database
while (cursor.moveToNext()) {
double lat = Double.valueOf(curs