android-3.0-honeycomb

Start activity from preference-headers

旧街凉风 提交于 2019-12-09 03:05:09
问题 I'm implementing n-layer PreferenceActivities 1st layer PreferenceActivity is loaded from preference-headers. First header creates fragment of settings which is a PreferenceFragment. Second is a browser activity (2nd is an example from developer.android.com) which opens specified Url. The third one I want to be a next level of PreferenceAtivity that also will be loaded from preference-headers. First two work fine but 3rd is crashing an app with the exception: "android.content

Android 3.0, Widget Preview

风流意气都作罢 提交于 2019-12-08 18:38:16
问题 In Honeycomb some of the System apps have a "preview" of the widget when you click the "add" options on the home screen. How do I go about adding a thumbnail/preview of my widget to my application so the user can get a feel for what it looks like when adding it in Honeycomb? 回答1: If you run the android emulator against the Honeycomb sdk, you should see an app called Widget Preview, which will allow you to pick the widget to take a preview of (you will have to install your widget on the

Android Honeycomb: How to determine when FragmentTrancaction.commit() has finished?

99封情书 提交于 2019-12-08 08:14:33
问题 I had this simple piece of code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); //... NetworkWorker networkFragment = NetworkWorker.createInstance(null); fragmentTransaction.add(networkFragment, NETWORK); //... fragmentTransaction.commit(); networkFragment.startURLRequest("test"); }

Connect to NAS device from Android

时光怂恿深爱的人放手 提交于 2019-12-08 05:35:53
问题 I'd like to add NAS support to one of my application, and it is critical that the application is capable of streaming the content and that it not has to download it to the device. The application will be streaming video content, so once the video is over, there shouldn't be any large video files on the device. What I've tried so far: jCIFS - Works beautifully, but isn't capable of streaming (to my knowledge). I've successfully created video files on the device using jCIFS, but they're still

ANR keyDispatchingTimedOut

半城伤御伤魂 提交于 2019-12-07 21:00:24
问题 I'm experiencing some issues with application freezes. It looks like it has something to do with the hardwarerenderer and perhaps the amount of threads I'm using. I'd love for someone to have a look at the logs and tell me if there's anything obvious pointing out. Thanks. DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0) "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 obj=0x401f6600 self=0x125f8 | sysTid=15811 nice=0 sched=0/0 cgrp=default handle=-1345129368 |

Can the ActionBar drop-down navigation list control be disabled?

我怕爱的太早我们不能终老 提交于 2019-12-07 14:49:53
问题 I'm using a navigation control in the ActionBar to provide a drop-down list. I would like to disable selection of the drop down list under certain circumstances. My layout for the closed view of the spinner adapter has a TextView wrapped in a LinearLayout . The best I've come up with is overriding getView in my spinner's adapter and making both the LinearLayout and TextView non-clickable and disabled. This has the effect of greying out the text but it can still be selected. Edit I appreciate

Android ObjectAnimation only started once

倖福魔咒の 提交于 2019-12-07 11:14:53
问题 I use the ObjectAnimator API (android.animation.ObjectAnimator) to animate a button once it's clicked (v is the Button): ObjectAnimator animator = ObjectAnimator.ofFloat(v, "rotationY", 360f); animator.setDuration(5000); animator.start(); When I test this on the emulator, it works for the first click (button rotates). But when I click the button again (the fragment is not destroyed etc. after the first click), I don't see any animation on the emulator (the emulator isn't the fastest, but with

LinearLayout's click listener is never called

限于喜欢 提交于 2019-12-07 03:26:51
问题 Trying to get an onclick listener working on a linearlayout but its never called :(. Have enabled clickable and focsuable (both modes) and still cant get the click listener to respond. Platform details: Android 3.0.. Any help?? Code below <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/menu_items_button" android:layout_width="0dip" android:layout_height="fill_parent" android:layout_weight="1" android:orientation="vertical" android:gravity="center

openOptionsMenu() across android versions

≡放荡痞女 提交于 2019-12-06 16:55:52
I have an app that's been designed with the titlebar hidden in all intents. I want to utilize Activity.openOptionsMenu() from a button. It works fine on 2.2 but when I run the app on honeycomb, calling openOptionsMenu() doesn't seem to work. Is there another way? onclick code here, if it matters. This is inside my mapview activity, extending MapView: OnClickListener ocl = new OnClickListener() { @Override public void onClick (View v) { switch (v.getId ()) { case R.id.b_options: Log.d (TAG, "options clicked"); mymapview.this.openOptionsMenu (); break; case R.id.b_prev: Log.d (TAG, "prev clicked

Device Policy Manager - Reset Password - Android 3.0 Problems

早过忘川 提交于 2019-12-06 16:03:28
I am using Device Policy Manager in my Android App and I have a problem with Honeycomb devices. When attempting to call resetPassword I get an exception thrown. This is not the case in Froyo or Gingerbread, as both of those work fine. The error is: java.lang.RuntimeException: Unable to start receiver Package.Name.Test: java.lang.SecurityException: Permission Denial: writing com.android.providers.settings.SettingsProvider uri content://settings/secure from pid=x, uid=y requires android.permission.WRITE_SETTINGS My Android Code is as follows: DevicePolicyManager mDPM = (DevicePolicyManager)