My teacher wants us to work on the Snake Android demo, and I'm having trouble using the arrow keys of my Mac. I need to press the arrow about 20 times before the snake actually moves. In my 2.3.3 AVD config I have enabled hw.dPad and hw.keyboard. One thing I was suggested was to use an Android 4 rom, but I actually get worse problems. What else can I do?
I guess that you are using the emulator.
It is indeed pretty slow on old/moderate hardware.
One good solution is to use a x86 Android image instead of the default one, they are notably more efficient.
installation guide : http://bryanmarty.com/blog/2012/08/04/faster-android-emulator-mac-android-4-0-3-ice-cream-sandwich-2-3-3-gingerbread/
Another is to run the game directly on your terminal if you own an Android phone/tablet.
Related
Since some recent Android SDK update from the SDK downloader (might be platform tools, or the emulator image), the emulator is working really bad.
It will start, then blink back and forth into a full black screen, or just a transparent screen (with only the home screen background), so I'm unable to develop using it.
I tried turning off the "Use host GPU", no help.
Also tried different API levels, creating a new AVD, etc.
I checked similar answers on SO, no help
I use OS X Mavericks.
I have a suggestion, Try to use Genymotions for testing maps/places app. it is faster than emulator and you can build and check maps application.
www.genymotion.com/
I am using androVM_vbox86tp_4.1.1_r6.1-20130222-gapps-houdini-flash with VirtualBox-4.2.12 and Genymotion v1.0 in Windows 7 x64.
It is a fast VM emulator for android (Fast Startup, Fast APK Upload and Fast Debugging). But it has some problems.
One of the problems is apps icons. As you can see they are big and not well-formed:
Another one is the keyboard input that is not in English:
( Although the language & input setting is in English (US) )
Is there any workaround for these issues?
The icon size is probably due to a strange resolution you configure. The AOSP launcher does not support well not standard screen formats.
Also, it seems that you run an AndroVM virtual machine.
Try to use instead, the default templates offered by the player (the application that comes with Genymotion). Update it (because since the last week the version is 1.1. And download the templates you want to use. It should work.
About the keyboard, I think it has been solved on 1.1. If not send a message though the support page : https://cloud.genymotion.com/page/support/#
I am developing an app in Android that I hope to release. I've got most of my GUI done, but it does not look even close to correct on the device when installed and opened. I have a screenshot of how it looks, and a screengrab of how it should look (taken from the Emulator in Eclipse) at the links at the bottom of this post. It's best to take a look at the two images rather than me try to describe how screwed up the app becomes on my device.
I had a friend with the exact same device, including hardware and Android version, and his loads up just fine. Does anyone have any idea what's going on here? Both devices are Galaxy Nexuses, running Android 4.0.2, GSM on AT&T (unlocked).
Installed on my device: http://i.stack.imgur.com/x66Jo.png
In the emulator: http://i.stack.imgur.com/qE0J6.png
I've seen this occur in some Galaxy Nexus' and I put it down to a bug/glitch in the OS on that Galaxy Nexus. Try a Factory Reset of your Galaxy Nexus, if that fails, try reinstalling the current OS version you have (if you can get your hands on it), if that fails, get it fixed under warranty.
Does your app use multiple activities?
Can you compare on your two devices if this setting is the same?
Settings > Developer Options > Don't keep activities checkbox.
I realise this is an old question now but I was having the same problem as you and stumbled across a solution. I didn't particularly want to factory reset my phone as per straya's instructions, so I started playing around options in the Settings > Developer Options menu.
As it turns out, this problem occurs for some applications if you have the Force GPU rendering option checked. Disable this (I'm not sure why it was enabled anyway) and everything displays as it should.
At #GDDDE i was sitting in a ignite talk by #creaseapp - a tiling window manager for Android. And since then I do not get the following question out of my head: "how to let x>1 APPs run on the same time" - #creaseapp solves the problem by just using WebAPPs - this is a easy to implement and working solution, but with native APP support we could have so much more use-cases.
Basically, what they want to achieve is to run multiple apps and show their output on one screen. For example, running 2 apps side by side - as it would be possible on any regular operating systems (e.g., text editor in one window, browser in another, but shown side by side). Is that possible?
No.
From what I know, this would require modifications to the Android system itself.
Substantial modifications, yes. This has been asked repeatedly over the years, and the answer has always been that this would be a Herculean task to add. Note that more operating systems are moving towards one-app-at-a-time models (OS X Lion, Ubuntu Unity).
seems that the time is now ripe:
https://github.com/Onskreen/cornerstone
thanks to Ronan Schwarz for the hint on G+
Do you have any idea what's the starting point to develop an UI for Android OS, similar with HTC SenseUI ?
Can I create that on top of Android or I need to get the Android source code ?
Thank you.
Florin Matincă
You'd need to modify the Android OS to some extent, but since Android is open source, that's not a problem.
The problem is getting it installed on phones - if you've noticed, the only companies that have custom UIs are also phone manufacturers, so they can just ship their phones with it installed. Also, if a new version of Android comes out, you'd need to get the new source, and modify most of it again.
Distribution would be a serious problem...
HTC Sense consist of a variety of functions.
Some like the Lock Screen can be implemented as normal programs. The start screen for programs can as well.
The systems setting for example can't be easily replaced without going into the android source code.
I have to disagree with xil3, there are some realy popular home screen replacements out there not restricted to a certain brand.
ADW.Launcher
LauncherPro
HelixLauncher
HelixLauncher2
All four are available on market place and therefor the distribution is simple.
HelixLauncher (and 2) are based on the Launcher from android itself, for which the sources are available as a git repository. This means you could use these sources to start your own Home Screen replacement.
So have fun!