android-3.0-honeycomb

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

让人想犯罪 __ 提交于 2019-12-06 14:54:24
问题 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

Horizontal Scroll View with Custom View child

冷暖自知 提交于 2019-12-06 12:49:27
问题 I am trying to implement a custom view inside of a HorizontalScrollView parent. The custom view repeatedly draws a line to its Canvas based on timing from a Handler. I want to set the visible width of the Custom view to be 1207px x 548px, but I want the line to be able to extend beyond what is visible and I want to allow the user to then be able to horizontally scroll to see more of the line. Before I was just surrounding my Custom View class with a frame layout with a fixed width and height,

Android: how to the design app for Smartphone AND Tablet?

只愿长相守 提交于 2019-12-06 12:29:57
I know there are already quite a lot of blog entries , how to's , questions out there that cover backward compatibility of Android 3.0 apps. However, after reading them all I'm just more confused than before. :( What I have is a Smartphone app that supports min. SDK version 8 (2.2). I now want this one to stay the same on Smartphones, but also provide a fancy version on Honeycomb Tablets with Action Bar and Fragments and so on. I know there is the compatibility pack, but all I read about it was about Fragments. What's with the Action Bar and the holographic Theme? I did get this pretty nice

OpenGL random crash on Honeycomb with Hardware Accelerated param set to true

眉间皱痕 提交于 2019-12-06 10:36:36
I am experiencing a big probleme on Android Honeycomb 3.0 (Acer Iconia). I don't use any openGL view, I only set in the manifest android:hardwareAccelerated="true" The fact is that when I load a view with a certain amount of pictures, and I change its content and background several times on clicking on a button, my intent finishes and the previous intent appears. I thinks I well manage memory. This message appears when it appends: 06-22 10:13:53.510: ERROR/libEGL(951): call to OpenGL ES API with no current context (logged once per thread) 06-22 10:14:03.150: ERROR/InputDispatcher(113): channel

Use different Color for different ActionBar.Tab

馋奶兔 提交于 2019-12-06 08:38:17
问题 I want to have all tabs in ActionBar to have different Color Indicators, for example blue for tab 1, red for tab 2 etc. To achieve that I did create different selectors for all colors and put them in different xmls in drawable. In style.xml I am calling them by <style name="MyTheme" parent="AppBaseTheme"> <item name="android:actionBarTabStyle">@style/ActionBarTabStyleRed</item> </style> <style name="ActionBarTabStyleRed"> <item name="android:background">@drawable/tab_indicator_red</item> <

how to Get a list of applications being download?

心不动则不痛 提交于 2019-12-06 08:33:32
问题 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). 回答1: I found an API that will accomplish what you want but you need

How can I enable users to play video using my app?

守給你的承諾、 提交于 2019-12-06 06:31:48
问题 Just spent a couple of hours last night developing a pretty sweet video player for Honeycomb, and now I'd of course love for people to be able to use it. How can I make my application listen for / receive "video play broadcasts"? I'm guessing it's got something to do with the manifest.xml file, but I was unable to find anything about it on the Android Developer site. I've tried using the following without much success: <receiver android:name=".VideoPlayer"> <intent-filter> <action android

ANR keyDispatchingTimedOut

纵然是瞬间 提交于 2019-12-06 05:48:22
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 | schedstat=( 0 0 0 ) utm=2495 stm=1172 core=0 at com.google.android.gles_jni.EGLImpl.eglSwapBuffers(Native

Android VOIP SipException: Failed to create SipSession

久未见 提交于 2019-12-06 03:47:17
问题 Im trying to run a VOIP call using built in SIP on android 3.1. I have physical tablet device (galaxy Tab 10.1). For testing purpose, I have created a project from SipDemo example - it works fine! (meaning my credentials are working and my device/network is fine). my Manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="modera.com.doorcontroller" android:versionCode="1" android:versionName="1.0"> <application android

Android ObjectAnimation only started once

半世苍凉 提交于 2019-12-05 13:52:45
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 5 seconds I should see something). Do I need to destroy/close something after the first animation or