yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Themes and Apps] I7redd:
Hit or Miss?

Okay, here's where i'm up to after about 48 hours solid effort. I know, it doesn't look like much, but it's around 900 lines of code so far.

Spent about half my time finding images, and making all the adjustments to the cards. I've attached the pack of cards in a zip file. It was very late the first night,so i slightly over-cropped a few on the edges, thou they're not so bad.

The simple card-flipping code i found on a tutorial site over here...

http://www.flashandmath.com/advanced/t1player10/flip.html

Everything looks ok.. Still some things to do like some sort of scoring, which is just tallying up hits and misses. Maybe an info/exit button if there's room. A few sound-effects. That kinda thing.

Might put the finished work on the market with a link back to this topic to drum up some more traffic. Glad to hear any comments or suggestions, or other signs of interest.

Righty-o, I'm off ta sleep ;)

Cheers all.

[EDIT] Attached the final free version.. Enjoy!
[XPERIA X10 Themes and Apps] drdownload:
if you want to, you can also install flash 10.1 on 2.1 http://www.addictivetips.com/mobile/how-to-install-flash-10-1-on-android-2-1-eclair-devices/
[XPERIA X10 Themes and Apps] argnom:
Tried it. No dice. Did you gey it to work?
[XPERIA X10 Themes and Apps] Nimche:
Awesome work bud. This is really nice. Running as smooth as butter on bread on me X10.
[XPERIA X10 Themes and Apps] I7redd:
Aye, what can ya do? They repeat the same incorrect info cos they don't a) try it themselves first, or b) read as little as two pages before posting. *shrugs*
[XPERIA X10 Themes and Apps] I7redd:
Cheers dude!!! Thanks for the positive comments! :)

I know there's a key bug in there; if you press the suit buttons too quickly it ends up showing a "two-sided" card. Not hard to fix.

I think the hit and misses would look ok as green and red bars on either side of the card (or perhaps just above like HP scores work). Maybe change the words "Heart" "Club" "Diamond" "Spade" to image instead, or just highlight the pressed button. That way, it wouldn't get too cluttered.
[XPERIA X10 Themes and Apps] Nimche:
I7redd ,

Did you try Air for Adobe template for CS5? I can't run the apk as it does not give me install option.

You found the file form June release for Air Runtime. COuld you find this one if you have access?

AIRforAndroid_FlashCS5_051810.zxp
[XPERIA X10 Themes and Apps] I7redd:
Ah nope. i just googled about it now, and low and behold i found your post. :D

I'm just using Flash Builder.. it's kindof annoying cos i can't seem to turn off the syntax help which keeps popping up under my cursor while i'm typing. I normally just use notepad and code everything by hand, but FB auto-builds which speeds things up a little bit.

They removed the June runtime from the download section. But i knew what it was called, and found it on the net faster than searching my backup HDD.

I'll have a hunt for it thou.
[XPERIA X10 Themes and Apps] Nimche:
Just got access myself and see that it is not there. 1 for adobe to mess with their developers, shame on them...

Never worked with flash developer which I should for sure. You said that you put the flash developer eclair stuff on post one which I couldn't find and couldn't follow yout tut on turning my swf into an apk.

Some help is awesome.
[XPERIA X10 Themes and Apps] Nimche:
I guess I just found it. Yey.
[XPERIA X10 Themes and Apps] Nimche:
You have to walk me through this. I got simple objects on the screen and and stop(); at frame one. I install the apk on the phone and when I run it black screen stays on.

What is the problem?

EDIT: Got it to work with uninstalling air and reinstalling the one for Froyo... from XDA.
[XPERIA X10 Themes and Apps] I7redd:
Do you mean that Froyo one you've got (Air runtime) seems to work on X10?

What date is the runtime file?
[XPERIA X10 Themes and Apps] Nimche:
old., Got it from XDA here the link for you

Air for Froyo

+Check this out if you want to graphically kill your phone. It wasn't written by me but did the test.
[XPERIA X10 Themes and Apps] I7redd:
Yeah, not sure the reasoning for removing the Eclair runtime and other stuff. I think they don't want to bother with support questions about how to use it, and decided just to support only Froyo onwards.

Also the prerelease was under strict NDA ..we couldn't even discuss details about what we were making in tutorials, incase we reference some function that they might later remove. That made it hard to get started outside of Adobe's help forums. That's pretty much why i stopped developing around Air 1.5. The opportunity to develop for Android has got me back into it, and thankfully there are more and more people getting into it.

