yashsingh1/xdaforums huggingface dataset:
[Android Software Development] notthere:
this question is actually about a small network of things: what the default android framework permits, how users use it and what engines can do.

after getting into android programming, it soon seemed to me that the android framework would require me to manage a lot of things i simply don't want to put up with for a simple game (e.g. i don't care about managing intents, creating xml-layouts and stuff like that... slap a couple of images on the screen and i'm fine - well... basically), i started looking for game engines.

after almost a month of research and tests (with default framework, andengine and libgdx), i finally whipped up a little prototype of the game i want to program using libgdx in just two days.

but then i noticed something...

the following issue might make the last third of this post irrevelant:

this game runs at 70% cpu usage on my desktop. even though i would only need to render on user input (it's a puzzle game). so i'm guessing it would use 20 times (or whatever) the battery of the phone it actually should.

since it seems to me "render on demand" isn't possible with libgdx, i figured i'd take another stab working with the default android framework and hope that this doesn't redraw like crazy even though it's not needed.

if such a thing is simply impossible, please tell me and i'll just keep on working with libgdx.

now, the most compact open source game example to learn from that i found is this:

http://code.google.com/p/asqare/source/browse/#svn/trunk/a2

after i tried it out and studied the code, i was stunned by how much stuff is being handled for this very, very simple game (pretty much as simple as mine). so i counted the lines of code... ~4200! while my libgdx prototype has roughly 800. sure, it doesn't have a preferences menu, no about screen and doesn't handle what happens on things like pause/resume but even with those things i highly doubt i'd get anywhere near that amount of code.

so:

IF it is indeed possible to produce a full-screen android app that draws images only on demand, is it possible to do that in a less convoluted fashion than in that 4200 line example?

i'm hopeful that this guy has simply overdone it and i've just been looking in the wrong places for slim examples.
[Android Software Development] jug6ernaut:
Fyi I did not read 100% of your post, but I think I can help you out.

Imo do not waste your time with game engines. If you are serious about game dev then learn opengl. Its worth it.

With the glsurfaceview you can ether render on demand or as fast as possible. Also as with all opengl u have full control over what is rendered. If need be I can provide an example but it will have to wait a few days.
[Android Software Development] notthere:
actually, i've learned opengl in the past (but forgotten a lot already - didn't use those skills much) but a) i'll only do 2d games anyway and b) opengl isn't really the problem. getting to where i can actually render things is. and engines allow you to focus on gameplay/rendering without dealing too much with the whole setup and management of things.

i don't feel like libgdx takes control away from me, since i can still use all the opengl-commands i want. and i will definitely look up glsurfaceview and see how it fits into what i currently have. thanks!!

btw - i'm not really "serious". i'm a fulltime artist who happened to have learned about eight years of programming in the past and just wants to try to make a little extra on the side. and create some games i'd like to see but simply aren't out there yet.

and i don't want to spend more time programming all the management nonsense around it than the gameplay itself and working on the design.
[Android Software Development] pulser_g2:
I wouldn't rely on the cpu usage on the desktop. The emulator isn't efficient at all...
[Android Software Development] notthere:
libgdx is a multiplatform engine, so that cpu usage is based on the desktop-version.

but it does use continuous rendering and can't be switched to on demand. tried to extend the classes of the engine and adapt them so that it renders in on demand for the last three hours without success...

but i've found a neat blog post on the android developers website called "The Simplest GLSurfaceView Application" and hope that i'll be able to find my way from there. after all, i now already at least have a nice full screen canvas with just 54 lines of code... that's something i did not expect i would ever see happening.
[Sony Ericsson XPERIA X10 Mini] zen kun:
hi i have a xperia mini pro (in fact isnt mine its belongs to my friend), so i try flashing but i cant,not sure why, i own an atrix, and i used have a n1 so i have experience flashing mods and so on.i have 006radio so i want upgrade to 015 so i can flash CM 6 ,but using SEUS says i have latest verision, i DL then flashtools and 2 tft for sony ericcson x10i (mine its E10i) but i cant i try several things change ports reboot pc and i get error of flash (i have the drivers) so any help would be nice. or maybe im tryng flash a bad tft for my phone??? thanks a lot

ps. here is a SS
[Sony Ericsson XPERIA X10 Mini] leftAlone:
From the screenshot, it seems you need to enable USB debugging on the phone.

