Building an Android .apk -file

Learn how to make certain types of games and use gameEditor.

Re: Building an Android .apk -file

Postby Leif » Tue Jan 24, 2012 7:10 am

Well, inspired with new possibilities, I made perfomance testing program. Main task was: test on my galaxy s how fps depends on actors size.
Program is simple - it displays number of actors and fps, by pressing buttons you can increase amount of actors and change actor animation size. All animation are pictures 4x4,8x8...1024x1024.
I builded 3 .apk files (see attach) - for frame rates 30, 24, 16 fps. All of them are 840x480.

Main problem, that i noticed - very unstable fps :( Even with 0 actors it jumps from 16 to 12 (for 16 fps),i.e. unpredictably changes by 25-50%. Same story with 24 and 30.
Well, if it's because of unoptimized engine, please pay great attention to this.
If it's my fault (something wrong with build settings) - what i did wrong ?

Files here
http://www.filefactory.com/file/c2c20a1 ... e_test.zip
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score

Re: Building an Android .apk -file

Postby Clokio » Sun Mar 04, 2012 2:08 pm

I found a link to install the NDK on mac, pc and linux for those using those platform. It's old but it can help us to develop a solid procedure.
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/#.T1N3Pcy0bYE

Maybe these are more up to date
http://developer.android.com/sdk/installing.html
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Building an Android .apk -file

Postby friedfish » Sat Jul 21, 2012 7:21 pm

hey guys,

I tried to follow the instructions one by one but then when I tried to open it on the phone it shows the ge splash then shows me a blank white screen...
you guys have any idea why? any info I need to present so that you may know what's wrong?

-friedfish
User avatar
friedfish
 
Posts: 75
Joined: Wed Mar 14, 2012 2:31 pm
Location: UK
Score: 7 Give a positive score

Re: Building an Android .apk -file

Postby lcl » Mon Jul 23, 2012 8:36 am

friedfish wrote:hey guys,

I tried to follow the instructions one by one but then when I tried to open it on the phone it shows the ge splash then shows me a blank white screen...
you guys have any idea why? any info I need to present so that you may know what's wrong?

-friedfish

Never happened to me :o
Have you tried building it again?
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2241
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: Building an Android .apk -file

Postby friedfish » Mon Oct 01, 2012 1:22 am

sorry about this late reply lcl.

I tried this again and followed the instructions properly this time and it worked using 2.3.3 but then the game crashes.
what it does id show the splash - starts the game - freezes and goes back to splash.

I'm trying it on my Samsung Galaxy S3. android version 4.0.4.

thank you...

-friedfish-

EDIT:
forget about my post above. It is working now. My fault was exporting it as dat for pocket pc, handheld pc and such. I tried exporting it to an iPhone dat or level dat and it works.

one more thing though. how would I go about have multiple dat files? main.dat, game.dat, win.dat.
User avatar
friedfish
 
Posts: 75
Joined: Wed Mar 14, 2012 2:31 pm
Location: UK
Score: 7 Give a positive score

Re: Building an Android .apk -file

Postby MrJolteon » Fri Nov 16, 2012 8:44 pm

I can't seem to find SDK manager.exe.
Join us on Discord!

Your local Community Janitor
User avatar
MrJolteon
 
Posts: 2277
Joined: Sat Aug 09, 2008 3:25 pm
Location: Page 400 of the interblag
Score: 100 Give a positive score

Re: Building an Android .apk -file

Postby lcl » Sat Feb 09, 2013 5:54 pm

MrJolteon wrote:I can't seem to find SDK manager.exe.

Are you sure you have gone through the step 2:
lcl wrote:2) Download and install Android SD, you'll find it here:
Code: Select all
http://developer.android.com/sdk/index.html

Choose the one that's recommended. If it tells you to get Java SE Development Kit (JDK), get it.
Don't install it to Program Files (x86), because windows will not let it download what it has to download.

You can find SDK Manager.exe from the folder where you have installed Android SD.
The folder is 'android-sdk'. The SDK Manager.exe should be there.
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2241
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: Building an Android .apk -file

Postby MrJolteon » Sun Feb 10, 2013 8:21 am

lcl wrote:
MrJolteon wrote:I can't seem to find SDK manager.exe.

Are you sure you have gone through the step 2:
lcl wrote:2) Download and install Android SD, you'll find it here:
Code: Select all
http://developer.android.com/sdk/index.html

Choose the one that's recommended. If it tells you to get Java SE Development Kit (JDK), get it.
Don't install it to Program Files (x86), because windows will not let it download what it has to download.

You can find SDK Manager.exe from the folder where you have installed Android SD.
The folder is 'android-sdk'. The SDK Manager.exe should be there.

I did that.
There is no android-sdk folder.
Join us on Discord!

Your local Community Janitor
User avatar
MrJolteon
 
Posts: 2277
Joined: Sat Aug 09, 2008 3:25 pm
Location: Page 400 of the interblag
Score: 100 Give a positive score

Re: Building an Android .apk -file

Postby lcl » Sun Feb 10, 2013 9:56 am

Then I don't know how I can help you. It's pretty difficult to just try to guess what has gone wrong.
Do you have Java SE Development Kit installed?
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2241
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: Building an Android .apk -file

Postby MrJolteon » Sun Feb 10, 2013 5:06 pm

I think so.
Join us on Discord!

Your local Community Janitor
User avatar
MrJolteon
 
Posts: 2277
Joined: Sat Aug 09, 2008 3:25 pm
Location: Page 400 of the interblag
Score: 100 Give a positive score

Re: Building an Android .apk -file

Postby lcl » Sun Feb 10, 2013 7:37 pm

But you're not sure? You should check.
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2241
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: Building an Android .apk -file

Postby gustavo02 » Sat Feb 16, 2013 3:05 am

I'm very grateful for the tutorial. Even I not having any idea of what I was doing while was following the steps, the game worked fine in my Android Device in the end.
gustavo02
 
Posts: 6
Joined: Tue Feb 12, 2013 8:22 pm
Score: 0 Give a positive score

Re: Building an Android .apk -file

Postby knucklecrunchgames » Sun Feb 17, 2013 3:29 pm

I am lost. could someone install it all to a disc and compress it into an .iso image?
User avatar
knucklecrunchgames
 
Posts: 1124
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Building an Android .apk -file

Postby lcl » Sun Feb 17, 2013 5:50 pm

knucklecrunchgames wrote:I am lost. could someone install it all to a disc and compress it into an .iso image?

What are you talking about?
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2241
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: Building an Android .apk -file

Postby knucklecrunchgames » Mon Feb 18, 2013 7:24 pm

lcl wrote:
knucklecrunchgames wrote:I am lost. could someone install it all to a disc and compress it into an .iso image?

What are you talking about?


like with image burn or something something ( sorry, takling gibberish)
User avatar
knucklecrunchgames
 
Posts: 1124
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron