[Q] [app dev] flicker screen - Android Software Development

ok we have come into a problem when developing our game. Everything seems to be loading fine however the screen flickers for about 30 seconds, stops then flickers again after about 30 seconds right from startup. its like random white bars with different sizes. We have gone through all the coding but have yet to figure out what is calling the flicker to happen.
Something in the layers or are we missing something? Anyone had this issue before?
using J2ME

I wasnt going to post a apk because of issues with the name not being released yet and crap but since we were about to release the info soon anyways we decided to just show splash intro apk
please be warned there is no exit on this app so will have to force close it afterwards.

Impossible to diagnose without seeing the source. I tried the app posted and it closes before anything even shows on the screen.
Can you post minimal source code that demonstrates the problem?

well here is the source for the above apk. there may be some code not implemented into the app so be aware of what is called i suppose.

no one has a clue?

I couldn't do anything with your code. I missed the part in the OP about J2ME. Sorry.

well is that a problem? is J2ME not compatible 100% with Android?

This may help
http://javathings.blogspot.com/2009/03/java-applications-j2me-on-android.html
From something awesome

killersnowman said:
This may help
http://javathings.blogspot.com/2009/03/java-applications-j2me-on-android.html
From something awesome
Click to expand...
Click to collapse
Thats great. We will give it a shot. I appreciate it.

Related

Can you disable the touchscreen?

