Android, basic code testing without emulator - android

I'm developing an Android app on a relatively slow computer that can't handle the emulator very well, and I am without an Android phone.
I looked at Roboelectric, but literally all I want to be able to do at this point is run my application and Log to the command line. What is the best testing framework to do this?
Thanks!

The emulator and Robolectric are pretty much the only games in town. That's the state of the art of testing on Android I'm afraid. Sorry!

Related

Are android apps run in emulator just for testing purposes?

I created a back office corporate tablet android app. Now the client wants the same app in a browser so users on a desktop can have the same functionality.
Can I just use an emulator for this? I.e. setup an android emulator on the users' laptops? Or are emulators not for production use but rather just for testing?
So can I use an emulator or do I need to develop a Web app?
Can I just use an emulator for this?
NO
Or are emulators not for production use but rather just for testing?
YES
1 Can I just use an emulator for this?
Yes! But hardware needs to be pretty beefy you have to test it. And don't use standard Android emulator use genymotion instead it's fast, very fast.
2 Or are emulators not for production use but rather just for testing?
No! There is a lot of such use. Look at genymotion or bluestack.
*note genymotion runs on virtualbox.
You cannot use emulator for this. Also emulators are mainly just for testing. Many features do not work on emulators.
You will have to build a similar app to work on desktops :)

Importing android application into Blackberry OS 10

I am trying to import an Android native app into the BB OS 10 but while configuring the Simulator it's not detecting it; I searched Google but was not able to find the solution.
Please let me know how to add the simulator to Eclipse and also, I run the VMWare Player but while playing I am getting
Error recovering the memory
Thanks in advance.
Have a stroll round the official BlackBerry Android micro-site - repackaging information is included there.
http://developer.blackberry.com/android/
You can deploy to a Simulator, though to be honest, it is easier to deploy to a phone (if you have one).
I have not had a memory problem running a Simulator. Be aware that you start up your VM Player, and then open the Simulator VM within that. This you should be able to do independently of anything else you are working on (like Eclipse).
I suspect the android forum will help with other questions you might have:
http://supportforums.blackberry.com/t5/Android-Runtime-Development/bd-p/adt

Testing Android apps on device

What is the recommended way of testing an app on a device? The emulator is slow, mostly unresponsive and a cpu beast on my machine, so I use my phone to test my app. When I make a change to code, Eclipse builds it automatically, and then I debug it on the device. Is this the most efficient way to test small changes in code?
Android has some information on testing here. Personally I've found that testing code is much faster on a device. Other options without a device is to use something like Android x86 and run it in virtual environment like VirtualBox - this can be faster than the emulator. In my opinion, to really make sure your application is working as expected (especially with graphics and memory usage) is to test with the device(s) you intend to deploy the application on.
That's how I test my code, the emulators and on an actual device are the only ways I know of. I usually use an actual device, but I think you can keep an emulator running to speed up time a bit, but not too much.
It's in my opinion a good way to check the general functionality of your application. If everything works fine, I would use the emulator to check with different versions of android/screen sizes/resolutions etc. Maybe you can ask a friend who has a more powerful PC. The best possible thing is of course that friends/family/relatives etc. own Android devices so you can test your application / let it be tested on real devices.

Is it possible to virtually test Android application on different hardware?

I am looking for a way (maybe impossible) to test my PhoneGap Android application on different phones / hardware. As I am able to obviously test it only on my phone, but some people are reporting that my app doesn't work / crashes / explodes on their phone. Is there any way how can I test my app on different phones without buying actual device ? Maybe virtually like running Android in an emulator or somehow ?
It is kind of frustrating knowing that the app works perfectly, but some people are not able to even start it...
EDIT: I am certainly testing the app in Android emulator, but that only helps to test on different Android versions. But I am looking for a way how to test in on different phones without actually buying it - if it is possible ?
There is a company called DeviceAnywhere: http://www.deviceanywhere.com/ that seems to be doing that.
But it may cost you. If you don't want to buy all those devices, somebody else will have to. Plus they have to build the infrastructure to support remote access. Does not sound like something you would get for free.
Like DeviceAnywhere, there is another company that will let you test your application on multiple hardware devices. It https://appthwack.com/ . They do have 100 mins of free plan to test out, so go ahead and try this out.
You can run it through the emulator that is provided with the Android development kit through Eclipse. But this will only help test the code on different versions of Android not necessarily on the different hardware so if it is really a hardware problem this will not help but if it is related to the different versions of android this should help you find the problem.
Here is information on the emulator and how to use it: http://developer.android.com/guide/developing/building/building-eclipse.html#RunningOnEmulatorEclipse

How do I get started with developing for Android without an Android phone?

More or less as it says on the tin.
Before I even contemplate downloading the SDK, I was wondering if there was any way of testing Android apps that I'd write without an Android phone available to me? I'm unsure as to whether or not the tools that come with the SDK come with an emulator like VS does for Windows Mobile.
Sorry if this is a stupid question, but maybe I'm searching for the wrong thing.
Edit I don't suppose there's anything that'll let me write widgets on/for an emulated version of the interface HTC use on the Hero/G2 either is there? Not that it would matter that much.
There's an emulator available as part of the SDK.
http://developer.android.com/guide/developing/tools/emulator.html
I'd add that the emulator is really quite comprehensive. Things like camera previews don't actually display camera data, but they put block animations in their place. All in all it's one of the best mobile emulators I've seen to date. Probably better even than gasp the iPhone simulator.
As said above there's an emulator available,however with larger apps it gets fairly tedious to use the emulator.Its fine for learning the ins and outs but id suggest investing in an android phone once you've got a good grasp of the sdk,it really does make a difference!.

Categories

Resources