-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preference layout changed, USB Baud rate added
- Loading branch information
Paku-
committed
Jan 28, 2014
1 parent
761a8ed
commit 47121ae
Showing
12 changed files
with
414 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<resources> | ||
<string-array name="pref_usb_baud_entries"> | ||
<item>"57600"</item> | ||
<item>"115200"</item> | ||
</string-array> | ||
<string-array name="pref_usb_baud_entriesValues"> | ||
<item >"57600"</item> | ||
<item >"115200"</item> | ||
</string-array> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
MavLinkHUB/src/com/paku/mavlinkhub/fragments/FragmentSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
package com.paku.mavlinkhub.fragments; | ||
|
||
import com.paku.mavlinkhub.HUBGlobals; | ||
import com.paku.mavlinkhub.R; | ||
import android.os.Bundle; | ||
import android.preference.EditTextPreference; | ||
import android.preference.PreferenceFragment; | ||
|
||
public class FragmentSettings extends PreferenceFragment { | ||
|
||
protected HUBGlobals hub; | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
hub = (HUBGlobals) getActivity().getApplication(); | ||
|
||
// Load the preferences from an XML resource | ||
addPreferencesFromResource(R.xml.preferences); | ||
|
||
EditTextPreference logFolderPref = (EditTextPreference) findPreference("pref_log_mavlink_folder"); | ||
logFolderPref.setSummary(hub.getExternalFilesDir(null).getAbsolutePath()); | ||
|
||
//ListPreference pref = (ListPreference) findPreference("thePreferencesKey"); | ||
|
||
} | ||
|
||
} |
152 changes: 0 additions & 152 deletions
152
MavLinkHUB/src/com/paku/mavlinkhub/mavlink/MavLinkClassExtractor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.