android-4.2-jelly-bean

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

╄→гoц情女王★ 提交于 2019-12-06 11:01:56
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()+"/FolderName/Filename.swf"; wv.setWebChromeClient(new WebChromeClient());//also tried WebViewClient wv

Cannot receive KEYCODE_DEL on WebView in Android 4.1.1

感情迁移 提交于 2019-12-06 08:47:31
问题 I want to make WebView editable by creating a complex javascript to handle keyboard event. Everything works fine on all Android version except 4.1 . In 4.1 I can handle all key events except KeyEvent.KEYCODE_DEL . It seems that we cannot handle KEYCODE_DEL event for WebView in Android 4.1? I am very appreciate if someone can help me on this issue Thanks 回答1: Looks like an Android bug. A simple workaround that worked for me was to set android:targetSdkVersion="15" in your AndroidManifest.xml

Hiding the Status Bar under Android 4.2.2 (SDK 17)

痞子三分冷 提交于 2019-12-06 07:34:17
问题 Is it possible to permanently hide Navigation/Status Bar under Android 4.2.2 This solution seems not working under Jelly Bean. I have GalaxyTab 3 (10.1) and hidding of Status Bar has no effect. It's hidden on application Start on every screens, but i can expand it. Problem occurs also after rooting device. Somebody has faced it before (there is also video how to fix it): forum.xda-developers.com/showthread.php?p=37466852 So my question is: Is there any way to do this on application level? 回答1

Ant fails to build signed apk after updating to android v20

天涯浪子 提交于 2019-12-06 04:01:12
问题 Quite a bit of weird error is happening after I upgraded android and eclipse tools to v20 building through Ant stopped working with the following error upon creating the signed apk BUILD FAILED C:\Programs\Android\tools\ant\build.xml:1097: The following error occurred while executing this line: C:\Programs\Android\tools\ant\build.xml:1109: Cannot recover key Any idea what could've changed when doing the upgrade to android JB components, and how can this be rectified? I appreciate any help...

Android 4.2 - LD_PRELOAD supported or not?

谁都会走 提交于 2019-12-06 02:30:27
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! Generally speaking, LD_LIBRARY_PATH has worked on engineering builds (a.k.a. rooted devices) for quite a while. The problem is that this does not help for production builds - not because the loader is changed, but because the

Galaxy s4 res folder

我们两清 提交于 2019-12-05 20:13:21
Galaxy s4 Screen: 4.99", 1920x1080 (FullHD). Which the res folder would be used in FHD and what's the dpi value should be set? xhdpi or xxhdpi? And how can I calculate it? I didn't find any info in the developer docs and in the screens_support article It's 441 dpi, isn't it? So almost certainly xxhdpi, which is already supported in the Android framework. But why worry about it at this time? Assuming you're already supporting xhdpi, the likelihood that the average user can detect the different between xhdpi and xxhdpi assets is becoming increasingly small. -- Edit -- Actually, I'd say it's

ScrollView inside ViewPager does not scroll on Android 4.x

Deadly 提交于 2019-12-05 12:58:26
I have a problem that seems to only impact Android 4.x versions and may be also device specific (i.e. it does not exist on my Huawei G630@4.3, but do exists on a Samsung Ace2@4.4.4). I have a ScrollView that contains a RelativeLayout that has 4 CardView s. Now on some 4.x devices, the scroll event simply does not happen when I try to scroll beginning from a card. If I touch the small padding between the cards or above the first card (and not between any two) and the device screen, I can scroll the content. <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android

Android notifications: compatibility with APIs

末鹿安然 提交于 2019-12-05 10:34:31
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) .setSmallIcon(R.drawable.ic_launcher); PendingIntent in = PendingIntent.getActivity(getApplicationContext(), 0,

my status bar in android 4.2.2 emulator is broken

[亡魂溺海] 提交于 2019-12-05 05:21:37
Today I found the status bar in android 4.2.2 emulator is broken.I cannot pull it down. I have no idea what happened. Try to make a little app wich pulls it down: StatusBarManager statusBar = (StatusBarManager) getSystemService(STATUS_BAR_SERVICE); statusBar.expand(); Permission is required in manifest: <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> abhishekmukherg For what it's worth, as per this SO , it seems like it might be a bug in android . No response from Google as of the writing of this comment. 来源: https://stackoverflow.com/questions/15484062/my-status-bar-in

RecognitionListener in JellyBean Freezes if not spoken to immediately

旧街凉风 提交于 2019-12-04 19:33:33
问题 A speech-recognition based app I am working on works well on all versions of Android starting from API 8 (Android 2.2). But on a Nexus S 4G (Android 4.1.1), RecognitionListener will simply halt for about 1 minute , then issue an ERROR_SERVER via its onError() callback. If spoken to within 1-2 seconds (of that onReadyForSpeech bleep), it will behave properly as expected. What changed in JellyBean that could explain this behavior? More importantly, is there a way to make it behave like in the