Back to project page MordazaCrush.
The source code is released under:
GNU General Public License
If you think the Android project MordazaCrush listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.confederacionpirata.mordazacrush.api; /*from www. ja va 2s . co m*/ import java.io.File; import java.util.ArrayList; import java.util.List; import android.location.Location; public class ChannelManager implements ActionListener { private List<ChannelProvider> channels; private static ChannelManager instance = null; private ChannelManager() { this.channels = new ArrayList<ChannelProvider>(); } public static ChannelManager getInstance() { if (instance == null) { instance = new ChannelManager(); } return instance; } public List<ChannelProvider> getChannels() { return channels; } public QueuedMessage[] sendImage(File file, String[] hashtags, Location location) { int channelsLength = channels.size(); QueuedMessage[] result = new QueuedMessage[channelsLength]; for (int c = 0; c < channelsLength; c++) { result[c] = channels.get(c).postImage(file, hashtags, location, this); } return result; } @Override public void onProgress(QueuedMessage message) { // TODO Auto-generated method stub } @Override public void onError(QueuedMessage message) { // TODO Auto-generated method stub } @Override public void onComplete(QueuedMessage message) { // TODO Auto-generated method stub } }