Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / problem with installing apk file

Author
Message
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 19th May 2012 22:47
I followed the process of creating apk file very step by step:

1- when i try to open my app it opens AppGameKit player.
2- so, i deleted both my app and the AppGameKit player from my mobile.
3- reinstalled my app again.
4- opened my app and the AppGameKit player 100007 is open.(that should have been deleted)

first question: everything is fine, app name, icons,..... but where the AppGameKit player come from and what am doing wrong in here.

second question: if everything has gone OK, is the generated file ready to submit to google or I still have to add more herbs on the top.

thanks

MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 20th May 2012 00:18
Hi,
did you remember to comment out the line in the interpreter.cpp file in order to allow the player integrated in the app, to use the bytecode.byc that you compiled (and put in assets directory)? In the manual it is explained clearly.
In latest AppGameKit distribution,line 249 of interpreter.cpp:

About the second question, the apk is ready to be submitted to Google but...
- you need the Developer account (25$).
- you have to feed images and description about your app.
- if you want to sell your app, you also need to set up payment detail.
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 20th May 2012 00:49
I did comment it out but I didn't move it to the asset of my app. I will do that as soon as I comeback home.

basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 20th May 2012 04:20
I checked what I did. nothing wrong actually. bytecode file is in the assets directory and // are commented out. basically every thing is as said in the manual but still getting the AppGameKit player coming out.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 20th May 2012 18:02
As of 1074, the assets directory has now been named media to be consistent across all environments.

They haven't updated the guide.

Rename your assets directory to media, clean and rebuild and it should work.

Cheers,
Ancient Lady
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 20th May 2012 18:39
@ancient lady. I wish you told me that just 1 hour ago. as i deleted every thing from scratch to try all again. but thank you very much.
I'll reinstall everything again and put media instead of assets.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 20th May 2012 18:50
I'm sorry. I had a bit of a sleep in and then had Sunday chores to do.

I added a google issue about updating the guides to reflect this relatively major change they did.

Anyway, Happy Programming!

Cheers,
Ancient Lady
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 21st May 2012 15:22
@ancient lady: just small correction:

you shouldn't delete the the assets file. you have to put the media file into the assets file.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 21st May 2012 16:06
It worked fine for me just renaming the directory.

I don't use any of the directory setting commands (yet), so maybe the default ok.

I'll double check to make sure it is working the way I think it is.

Cheers,
Ancient Lady
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 21st May 2012 19:24
Now is the time for Q*bert curses: #@*!
I was becoming mad to make my app to be loaded into my Galaxy Gio, and the same AppGameKit Player appeared instead of the game.
Luckily I found your thread, otherwise I was going to rollback.
The strange thing is that another app works well with the files directly into the assets directory, without media folder.
Thanks a lot.
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 21st May 2012 22:46
I wasted 3 days on it and by yesterday I was #@!.
I think because in the new build, you can call images from outside the media folder by pre-adding / to the image if it's in the route folder.

basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 22nd May 2012 19:14
another problem:

I wanted to update my app by adding a splash screen and making some files smaller.

1- changes are perfectly working on windows.

2- build the apk file.

3- uninstalled the old app from my mobile.

4- deleted the apk file of the old app.

5- moved the newly created app to the mobile.

6- the same old app is installed

7- kept trying many times but the same problem.

8- I changed the app name and the .project file and the manifest files etc....

9- rebuild the apk file.

10- and the old app is installed.

I don't know why is this happening.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 22nd May 2012 20:28
Okay, I double-checked while trying to test 'fixes' for issue with landscape mode and ads.

And I cannot get the cleaned/built/refreshed app to recognize my bytecode.byc file at all!

I tried in media and I tried in assets/media.

So, I went back to just assets (deleting the media and assets/media directories).

And it worked! And the ad worked in the correct place!

Between all builds and test, I uninstalled the app on the Android and closed and reopened Eclipse.

No flippin' clue about why it works when it shouldn't (according the the code in interpreter.cpp).

The only idea I have is that I never do any directory manipulations and so that it defaults to the known default location.

Cheers,
Ancient Lady
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 22nd May 2012 21:56
Am not doing any directory manipulation as well. The only thing is I will delete the interpreter files and put new one then try again.

basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 23rd May 2012 03:22
I cannot update the file, I deleted interpreter, interpreter_android, recompiled, regenerate the new app and still the old app appear on the mobile.

a lot of time being wasted

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 23rd May 2012 04:27 Edited at: 23rd May 2012 04:28
These might be a stupid questions, but did you uninstall the app on the mobile?

And, exit Eclipse?

And, refresh in Eclipse after cleaning and building in cygwin?

And, most importantly, uncomment the correct line in IDE/apps/interpreter (in your android path)?

Cheers,
Ancient Lady
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 23rd May 2012 12:45
Only to add some entropy:
- I have 3 apps compiled under 1.074.
- all the 3 apps access file system to write and read, without using /, ma using the basename (YES "mickeymouse.txt", NO "blabla/mickeymouse.txt" NO "mickeymouse.txt") so it should write in the default write dir
- one app has got the media into assets/media/, the other 2 apps have goto the media directly into the assets folder.
If I try to change position of media, the AppGameKit player appears?
What's happening?
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 23rd May 2012 12:46
sorry change NO "mickeymouse.txt" into NO "/mickeymouse.txt"
basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 23rd May 2012 14:52
I had to put everything in the media folder then move it to the assets folder. if you are using a splash picture then, move it from the media folder into the assets folder.

if you're putting '/' at the beginning of the file then, you can put all your files in the assets directory but, the bytecode file has to stay in the media folder.

basjak
13
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 23rd May 2012 18:43
I little bit solved my latest problem:

i had diffulties file divided into easy1, easy2,----easy8, medi1---medi8.

it worked fine on windows but my phone didn't read the files. but when I put all easy levels into one file called easy, medium... . the phone read the files but as files are big, it will take a while to reach far line of the file level which makes it boring for the user to wait.

Login to post a reply

Server time is: 2024-03-29 02:27:58
Your offset time is: 2024-03-29 02:27:58