BTW, X10 big = X10i, X10 mini pro = U20i, X10 mini = E10i. Only flash the right files for the phone model.
[Sony Ericsson XPERIA X10 Mini] zen kun:
thanks a lot i flash 20ui and i have the same baseband so i found a baseband for 20ui and i flash it i will check if i have data voice thanks a lot ;D
[Sony Ericsson XPERIA X10 Mini] zen kun:
BUMP

i flash it U20i_2.1.1.A.0.6_Baseband_015

so now i have a baseband correct to get CM BUT i can only use edge??? why?i try *#*#4636#*#* and change to GSM AUTO and i just get EDGE someone knows why????
[Sony Ericsson XPERIA X10 Mini] leftAlone:
Try this: go to Settings > Wireless & Networks > Mobile Networks > there is an option here to use 2g, 3g (WCDMA), 3g preferred. Click on 3g.
[Sony Ericsson XPERIA X10 Mini] zen kun:
there is no 3g option, perhaps the option 2g only and its unchecked :S im getting only edge :(
[Sony Ericsson XPERIA X10 Mini] leftAlone:
3g should be working. Maybe you don't have a strong 3g signal that's why its using edge?
[Sony Ericsson XPERIA X10 Mini] zen kun:
yeah i though so i walk to the street and i have edge too :(
[General Questions and Answers] ChrizzaiN:
I just recently switched from the Evo to the Thunderbolt and now seem to have some issues with Wireless Tether. I noticed that I don't seem to get near the speeds that I used to. I live in Michigan but have been working in Santa Monica for the last several months. There is strong LTE coverage here.

I have run speed tests through my laptop using 3 different programs:

Wireless Tether - .59Mbps

Barnacle - .63Mbps

Wireless Hotspot (pre-installed on Tbolt) - 15.72Mbps

That's quite a difference. I have tried several versions on Wireless Tether and it doesn't seem to make a difference. Does anyone know a solution to this problem?
[Nexus S General] jstennis1591:
I was trying to restore my ATT Nexus S to the stock Android build following the instructions in this thread: http://xdaforums.com/showthread.php?t=1061855

However, I didn't realize that it was the wrong version, and now my Nexus will not boot. I've done considerable searching, but it will not turn on. I hope I don't have a brick, but if there are any tips that anyone can give to a major Android amateur, I would really appreciate them.
[Nexus S General] Rem3Dy:
When you say will not boot what exactly are you describing? Does it power up? Can you get to the bootloader? Does your computer recognize the phone when connected via USB?
[Nexus S General] uansari1:
I'm not that familiar with it, but use odin to reflash the stock firmware.
[Nexus S General] matt2053:
I would recommend this only as a matter of last resort.
[Nexus S General] JupiterDroid:
If your ROM that you flashed contained a radio IMG of the T version it may be bricked.. I know the only way you can pretty much brick an android device is by flashing the wrong radio or having a bad radio flash;/ But that was predominantly with HTC models, not 100 percent sure with sammy models...

JD
[Nexus S General] matt2053:
Yes I looked in the thread and the ROM he flashed did include radios.

However! It's mighty hard to brick a Nexus S :)

My suggestion to the OP. I do not have time right now to find these things for you, but a general outline of what you need to do is:

1. Get fastboot working

2. Use fastboot to flash ClockworkMod Recovery

3. Find the i9020A stock rom and flash it.

4. Do not try to boot phone :)

5. Find the i9020A radio and flash it.

Or you might even find a ROM for i9020A that includes the radio, in which case you could just flash that.

OR, if you find a Nandroid backup of i9023A stock ROM, you can restore that. But you will still need to flash the proper radio.
[Nexus S General] JupiterDroid:
With HTC models if you flash a bad radio thats your superphone dead! Are you sure this is retrievable on sammy devices? I hope to god it is for the OP's sake;)

JD
[Nexus S General] reddv1:
I looked in the zip that you flashed, and what you did is flashed a bootloader.img that's not for your i9020a and thats why your phone isn't booting. The radio has nothing to do with the phone not booting.

To solve your problem, you're going to have to find a copy of the bootloader.img that belongs to the i9020a and flash it with Odin through download mode.

To get a copy of the bootloader.img someone with i9020a will have to dump it from there phone through adb. (I'll put the steps how later today)

To get into download mode, you'll need to hold the volume + & - buttons and plug the phone into the computer while the phone is off and Odin is running on the computer. And if that doesn't work you'll have to use jig 301k resistor connector to get into download mode (Search how to make one on nexus s or sgs forum)

That's the only way to save your phone is through Odin and download mode, sorry.
[Nexus S General] connexion2005:
For reference if you restored the i9020T bootloader to the i9020A it will hard brick. I can however fix a phone in that scenario even still with my JTAG repair. Just PM me if you need a hard bricked Nexus S of any model fixed.
[Nexus S General] af3556:
I've regrettably done the same - gotten a i9020-non-A bootloader confused with the i9020A - and bricked my device by writing that incorrect bootloader (using 'fastboot flash bootloader <wrong bootloader here>.img'). The phone is now totally unresponsive (power button, vol+ & power, etc).

I don't have a Windows machine to hand, but do have a WinXP VM within a Linux host available. Based on a muddle of other XDA posts I fetched/installed Odin 1.82, the Samsung USB drivers and what I believe to be a valid i9020A image (details below).

Problem is I get nada when plugging the phone in with vol button held down (pressing in the whole vol button, both + and - pressed) and plugging the phone in with Odin running and VM capturing USB devices. i.e. either I'm not using Odin correctly and/or running it within a VM doesn't work, or I need the hardware helper (USB adapter w/ resistor).

Could you offer any tips on how to drive Odin?

Plan B is to send the phone for JTAG recovery, though as I'm not in the US that's a bit of a pain.

I9020A image:

Android 2.3.3 (Build GRI54/UCKB2 Radio/KA3 Bootloader)

2.3.3 -> 2.3.4 (android.clients.google.com/packages/ota/google_crespoa/286d814dee5b.signed-sojua-GRJ22-from-GRI54.286d814d.zip)
[Nexus S General] reddv1:
I think you need a windows PC, where's the link to the i9020a Odin package
[Nexus S General] forpulse:
I dunno if this will helpful... but I was in a very similiar situation 2 days ago... I wanted to unroot my phone and restore to stock .. so I found this Odin guide... which was for nexus 4G model.. I had non-4G i9020a. So during Odin process it failed on radio ..and I thought my phone was bricked but I took out the bettery and put it back in and the phone booted into android normally..however in about phone .. everything was showing unknown and I had no signal..so with the help of fellow xdaers. I first downloaded the FULL rom for i9020A and placed it on my sd card.. Downloaded CWM and got it onto my Phone..then wiped cache, system/data etc... and installed the rom from sd card and phone was back to normal.. so if ur able to boot into the phone I would suggest what I did.. and obviously if u need detailed guide of what I did.. don't hesitate to ask... hope your phone comes back to life... (Y)
[Nexus S General] af3556:
G'Day reddv1: is odin specific to each model phone? The one I have I fetched from droidangel.blogspot.com/2011/05/odin-multi-downloader-flasher-program.html, that page lists a Odin3 v1.82.rar for the i9020a. However the exe therein is named I9003_Odin3 v1.82.exe.

Can you clarify the steps required to get Odin to recognise the phone? Is this correct:

1) phone is off, odin is running on the Windows PC (w/ Samsung USB drivers installed - yes?)

2) press and hold both volume +/- buttons (i.e. press the entire vol button in)

