android-4.2-jelly-bean

How to avoid cut/copy/paste in smart phone after rotation port to land on Android4.X?

醉酒当歌 提交于 2019-12-09 09:02:24
问题 I am working on to avoid cut/copy/paste in smart phone (for tablet its fine). Its fine in port mode but coming in land mode EditText shows a Button Next. after selecting the text, next button converts into Edit Button which has copy,cut and paste option. So is there any way to disable cut/copy after rotation when edit button appears. i am following this link. How to disable copy/paste from/to EditText 回答1: I think you can use this: http://developer.android.com/reference/android/widget

Can't build hello world kernel module on Android JellyBean

蹲街弑〆低调 提交于 2019-12-09 04:37:51
问题 I'm trying to build a simple kernel module on Android JellyBean. Code: #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_ALERT */ MODULE_LICENSE("GPL"); MODULE_AUTHOR("test"); MODULE_DESCRIPTION("Android ko test"); int init_module(void) { printk(KERN_ALERT, "Hello world\n"); // A non 0 return means init_module failed; module can't be loaded. return 0; } void cleanup_module(void) { printk(KERN_ALERT "Goodbye world 1.\n"); } Makefile: obj-m +

Play .SWF files from internal storage in android webview in nexus 7 android

ぃ、小莉子 提交于 2019-12-08 01:32:24
问题 Cant play .swf(flash files) files from internal storage in android webview on jellybean installed devices (for eg:-nexus7) but i can play .swf(flash files) on android honeycomb devices... Also i figured this out as jellybean onwards android stopped supporting flash files plugin and even adobe stopped developing for the same in android. Here is some code snippets that i tried with no results---- wv = (WebView) findViewById(R.id.webView1); String url =Environment.getExternalStorageDirectory()+"

Android 4.2 - LD_PRELOAD supported or not?

二次信任 提交于 2019-12-07 16:39:37
问题 I wonder if LD_PRELOAD is now supported with the newer Android-versions? At the time of 4.0 ICS it wasn't, and in the documentation (NDK docs/SYSTEM-ISSUES.html) there's still: No support for LD_LIBRARY_PATH, LD_PRELOAD, RTLD_LOCAL and many other options. But some days ago I have used LD_LIBRARY_PATH on my Android 4.2 Galaxy Nexus and it worked (!). Thanks in advance! 回答1: Generally speaking, LD_LIBRARY_PATH has worked on engineering builds (a.k.a. rooted devices) for quite a while. The

Skewed images in ImageView on Android 4.1.2

亡梦爱人 提交于 2019-12-07 10:29:23
问题 I have an app that displays an image in an ImageView , and am experiencing problem specifically for Android 4.1.2. It is confirmed to not work on three separate 4.1.2 devices, while working on 2.3.7, 4.2.1, 4.3 and 4.4.2. The error occurs for several different images, but not all. There seems to be something about some specific JPEG-files that doesn't work as intended. How it actually looks, and how it shows on Android 4.1.2: The above image (left) is one such problematic image file. A

Android notifications: compatibility with APIs

随声附和 提交于 2019-12-07 06:58:10
问题 I'm trying to show notifications in my app along with a progress bar in it. My app specs are that I'm targeting API 15 with minimum SDK set to 8. I'm using the following code to show notifications: NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this); mBuilder.setContentTitle("My Application") .setContentText("Downloading...") .setProgress(0, 0, true)

ADK 1.0 devices fail to work with Jelly Bean, why?

天大地大妈咪最大 提交于 2019-12-07 04:45:16
问题 Just connected the tried and true ADK accessory to Nexus 7 and Galaxy Nexus - and it failed to connect with "could not read device protocol version" message. Thought that the board died, connected to Nexus S with ICS - worked just fine. Worked on Galaxy Nexus before Jelly Bean upgrade as well, so hardware failure can be ruled out. I've been watching ADK announcements pretty closely, but don't remember reading or hearing anything about this particular change, nor backward compatibility of

Android: Activity Dialog / Dialog disappears unexpectedly

我是研究僧i 提交于 2019-12-07 03:31:04
问题 I have an application with TabActivity in which I am displaying a dialog each time I get a callback from my engine (NDK C code). I make sure dialog is displayed when app is in resume state. Upon receiving the callback from the engine, I start the NetworkDownDialog activity, but this causes the dialog to stay for a second and then disappear. The same thing happens if I use Dialog or AlertDialog . Most strangely, the disappearance seems random (doesn't always happen). This is an S3 device. What

Drawable selector not working in Jelly Bean

久未见 提交于 2019-12-06 18:26:12
问题 I have a drawable selector as a background for each item in a ListView to highlight the selected row. Eveything works fine in Ice Cream Sandwich, but doesn't seem to work in Jelly Bean. Can't find any documentation saying what changes could have caused it to stop working and what I need to do to fix it. By not working, I mean when I click on a row in the ListView the item's background color isn't turning the @color/blue color, but it does in ICS. This is the selector code I'm using (listing

Changing the Vibrate settings in Jelly Bean, Android

核能气质少年 提交于 2019-12-06 11:50:03
问题 I am looking for how we change the vibrate settings in Jelly Bean. I found that all the pre-JB vibrate settings have been deprecated, but don't see any new AudioManager.[change the vibrate settings] code anywhere. There is a setting "Vibrate when ringing" which I would like to know how to play with. Thanks for you help. 回答1: In android4.1 you can use this to control "vibrate & ringing" Settings.System.putInt(mContentResolver, Settings.System.VIBRATE_WHEN_RINGING, enable ? 1 : 0); 回答2: From