Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66dc57ac authored by Pedro Veloso's avatar Pedro Veloso Committed by Chirayu Desai
Browse files


Squashed commit of the following:

commit 8590cd7d6ab668d1ff3f7fa9150cd98700497aa6
Merge: 046d631 44e1957
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 23:30:05 2013 +0100

    Merge branch 'jellybean' of github.com:freexperia/android_packages_apps_FMRadio into jellybean

commit 046d6318a762d2e53aebb9a10dd9adb153545932
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 23:28:48 2013 +0100

    Implement first time FM Band selection

commit 44e19571b2038f4c462333a3bf04c9f926d7fa23
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 19:47:21 2013 +0100

    implement earplug start verification

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit 0af8bc425acd3840611c7c716991ab365acd29ee
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 19:25:31 2013 +0100

    better preferences handling. set preferences for future functionality

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit 00283853fec5c975e0a023fbea68449818279305
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 19:09:12 2013 +0100

    remove Stereo listener on destroy

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit d3ac23f55931deac1116d83740c5fc7d4d5824c2
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 19:05:27 2013 +0100

    update README

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit a2a55ac3c753dc56aba05a9bca35f8bbef17e9cc
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 18:48:58 2013 +0100

    conclude full RDS implementation according to RDS standards. update TODO

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit 44da0cf392be293785fd36916dee1e9778ae9c32
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 18:20:25 2013 +0100

    add Stereo/Mono display listener. some code cleanup

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit f9b18151eaf42ca5b69081f3e0bc92b3b20707f9
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 18:04:35 2013 +0100

    clear RDS text on frequency change

    Signed-off-by: default avatarPedro Veloso <pedro.n.veloso@gmail.com>

commit ab7b56845410a20e2689f0e2ba0d40f694e849c6
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 17:56:56 2013 +0100

    fix radio state when layout rotates

commit 82ba3c53fc7d7515db698688e5df518c40fcf295
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 17:47:31 2013 +0100

    fix seek up, seek down and full scan behaviour

commit 67b77dacbbacb4d435397867b2b110fcfc159127
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 16:09:25 2013 +0100

    centralized app preferences

commit 43a9e56581fb7e3d29faf0efb4637c57c0ed428a
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sun Apr 14 15:59:40 2013 +0100

    small code enhancement and cleanup

commit e8d4dcebd111562ab5726baed8707831d09a7eaf
Author: Pedro Veloso <pedro.n.veloso@gmail.com>
Date:   Sat Apr 13 21:04:19 2013 +0100

    more coherent version numbering on manifest

Change-Id: I3eb9446b4233aae3c211923dd82db4fad6a9acc5
parent 4007d423
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.cyanogenmod.fmradio"
          android:versionCode="1"
          android:versionName="1.0">
          android:versionCode="2"
          android:versionName="0.2">

    <uses-sdk
            android:minSdkVersion="14"
@@ -10,20 +10,26 @@

    <uses-permission android:name="com.stericsson.permission.FM_RADIO_TRANSMITTER"/>
    <uses-permission android:name="com.stericsson.permission.FM_RADIO_RECEIVER"/>
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>

    <application
            android:icon="@drawable/radio"
            android:theme="@style/fmapp_style"
            android:label="@string/app_name">
        <activity
                android:name=".screens.FmRadioReceiver"
                android:label="@string/app_name">
                android:name=".screens.BandSelectionScreen"
                android:noHistory="true"
                android:configChanges="keyboard|orientation|screenSize|screenLayout">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>

        <activity
                android:name=".screens.FmRadioReceiver"
                android:label="@string/app_name"
                android:configChanges="keyboard|screenSize|orientation|screenLayout"/>
        <activity android:name=".screens.PreferencesScreen"/>

    </application>
</manifest>
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ To-Do list
* Add resolution independent resources
* Add notification bar support
* Add Launcher Widget ?
* Fix (mono/stereo) display
* Add Preferences
* Add About
* Implement earplugs onStart verification
 No newline at end of file
* Restore play after call
* Implement ability to play trough device speakers
 No newline at end of file
+59 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent">

    <TextView
            android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="@string/band_select_title"
                android:layout_margin="@dimen/default_padding"/>


    <RadioGroup
        android:id="@+id/rg_band"
        android:layout_margin="@dimen/default_padding"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="1">

        <RadioButton
            android:id="@+id/rb_usa"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:checked="true"
            android:text="@string/band_us" />

        <RadioButton
                    android:id="@+id/rb_eu"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/band_eu" />

        <RadioButton
                    android:id="@+id/rb_ch"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/band_ch" />

        <RadioButton
                    android:id="@+id/rb_ja"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/band_ja" />

    </RadioGroup>


    <Button
        android:id="@+id/btn_next"
        android:layout_margin="@dimen/default_padding"
        android:layout_width="match_parent"

        android:layout_height="wrap_content"
        android:text="@string/proceed" />


</LinearLayout>
 No newline at end of file
+13 −1
Original line number Diff line number Diff line
@@ -16,7 +16,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="app_name">FM Radio</string>
    <string name="band_select">Select Band</string>
    <string name="band_us">U.S</string>
    <string name="band_select_title">Please select your FM region:\n(this screen will only be shown once, but you
    can change this value later from the preferences menu.)</string>
    <string name="proceed">Proceed</string>
    <string name="band_us">U.S.</string>
    <string name="band_eu">Europe</string>
    <string name="band_ja">Japan</string>
    <string name="band_ch">China</string>
@@ -34,4 +37,13 @@
    <string name="unable_to_start_radio">Unable to start the radio receiver.</string>
    <string name="unable_to_mediaplayer">Unable to start Android\'s MediaPlayer</string>
    <string name="mediaplayer_busy">MediaPlayer busy. Please wait and try again.</string>
    <string name="earplugs_not_connected">Earplugs must be plugged in to use this application!</string>

    <!-- Preferences -->
    <string name="preferences">Preferences</string>
    <string name="pref_notification_bar_title">Use Notification Control</string>
    <string name="pref_print_debug_info_title">Output verbose logcat</string>

    <!-- About -->
    <string name="about">About</string>
</resources>
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory android:title="@string/preferences">

        <CheckBoxPreference
                android:key="use_notification_bar"
                android:title="@string/pref_notification_bar_title"
                android:defaultValue="true"/>


        <CheckBoxPreference
                android:key="print_debug_info"
                android:title="@string/pref_print_debug_info_title"
                android:defaultValue="false"/>


        <PreferenceScreen
                android:title="@string/about">
            <intent android:action="android.intent.action.FM_ABOUT"/>
        </PreferenceScreen>

    </PreferenceCategory>
</PreferenceScreen>
 No newline at end of file
Loading