Author Topic: Androids Works on emulator!!! Yesss.  (Read 6431 times)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Androids Works on emulator!!! Yesss.
« on: 2011-Apr-26 »
Well, I try to run under Android Emulator and works!!!, well all not is good, becuase on my second try, a very very simple arkanoid, whit a few graphics, runs very slow. (Perhaps I made some wrong, or perhaps don´t works properly, than a real device)

I show you a simple image, whit a "Hallo! Android".

Kinds Regards,
Iván J.


[attachment deleted by admin]

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4144
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Androids Works on emulator!!! Yesss.
« Reply #1 on: 2011-Apr-26 »
That's good news - to a degree.

While there appears to be more and more successes with using Android devices and emulators, I think that I'll hold back a bit before investing in any Android devices until -

1) The machines themselves are more reliable - in terms of input and speed.
2) Android is less buggy (I read a report earlier that there are 16,000 known/reported issues with it! Of course only 1% may be serious, but there's so many different devices, all doing their own thing that it's like the pc market - you can't be sure what works on one machine will work on any other :S :()

It's great that GLB is supporting Android - it's just a shame that Android itself has so many issues.
I came. I saw. I played.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: Androids Works on emulator!!! Yesss.
« Reply #2 on: 2011-Apr-26 »
Apart from the white 2D, it's actually quite good as it can create a complete game and 3D works also. List here:
http://www.glbasic.com/forum/index.php?topic=6163.msg48793#msg48793

MrTAToad

  • Guest
Re: Androids Works on emulator!!! Yesss.
« Reply #3 on: 2011-Apr-26 »
Yes, GLBasic works well on it - once I worked out why it wouldn't compile... :)

Android OS 2.2 (or rather the applications on it) do seem to be somewhat unstable - the Marketplace frequently crashes as do many other applications.  Whether its because 2.2 is inheriently unstable or due to the fact that it's a generic tablet is unknown.  Perhaps OS 3.0 will be better...

It is (and will be for some time) a big growth area, so its good to get in fairly early...

Will have to see what the emulator is like now that I've got a working Android application

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4183
    • View Profile
    • Portfolio
Re: Androids Works on emulator!!! Yesss.
« Reply #4 on: 2011-Apr-26 »
It is (and will be for some time) a big growth area, so its good to get in fairly early...

Totally agree...
At least with the emulator I will be able to try it on without having to pay for the device and an app-dev account first...
(I know I´m cheap :P)

MrTAToad

  • Guest
Re: Androids Works on emulator!!! Yesss.
« Reply #5 on: 2011-Apr-26 »
Quote
(I know I´m cheap )
Best way of doing it!

One thing I did forget to mention is that Smartphones and the (cheap) tablets aren't fast - so anything really complicated wont be possible.  For example, with the wretched Angry Birds game, I have to turn the background off for it to be playable...

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Androids Works on emulator!!! Yesss.
« Reply #6 on: 2011-Apr-27 »
Quote
At least with the emulator I will be able to try it on without having to pay for the device and an app-dev account first...

Unlike iOS, you only need to buy a dev license ($25) when you want to upload your app to the market place, Google doesnt stop you from running your app on a device like Apple does, as well as you dont even need to be on the market place, you can distribute your app how you like.

Though, there are a couple of warnings with Android dev...

Its prone to piracy, one coder I know who wrote a live wallpaper and was selling it for $1 (59p) ended up having his work dumped on the pirate pages... Which was a shame!

Another is Android users are prone to the auld "Buy it... Play it... Refund it" syndrome, not exactly sure if Google knocked that head, but where Apples policy is one refund I think, the last time I checked, Google allowed users to have unlimited refunds.

Dabz
« Last Edit: 2011-Apr-27 by Dabz »

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
Re: Androids Works on emulator!!! Yesss.
« Reply #7 on: 2011-Apr-27 »
Quote
At least with the emulator I will be able to try it on without having to pay for the device and an app-dev account first...

Though, there are a couple of warnings with Android dev...

Its prone to piracy, one coder I know who wrote a live wallpaper and was selling it for $1 (59p) ended up having his work dumped on the pirate pages... Which was a shame!
Dabz

Piracy is everywhere. My game Hit the Deck Baseball is available on IOS devices and it's on about every mobile app pirate site out there.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10697
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Androids Works on emulator!!! Yesss.
« Reply #8 on: 2011-Apr-28 »
A shame. Did you include some piracy checks? You could make the images of the pirated game so all players wear an eyepatch...

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: Androids Works on emulator!!! Yesss.
« Reply #9 on: 2011-Apr-28 »
Eyepatch is a great idea. How about when on a piracy check a sound file plays "arrrrgh" or "aye aye captain"?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10697
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Androids Works on emulator!!! Yesss.
« Reply #10 on: 2011-Apr-28 »
I would not make it too cool, because otherwise the pirated version is more interesting than the real one.

MrTAToad

  • Guest
Re: Androids Works on emulator!!! Yesss.
« Reply #11 on: 2011-Apr-28 »
Yes, the emulator works well - just use

Code: GLBasic [Select]
adb install <apk file>

with the emulator visible (otherwise it will say error:device offline)

[attachment deleted by admin]

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Androids Works on emulator!!! Yesss.
« Reply #12 on: 2011-Apr-28 »
MrTatoad, you have a good speed on the emulator, for me runs very slowly.

Kinds Regards,
mentalthink

MrTAToad

  • Guest
Re: Androids Works on emulator!!! Yesss.
« Reply #13 on: 2011-Apr-28 »
Well, its acceptable for the program - it certainly wouldn't be if it was a fast, action game or had a lot of processing to do.

I do have a fairly fast computer anyway, which helps :)

Offline OscarBraindeaD

  • Mc. Print
  • *
  • Posts: 20
    • View Profile
Re: Androids Works on emulator!!! Yesss.
« Reply #14 on: 2011-May-02 »
hi all,
what version of sdk/API level are needed in the AVD created in order to run the apk?
When I try to install the apk in the emulator it fails with:


828 KB/s (1796558 bytes in 2.116s)
   pkg: /data/local/tmp/gl.apk
Failure [INSTALL_FAILED_OLDER_SDK]

I'm on mac os x 10.6.6.
I've tried API levels 4 and 7 with the above error message and the API level 11 give me an "error: device not found", with the emulator running...

Any idea?

Thanks in advance.
Regards