Android Open Source - Wordjambalaya Unknown Words






From Project

Back to project page Wordjambalaya.

License

The source code is released under:

GNU General Public License

If you think the Android project Wordjambalaya listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package nz.co.martinpaulo.wordjambalaya;
/*from  w w w .j  av a  2  s.c o  m*/
import android.content.Context;

import java.util.ArrayList;

/**
 * Created by martin paulo on 29/07/2014.
 */
public class UnknownWords {

    private static UnknownWords instance;
    private Context context;


    private ArrayList<UnknownWord> unknownWords;

    private UnknownWords(Context context) {
        this.context = context;
        unknownWords = new ArrayList<UnknownWord>();
    }

    public static UnknownWords getInstance(Context context, int numberOfWords) {
        if (instance == null) {
            instance = new UnknownWords(context);
        }
        for (int i = instance.getWords().size(); i < numberOfWords; i++) {
            final UnknownWord word = new UnknownWord();
            instance.unknownWords.add(word);
        }
        return instance;
    }

    public ArrayList<UnknownWord> getWords() {
        return unknownWords;
    }
}




Java Source Code List

nz.co.martinpaulo.wordjambalaya.ActivityJambalaya.java
nz.co.martinpaulo.wordjambalaya.ActivityResult.java
nz.co.martinpaulo.wordjambalaya.ApplicationTest.java
nz.co.martinpaulo.wordjambalaya.DictionaryTest.java
nz.co.martinpaulo.wordjambalaya.Dictionary.java
nz.co.martinpaulo.wordjambalaya.FragmentAnswer.java
nz.co.martinpaulo.wordjambalaya.FragmentResult.java
nz.co.martinpaulo.wordjambalaya.FragmentUnknownWords.java
nz.co.martinpaulo.wordjambalaya.UnknownWord.java
nz.co.martinpaulo.wordjambalaya.UnknownWords.java
nz.co.martinpaulo.wordjambalaya.WordDrawingView.java
nz.co.martinpaulo.wordjambalaya.WordLengthPicker.java