How to - Deploy an APK in Android Emulator

11 posts / 0 new
Last post
rbmo
rbmo's picture
Offline
Joined: 29 Jun 2011
Posts:
How to - Deploy an APK in Android Emulator

Hello toghether,

how can i depoly an apk on Android Emulator with MoSync IDE? If not possible, please advise me how can i do it manually?

Thank you.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rbmo
rbmo's picture
Offline
Joined: 29 Jun 2011
Posts:

Now i've done it with "adb install ". Hope this will integrated soon in the next release.

Thank you.

gregorgullwi
gregorgullwi's picture
Offline
Mobile Conjurer
Joined: 13 Aug 2011
Posts:
rbmo wrote:

Now i've done it with "adb install ". Hope this will integrated soon in the next release.

Thank you.

+1 :)

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

rmbo,
You now can run the android emulator directly from MoSync and it will install the app for you on emulator, isn't it amazing?

gregorgullwi
gregorgullwi's picture
Offline
Mobile Conjurer
Joined: 13 Aug 2011
Posts:

Cool functionality! I would like a bit more parameters exposed though for the Android emulator... I normally use the scaling all the time, that would be a plus to have in MoSync as well.

Also, it would be nice to just update the emulator with the newest code, so that it doesn't have to be restarted each time. Right now I've added an external command to MoSync that runs: "adb /r install [myproject]" and that works great!

mclaasen
mclaasen's picture
Offline
Joined: 11 Dec 2010
Posts:

I ran the emulator from MoSync IDE. It installed the application and i could run it.
But after modifications in the source (HTML project) I now want to publish the application.
It keeps starting with the original application (sample application).
How can I fix this?

Regards,

Marc Claasen

mclaasen
mclaasen's picture
Offline
Joined: 11 Dec 2010
Posts:

I ran the emulator from MoSync IDE. It installed the application and i could run it.
But after modifications in the source (HTML project) I now want to publish the application.
It keeps starting with the original application (sample application).
How can I fix this?

Regards,

Marc Claasen

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Hi Marc, I'm not sure I understand the problem. Have you got two projects open? Or are you saying that its not published your changed HTML? Have you created a Run Configuration, because it may have that selected.

mclaasen
mclaasen's picture
Offline
Joined: 11 Dec 2010
Posts:

Hi,
I have 1 run configuration.
When i press The plat button in The ide The emulator starts.
But i see The old application.
When i open The index.htm in my browser it looks ok.
I tried The package with adb uninstall but this returns à failure (just this word no message)
Reinstalling with adb install returnsessage Package already installed.
Hope this helps.

Marc

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

OK, a few things here then. Firstly adb -r will reinstall a package, and abd uninstall where 'package' is the package name, not the application name - e.g. com.mosync.app_MYAPP.

If the device profile is set to Android, then it should send it directly to Android, without you having to run adb at the command line.

If the HTML is added as a resource (and I need to go and check an HTML5 project), then it perhaps hasn't detected the changes in the HTML. Change the resource file (.lst) and add an extra blank line or something just so it recompiles the resources. There will be a new improved resource compiler in MoSync 3.0

Hope this helps

mclaasen
mclaasen's picture
Offline
Joined: 11 Dec 2010
Posts:

Hi Sam,

apparently adding the line did the trick !!
Now I have the application running in the emulator.
Thanks for your help.

Marc