New mailing list for Android Audio Developers

by Olivier Guilyardi » Mon, 17 Jan 2011 16:32:19 GMT


Sponsored Links
 Hi everyone!

I am glad to announce the creation of the andraudio mailing list, dedicated to
audio development on Android, at: andrau...@music.columbia.edu

More info and subscribing:  http://music.columbia.edu/mailman/listinfo/andraudio 

This list is meant to be a place to discuss about audio development, in the
context of music and sound applications, but also games and other apps which use
audio on Android.

Discussions and questions about both Java and native APIs are welcome.

In addition to application-level topics, we are interested in discussing about
Android audio system internals, for educational purposes, as well as finding new
ways to work with sound on Android.

So please come and join us if audio development on Android interests you.

--
  Olivier

-- 
.



Re: New mailing list for Android Audio Developers

by Martin Jernberg » Sun, 23 Jan 2011 07:36:28 GMT


 joined that mailinglist, as me thinks this is fun :)




-- 
.


Sponsored Links


Other Threads

1. Retreiving Preferences

I am using a CountDownTimer which is set by a alarm_delay_keys value:

public void arming() {
        // changing system_state textview
        tvSystemState = (TextView) findViewById(R.id.system_state);
        tvSystemState.setText(R.string.system_state_arming);
        // starting countdown
        settings = getPrefs();
        seconds = Integer.parseInt(settings.getString("alarm_delay_keys",
"30"));
        alarmDelay = seconds * 1000;
        CountDown counter = new CountDown(alarmDelay,1000);
        counter.start();
}

public SharedPreferences getPrefs() {
//      PreferenceManager pm = pa.getPreferenceManager();
//      settings = pm.getSharedPreferences();
//      settings = this.getPreferences(0);
//      settings = PreferenceManager.getDefaultSharedPreferences(this);
        settings = PreferenceManager.getDefaultSharedPreferences
(getBaseContext());
        return settings;
}

public class CountDown extends CountDownTimer {
        private TextView tvCountDown = (TextView) findViewById
(R.id.progress);
        private TextView tvSystemState = (TextView) findViewById
(R.id.system_state);

        public CountDown(long millisInFuture, long countDownInterval) {
                super(millisInFuture, countDownInterval);
        }

        @Override
        public void onFinish() {
        tvSystemState.setText(R.string.system_state_armed);
        tvCountDown.setText(R.string.armed);
        }

        @Override
        public void onTick(long millisUntilFinished) {
                tvCountDown.setText(millisUntilFinished/1000 + " seconds until
Armed");

        }

Here's a snippet of the res/values/arrays.xml:

        <string-array name="alarm_delay_keys">
                <item>15 seconds</item>
                <item>30 seconds</item>
                <item>1 minute</item>
                <item>5 minutes</item>
                <item>15 minutes</item>
        </string-array>
        <string-array name="alarm_delay_values">
                <item>15</item>
                <item>30</item>
                <item>60</item>
                <item>300</item>
                <item>900</item>
        </string-array>

and the snippet from res/xml/preferences.xml:

                <ListPreference
                        android:key="alarm_delay_list"
                        android:title="Alarm Delay"
                        android:summary="Click to change the alarm delay"
                        android:entries="@array/alarm_delay_keys"
                        android:entryValues="@array/alarm_delay_values"
                        android:dialogTitle="Choose your alarm delay\n(default 
is 1
minute)"
                        android:defaultValue="60"
                />

If I change the value in the options menu, the radio gets set to the
correct value. The timer works, but keeps using the default value of
30 no matter what I set the value to in the options menu.

I assume this means I am not retreiving the preferences, since the
default value is set at:
        seconds = Integer.parseInt(settings.getString("alarm_delay_keys",
"30"));

As you can see above, I tried several variations for calling
PreferenceManager, but these did not make a difference.

--~--~---------~--~----~------------~-------~--~----~

2. Communication over USB with Program on Computer

Goal: Send Data from the phone to the computer (and the other way)
using only the USB cable. We need this to synchronize data between the
a program on the android phone and a program on the computer. Over
Wifi is not an option. It has to work over the USB cable.

We need this for a university project and would be glad if anyone
could enlighten us on this matter.

Thank you already for the help.

Greetings
Patrick Boos

--~--~---------~--~----~------------~-------~--~----~

3. build android-msm-2.6.27 and met an error

4. possible leak in orientation change?

5. Virtual keyboard obscures EditText

6. ArrayAdapter.add() within a TimerTask

7. problem sending email programaticaly, find to and subject fields empty.