Edit: Yeah, that old copy is from just before June. June's version is 15540. Anything upto that number worked on both Froyo and Eclair. After that, it branched to just Froyo only.

re: Three.apk ...Okay, same problem.. = blackscreen. They made a couple of changes around that time which caused that. You'll need to try to reinstall the 15540 [June 3rd] copy again. Thou it sounds like your CS5 component is May.. the SDK and runtime need to match. That's why you got the blackscreen using June's runtime. Tricky if we can't find June's SDK for CS5!

I'm lucky enough to be able to check on both Eclair and Froyo. My card game works on both using June's runtime. So that's what we're aiming for here. ;)
[XPERIA X10 Themes and Apps] Nimche:
This is my issue. The AirToAndroid template for Flash that I have found is for May and that is the only way I can develop for Android or it comes out black. Now with the link I sent you everything works and no more black screen. Do you get it with my app?

Here is the clock.
[XPERIA X10 Themes and Apps] I7redd:
Yeah, black. It's June SDK only i'm afraid.

So you're on Mac eh. I only downloaded a few Mac runtimes, but didn't have broadband to get the Mac CS5 stuff. I'm using windows anyway so um yeah.. :(

It leaves only a few options..

- Find that June copy of AIRforAndroid_FlashCS5.zxp

- Email an Adobe staffer (or a Japanese site which has a tutorial on that version) and ask nicely for a copy. Or try asking in the Adobe labs Air for Android help forums from other users.

- Switch to Flash Builder (does Mac have it?)

Or in worst case.. make stuff using May's copy, but re-import it to a windows machine to recompile it before finally publishing it to the market. (actually i don't have the windows CS5 stuff either, as i wasn't planning on using it)
[XPERIA X10 Themes and Apps] Nimche:
nah, I am on Win 7 64bit and not big fan of Mac at all. How could you be a flash developer and mac fan at the same time?

I will do as you instructed later tonight. I am at work right now.

I will ask for more help later.

Cheers,
[XPERIA X10 Themes and Apps] I7redd:
Just that when i googled the file a few Japanese flash devs using Macs showed up, and from experience i reckon half of them still using Macs. (^_^)

Yeh, so as you're on windows, i think you could keep CS5 working/testing how you've got it, then install Flash Builder seperately (with the SDK/runtime i posted) so when you're finish making something, import the .FLA into Flash Builder as an asset using plain wrapper code to load it.

The Code Bummer (Hobo) game has 'code_bummer_sounds.fla' under the 'build/flas' folder as an example of loading .FLAs as an asset. I ran a basic test some months ago, and it seemed to work ok. Flash Builder also has different options for loading Flex projects, so it gets a bit confusing.

For myself i usually start a 'pure' actionscript project just by renaming the .mxml to .as from the beginning.

It's a bit of extra hassle in your case, but once you've confirmed it works, then you'd only have to do the extra step upon completion when you're finally ready to publish.

ps. i'm still on 1ghz XP. <--it doubles as an ascii smiliey hehe.
[XPERIA X10 Themes and Apps] I7redd:
@everyone..

Speaking of pure Actionscript, just found this neat terminal thingy...

http://code.google.com/p/as3term/

Just have to point it to your SDK folder, and you're all done, woot!
[XPERIA X10 Themes and Apps] Nimche:
First I have to find the right version number for the June release. All the ones I have found are for May which I already have. Could you share the date of release so I can look for the CS5 file? I will make it work. My old friend Google will show me the way.

Cheers and thank you for your support./
[XPERIA X10 Themes and Apps] I7redd:
Oh WOW! Did i just get a happy surprise.. double checking for the dates on the all the Air related files i've collected since May, i found 1 copy of AIRforAndroid_FlashCS5 and it's precisely the June 3rd one that we needed. Yippee!!!

Hehe. This topic is already in top 5 on google searching for 'Android Air on Eclair' etc ..now it'll be #1 spot. :D I'll update the OP with June's Air SDK link and this Flash CS5 link once you confirm it's fully working on June's runtime. Cheers buddy!

Just uploaded.. (40mb)

http://www.mediafire.com/?22hewf5kg98u3sd

:cool:
[XPERIA X10 Themes and Apps] I7redd:
And for the sake of completeness, we should also try to find Mac and Linux SDKs for June 3rd also. Appears the files we're looking for are..

