We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
I don't think anyone with a phone running 2.x can run games. I have an HTC One or whatever (4 years old; got it from a friend) and I could never ever imagine playing a game on it. Even the home screen lags!
Facebook Does It Again. Cheating Dalvik
11–20 of 66 posts
Re: Facebook Does It Again. Cheating Dalvik
#12Re: Facebook Does It Again. Cheating Dalvik
#13We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
The new gradle build system really simplifies a lot of things in terms of the build cycle
Re: Facebook Does It Again. Cheating Dalvik
#14We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
I don't think anyone with a phone running 2.x can run games. I have an HTC One or whatever (4 years old; got it from a friend) and I could never ever imagine playing a game on it. Even the home screen lags!
Card Games: Gingerbread (14%)
Re: Facebook Does It Again. Cheating Dalvik
#15I'm a bit confused by this article, the author mentions: While the official standard way to to fix this problem is described in the offical Android Blog. Seems like Facebook missed it. What a waste. However, in the post linked by facebook, they explain why they couldn't use it (vaguely) After a bit of panic, we realized that we could work around this problem by breaking our app into multiple dex files, using the tech…
Re: Facebook Does It Again. Cheating Dalvik
#16Note that the Facebook blog post about this hack is from 4 March 2013, i.e. more than a year ago.
Re: Facebook Does It Again. Cheating Dalvik
#17We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
If it's too much of a hassle to make your app work on Gingerbread, just don't bother with it anymore. I bet Google themselves will end all support for Gingerbread next year when version M comes out (as they should). It just doesn't make sense to support it longer than that, and by then the market share of Gingerbread should be under 15-20 percent, too. Gingerbread is the XP of Android - an old popular version, right…
Are they requiring anything from carriers or phone shops, though? Because everywhere in my town is still selling Gingerbread devices to anyone that doesn't know better.
Re: Facebook Does It Again. Cheating Dalvik
#18There's a weird and arbitrary limitation in Dalvik, and the Facebook guys needed to work around it. The author makes it sound like it's some horrible sin. How about shaming the Google developers who thought 65k methods was enough for anyone? Wouldn't be good proper either, because they probably had a good reason for it. Software development isn't always stacking neat abstractions on top of each other. Sometimes you h…
Re: Facebook Does It Again. Cheating Dalvik
#19We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
I don't think anyone with a phone running 2.x can run games. I have an HTC One or whatever (4 years old; got it from a friend) and I could never ever imagine playing a game on it. Even the home screen lags!
Re: Facebook Does It Again. Cheating Dalvik
#20We have this problem. We have a large, mostly-Java game for Android. It won't run on gingerbread, because we just have too much code. While the official solution looks quite brief, retrofitting it is a nightmare. Unless Facebook got around to rewriting everything again, I can understand why they'd do it their way.
There is a way: https://github.com/creativepsyco/secondary-dex-gradle The new gradle build system really simplifies a lot of things in terms of the build cycle