added a temp widget icon
This commit is contained in:
@@ -12,6 +12,8 @@ public final class R {
|
|||||||
}
|
}
|
||||||
public static final class drawable {
|
public static final class drawable {
|
||||||
public static final int icon=0x7f020000;
|
public static final int icon=0x7f020000;
|
||||||
|
public static final int sign_post_icon=0x7f020001;
|
||||||
|
public static final int sign_post_icon_mod=0x7f020002;
|
||||||
}
|
}
|
||||||
public static final class id {
|
public static final class id {
|
||||||
public static final int authCode=0x7f060002;
|
public static final int authCode=0x7f060002;
|
||||||
|
|||||||
BIN
TravelPost/res/drawable/sign_post_icon.png
Normal file
BIN
TravelPost/res/drawable/sign_post_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
BIN
TravelPost/res/drawable/sign_post_icon_mod.png
Normal file
BIN
TravelPost/res/drawable/sign_post_icon_mod.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
@@ -4,9 +4,9 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
>
|
>
|
||||||
<Button
|
<ImageButton
|
||||||
android:id="@+id/widgetbutton"
|
android:id="@+id/widgetbutton"
|
||||||
android:text="Post"
|
android:background="@drawable/sign_post_icon_mod"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ public class LocationService extends Service implements LocationListener {
|
|||||||
private WakeLock mWakeLock;
|
private WakeLock mWakeLock;
|
||||||
private Location mLocation;
|
private Location mLocation;
|
||||||
private int mStartId;
|
private int mStartId;
|
||||||
|
private Notification mNotification;
|
||||||
|
private NotificationManager mNotificationManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this runnable will be qued when the service is created. this will be used as a fail safe
|
* this runnable will be qued when the service is created. this will be used as a fail safe
|
||||||
@@ -55,10 +57,6 @@ public class LocationService extends Service implements LocationListener {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private Notification mNotification;
|
|
||||||
|
|
||||||
private NotificationManager mNotificationManager;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* a convince method for starting the service
|
* a convince method for starting the service
|
||||||
* @param context
|
* @param context
|
||||||
|
|||||||
Reference in New Issue
Block a user