i made PostActivity.java to get users input after a widget click i added post options to the settings.xml TravelPostWidget.java i added an if block to check users settings for posting LocationReceiver.java i made a convince method for posting and added an if block that generates a post base on users settings
25 lines
1.1 KiB
XML
25 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/app_name">
|
|
<PreferenceCategory android:title="@string/post_settings">
|
|
<CheckBoxPreference android:title="@string/save_a_post" android:key="save_a_post"></CheckBoxPreference>
|
|
<EditTextPreference android:key="saved_post" android:title="Post" android:dependency="save_a_post"></EditTextPreference>
|
|
</PreferenceCategory><PreferenceCategory
|
|
android:title="@string/services">
|
|
<Preference
|
|
android:title="@string/twitter_signin"
|
|
android:key="twitter_sign_in"/>
|
|
<Preference
|
|
android:title="@string/fb_signin"
|
|
android:key="facebook_sign_in"/>
|
|
</PreferenceCategory>
|
|
<PreferenceCategory
|
|
android:title="@string/location_settings">
|
|
|
|
</PreferenceCategory><PreferenceCategory android:title="@string/about">
|
|
<com.TwentyCodes.android.TravelPost.TextViewPreference android:title="@string/hello"/>
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|