Out of Memory Errors starting today (12/10/09)

by Dan Sherman » Fri, 11 Dec 2009 04:06:12 GMT


Sponsored Links
 One of our apps has been running just fine (a few FC's per day, around 10,
for various reasons).  We havent pushed an update in over two weeks, but all
of a sudden today, we've been getting a lot of complaints from users on G1s,
and are seeing a _ton_ of force-closes (175 so far today).  I know there was
a 2.0.1 update for Droid recently, but our complaints are coming from G1
users.

Did I miss something?  Anyone noticing similar issues?

- Dan

--



Other Threads

1. "On Android nobody is making s ignificant revenue.鈥???

It's been discussed before - currently, few make much off the Android
Market. A combination of lower phone sales, phones that target
consumers with less disposable income, no computer based App store,
less countries supported to buy apps, more rampant piracy due to
weaker DRM, and many more issues all contribute to make it difficult.

http://larvalabs.com/blog/iphone/android-market-sales/ has numbers
from a top Android game developer.




--

2. Has anyone got SEQUENCE_INVARIANT to work with a GestureLibrary?

I've been trying to figure out how to use a GestureOverlayView with my
application, and wanted to see if SEQUENCE_INVARIANT would make a
difference. That is, I do this:

gestureLib.setSequenceType(GestureStore.SEQUENCE_INVARIANT);

before trying to use gestureLib.recognize(). The short answer is that
it makes a difference, but the bad part is I haven't had one gesture
match to anything in my GestureLibrary when this option is set this
way, no matter how carefully I draw the input gesture. From the source
code of InstanceLearner.java it appears that the distance value
between vectors is calculated using Squared Euclidean instead of
Cosine when you use SEQUENCE_INVARIANT. Digging deeper than that
starts to hurt my brain so I thought I would post here to find out if
anyone has tried this, or know what SEQUENCE_INVARIANT is supposed to
do. I've tried this in the emulator on an Eclair 2.0 AVD and also on a
Motorola Droid. Here's relevant code from my Activity:

public class MainActivity extends Activity implements
OnGesturePerformedListener {
    private static final String TAG = "Gesture Revealer";
    GestureLibrary gestureLib = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        gestureLib = GestureLibraries.fromFile("/sdcard/gestures");
        if (!gestureLib.load()) {
            Toast.makeText(this, "Could not load /sdcard/gestures",
Toast.LENGTH_SHORT).show();
            finish();
        }

        // Here's where we can change the default values
        //gestureLib.setOrientationStyle
(GestureStore.ORIENTATION_INVARIANT);
        gestureLib.setSequenceType(GestureStore.SEQUENCE_INVARIANT);

        GestureOverlayView gestureView = (GestureOverlayView)
findViewById(R.id.gestureOverlay);
        gestureView.addOnGesturePerformedListener(this);
    }

        @Override
        public void onGesturePerformed(GestureOverlayView view, Gesture
gesture) {
            ArrayList<Prediction> predictions = gestureLib.recognize
(gesture);

            if (predictions.size() > 0) {
                Prediction prediction = (Prediction) predictions.get(0);
                if (prediction.score > 1.0) {
                    Toast.makeText(this, prediction.name,
Toast.LENGTH_SHORT).show();
                }
            }
        }
}

- dave

-- 

3. How to Build a Framework Library(JAR) and Use it in Eclipse.

4. ARCHOS 5 Android tablet and getExternalStorageDirectory()

5. Crashed Service not restarting

6. how i can use Settings.Secure.ADB_ENABLED and Settings.Secure.USB_MASS_STORAGE_ENABLED?

7. Problem in retrieving EditText field from alertdialog