AIR25_lin_sdk_20100603.tbz2

and..

AIR25-mac-sdk-20100603.tbz2
[XPERIA X10 Themes and Apps] Nimche:
Got it to work but first you need to try this out and make sure that it works.
[XPERIA X10 Themes and Apps] I7redd:
Yup! A blue clock working perfectly in landscape on X10! :D

Also working on Nexus One running latest Adobe Air that's available on the Android Market (ie. v2.5.0.1660) ...with the slight proviso that it's locked in portrait mode. (fixable i'm sure of it)

Well, at least now we're all on the same page from the beginning. Briefly i was even contemplating reverting to May's SDK myself, but then we'd face the constant annoyance of everyone else on Froyo/Eclair saying "black screen, doesn't work".

Edit: 1st post updated with instructions and download links. :)
[XPERIA X10 Themes and Apps] Nimche:
Thank you for your help man, I am really happy that I can develop something for my phone now. I have locked that clock into Landscape as you have a choice if you want it locked.

I am trying to do variable screen code but my as3 code that I had didn't work, is there anywhere I can read the classes?
[XPERIA X10 Themes and Apps] I7redd:
Haven't run an accelerometer test yet either. Nearly finished the card game, then i'll check that Google's market will accept the .APK. Can't see any reason it wouldn't unless Google have strict version checking.

Not sure. Do you mean auto-rescaling content to the screen size?
[XPERIA X10 Themes and Apps] Nimche:
Yes, auto-rescaling.

For the market question, I submitted my app and it works. Try and search for Fourtest and you will find my app.
[XPERIA X10 Themes and Apps] I7redd:
They do it by default. I made mine for the X10, but on N1 it's been scaled down. (N1 is 480x800, so there's a thin black strip on either side of the game.

And on N1 your clock is scaled down to Portrait mode. (see attachment)

Hehe.. thanks for that. :D

Yeah, i just finished the process of publishing my first game to the market. Yay!

It took a while to put some finishing touches to the game. Then lots of little things to get published; Making screenie and promo graphic, resizing screenies for market (doesn't take google's own Nexus screenshots!), remaking a 25 year signed certificate, uploading second screenie (2 or 0 only!) and the list goes on.. :P

Anyway, it's under the name 'Hit or Miss?'. I'm testing payments (0.99c) so if you want the free one, i've replaced the attachment back on page 3.

Thanks for you help Nimche. I'll get started on another app/game soon as i've ported a few more Eclair examples that have surfaced in my collection.

Time for a beer!

Cheers!!

Edit: Cool, AppBrain report it as running on Android Eclair automatically!

http://www.appbrain.com/app/hit-or-miss/app.com.kustomzone.Hit_or_Miss

Thou it doesn't yet show up on 'Latest Powered by AIR Android apps' list.. wonder what's missing? Hmm, maybe "Adobe Air" in the description??
[XPERIA X10 Themes and Apps] I7redd:
Oh yeah,

I didn't fix that '2-sided card' bug yet, but it seems to have worked itself out.

I'm sure someone running the game in 2012 on 2ghz smartphone will notice it thou. ;)
[XPERIA X10 Themes and Apps] Nimche:
Wished for a developer's phone(nexus one) but it is ugly. Even this is working for flash on 2.1 but its not completed and not supported through adobe but it is a good start for me.

BTW, do you know if we can make widgets with this?
[XPERIA X10 Themes and Apps] I7redd:
I think the Android Air runtime only supports apps, not widgets or live wallpapers.

Okay. Time to start some tests for Eclair's usable 3D speed. ;)

http://www.flashandmath.com/advanced/simple3d/

Cube1 is based on ^this^ tutorial.

http://www.flashandmath.com/flashcs4/cs4simple3d/

Cube2 is based on ^this^ tutorial.

As the 2nd tutorial explains, it uses Flash10's 3D methods (Vector3D, Matrix3D)

