android-4.2-jelly-bean

Editing android VideoView frames

左心房为你撑大大i 提交于 2019-11-28 07:37:22
问题 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

Handling the missing MENU button in new versions of Android (3.x and up)

这一生的挚爱 提交于 2019-11-28 06:12:31
I'm a fan of the menu button as used in Android <3.0, as it was very useful for my game apps - it allowed me to take important but gameplay irrelevant functionality (saving game, reference info links) and place it somewhere where it did not clutter up the main game interface, but was still easily accessible (the options menu). This use of keys became a problem with 3.0, because it removed the MENU button and substituted it with the Action Bar. The Action bar is really not suitable for a game which likes to run full-screen, so that was a real pain. No action bar - no access to the options menu.

UserManager getUserCount() (Jelly Bean)

 ̄綄美尐妖づ 提交于 2019-11-28 05:18:24
问题 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

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

浪尽此生 提交于 2019-11-28 02:39:02
问题 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

Android NFC with USB-NFC-Reader

ぐ巨炮叔叔 提交于 2019-11-28 01:40:49
问题 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

Debugging Issues (Android Eclipse)

不羁的心 提交于 2019-11-27 23:38:17
I am having a problem where when I switch to DDMS view and look at the Logcat, everything is yellow. All lines are yellow and Time, PID, Application, and Tag all display question marks for every line. This makes the Logcat useless and makes it incredibly hard to debug. In the past everything has worked fine and I am not sure why this has started happening. I am using a Verizon Galaxy Nexus with a 4.1 build (could be the problem?). I am also a beginner (probably excruciatingly obvious). Thanks for any help. SOLVED: Apparently I had to update eclipse and the SDK (i feel dumb). Thanks to everyone

Jelly Bean WebView not working well with HTML maxlength attribute for text box

≡放荡痞女 提交于 2019-11-27 21:42:32
问题 Jelly Bean doesn't seem to like the maxlength attribute of HTML for text input. It certainly restricts the number of input characters but the moment you attempt to type beyond the allowed number of character, the text box fails. Now you won't be able to type in any other text boxes and nor will you be able to delete the already input character, in that text box. If you haven't already faced this, then try it yourself on a simple HTML and check. Please tell me if you have any clue for solving

java.lang.SecurityException: Requires VIBRATE permission on Jelly Bean 4.2

和自甴很熟 提交于 2019-11-27 20:03:28
Since yesterday I have an issue on Android 4.2 when I receive push notifications it requires the permission even if i don't set it to vibrate Notification notification = new Notification(icon, notificationItem.message, when); notification.setLatestEventInfo(context, "App", notificationItem.message, PendingIntent.getActivity(context, 0, intent, 0)); notification.flags |= Notification.FLAG_AUTO_CANCEL; notification.defaults |= Notification.DEFAULT_SOUND; NotificationManager nm = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); nm.notify(notificationItem.notificationID

Use offline voice-to-text in Android 4.1 (Jelly Bean) from my application?

此生再无相见时 提交于 2019-11-27 19:32:50
Android 4.1 includes offline voice typing. You can see this when you click the microphone on the pop-up keyboard, it still works if you have no network connection. However, it looks like the RecognizerIntent API still ends up requiring a network connection when you want to do speech recognition from your app. Is there an API for accessing new the offline voice typing feature in Android from my app? Android uses two different APIs for voice: voice typing (key on the keyboard) and voice recognition (everywhere else). Voice typing is enabled offline and voice recognition is not (for 4.1 JellyBean

AccessibilityService is started but does not receive AccessibilityEvents on JellyBean

て烟熏妆下的殇ゞ 提交于 2019-11-27 18:52:58
I have a AccessibilityService that shall read out any incoming notification. It does work fine with ICS and below, but stopped working with JB. Below are the Manifest and the code: <service android:name=".Services.InstantMessengerJb" android:enabled="@bool/is_post_jb" android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" tools:ignore="ExportedService" > <meta-data android:name="android.accessibilityservice" android:resource="@xml/accessibility_service_config" /> <intent-filter> <action android:name="android.accessibilityservice.AccessibilityService" /> </intent-filter> </service>