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.

Author
Message
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 10th Jul 2013 20:11
sorry I didn't know there was a second page, the messages were in response to older questions. the apk is called user_form.apk

kirtnicholls
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 10th Jul 2013 20:12
I upload the apk file onto drop box then install it from the dropbox application on my device

kirtnicholls
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 10th Jul 2013 20:13
changed the name to 'userform.apk' but it still does not work

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 10th Jul 2013 21:19
The underscore wouldn't have been the issue.

Let's start again. Show me the code that you are testing now that you are having issues with. I just went through this thread from the beginning and it is very unclear what you are currently testing.

At this point you should be testing the simple test I posted (the one that just goes straight to sending an email without all the input stuff).

Until you get that working, the fancier input stuff is useless. Especially if you are having issues with your device accepting input. Did you try my reworked version of your code?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 11th Jul 2013 21:07
to make my application I am using tier 1, agk v10811 (beta). this is the script I have used:


I have used eclipse and set it up as explained in the agk documentation. I have ran the application using the emulator and then taken the apk file from the folder names 'bin' and installed it via dropbox onto a Samsung galaxy note and a htc sensation.

-this is your reworked code

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 11th Jul 2013 21:44
As I have said, the emulator does NOT work properly. Just hit the 'No' button when the dialog titled 'Android AVD Error' pops up. And then hit the 'Cancel' button in the 'Android Device Chooser' dialog. The correct apk will be generated and there won't be any issues associated with the emulator. (I just looked at my initial instructions about this and told you to cancel in the wrong place.)

And until you get this code to work, it doesn't make sense to worry about the complete app yet:


So, don't use the emulater and try just the simple code above. If it works when broadcast and you have the correct stuff set up in your Android setup, this should work.

One of the key things to be sure of is that the <androidpath>/IDE/interpreter_android directory you started from for making your own android app (copied and renamed and changes made to AndroidManifest.xml and other files to set to your package and program names) is the same version as the AppGameKit IDE that you created the byte code file with (<windagkpath>/<yourproj>/media/<yourproj>.byc).

And, just so I know what you mean, what exactly do you mean/see when you say it isn't working?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 14th Jul 2013 20:41
i have no android adv error pop up

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 14th Jul 2013 22:21
Did you by any chance tell Eclipse to use the emulator as the default the first time?

If you did, then the trick is to figure out how to tell it not to use the default 'device'. And I haven't done that.

I would not be at all surprised if the apk file gets messed up because it is being built for the emulator. And/or the emulator does something to the apk file that makes it unfit for devices.

By the way, what Android version(s) is/are the device(s) that you are running the Player and testing with the actual apk on?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 14th Jul 2013 22:28
how do I make a device the default device?

kirtnicholls
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 14th Jul 2013 22:34
Samsung galaxy note gt-n7000 android 2.3.6

kirtnicholls
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 14th Jul 2013 22:59
ive ran the script you gave me "11th Jul 2013 20:44" and it doesn't do a thing

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 15th Jul 2013 03:41
Quote: "how do I make a device the default device?"

Once you've done that, and it sounds like you probably made the emulator the default some time in the past, I don't know how to change it. If, when you tell Eclipse to run the app, it goes straight to the emulator without asking you any questions, then you must have set it as the default at some point. Try googling or the Eclipse help to see if you can find out if it has a default set and how to unset or change it.

Quote: "ive ran the script you gave me "11th Jul 2013 20:44" and it doesn't do a thing"

Did you try it on a Player first?

Does "doesn't do a thing" mean you don't even see the "did it go?"message.

I tested using a Player on my Android 2.3.3 device and (since I had previously set up mail on it just to test this for you before) the email popped up ready to send.

Quote: "Samsung galaxy note gt-n7000 android 2.3.6"

That is at least above the minimum Android version supported.

(And you can use the 'Edit Post' link to the left of the post to add to a post instead of creating new ones.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 15th Jul 2013 11:49
I managed to set the phone to the default device. The message comes up but the message doesn't send

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 15th Jul 2013 16:34
Quote: "I managed to set the phone to the default device."

I take this to mean that you were able to get Eclipse to use your phone as the default device to run on. Good. That makes things easier.

Quote: "The message comes up but the message doesn't send"

Does this mean that you see "did it go?" on your phone? (If yes, than we are making great progress.)

But that the email app did not pop up with the filled in message ready to send? (This might now be an issue with the phone.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 18th Jul 2013 13:36
Did it go came up but the email app did not pop up filled in

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 18th Jul 2013 16:35
Well, at this point, without actually getting my hands on your device and computer, I have no more help to offer.

Just one last question. Are your sure your email capability hasn't been disabled on the phone?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 20th Jul 2013 21:38
how would I check?

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 20th Jul 2013 23:57
Try to send one using the email app on your device.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 22nd Jul 2013 10:40
The email send successfully

kirtnicholls
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 22nd Jul 2013 17:10
Then it sounds like it is some sort of issue with your phone.

Have you tried updating to the latest beta (v10815)?

It's not impossible that many of the fixes since v10811 might fix your problem as well.

If you do update, do yourself a favor and install in a different directory than your current v10811 and create a new directory for your Android setup as well. In that way you won't run into corruption issues by overwriting (or not, in the case of the Android setup due to permission issues).

And, if you update, you need to be very careful to make sure that you update all the AppGameKit core files and libraries in your Android project. Your best bet is to start with a fresh project from the <androidpath>/IDE/apps/interpreter_android directory (or use the prebuilt one, but I have no experience with that one).

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 26th Jul 2013 19:31
Ok thankyou, i will have a go and see how it works out

kirtnicholls

Login to post a reply

Server time is: 2024-11-24 20:52:45
Your offset time is: 2024-11-24 20:52:45