One wouldn't expect to see any speed improvement with a simple cube, but what is noticeable is that cube2 follows one's touch regardless of orientation. (cube1 goes opposite way, left and right, when it's flipped 180 degrees in the Y-axis)

.
[XPERIA X10 Themes and Apps] Nimche:
Nice,

I searched and found that widgets are not possible now but it has been proposed to Adobe and may [may] be implemented.

Did you see that custom 2.2? if the GSM starts working we will have 10.1 full on it.
[XPERIA X10 Themes and Apps] I7redd:
Of course having Froyo on X10 would be best. Then Froyo's Air for Android would work, and GPU acceleration should work then too. I'm happy to keep coding in Air on Eclair (Flash10/AS3) right now for app development, rather than doing web-based Flash. Apps are where it's at, as a developer at least. ;)

Anyway, i find it curious that a Froyo rom should pop up now thou, since it's less than 2 weeks since SE release Eclair. If the bootloader isn't cracked, then how are they doing dual-boot with very latest Froyo?

I didn't read the whole topic (only 5 or so pages) but what is the delay on getting what they have out? Sure, camera, gsm, etc are vital for most users, but just putting out a half-baked rom would garner them a lot of credible support. (well supposedly, release early and often is the new mantra!)

I noticed you've already donated thou, so you must know more about those involved than i certainly do. But of-course i'll donate something if it turns out to be true, as they would definitely deserve it.

Earlier, I wrote a post about how donations should be more transparently handled. I suspect XDA's staff are working towards it, with the new donation buttons being good evidence. Therefore, i'm happy to support the XDA community in any way i can based on what i've seen in the 3 or 4 months that i've been here.

It's a big site.. so much to keep up with. The Win95 rom on X10 made me laugh! :D
[XPERIA X10 Themes and Apps] Nimche:
I get that.

I think that is something they will answer soon but it looks legit and developers I know will do it.(or have done it already)

I talked to him and they don't want to release anything half + partial reason behind it is SE with all those patches and they don't want to give them any chance screwing with their development.

You are a developer yourself and know money doesn't come automatically specially where lots of people "like" to use everything for free "with this bad global economy" issue.They need support and they money with put together here for donation is not anything close to what they deserve. They rooted the X10 after two months they got only around $1300 divided by 3 around $4xx per person for two months? go figure...

Donation as I said before is not a big part for Devs but ""but"" its really motivating. You are doing something for community and with even a $1 donation you feel that there is someone supporting you work and you will be happier to work on it.

Everybody is doing something different:D we are the only two in this section but I have seen other people downloading the files thou. I am working on stuff as well but nothing close to be done. Learning more and more...
[XPERIA X10 Themes and Apps] I7redd:
Yeh, what i suggested was an escrow system (opposite of E-screw haha) with refunds if the devs don't meet their own promises. At least then the devs could bank on a certain amount coming thru, rather than chance that people who pledged will pay. Likewise, those who donate have certainty that'll get what they're paying for, and therefore will likely pay a considerable amount more. (win-win)

True. 400 downloads of the runtime aint bad. If mediafire had visible stats we'd have better idea of how many other devs are interested.

I just saw an Android Air for 2.1 pixel-animator in the marketplace, but it was blackscreened (called 'Bridge Invaders'). If i wasn't so busy myself i'd email a few and say "hey, wrong SDK dude!" ..with a link back to this topic. :cool:

edit: btw, just started adding 'useful developer links' to the 3rd Post of this topic.
[XPERIA X10 Themes and Apps] james0072255:
Can't get sdk to work

I was excited to find this.I have a Samsung Captivate running Eclair 2.1-update1,

I have installed both the extension and runtime from the front page of this thread but when I create a very simple app just a stage and rectangle.It crashes when I go to launch it on my captivate.

I did have the latest extension installed before this oneIthe one for Froyo),could that be a problem?Maybe it's crossing some files?

Or does the Samsung Captivate Not have the requirements for AIR I did see LeeBrimelow use a Captivate in one of his video tuts though(gotoAndLearn).

All else fails I'll do a fresh install of Flash and try that but wanted to see if maybe someone might have a clue before I wipe flash.

Thanks

[EDIT]

