Hi friends;

Have got a problem in my code and some how  confused of how t include
some of the features in the project. The project is about vehicle
tracking using android,when  I try to test the attached code it runs
with no error but the does not update the location to my current
position on the map but instead to either my initialized coordinates
of (0.0, 0.0) or if I send the Fake coordinates using the ddms it
takes me to that position on the map without updating to my current
location.
Another issue is that I wanted to include the speed at which the
vehicle is moving and the distance between the starting point and the
current position of the vehicle and the letting the phone send this
information to some remote server at the base station.

I have attached the code for any brother or sister that is ready to
help me understand how i can go about this problem to look at.
 THANK YOU VERY MUCH FOR YOUR HELP AND CONCERN

Regards John B

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Attachment: DetailForm.java
Description: Binary data

Attachment: EditPreferences.java
Description: Binary data

Attachment: FeedActivity.java
Description: Binary data

Attachment: FeedService.java
Description: Binary data

Attachment: HTTPFileUploader.java
Description: Binary data

Attachment: VehicleHelper.java
Description: Binary data

Attachment: VehicleList.java
Description: Binary data

Attachment: VehicleMap.java
Description: Binary data

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
  android:layout_width="match_parent"
  android:layout_height="wrap_content">
  <TableLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:stretchColumns="1"
    android:shrinkColumns="1"
    >
    <TableRow>
      <TextView android:text="Name:" />
      <EditText android:id="@+id/name" />
    </TableRow>
    <TableRow>
      <TextView android:text="Vehicle NO_:" />
      <EditText android:id="@+id/addr" />
    </TableRow>
    <TableRow>
      <TextView android:text="Vehicle Type:" />
      <RadioGroup android:id="@+id/types">
        <RadioButton android:id="@+id/take_out"
          android:text="Transit"
          android:checked="true"
        />
        <RadioButton android:id="@+id/sit_down"
          android:text="Site/field"
        />
        <RadioButton android:id="@+id/delivery"
          android:text="Depots"
        />
      </RadioGroup>
    </TableRow>
    <TableRow>
      <TextView android:text="Location:" />
      <TextView android:id="@+id/location" android:text="(not set)" />
    </TableRow>
    <EditText android:id="@+id/notes"
      android:inputType="textMultiLine"
      android:gravity="top"
      android:lines="2"
      android:scrollHorizontally="false"
      android:maxLines="2"
      android:layout_span="2"
      android:hint="Notes about the Vehicle"
      android:layout_marginTop="4dip"
    />
    <EditText android:id="@+id/feed"
      android:layout_span="2"
      android:hint="Feed URL[as the Phone Imei]"
    />
  </TableLayout>
</ScrollView>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android";
  android:layout_width="match_parent" 
  android:layout_height="match_parent">
  <ListView
    android:id="@android:id/list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
  />
  <TextView
    android:id="@android:id/empty"
    android:layout_width="match_parent" 
    android:layout_height="match_parent"
    android:text="Click the MENU button to add a Vehicle!"/>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
  xmlns:android="http://schemas.android.com/apk/res/android";
  android:id="@+id/map"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
 android:apiKey="0TldNsjKXQVYQN-PE7qWQK9bj63qv0lC_9-iJ8g"
  android:clickable="true" />
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal"
  android:padding="4dip"
  >
  <ImageView android:id="@+id/icon"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_alignParentTop="true"
    android:layout_alignParentBottom="true"
    android:layout_marginRight="4dip"
  />
  <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    > 
    <TextView android:id="@+id/title"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center_vertical"
      android:textStyle="bold"
      android:maxLines="1"
      android:ellipsize="end"
    />
    <TextView android:id="@+id/address"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:gravity="center_vertical"
      android:maxLines="1"
      android:ellipsize="end"
    />
  </LinearLayout>
</LinearLayout>

Reply via email to