AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!

Started by Joseph DiPerla, Wed 22/02/2012 20:00:38

Previous topic - Next topic

Joseph DiPerla

http://dl.dropbox.com/u/63498272/AGSStream.apk

OK, so I have started a new project for AGS. This is a marketplace for AGS on Android. Packaging Games into the AGS APK is a hassle if not impossible. So I started this project this way it can be a place for those interested in AGS to download games automatically. Also, since many have had trouble in knowing where to extract the game files (including myself), I have made this utility as a way to download the game for you and put the files where they need to be. All you have to do is run AGS and choose the game you want to play.

Now, keep in mind, this is a super Alpha version of the market( Hence version 0.0.1) and was only done in 20 minutes. In the next couple of weeks I will be prettying it up and adding more games to the list. Right now it only has Space Quest -1. Test it out.

Here is a roadmap of what I plan to have done:

Features of Version 0.1.0 (Will be released in the next two weeks:
*Scroll through a list of games to choose from
*Ability to download the latest version of AGS for Android and install it.
*Featured Games page.
*Ability to download and install games automatically.
*Ability to run AGS from within the app.
*The Game page features a description, images, creators, team, etc.. and other features for each game.
*Has the ability to tell you if a game has already been downloaded from the market.

Roadmap (Not Guaranteed):
Version 0.1.1 will have:
*A hopefully nicer UI
*The ability to rate games and add comments.
*Sort by Genre feature - Hopefully.

Version 0.1.2:
*Ability to uninstall a game.
*Ability to search for a game.

Future:
*Stability fixes
*Even Nicer UI
*Ability to sell commercial games.
*Ability for users to upload their own games to the market.
*Have more games listed in the market.

---------------------------------------------

For the time being, this app will not support commercial projects. Its too much of a hassle. However, if you have a commercial game and would like it on the Android Market for download, I will create a special package that will download AGS and the game for you and set it all up for you. I will also walk you through creating a developer account on the android market and teach you how to upload the game so that you can make cash. If you are interested in this, please PM me.

In the meantime, check out version 0.0.1 of the app and be kind in your criticism of it. We just had a baby a couple of months ago and all I could do is 20 minutes of work on it today. Enjoy. Here is the link again:

http://dl.dropbox.com/u/63498272/AGSStream.apk


---------------------------------------------

Version 0.0.2: 2/23/12
*Added the ability to automatically download and install AGS for Android.
http://dl.dropbox.com/u/63498272/AGSStream.apk

Version 0.0.3: 2/23/12
*Fixed a couple of bugs.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

Joseph DiPerla

New Minor version already released.

Version 0.0.2: 2/23/12
*Added the ability to automatically download and install AGS for Android.
http://dl.dropbox.com/u/63498272/AGSStream.apk
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

JJS

Cool stuff!

Some problems though:

- At first I had AGS already on the phone (which was detected by the app) and I downloaded Space Quest. But it showed the "Download complete" notification multiple times (3 times I think) before the download was actually finished and I could start the game. The game was then playable though.

- Then I uninstalled both AGS and AGS Stream and tried the "download AGS" option. The download started and the button immediately changed to "already installed". After some time this error occured (from logcat):
Code: ags
02-23 09:23:54.508: I/B4A(3007): ** Activity (main) Create, isFirst = true **
02-23 09:23:54.999: I/B4A(3007): ** Activity (main) Resume **
02-23 09:24:50.083: E/B4A(3007): main_response_streamfinish (java line: 462)
02-23 09:24:50.083: E/B4A(3007): android.content.ActivityNotFoundException: No Activity found to handle Intent
 { act=android.intent.action.VIEW dat=file:///mnt/sdcard/AGS_2012-02-14_10-05-58.apk typ=application/apk flg=0x20000 }
02-23 09:24:50.083: E/B4A(3007): 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
02-23 09:24:50.083: E/B4A(3007): 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
02-23 09:24:50.083: E/B4A(3007): 	at android.app.Activity.startActivityForResult(Activity.java:2827)
02-23 09:24:50.083: E/B4A(3007): 	at android.app.Activity.startActivity(Activity.java:2933)
02-23 09:24:50.083: E/B4A(3007): 	at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:665)
02-23 09:24:50.083: E/B4A(3007): 	at com.agsstream.diperla.main._response_streamfinish(main.java:462)
02-23 09:24:50.083: E/B4A(3007): 	at java.lang.reflect.Method.invokeNative(Native Method)
02-23 09:24:50.083: E/B4A(3007): 	at java.lang.reflect.Method.invoke(Method.java:507)
02-23 09:24:50.083: E/B4A(3007): 	at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
02-23 09:24:50.083: E/B4A(3007): 	at anywheresoftware.b4a.BA$1.run(BA.java:218)
02-23 09:24:50.083: E/B4A(3007): 	at android.os.Handler.handleCallback(Handler.java:587)
02-23 09:24:50.083: E/B4A(3007): 	at android.os.Handler.dispatchMessage(Handler.java:92)
02-23 09:24:50.083: E/B4A(3007): 	at android.os.Looper.loop(Looper.java:130)
02-23 09:24:50.083: E/B4A(3007): 	at android.app.ActivityThread.main(ActivityThread.java:3835)
02-23 09:24:50.083: E/B4A(3007): 	at java.lang.reflect.Method.invokeNative(Native Method)
02-23 09:24:50.083: E/B4A(3007): 	at java.lang.reflect.Method.invoke(Method.java:507)
02-23 09:24:50.083: E/B4A(3007): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
02-23 09:24:50.083: E/B4A(3007): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
02-23 09:24:50.083: E/B4A(3007): 	at dalvik.system.NativeStart.main(Native Method)
02-23 09:24:50.083: E/B4A(3007): android.content.ActivityNotFoundException: No Activity found to handle Intent 
{ act=android.intent.action.VIEW dat=file:///mnt/sdcard/AGS_2012-02-14_10-05-58.apk typ=application/apk flg=0x20000 }
02-23 09:25:19.111: I/B4A(3007): ** Activity (main) Pause, UserClosed = false **
02-23 09:25:19.201: I/B4A(3007): ** Activity (main) Create, isFirst = false **
02-23 09:25:19.762: I/B4A(3007): ** Activity (main) Resume **
02-23 09:25:56.407: I/B4A(3007): ** Activity (main) Pause, UserClosed = true **
02-23 09:27:31.931: I/B4A(3059): ** Activity (main) Create, isFirst = true **
02-23 09:27:32.461: I/B4A(3059): ** Activity (main) Resume **
02-23 09:27:35.244: I/B4A(3059): ** Activity (main) Pause, UserClosed = true **

Now I cannot install AGS through the app anymore because the button says it is already installed while it is acutally not.


Edit: Added linebreaks to avoid breaking the forum layout.

Edit2: Maybe I should add, HTC Desire rooted with Android 2.3.7
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Joseph DiPerla

Oh my... Thats quite the Log file. I will look into it. Thanks JJS.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

Joseph DiPerla

Ok Version 0.0.3 is uploaded now with the bugfixes (I hope). Try re-downloading the APK file and trying again.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

JJS

Still the same error when trying to install the APK. But I did a bit of testing and this works for me:
Code: ags
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/AGS_2012-02-14_10-05-58.apk")),
    "application/vnd.android.package-archive");
startActivity(intent);

It is based on information found here: http://stackoverflow.com/questions/4967669/android-install-apk-programmatically
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Joseph DiPerla

I actually had that in there with one difference. Instead of:

application/vnd.android.package-archive

I had:

application/vnd.android.packagearchive

Give it a shot. I uploaded the new package. It should work this time, I hope.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

JJS

Quote from: Joseph DiPerla on Thu 23/02/2012 13:19:33It should work this time, I hope.
It does :)

