Few days ago I moved to HUAWEI P9 phone and try to keep developing my app.
My new problem (have not seen it on other devices..) is that my app is getting killed after the screen turns off (not immeditaely but after a minute or too).
To be sure that the issue is not related to my application, I created the simple "hello world" application from the android studio, and the behavior is exactly the same.
I'm running Android 6.0 (API 23) on my device.
Any Idea why even the simplest app is getting killed after the screen is turned off?
Thanks!
Lior
You need to add your app in the 'protect application with battery saver' (under battery's option).
Hope this helps
I have been developing an Android application and testing the orientation sensor using SensorSimulator. It's great, but I would really like to test it out on an actual device.
My problem is that I do not have an Android device. I do however have an iPod. Does an app exist that could send the iPod's orientation information to the android emulator on the PC?
I think there's no way except you develop an app yourself to do that!!
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!
I have an android app with more than 500,000 users. I want to try to port it to WinPhone7, but I haven't any smartphone with WinPhone7. Is a real device needed to publish an app on WinPhone? Is there some developper phone?
First of all, I will say that for some scenarios, there is no real substitute for have a physical device to test against. Having said that, I would suggest that 99% of what most apps will do can be developed and test perfectly well on the emulator that comes with the developer tools.
The advantage of the emulator is that you can write and test without shelling out for the hardware and then signing up to create.msdn.com to get it (officially) unlocked, but once you are ready to deploy to the marketplace you will need to sign up anyway.
In your case, I'd say the main word in your question is "try". You don't seem confident in being able to port to the platform so the emulator route seems like the best starting point.
Your will find a Windows Phone 7 emulator in the Windows Phone SDK. You can download it for free on create.msdn.com.
There is an Android to Windows Phone API mapping tool and Windows Phone 7 Guide for Android Application Developers white paper as described on the Windows Phone Developer Blog that you should find very useful.
For getting a development device, you should reach out to Brandon Watson or your local Microsoft WP7 dev rep.
Simple answer - no, you don't. There are plenty of applications out there that were published without being tested on an actual device. Whether it's a good idea or not - that is the main question here. Depending on your application type and its behavior, you might actually need a device.
Also, another problem is the fact that the resources used by the emulator are different from the resources used by the actual device. That being said, if your application runs just fine in the emulator, it will not necessarily run the same way on a device.
You can use the WP7 emulator to test your application. But if you want to deploy it on a real phone, you will have to unlock it though the App Hub portal. That will cost you 100 dollar/year though.
As you and others have rightly pointed out, you can start porting your application using the emulator. There are differences in the emulator and real devices. In particular, to answer your question, emulator does not take pictures.
If your Android app really has half a million users, MS will happily give you a developer device (nearly) for free.
Contact #BrandonWatson or #FrankPR on Twitter.
From my experience I can tell you, that the emulator works very well. But once in a while you will stumble about a problem that you don't understand why it happens. Then you try it on the phone and it works... So... The answer is yes...not!
Im planning to port my iPhone Game to Android, since the Android Simulator does not support GLES v2, I need to purchase a device to port the game.
What Im looking for is a device that have the following:
Android v2.3.x OS
Graphic Chipset (from Imagination Technologies)
Any suggestions?
Also I would like to know how it work developing for Android, is it similar as for iOS? plug the device through USB then from Eclipse with the Android SDK and NDK then launch and debug? Or is there other step that have to be done to be able to develop and debug directly on the device?
Tks in advance for your inputs!
Also I would like to know how it work developing for Android, is it similar as for iOS? plug the device through USB then from Eclipse with the Android SDK and NDK then launch and debug? Or is there other step that have to be done to be able to develop and debug directly on the device?
You can just press "Run" in Eclipse and your app will be uploaded to your device and start running. You can even debug on the running device itself. Yes you heard right. You can debug off the tablet you just plugged in.
Any suggestions?
I am using a Samsung Galaxy Tab (7 inch Froyo version) and it works great for me. My advice would be to buy the oldest piece of hardware that you plan to support so that you always know that it will work for everything.
P.S. This question may have been better asked here but its on the line. I'm voting to leave it on Stack Overflow by not voting at all.