3) plug in USB

4) ?

5) profit

forpulse: problem is my phone is bricked, i.e. won't power on. The odin guides I've found so far use it in a way that assumes the phone can be put into recovery mode, which mine can't be. (e.g. http://xdaforums.com/showthread.php?t=1088494)
[Nexus S General] af3556:
I sent my bricked phone to MobileTechVideos and he was able to JTAG recover the phone (and left no marks, etc). However the bad news is the phone now has a very bad purple/pink tint to the screen (have tried a couple of ROMs).
[Nexus S General] SS2006:
hey I've COMPLETELY inadvertantly flashed a i9020t radio on my i9020a, its as bricked as ive ever seena phone. wont turn on, black screen, nothing.

My question, will it go into download mode if I plug in a 301k resistor jig

or is jtag my only hope

thanks
[Nexus S General] wesssider:
Good to know I'm not the only one...

Anyone have ideas for my "Flashed I9020A ROM on a D720" thread over here? http://xdaforums.com/showthread.php?t=1319865
[Xperia Play General] mamallica:
simply can i booot my phone? I tried going by instruction, at SE website it did give me the code, but it got stuck where it says find the driver and sE says it cant be boooted. so im wondering if that is true meaning there is no other way for now?1

how about if i pay to one of these unlocking websites and try agian?!
[Xperia Play General] sdlaurin:
Root with gingerbreak. Unlock sim with cellphoneunlocker.net. Do not unlock bootloader as there isnt any reason to yet. Just my 2 cents
[EVO 4G Q&A, Help & Troubleshooting] Patb8man:
I have been having issues flashing Virus Rom Kingdom evolution b1.1, BoS kingdom port, and Evolved rom shifted. I have the latest amon ra recovery, I have used superwipe. I have attempted to double flash the roms, I have cleared the caches and wiped the phone manually many many times with no luck. I have had luck flashing a cm7 based Gb rom with no issues whatsoever and I have also had no luck with froyo roms. I have had my Evo rooted since day one and it is totally rooted. Please if you can think of any solutions or suggestions they would be greatly appreciated. Thank You.
[EVO 4G Q&A, Help & Troubleshooting] neopolotin75:
What error is it giving you? So if you flash B1.1 it doesnt work but you can immediately flash CM7 and it works?
[EVO 4G Q&A, Help & Troubleshooting] Patb8man:
I dont get an error code the rom flashes but it tries to boot and just loops on the htc evo screen
[Eee Pad Transformer General] superdave:
I have been working on disabling the very annoying touchpad tap to click. The driver for the touchpad is in drivers/input/asusec/elan_i2c_asus.c. Its a built in module so I had to rebuild a kernel. I built a kernel based off of netformers kernel and changed the following lines (added the comments)