Here's the scenario: My 5 year old daughter wants to watch a movie on my Hero. I bring up Madagascar 2 and hand her the phone. 2 minutes later she says the movie stopped because she accidentally touched or swiped the screen.
Is there a way to disable the touchscreen so that whatever program is active doesn't get interrupted? Maybe something like Proximity Sensor, but without having to use the sensor. Or some type of key button combination like Home+Search+Volume Down.
is this a serious question? no you cannot disable the touchscreen.
fixxxer2008 said:
is this a serious question? no you cannot disable the touchscreen.
Click to expand...
Click to collapse
Yes, it's a serious question. I saw this posted in a WinMo forum:
"If it's a custom app you could get the app to set the sensitivity of the screen in the registry to zero. That should do it. I've not been able to find anything existing though. Not even on Codeproject, which usually has unusual stuff like that. I suspect the Compact Framework doesn't support it so the registry is your best bet."
I'm sure it's possible...just out of my realm. Hell, if someone can make the End Call button disappear to avoid Face Hang Ups, I'm sure someone else could make this happen.
dennistpm said:
Yes, it's a serious question. I saw this posted in a WinMo forum:
"If it's a custom app you could get the app to set the sensitivity of the screen in the registry to zero. That should do it. I've not been able to find anything existing though. Not even on Codeproject, which usually has unusual stuff like that. I suspect the Compact Framework doesn't support it so the registry is your best bet."
I'm sure it's possible...just out of my realm. Hell, if someone can make the End Call button disappear to avoid Face Hang Ups, I'm sure someone else could make this happen.
Click to expand...
Click to collapse
android doesn't have a registry like winmo, ive never heard of anybody being able to disable the touchscreen, nor want to do it in the first place. sorry....
Good idea, but would probably be most practical to have built into a video player app. An Android VLC player would make my year...maybe after DIVX starts hitting more Android handsets this year more versatile players will show up.
the problem with media players is the have to run in a java VM instead of nativley.
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
abcdfv said:
the problem with media players is the have to run in a java VM instead of nativley.
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
Android has a Native development kit available so you can run native C++ code. There is a topic over at the VLC site talking about getting someone to do this - but its REALLY difficult to do it. I thought about it, but I have 0 experience with Media software.
It's my understanding the NDK is a joke a this point. The guys at Coreplayer have been trying to get a full functioning media player for months.
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
dennistpm said:
Yes, it's a serious question. I saw this posted in a WinMo forum:
"If it's a custom app you could get the app to set the sensitivity of the screen in the registry to zero. That should do it. I've not been able to find anything existing though. Not even on Codeproject, which usually has unusual stuff like that. I suspect the Compact Framework doesn't support it so the registry is your best bet."
I'm sure it's possible...just out of my realm. Hell, if someone can make the End Call button disappear to avoid Face Hang Ups, I'm sure someone else could make this happen.
Click to expand...
Click to collapse
Probably going to have to end up doing what I did with my kid: Tell her if she touches the phone the movie will end...then take it away for the day. Try again the next day. After a day or two she'll get the point. We also found a good spot on a table and in the car to set the phone and told the rugrat not to touch it if he wanted to see the movie. My kid's 8, so that worked. Not sure if you'll have the same results.
Not quite what you're looking I know, but...probably the best you'll get: Train the kid to leave it alone
danknee said:
Good idea, but would probably be most practical to have built into a video player app.
Click to expand...
Click to collapse
That is the only way I see it as possible. Android has several running levels for programs. I don't think it is possible for a backgrounded app to take over any functionality of the touchscreen.
Someone would have to write a custom player that doesn't respond to the screen.
For example there is a toddler game app (can't remember the name) that you can only exit by touching a combination of points on the screen. Writing this idea into a kid's player would be a cool app idea.

Screen grays out when screen is touched

For some reason my screen will dim whenever i try to go to links in gmail or other things. Any idea what could be causing this? The xoom is not rooted and completely stock 3.2. kind of an odd issue and a big annoyance.
no solution but saw this happen today in a link in a mail client. it was not gmail.
also, i use honeycomb file manager HD (paid version). clicking on videos mounted at /external1 does the same thing. the videos play, they just dont play from within that file manager. this just started happening. Ive had honeycomb file manager HD for a couple months now (since it was launched) and was able to play the videos from within the app (it would pop up which video player to choose from...). now it doesnt.
i just figured it was a random glitch but perhaps not.
looks like the 3.2 bug... the screen dims when the application picker dialogue box is called, meaning it could happen anytime a link, file, pic, etc could be opened with more than one app on your device... try rotating your screen and it should appear... should make the problem go away (at least until next reboot).
Think doing a factory reset would help?
This is a well known and documented bug with Android 3.2.
Simply rotate your screen, and it will show you a list of applications to choose from.
booked said:
Think doing a factory reset would help?
Click to expand...
Click to collapse
Nope, as solarnz said this is android 3.2 bug... won't happen everytime, but everytime it happens changing your screen orientation fixes it... mainly a minor annoyance.
appreciate the heads up. i had not known about the bug.. was under a rock i suppose.
ive not seen this issue again and i just tried just now and all is well. next time however, ill be ready ..
thank you again to the OP for posting and for the followups. "thanks" are in order here...
solarnz said:
This is a well known and documented bug with Android 3.2.
Simply rotate your screen, and it will show you a list of applications to choose from.
Click to expand...
Click to collapse
@solarnz is there a fix coming for this? I have honeycomb 3.2 rooted and running tiamat 2.2 moray

[DEV] Working HTC touchscreen driver fix for ICS, no porting necessary

Alright. Well. This is interesting.
I've fixed the original HTC touchscreen driver for use in ICS. I'm assuming it will work on other HTC phones as well, since the fix is FAR less intrusive in terms of changing existing code, or trying to port other drivers.
I was working on trying to map out the Samsung and HTC drivers in terms of data they let the system see as they are running. Getting no where fast, I remembered a couple days ago when I was attempting to get the touch keys working with the Samsung driver. Originally, I had added this code to the mxt224 driver above the line 'set_bit(EV_ABS, ts->input_dev->evbit);':
added to mxt224.c
Code:
set_bit(EV_SYN, ts->input_dev->evbit);
set_bit(EV_KEY, ts->input_dev->evbit);
set_bit(BTN_TOUCH, ts->input_dev->keybit);
set_bit(BTN_2, ts->input_dev->keybit);
I assumed this may have something to do with the softkeys, since it was present in the HTC driver with all four lines. By this I mean that in the HTC driver, that section looked like this:
atmel.c
Code:
set_bit(EV_SYN, ts->input_dev->evbit);
set_bit(EV_KEY, ts->input_dev->evbit);
set_bit(BTN_TOUCH, ts->input_dev->keybit);
set_bit(BTN_2, ts->input_dev->keybit);
set_bit(EV_ABS, ts->input_dev->evbit);
It worked fine in CM7 after doing this, but I lost all touchscreen in ICS, with it not even registering touch data anymore.
Back to my main point, I decided to see what would happen if I totally removed those four lines from the atmel.c file (HTC driver) and see what happens in ICS. Long story short, it works. Apparently ICS doesn't use or absolutely hates one or all four of those input preprocessors. So yeah I kinda **** bricks that it was that simple.
I'm going to try to see if its one or just all of these keybits that's causing the problem and I'll report back.
Instructions
If you want to try this, follow along:
Get rid of build settings for the Samsung driver if you've been messing with that
open up our favorite driver driver/input/touchscreen/atmel.c
CRTL+F, search for EV_SYN
Comment or delete all of the set_bit() lines except for the last one, EV_ABS
Your atmel.c should only have this line now, where all five were before:
Code:
set_bit(EV_ABS, ts->input_dev->evbit);
Clean your make environment and make sure your config files are set to use atmel-touchscreen
**** bricks
so it should look like:
Code:
ts->input_dev->name = "atmel-touchscreen";
// set_bit(EV_SYN, ts->input_dev->evbit);
// set_bit(EV_KEY, ts->input_dev->evbit);
// set_bit(BTN_TOUCH, ts->input_dev->keybit);
// set_bit(BTN_2, ts->input_dev->keybit);
set_bit(EV_ABS, ts->input_dev->evbit);
?
twistedumbrella said:
so it should look like:
Code:
ts->input_dev->name = "atmel-touchscreen";
// set_bit(EV_SYN, ts->input_dev->evbit);
// set_bit(EV_KEY, ts->input_dev->evbit);
// set_bit(BTN_TOUCH, ts->input_dev->keybit);
// set_bit(BTN_2, ts->input_dev->keybit);
set_bit(EV_ABS, ts->input_dev->evbit);
?
Click to expand...
Click to collapse
Yeah try that. I've run into something though, which must be something stupid I'm doing but I can't figure out what the hell it is.
I've gone through each of those that I commented out to see if it was just one of the set_bits that was making it not work. But even with them all on now it's still working in ICS. I've cleaned my builds between each time. I think I'm going crazy! Because it didn't work before!
swm5126 said:
Yeah try that. I've run into something though, which must be something stupid I'm doing but I can't figure out what the hell it is.
I've gone through each of those that I commented out to see if it was just one of the set_bits that was making it not work. But even with them all on now it's still working in ICS. I've cleaned my builds between each time. I think I'm going crazy! Because it didn't work before!
Click to expand...
Click to collapse
I'm building now and I will see what I can find out. It might be as simple as it forced the build to refresh in some way? Ill see what happens and let you know.
I'm already engaged, but I think she will understand... Will you marry me? haha, it worked!
And then I see this : http://android.modaco.com/topic/348194-04-nov-icl23d-galaxy-nexus-boot-recovery-system-dump/
Can you post the zip with it working? Please
w9jds said:
Can you post the zip with it working?
Click to expand...
Click to collapse
http://dl.dropbox.com/u/11023553/imoseyon_leanKernel_184Mhz_vAOSP.zip
That is the Thunderbolt version
swm5126, I cannot than you enough for all the help. I really wouldn't have gotten anywhere without it. Least we can toast to a success!
But I am still looking into what needs to be commented, just a little excited to actually touch ICS. lol.
twistedumbrella said:
I'm already engaged, but I think she will understand... Will you marry me? haha, it worked!
And then I see this : http://android.modaco.com/topic/348194-04-nov-icl23d-galaxy-nexus-boot-recovery-system-dump/
Click to expand...
Click to collapse
Unfortunately I'm engaged too, so no dice!
Can't wait to take a look at those
Quick question, does your pointer in ICS seem to go back up to the top left hand corner of the screen? Or aren't you in pointer mode?
for me it does!!
but I still can't unlock the F screen...
LorD ClockaN said:
for me it does!!
but I still can't unlock the F screen...
Click to expand...
Click to collapse
Awesome! Glad I'm not crazy and this works. They must have deprecated some of the input preprocessors. I'm just surprised using them in the driver basically made the touchscreen inoperable in ICS.
One step closer...to something! Now to figure out those pesky idc files to get this to work without the pointers.
maybe better to focus on Paul's dump.. could be different regarding TS
My post for the stuff inside the new idc configurations system is here http://forum.xda-developers.com/showthread.php?t=1320170&page=16
hope it helps
swm5126 said:
Awesome! Glad I'm not crazy and this works. They must have deprecated some of the input preprocessors. I'm just surprised using them in the driver basically made the touchscreen inoperable in ICS.
One step closer...to something! Now to figure out those pesky idc files to get this to work without the pointers.
Click to expand...
Click to collapse
It reverts to the corner. I am working on a fix for that right now. Congrats, btw.
w9jds said:
My post for the stuff inside the new idc configurations system is here http://forum.xda-developers.com/showthread.php?t=1320170&page=16
hope it helps
Click to expand...
Click to collapse
What he said, lol
Sent from my ADR6400L using Tapatalk
LorD ClockaN said:
maybe better to focus on Paul's dump.. could be different regarding TS
Click to expand...
Click to collapse
Trying to haha filesonic is only letting me get one file at a time *sigh*
I already downloaded those.. I have a paid acount for filesonic
I posted this in DHD thread also:
my Touchscreen works, but it doesn't unlock anything... I mean, I pull the ring to unlock icon, it vibrates and it doesn't change screen..
so I unlock screen with adb shell, and when it gets unlocked I'm welcomed with SystemUi FC.. and every time like that.. if I turn off screen and back ON after trying to unlock screen, my touches are not working.. it must be because systemui already crashed... but it doesn't show it..
LorD ClockaN said:
I already downloaded those.. I have a paid acount for filesonic
I posted this in DHD thread also:
my Touchscreen works, but it doesn't unlock anything... I mean, I pull the ring to unlock icon, it vibrates and it doesn't change screen..
so I unlock screen with adb shell, and when it gets unlocked I'm welcomed with SystemUi FC.. and every time like that.. if I turn off screen and back ON after trying to unlock screen, my touches are not working.. it must be because systemui already crashed... but it doesn't show it..
Click to expand...
Click to collapse
With the fix from here for the driver? Or without anything?
with your fix here
Awesome! Now if only I could find someone to reverse engineer the 3D camera and Gallery for the HTC Evo 3D, I would be fat from all the Ice Cream Goodness I would be devouring! Good job guys
I got money for whomever gets a decent working (radio, touch screen, texts) ICS DINC build by the end of this weekend.....
wetbo529 said:
I got money for whomever gets a decent working (radio, touch screen, texts) ICS DINC build by the end of this weekend.....
Click to expand...
Click to collapse
Can we not do that? That's how things get sloppy. Just donate it to swm, he deserves it.
Sent from my ADR6400L using Tapatalk

[UPDATE][News] CM10 on Thinkpad Tablet v0.1

UPDATE: http://forum.xda-developers.com/showthread.php?t=1846044
Wooo!
--------------------------------------------------------------------------------------------------
Koshu's got CM10 (JB 4.1.1) on his TPT (Looks to be ROW)
http://forum.xda-developers.com/showpost.php?p=30482518&postcount=28
Here's what's the details from his post:
A little status report:
Working:
Wifi
Bluetooth
Graphic HW Acceleration
Sound (Including Mic)
Cameras (Front & Back)
Not working yet:
Video HW Acceleration
Installing Apps (Oops)
Not listed parts are not tested.
I will release the first version as soon as i got the biggest issues solved (mainly the App Install Bug)
Click to expand...
Click to collapse
Big news, show your support!
yeah booooy..
Sent from my SCH-I535 using Tapatalk 2
Nice! I'm hoping to use this beast for something besides games.
toenail_flicker said:
Nice! I'm hoping to use this beast for something besides games.
Click to expand...
Click to collapse
It's a good new indeed. But don't understand why you're waiting for JB to use the tablet.
As I know JB is a "minor" update, and Thinkpad with ICS's working very fine for me (not like the crappy 3.1 !!!)
Loving my TPT on ICS, I don't care for JB on it, I just want root access!
Thank's to Koshu!
I've successfully installed CM10 v. 0.5, but have problem with layout switch on external Thinkpad Folio keyboard. "CTRL+SCPACE" combination doesn't work. It's annoying to change layout through settings..
It'll be good to change input language by pressing "Sym" key on keyboard as it were in original firmware.
P.S. Can't post it to dev forum.
wow, great work Koshu!
Outstanding job! Works great! Screen lock works fantastic!
Quick question: using adwlauncher and the screen draws sometimes get a bit messed up. The only scroll method that works is regular side to side bounce. Any thoughts?
Thanks again and awesome job!
Interesting just changed density hack option for icons. Unchecked screens are not useable. Checked screen useable but screen draws sometimes get messed up. Would this have something to do with the density issue you mention?
Also, noticed Gallery app doesn't show synced account photos fro Google. Not sure how to fix this.
Latest update - v5, Bluetooth appears to be broken
I saw this in the developer thread, but I'm not allowed to post there yet.
I wanted to confirm that I am also seeing the problem with Bluetooth not being able to turn on, after apply v5 of this ROM. Everything else seems to be working great, though.
Update: Oops, sorry, I guess this thread is for Thinkpad, not the Ideapad K1. My comments apply to the latter.
K1Andy said:
I saw this in the developer thread, but I'm not allowed to post there yet.
I wanted to confirm that I am also seeing the problem with Bluetooth not being able to turn on, after apply v5 of this ROM. Everything else seems to be working great, though.
Update: Oops, sorry, I guess this thread is for Thinkpad, not the Ideapad K1. My comments apply to the latter.
Click to expand...
Click to collapse
Yep that is correct.
Since I am still a few posts short of the required 10 for posting in the development section I will give my feedback here.
Koshu released an experimental version 0.8 today, I installed it and ran into one rather annoying problem, the browser button seems to disable not only touch input, but also pen input. I have already wiped and reflashed, if I can provide any helpful logs or some such just let me know it.
Sent from my ThinkPadTablet using XDA Premium HD app
kingOfTheLab said:
Since I am still a few posts short of the required 10 for posting in the development section I will give my feedback here.
Koshu released an experimental version 0.8 today, I installed it and ran into one rather annoying problem, the browser button seems to disable not only touch input, but also pen input. I have already wiped and reflashed, if I can provide any helpful logs or some such just let me know it.
Sent from my ThinkPadTablet using XDA Premium HD app
Click to expand...
Click to collapse
A few posts shy as well. Was thinking of flashing 0.8 , but it sounds like it may ne good to wait. Current version doesn't have touchscreen working for some major games like deadspace and shadowrun. Hoping that gets fixed soon.
Developer is doing a great job keeping this tablet current. We are lucky!
10th post!.yippee!
Strongbowsix said:
10th post!.yippee!
Click to expand...
Click to collapse
Allright. Been reading only long enough. Here I com for my 10 posts
BTW
I successfully put koshus cm10 on my tpt as well. I think I like it.
OTA 3.5 was pretty awesome as well, but it was the annoying little details that lenovo couldn't get fxed.
Noticed that copy and paste doesn't seem to work with cm10. Am I doing sth. wrong?
I'm still on 0.7 cause I need 3G.
If anyone with more then 10 posts reads this:
could you please ask over at the developers forum if anyone has copy-paste issues. it does seem to work sometimes. but not every time I long press some text. especially bad in firefox.
mpad said:
If anyone with more then 10 posts reads this:
could you please ask over at the developers forum if anyone has copy-paste issues. it does seem to work sometimes. but not every time I long press some text. especially bad in firefox.
Click to expand...
Click to collapse
I don't have the 10 posts but I am running 0.8.1 and have not noticed any cut and paste issues. I'll exercise the cut and paste in Firefox and let you know what I find.
EDIT: I tried cut and paste with both Firefox and Dolphin browsers on several web sites and didn't have any problems except with Firefox on the this xda site.
EDIT: I tried cut and paste with both Firefox and Dolphin browsers on several web sites and didn't have any problems except with Firefox on the this xda site.[/QUOTE]
ah ok, thanks. it showed while I tried to post here and over at official lenovo forum. maybe its related to forum sites...
I think it's the recent firefox update. It seems it is very hard to even press a link now. this was better before.
so no blame to koshus great work!
This policy of the 10 posts before posting on the development forum is driving me crazy. I have a lot of questions on this rom but zero answers...
...let's try anyway...
I am experiencing a relevant and annoying issue: when I plug the hdmi cable in, there is a significant drop in responsiveness. For instance, Lecture Notes becomes almost unusable. Any clues? I didn't notice this problem before with the stock kernel. Can it be related to a driver issue?
My first post here... let me just say thanks for the awesome work with CM10 on the TPT Kosh!
I flashed 0.8.1 on my TPT last night which had a SC rom (lots of Chinese apps etc). It works well but I have noticed the TPT is rebooting randomly. Doesn't seem to be consistant as I can watch a 40 minute video, let it sit idle for 3-4 hours with no reboot.
Anyone else have these issues? Is there any log files I can look at to see what is causing it to reboot?
stormriderx said:
My first post here... let me just say thanks for the awesome work with CM10 on the TPT Kosh!
I flashed 0.8.1 on my TPT last night which had a SC rom (lots of Chinese apps etc). It works well but I have noticed the TPT is rebooting randomly. Doesn't seem to be consistant as I can watch a 40 minute video, let it sit idle for 3-4 hours with no reboot.
Anyone else have these issues? Is there any log files I can look at to see what is causing it to reboot?
Click to expand...
Click to collapse
I have the same problems, especially when its idling. I had no time to try a logcat of the hang yet...

[Q] Blacklight Retribution Problem

i dont know how many of you have tried this and ended up in the same spot as me, but here is my issue.
i recently installed blacklight retribution from steam on my toshiba with windows 8 pro, and all went well in that aspect.
i launched the game and it brought up the normal window where it does all of its updating and everything.
i sign in and hit continue and this is where i hit my issue.
the game loads in full screen, like it should, but i only see a black screen.
after about 5 seconds, windows says it has stopped working and has to close.
this happens everytime that i try to open it,
anyone have any suggestions on what i can do to get the game running?
thanks
Have you done some searches or checked the Steam forums? The only thing I can think to recommend is to try setting Compatibility Mode (you may have to go into the SteamApps folder and set it on the EXE directly). This isn't really a tech support forum...
GoodDayToDie said:
Have you done some searches or checked the Steam forums? The only thing I can think to recommend is to try setting Compatibility Mode (you may have to go into the SteamApps folder and set it on the EXE directly). This isn't really a tech support forum...
Click to expand...
Click to collapse
I have looked already but all look again. I may have tried your second option but I can't remember.
I thought I would post it here cause I wanted to know if anyone else had the same problem.
Sent from my YP-G1 running ParanoidAndroid v1.6 (ICS)

Categories

Resources