android-3.0-honeycomb

gcc ON arm/android

跟風遠走 提交于 2019-11-30 06:46:38
I just got a EEE pad transformer. Like any hardware I own I'd like to have a C compiler on it. I know I can cross compile, but I'd like to do development ON the device itself. I've searched google and all I can seem to find are pages on how to build an arm toolchain for x86/64 Linux. Thoughts? The process of building gcc (et al.) to run on your target should be similar to building a cross-compiler, excepting that you will: need to have an ARM cross compiler that runs on your, for example, x86 machine. So the results of your googleing are still useful. use the --host option to specify your ARM

how to change Android overflow menu icon

人走茶凉 提交于 2019-11-30 06:42:49
How do i change the Overflow Menu icon on the far right of the action bar as seen in the image below? My Holo theme specifies this 3 row black stack icon by default and i want something else. i can't seem to find a solution for this. I have looked at the documentation on http://developer.android.com/guide/topics/ui/menus.html but it doesn't seem to lend much help. Thanks! KarlKarlsom Define a custom style: for example, let's call it customoverflow . In this style you set android:src to the picture you would like to use. Now create a style with parent Theme.holo . In this style you need to

Replacing an ActionBar menu item icon with an indeterminate ProgressBar

≯℡__Kan透↙ 提交于 2019-11-30 06:28:58
I would like to add an indeterminate progress bar to the Honeycomb ActionBar, so that any time the user presses "Refresh", the refresh icon temporarily turns into an indeterminate progress bar, until the task completes. The Email app does this already, but I can't figure out how. Any advice? Hard to tell exactly how the Email app does it, but you may want to stay simple and just call setIcon with the id of a StateDrawable XML file, and then just change the state using a Timer. To clarify Jon O's answer, the key is to set and unset an action view on the refresh action. This works in both

How should a fragment get notified about the result of an asynchronous task?

隐身守侯 提交于 2019-11-30 05:07:43
I have an Activity that uses fragments. These fragments may come and go, based on the users interactions. Many of these fragments launch jobs to an IntentService, which get to run async this way. How should the IntentService report back the results of these jobs? The fragment that started the job may of may not be present. If a job finishes and the starting fragment is currently active, then it should get notified about this, and act accordingly. If it's not, then no action is needed. I've thought about using broadcast intents and BroadcastReceiver components, but fragments can't register

Patterns when to use Activity Transition vs Dynamic Fragments

我怕爱的太早我们不能终老 提交于 2019-11-30 04:52:53
Are there any patterns on how to handle UI Transitions in Android Activities vs Fragments? I am currently looking into a UI that has at most 3 columns in Landscape. I would like the UI to start with 1 column all the way across the screen and then on selection of something move in the second column and then on clicking on something in the second fade in the 3rd on tablets and phones and fade out the 1st column on phones. I am wondering when I should do this as an Activity transition and when I should just use Fragments with Views that Appear. As far as I have read fragments can be moved over to

Android 3.x ONLY WebView Text Selection + JavaScript

夙愿已清 提交于 2019-11-30 03:54:46
Problem domain: Android WebView based ePub format reader -- We need text highlights which are accessible via JavaScript methods (ie turn em on, turn em off, save them email them, etc) Anyone in the know, please correct me if I'm wrong: During text selection on a WebView -- Basically we are handed a TextView overlay (WebTextView) which is IN NO WAY attached to the underlying html other than visually (nice job on lining it all up and making it seamless, btw), on which we perform the TextSelectionActionMode and the ClipboardManager is supplied with the results... to make that clear, the actual

Contextual Action Bar in Honeycomb

﹥>﹥吖頭↗ 提交于 2019-11-30 02:46:10
问题 I'm looking to copy the action bar implementation from the gmail app in Honeycomb Unfortunately I can't post an image because I'm new here. Basically, when you select an email or more your action bar animates into a different action bar with: 1.Contextual buttons 2.A new "Done" button appears over the Home icon. Does anyone have any idea how to do this? 回答1: Call the startActionMode method available on any View or your Activity. This method accepts an ActionMode.Callback object that will

Application does not show up in Android Market for Motorola XOOM tablet

落爺英雄遲暮 提交于 2019-11-30 02:37:50
问题 We have an android application, manifest of which sets the following configurations: minsdkVersion = "4" <supports-screens android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" /> However, when a user with Motorola XOOM device browses Android Market he is not displayed our application. Why is this so? 回答1: I had the same issue. Along with including android:xlargeScreens="true" I found this to be the fix. The Android Market treats as though requesting a permission

How can I create a weekly calendar view for an Android Honeycomb application?

自作多情 提交于 2019-11-29 23:13:02
I am working on an Android (v3.0) application that has a requirement of mimicking the weekly calendar layout found on Google Calendar: The events will be based on external requests through the Google Calendar API (I already have this part working). Using the API, I can obtain a list of events for the week, with each event having a starting and and ending datetime. I would like to use this data to show the scheduled events to the application's users in a view similar to the one above. Here's what I have so far: The XML appears below: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns

How do I write to the internal storage file system with NativeActivity?

筅森魡賤 提交于 2019-11-29 22:43:57
问题 I'm porting a pure C++ game over to Android, and since my target is Android 3.0+ tablets, I opted to use NativeActivity in order to avoid Java completely. However, I am not able to see any functionality that lets me write to the device's internal storage. Calls to fopen() will fail as I have no idea which directory I am supposed to write and the internal storage filesystem is not accessible This code usually does the trick on Java, giving me the path to the internal writable data directory