if (etd->tap_num == TP_CLICK ){

//input_report_key(dev, BTN_LEFT,1);

//input_sync(dev);

//input_report_key(dev, BTN_LEFT,0);

//input_sync(dev);

etd->tap_num=NO_FINGER_ON_TOUCHPAD;

This worked great, I now have full mouse control and can leave it enabled when I type.
[Eee Pad Transformer General] cowballz69:
Wow this is going to be very handy. Its extreemly annoying for me to. But would be great if there was some type of on/off switch
[Eee Pad Transformer General] Reverence12389:
I am guessing that you need to be rooted in order for this to be possible?
[Eee Pad Transformer General] superdave:
This would involve flashing a new kernel so you would need to be rooted and have cwm installed.
[Eee Pad Transformer General] Gary13579:
Could you post a binary diff so we can manually patch? Don't feel like recompiling the whole kernel.

Thanks for your work!
[Eee Pad Transformer General] ViViDboarder:
Very cool!!!! Tap to click is freaking annoying to me. I don't know why anyone would want it with a mouse button...

It would be nice to have a way to set this from the front end though... That way it could be included in kernels without me compiling my own version every time someone releases one.
[Eee Pad Transformer General] rimmie:
Holy crap, I will gladly paypal someone that comes up with an app to get rid of this stinking touchpad click You have to type like a pansy to keep your wrists from hitting the touchpad. Very annoying! If you can figure out this browser lag when typing, that would be great too! ;)
[Eee Pad Transformer General] sharpfork:
My pansy typing skills suck so I just diable the thing 99% of the time. It'd be nice to have a way to just turn off the click action. I'd actually prefer if Asus just fixed the sensitivity issue and made it work more like my macbook pro.
[Eee Pad Transformer General] netarchy:
That can be arranged.
[Eee Pad Transformer General] ViViDboarder:
Done and done.

APK ready too. :)
[Eee Pad Transformer General] sharpfork:
Coolness!

Where might one find such an APK?

:confused:
[Eee Pad Transformer General] ViViDboarder:
Watch the Netformer thread.

Netarchy's next kernel will have the ability to toggle this on and off and I wrote a APK that lets you toggle it.

EDIT: Netformer thread link: http://xdaforums.com/showthread.php?t=1090510
[Eee Pad Transformer General] moemoney12:
has any body experience problems with the touchpad on the keyboard, when the charger is plugged in? when i plug my keyboard to charge the tuouch pad is almost useless
[Eee Pad Transformer General] ViViDboarder:
Works perfectly for me... Or do you mean with this kernel mod?
[Eee Pad Transformer General] moemoney12:
no I'm using stock not rooted. When i have the dock attached to the tablet and plug the charger into the dock, the touchpad is so sluggish to say the least.
[Eee Pad Transformer General] moemoney12:
It acts as if I'm using two fingers.
[Eee Pad Transformer General] ViViDboarder:
Maybe try rebooting... Has the issue always been there?
[Eee Pad Transformer General] superdave:
Nice, I was hoping he would add that in. Did you make any other change to the driver? With just the above a two finger tap will still click. I am not sure if it is that or something else, but, every now and then I still seem to get an unintended click. Its much better than without the mod, but, not perfect. I need to go through that driver really good, I dont think their timers are working right.