It must be my phone and the runtime.I tried both Four.apk and Hit-or-Miss.apk from this thread.I am using the runtime from the front page of this thread;I get a blank screen four about 5-10 seconds then it crashes. :-(.

Kinda stuck now.ATT&T Samsung Captivate Eclair 2.1-update1

Maybe Captivate can't run air?
[XPERIA X10 Themes and Apps] Nimche:
Do you actually go to AIR terms of agreements and press OK?
[XPERIA X10 Themes and Apps] james0072255:
Yes I pressed O.K. when I tried the first application.It only asks once right?But yes I did press O.K. then I got a black screen the app crash and an alert dialog say the app stopped.
[XPERIA X10 Themes and Apps] Nimche:
It strange because this AIR should be for Eclair and should work. I had some problems similar to your before but it went away when I uninstall and installed it again on my phone with app installer.
[XPERIA X10 Themes and Apps] james0072255:
I tried uninstalling and re-installing several times with adb from the android sdk.
[XPERIA X10 Themes and Apps] james0072255:
I got it working by installing a leaked version of Froyo.It works great but all my apps I developed with the Android SDK do not show up in the market.

Doing some searches via google showed it to be because I had used application locking when releasing the app.

This kinda sucks really, I can easily change it in my Control Panel and will have to to release Air Apps from now on.

Just wanted to cut down on the piracy of my apps.Oh well!
[XPERIA X10 Themes and Apps] I7redd:
The leaked one.. could you mention the version/date for others to verify.

I've only deployed that card game using the June SDK, and as i mentioned, it doesn't show up in the 'Adobe Air' list on AppBrain, but does list in the general market, and was recognized as Eclair compatible which was a bonus.

I tried the lock feature just the one time, cos i noticed it said my test game was 6MB, not 3MB as it should be. This was before install, which is confusing cos it talks about using twice the memory, not doubling the install size.

Anyway, it says that method is soon to be depreciated, and i guess there's better ways to go about protecting one's app. Similarly, still looking for an ad-supported option, as there's appears to be a few companies that might sponsor games in particular.

The other thing i'm yet to work out is why my simple card game asks 'access to internet' and ALL those other things that's listed. I'm not sure how they are recognized, like if it's to do with import libraries (MX/Spark/etc) or lack of something in the app.xml file. It's a bit of a mystery besides running further tests to eliminate all possible causes.
[XPERIA X10 Themes and Apps] james0072255:
Oh I meant I upgraded my actual phone OS with a leaked version of Froyo.Sorry for the confusion.I am now using the latest SDK from adobe for froyo.

These apps I'm talking about were developed using the pure android/java SDK not flash.

I know in the latest version of the SDK you get a tab to check/uncheck which permissions to require.I Think the old SDK had them all enabled by default.I know in the Adroid/java sdk you put those in the manifest.xml
[XPERIA X10 Themes and Apps] I7redd:
:D

Getting confused.. so you're a Java dev, but you want to use Air SDK aswell?
[XPERIA X10 Themes and Apps] james0072255:
Yeah I wan't to use AIR SDK too.Using AS3 you can get going so much faster,but there is things you cannot do with AS3 that the Android SDK can do.
[XPERIA X10 Themes and Apps] I7redd:
True, thou the two languages are quite similar now as far as libraries and compiling and everything else goes, however the Air API is still pretty limited.

I'm guessing the Java devs have their community forums well worked out by now. Air development is still largely Adobe centered. I mean it's still quite hard to find groups working around Air apps or games for Android, besides posts in the wider blogosphere.

Even on XDA, i'm really not sure where app dev fits in.. there's strong development of themes and roms etc, but not apps or games. Sure, there's plenty of discussions ABOUT apps, but very little discussion about MAKING apps. It's puzzling, and i'm guessing it has something to do with the 'volunteer only' nature of XDA forums.

Any thoughts?
[XPERIA X10 Themes and Apps] james0072255:
Yeah,

The only place I have been able to get help and search a bit is the official Adobe forums for Air For Android,even then there are'nt a ton of posts.This is still fairly new territory for air.

I did buy a book off Amazon Here I do not recommend this book at all it was horrible it showed you how to set up flash for android then had a very horrible cookbook style to it.How to create a movieClip,How to create a TextField I mean very basic stuff and very little to do with Android Development and the relevant API.Total waste of money.

The SDK just became official too I think,so given time I'm sure there will be more sources for information.
[XPERIA X10 Themes and Apps] james0072255:
I was a little worried about people getting the .swf out of the .apk and decompiling it but I ran it through showmycode.com and it was a bunch of gibberish which is very cool.

Take that back Sothink decompiled really well
[XPERIA X10 Themes and Apps] Nimche:
Who is not anal? It becomes sort of your property and talent of how to code and unless you want to share it, no one should have access to it.(Thats your hard work right there, money making part)

There are some more software to convert your code into bunch of jumping buggers.

Happy Coding.

Sharing is caring...