android-3.0-honeycomb

Honeycomb Android emulator is dog slow - will it get manageable before the official release? [closed]

旧街凉风 提交于 2019-12-02 21:42:11
I thought the Gingerbread emulator was slow , but man - the Honeycomb emulator is so slow on a modern PC, it's practically unusable. Since Reto Meier asked to throw up our Honeycomb questions onto StackOverflow, here is mine - will it get faster any time soon? How are we expected to develop apps for tablets when I want to pull my hair out instead? The SDK tools site now mentions "Known issues with emulator performance: Because the Android emulator must simulate the ARM instruction set architecture on your computer, emulator performance is slow. We're working hard to resolve the performance

Is it possible to get the resolution of a video in Android?

有些话、适合烂在心里 提交于 2019-12-02 20:44:33
I'm looking for a way to get the resolution of any given video in Android. It doesn't have to work with other formats than the ones supported in Android, but it'd be great if it did. If you're unsure of the supported formats in Android, please refer to this page: http://developer.android.com/guide/appendix/media-formats.html I think it's possible to do what I want using the MediaPlayer class, but that seems incredibly stupid and inefficient. Also, I'd like a way that's relatively fast. I'm targeting Android 3.0+, if that makes any difference. Honeycomb also supports .mkv files, although it's

Changing the ActionBar hide animation?

最后都变了- 提交于 2019-12-02 20:18:12
By default in Android 3.0+, when ActionBar.hide()/show() are called the bar is animated with a brief fade in/out animation. There does not seem to be an XML style attribute in this list associated with an animation resource. Is there some way to change this animation? In my case, I simply want to change the animation time, but is it also possible to have a sliding animation? Jake Wharton No. At least not in 3.0, 3.1, or 3.2. If you look at the decompiled sources of com.android.internal.app.ActionBarImpl you'll find that the animations are hard-coded. E.g., from 3.2: .method public hide()V

Can Honeycomb Loaders solve problems with AsyncTask + UI update?

泄露秘密 提交于 2019-12-02 19:29:47
Doing something in background and then updating UI is very hard to implement correctly in Android. It's simply badly designed. Typical example is an AsyncTask that fetches something from the web and displays the result. There are 2 problems with this: The AsyncTask has a reference to Activity (because it needs to update its UI). After screen orientation change, the Activity is restarted. But the AsyncTask still references to the old destroyed Activity therefore it can't update the UI of the new Activity. This can lead to OutOfMemoryException. Imagine that you have an Activity with lots of

Wanted: offline IDE for developing Html / JavaScript on Android tablet [closed]

时光毁灭记忆、已成空白 提交于 2019-12-02 19:01:39
In have a Motorola Xoom tablet and I would like to use it to develop some small Html / Css / JavaScript / jQuery applications. **Does anyone know a good IDE to do web development on Android? I only need the IDE for: html, css, jQuery / JavaScript (other languages would be cool though). Clarification : The development takes place on the tablet, so the IDE must run on the tablet. I would like to do some JSFiddle-like stuff when I'm travelling by train, that's why I need a offline editor. Dve You could use the online IDE . It's the Mozilla project that started out as Bespin a few years ago. I've

NullPointException with getActionBar

孤人 提交于 2019-12-02 18:22:28
问题 I have a really strange behaviour with my tablet interface (Android > 3). When I launch it, it's like a Android 2* interface with the title at the bottom. And of course when I call the getActionBar() it returns a null. My min-sdk & target-sdk are well set and I use the SDK Android 3.0 (11). Where am I wrong ? public class MainScreenActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainlayout);

Is it possible to run R from a tablet using Honeycomb (Android 3.0)?

拟墨画扇 提交于 2019-12-02 17:38:58
I have a Xoom tablet and it would be great if I could run statistical analysis using R on it. As far as I know it is not possible to use R on iPad due to license problems (GPl x iTunes etc.) and a lack of compiler for Fortran in the Apple tablet. But what about tablets using android? Arguably, the GPL issue is not a problem, so any help here on how to use R on my tablet? At some point, smartphones and tablets will have browsers capable enough to run RStudio in its server mode via the browser. Currently, the latter demands too much in terms of newer GWT, Javascricpt, ... magic that it remains

Loaders in Android Honeycomb

有些话、适合烂在心里 提交于 2019-12-02 17:17:23
I'm trying to figure out how to use Loaders in Android 3.0 but can't seem to get it to work. The docs only describe using CursorLoader but I'm using AsyncTaskLoader . From the docs it seems that you should only need to implement AsyncTaskLoader.loadInBackground() but it never gets called after getLoaderManager().initLoader() and then creating the loader in the callback. I can see debug messages saying Created new loader LoaderInfo{4040a828 #0 : ArticleDataLoader{4036b350}} so it seems like it is created successfully. Is it possible that loaders are currently broken in the SDK or is there some

Android loaders, the way to go?

白昼怎懂夜的黑 提交于 2019-12-02 15:51:52
I am used to building lists in android using adapters. If I need some long-to-get data, I use an asynctask, or a simple runnable, to update the data structure on which the adapter rely, and call notifyDataChanged on the adapter. Although it is not straightforward, I finally find this is a simple model and it allows a good separation of logic presentation (in the asynctask, update a data structure) and the view (an adapter acting as a view factory, mostly). Nevertheless, I read recently about loaders introduced in HoneyComb and included in the backward compatibility support-library, I tried

ProgressBar in an ActionBar, like GMail app with Refresh

丶灬走出姿态 提交于 2019-12-02 15:37:31
I would like to do the same thing than the GMail application on Honeycomb tablets. When you click on the Refresh button, the icon is replaced by a ProgressBar. How can I do this? Thanks Ok, I tried what Cailean suggested but it didn't work for me. Every time I want to revert indeterminate progress to the original button it becomes unclickable, I used this layout for the progress (actionbar_refresh_progress.xml) <?xml version="1.0" encoding="utf-8"?> <ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="32dp" android:layout_height="32dp" android:layout