added required information into travelpostwidgetinfo.xml TravelPostWidget.java created onReceive(), onUpdate(), onDestroy() added debug logs to TravelPostWidget.java added TravelPostWidget.java to the AndroidManifest.xml got the widget button to start the service via a pending intent basic testing seems to be all working, i need to run some more test on the service befor i call it done
14 lines
389 B
XML
14 lines
389 B
XML
<?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"
|
|
>
|
|
<Button
|
|
android:id="@+id/widgetbutton"
|
|
android:text="Post"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
</LinearLayout>
|