p
[Eee Pad Transformer General] ViViDboarder:
Yep. Netarchy got the two finger click taken care of. There is one more scenario he's got to finish. Apparently if you are pointing and moving the mouse with one finger and leave it on and tap with another... it also clicks... So we have to block that too.

EDIT: You can watch/view the commits on this file https://github.com/netarchy/android...46c722b5/drivers/input/asusec/elan_i2c_asus.c
[Eee Pad Transformer General] superdave:
Thanks, im on that branch. Didnt notice the update yesterday.
[Eee Pad Transformer General] rimmie:
I'm hearing good thing about Netarchy. I was a little bit skiddish about overclocking, but it looks like most people are having good results. I'm definitely happy with my purchase with support boards like this. The community is awesome and moving at lightspeed!
[Eee Pad Transformer General] ViViDboarder:
He's been a very active dev for HTC EVO already.
[Eee Pad Transformer General] TGDdogG:
tap-to-click disable... or even a toggle?

can I use this kernel with the latest prime rom?
[Eee Pad Transformer General] ViViDboarder:
No, it's not compatible with the latest version of HC (nor ICS obviously).

Netarchy said the same tweak was not possible in the latest kernel due to some changes, but I can look into it. It may just be harder.

I'll do that when we get ICS source though...
[T-Mobile LG G2x] rhinology:
Hi,

I'm going to start building my own ROMs. I'd like to start from only official sources and drivers. Then add my own improvements and features. Here are a few questions before I can start:

1) I know there is a tool in AOSP to extract proprietary drivers. Can I extract Froyo drivers from G2x and use it with Gingerbread AOSP?

2) I see many users reporting that "XXX doesn't work" (XXX is things like radio, GPS, Wi-Fi) with custom ROMs. Are those issues caused by incompatibility between GB AOSP and Froyo drivers? Or caused by patches done by ROM makers?

3) Does Google provide official sources for Google Apps? Or official binaries to bundle with a ROM?

Thanks!
[T-Mobile LG G2x] JHaste:
First off this is a Q&A question, not a dev section issue...

1) Not really...

2) These are typically kernel issues...

3) yes they do, check the CM7 Nightly thread
[T-Mobile LG G2x] faux123:
1. In general for Linux, there are 2 types of drivers, kernel space drivers and user space drivers. The Kernel space drivers are available via kernel source dump from manufacturers, however, the user space drivers are often proprietary so they are released as binary only. In case for G2x, the current official release from LG is Froyo, so often time, CM7 is hacked to work with Froyo user space drivers until an official GB version is released.

2. Because of #1, often times, CM7 team has to work around the limitations they have by writing new code. The new code is not tested as thoroughly as major manufacturers QA department (a whole team of professional testers) so CM team release their nightly builds to serve as open public beta to hammer out bugs for the newly released workarounds/patches. It's amazing what CM team has done without access to all the necessary files and sources.

3. Google Apps are proprietary Google software, so no source code will be available to them (until Google decides to open source their apps, which is 100% their right and decision). Because Google holds the rights to their software, they also have a say in the distribution of their software. CM originally bundled Google Apps with their CM releases, but Google decided not to allow a major independent team to bundle their software and sent CM a legal letter asking them to stop. Ever since, CM team decided to release just a bare AOSP portion without Google Apps. I have followed CM's example and also does NOT bundle Google Apps with my Hybrid AOSP ROM.
[T-Mobile LG G2x] rhinology:
Thanks a lot!

Sounds like I'd better build a Froyo ROM first.

For #3, I learned that I can download Google Apps binaries provided by CM team. My question is: where did CM team get the binareis?
[T-Mobile LG G2x] samir5421:
I've written a good guide for building cm7. (link in my signature)
[Thunderbolt General] Exeodus:
Has anyone had success using the Netflix app to stream video on a Froyo based Rom? I'm using BAMF 1.6.3, and when i attempt to stream it stops and says failure to acquire license. The patch listed in the development section is only for GB roms.
[Thunderbolt General] gordon84:
gordon84

I tried every rom/kernal trick I could think of. I searched far and wide and the only thing that did the trick was upgrading to GB. I am missing the battery life from froyo so if you find a solution I would love to hear it.
[Thunderbolt General] tylerkd07:
I believe its only for gb roms for now
[Thunderbolt General] klisp:
I also tried to install Netflixs + patch on bamf 1.6.3 but I got no video....now I'm on bamf 2.0 and Netflixs works great...