edit:
I don't know how much I should criticize, but if you cancel the installation the app still thinks it is installed till it gets restarted. Also the button doesn't change from "Downloading" to "Downloaded. Click to install" automatically, but also only on restarting the activity. Turning the phone, lets the button text change to the "Downloaded. Click to install" one too but clicking it brings up an error about an invalid APK (obviously since the download is not yet finished).
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Joseph DiPerla

Haha! Now I can move on to adding some new games and features. Thanks for the input JJS.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

Joseph DiPerla

Very thorough testing JJS. Let me look into it. If worse case scenario, I will just remove orientation switching.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

WHAM

Game added, let's hope it works.
EDIT: Also: wrong thread  ;D
Wrongthinker and anticitizen one. Utterly untrustworthy. Pending removal to memory hole.

Joseph DiPerla

Awesome! Version 0.0.4 will have the new database loaded automatically from that point forward.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

Haggis


deltamatrix

BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

DazJ

Is there no way to create standalone APKs of AGS games that will perhaps combine the engine itself so people can download and just run your game like a normal app/game?

R4L

 Idk if it's because I'm on ICS 4.0.3. on a tablet or if you're still updating it, but AGS works fine; this doesn't though. Maybe I'm using it wrong? It's on my home page on my tablet and clicking it just opens a black screen with a white box saying AGS Stream, and under it it says Coming Soon. Am I doing something wrong?

EDIT: also tested on my rooted LG Optimus V running Froyo and this time AGS Stream won't even install.

Joseph DiPerla

DazJ: Yes, I am planning on trying to make a utility so that anyone who wants to create a commercial game and upload it to the Google play store.

R4L: Its still in Beta so that front page that loads is not complete. That is supposed to be a featured games page and I haven't really implemented too much into it. However, the true form is in the AGS tab which will install AGS if its not already there. Also, there is a games page with one game displayed which will download the necessary files. Its a space quest game. It will take a few minutes to download and install it. Then go to AGS itself and the game should appear there.
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

SMF spam blocked by CleanTalk