- 浏览: 49617 次
最新评论
文章列表
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jleo" android:versioncode="1" android:versionname="1.0"><application android:icon="@drawable/icon&quo ...
- 2010-03-25 16:28
- 浏览 630
- 评论(0)
public class TraceMe extends Activity {
private Button updateBtn;
private Button sendBtn;
private LocationManager locationManager;
private TextView utc;
private TextView dataStatus;
private TextView currentLatitude;
private TextView currentLontitude;
private TextView direction;
priv ...
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
updateBtn = (Button) this.findViewById(R.id.update);
sendBtn = (Button) this.findViewById(R.id.send);
utc = (TextView) this.findViewById(R.id.val_UTC);
da ...
protected void sendMyLocation(Location location) throws URISyntaxException, UnsupportedEncodingException {
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost("http://10.69.46.192:8088/gprmc/Data");
List<namevaluepair> postParams = new ArrayList&l ...
asssssssssssssssssssssssssssssssss
asssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssasssssssssssssssssssssssssssssssssassssssssssssssssssssssssss ...
<?xml version="1.0" encoding="utf-8"?><linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"><tablelayout ...
Mock LocationProvider - Structure/Explanation (NMEA, $GPRMC)
What is this: This tutorial shows how Mock LocationProviders are structured, so that you will be able to set up your own.
What you will learn: How a Mock LocationProvider (NMEA,$GPRMC) is built up.
Problems/Questions: post right belo ...
How Android Draws Views
When an Activity receives focus, it will be requested to draw its layout. The Android framework will handle the procedure for drawing, but the Activity must provide the root node of its layout hierarchy.
Drawing begins with the root node of the layout. It is requested to meas ...