android-3.0-honeycomb

LinearLayout's click listener is never called

柔情痞子 提交于 2019-12-05 08:00:58
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_horizontal" android:paddingTop="@dimen/gen_margin_xsmall" android:paddingBottom="@dimen/gen_margin_xsmall"

Android Tab Action Bar

会有一股神秘感。 提交于 2019-12-05 06:20:40
I am trying out on the android action bar for 3.0, where I refer to http://www.youtube.com/watch?v=gMu8XhxUBl8 The code in the TabsActivity are as follow: package com.test.actionbar; import android.app.ActionBar; import android.app.ActionBar.Tab; import android.app.Activity; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; public class TabsActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActionBar bar = getActionBar(); bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

DexClassLoader on Android Honeycomb

怎甘沉沦 提交于 2019-12-05 02:53:55
I'm working on a project that tries to load an external library via DexClassLoader. This worked pretty well in 2.3: public class FormularDisplayLoader { public final static String PATH ="/data/data/at.mSystem.client/files/mSystem_Client_FormularLibrary.jar"; private DexClassLoader classLoader; public FormularDisplayLoader(Context context){ this.context = context; this.classLoader = new DexClassLoader("/data/data/at.mSystem.client/ files/mSystem_Client_FormularLibrary.jar", context.getFilesDir().getAbsolutePath(), null, FormularDisplayLoader.class.getClassLoader()); } public View getDisplay

Replace image from recent app menu

China☆狼群 提交于 2019-12-05 02:42:27
问题 In my app are activities which are displaying user sensitive data (inbox, passwords, bank account balance etc.). These sections are of course password protected and user is automatically logged off after some amount of time (this is checked in onRestart()). Problem is when this app is running on Android 3.0+ (which has recent app menu with images of recent apps) that these sensitive data are readable in this menu. Is there way to change that image to application logo or something else? I

how to reroute all IP traffic (pref. at the network layer) in Android 3.x

梦想与她 提交于 2019-12-04 21:02:15
This is specific to Android 3.0/3.1 In order to implement a cloud security layer, I would like to reroute all IP traffic destined for certain ports through my custom cloud server which would then serve up the required pages if they don't pose any threat. The reasons I would like to do this are: 1. The applications running on Android would still continue their interaction with regular requests and wouldn't require any modifications 2. Better security. It should not be possible for a user to disable/block my reroute service. Hiding my implementation in the network layer would make it difficult

How Fragments affect the Activity “single, focused thing that the user can do” principle?

徘徊边缘 提交于 2019-12-04 18:56:41
问题 As Android documentation states: "An activity is a single, focused thing that the user can do." However with Fragments we will be able to do many "things" within the same Activity as Reto Meier suggest. His suggestion is to replace a selection fragment by a content fragment within the same Activity (section "Within our code this produces a dilemma"). Lets say my application is a "bit" more complex, with many activities, with a complex navigation tree and designed with the "single, focused

Is it possible to write a driver for the input system in android

余生颓废 提交于 2019-12-04 18:05:34
Is it possible for a public sdk only app write a "driver" to an input device, like a joystick that uses some vague, possibly alien, protocol over USB using the new 3.1 USB Apis? For example, would it be possible to implement a driver for the brand-new-just-out-the-door O-Triangle 3.15 Controller with 13 joysticks and 159 buttons and virtual head tracking and soda dispenser, or would this have to wait for android to be updated with a new low-level driver for the O-Triangle 3.15's controller It does look like you can do it with the classes in the android.hardware.usb package: you can implement a

Which APIs are supported when hardware acceleration is enabled on Honeycomb?

爷,独闯天下 提交于 2019-12-04 15:48:23
问题 The Honeycomb docs are vague: When the hardware-accelerated renderer is enabled, most operations in Canvas, Paint, Xfermode, ColorFilter, Shader, and Camera are accelerated. Is there a definitive list of the exact APIs that are (and are not) supported when hardware acceleration is enabled? Some methods fail fast with exceptions, while other features simply render differently when acceleration is enabled. For example, Canvas.clipPath(...) fails fast with an exception. Though the clipPath API

How do I access PreferenceFragment by id?

我只是一个虾纸丫 提交于 2019-12-04 13:43:56
问题 I have a Honeycomb style preferences. I define the headers: <preference-headers xmlns:android="http://schemas.android.com/apk/res/android"> <header android:id="@+id/pref_general" android:fragment="MyPreferencesFragment" android:title="@string/pref_general_title"> <extra android:name="resource" android:value="pref_general" /> </header> <header android:id="@+id/pref_sharing" android:fragment="MyPreferencesFragment" android:title="@string/pref_sharing_title"> <extra android:name="resource"

how to Get a list of applications being download?

旧时模样 提交于 2019-12-04 11:55:44
In my application, I need to know if a particular app is being downloaded from the android market or not. How Do I achieve this functionality? Is it possible to get a list of all the downloads that are in progress?Does the android market broadcast any intents that can be caught? Note:Since my target application is on android 3.0+ devices therefore, I have no issues with using the DownloadManager class(which is 2.3 onwards). I found an API that will accomplish what you want but you need to have an API of 9 or higher to use it. You can get all the downloads that have been requested for download