android-4.2-jelly-bean

Android UserManager: Check if user is owner (admin)

做~自己de王妃 提交于 2019-11-29 14:53:02
问题 Im developing an app with the latest android version (4.2.1 API-Level 17) for tablets with multiuser capabilities. I want to restrict certain features (like the access to the app preferences) to the owner of the tablet (that is the user who can add and remove other user accounts) is there any way i can find out if the current user is the owner? i read through the UserManager and UserHandle API docs but couldn't find a function that allows me to check for it. have i missed something or is

jelly bean search key

天涯浪子 提交于 2019-11-29 14:43:26
问题 In my Android app I enable my specific app-search to be triggered via the search key in a number of my activities using this mechanism from the manifest <meta-data android:name="android.app.default_searchable" android:value=".Search.SearchActivity" /> with the appropriate search activity. This all worked fine until recently. With the Jelly Bean update the Search Key now always starts Google NOW search functionality. On this site: http://www.android.com/about/jelly-bean/ I found in the "Google

Mediacodec jelly-bean

假如想象 提交于 2019-11-29 14:09:35
I'm working with media codec for an .mp4 file on jelly-bean and getting this in logcat 02-27 12:12:13.645: A/ACodec(6760): frameworks/av/media/libstagefright/ACodec.cpp:1041 CHECK(def.nBufferSize >= size) failed. 02-27 12:12:13.645: A/libc(6760): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 6778 (CodecLooper) Can anyone tell me what is this? and how to solve it? You provided not much info, so the answer follows: Looks like it is internal check of libstagefright library. I faced same error on Samsung Tab 2 on decoder's configuration. mDecoder = MediaCodec.createDecoderByType(mime);

GLSurfaceView displaying black on Nexus 7 with Android 4.2

坚强是说给别人听的谎言 提交于 2019-11-29 13:53:24
I have an OpenGL ES2.0 app that is working on devices running various Android versions from 2.2 up to 4.1. However I have been told that when running it on a Nexus 7 with Android 4.2 the 3D graphics in the App are all black. The Action Bar and dialogs work fine though. I have tried it on an emulated Nexus 7 with Intel Atom processor, HAX and GPU enabled running 4.2.2 and that works OK. I would have preferred to run the ARM image but that doesn't seem to include Open GL ES2.0 Does anyone have any insight into what might be causing this problem on the Nexus 7 and how to work around it? One

Editing android VideoView frames

丶灬走出姿态 提交于 2019-11-29 13:47:36
Environment: Nexus 7 Jelly Bean 4.1.2 Problem: I'm trying to make a Motion Detection application that works with RTSP using VideoView. I wish that there was something like an onNewFrameListener videoView.onNewFrame(Frame frame) I've tried to get access to the raw frames of an RTSP stream via VideoView but couldn't find any support for that in the Android SDK. I found out that VideoView encapsulates the Android's MediaPlayer class. So i dived into the media_jni lib to try and find a way to access the raw frames, But couldn't find the byte buffer or whatever that represents a frame. Question:

UserManager getUserCount() (Jelly Bean)

蹲街弑〆低调 提交于 2019-11-29 11:54:05
I am working on this class : UserManager public int getUserCount () Return the number of users currently created on the device. My code is: UserManager um = (UserManager) getSystemService(USER_SERVICE); int count = um.getUserCount(); Log.i("count",""+count); It produce error like this: Caused by: java.lang.SecurityException: You need MANAGE_USERS permission to: query users at android.os.Parcel.readException(Parcel.java:1425) at android.os.Parcel.readException(Parcel.java:1379) at android.os.IUserManager$Stub$Proxy.getUsers(IUserManager.java:321) at android.os.UserManager.getUsers(UserManager

Jelly Bean webview app does not respond to touchend events perfectly

*爱你&永不变心* 提交于 2019-11-29 10:23:33
问题 My webview app works fine with touchend events in android version older than Jelly Bean. But in Jelly Bean, the touchend events are not reliable. Especially on divs that are scrollable, the touchend events are not fired sometimes and the whole app stops responding to any touchend events and I get the Log message with the tag "webcoreglue" and text "Should not happen: no rect-based-test nodes found" Now after i scroll even little bit, it starts responding to touchend normally. Pls help. HTML

java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

会有一股神秘感。 提交于 2019-11-29 09:14:01
I am getting this crash when I play video on videoView in Android version 4.2.1. I found this out specifically on Micromax Canvas A210 device. It is not showing any message where the error is occurring. Is this a bug or something wrong in application? The crash log is as below: 09-18 11:05:53.245: E/AndroidRuntime(2323): FATAL EXCEPTION: main 09-18 11:05:53.245: E/AndroidRuntime(2323): java.lang.StringIndexOutOfBoundsException: length=11; regionStart=0; regionLength=-1 09-18 11:05:53.245: E/AndroidRuntime(2323): at java.lang.String.startEndAndLength(String.java:583) 09-18 11:05:53.245: E

Android NFC with USB-NFC-Reader

不羁的心 提交于 2019-11-29 08:20:26
I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U , that came with an Android library . This library unfortunately only gives me basic functionality - read and write Tags. Altough this is working quite well, it is not enough... Because for my application I need to transfer files from my Android 4.2 tablet to other NFC devices (Android smartphones). So I need to put the NFC reader into peer-to-peer mode - which it supports. But how can I achive this with my setup? There indeed is an SDK for that reader, but it's

What does it mean with bug report captured in android tablet?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 03:48:40
I was playing around with my tablet and testing my program, when there was a notification that said bug report captured and whether I would like to share it. I had not seen this message before so I clicked Yes, and then I clicked OK on the warning dialog box that asked me to share it only with people I trust. After that the gmail app opened up which had a screenshot of my tablet, as well as a file attached to it called bugreport<some numbers, date and time I think>.txt . I did not send the bug report as I was not sure what it was and where it would go. However my question is, what exactly is