android-4.2-jelly-bean

How to hide the soft-key bar on Android phone?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 07:11:26
问题   When my app starts, I'd like to hide the soft keys bar (in red rectangle) to have a larger screen. How can I hide it? Do I need to show the bar purposely when the app quits? Or it will restore itself automatically after the app quits? Android 4.1, with no hardware keys on phone front. 回答1: Try getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); From official doc The SYSTEM_UI_FLAG_LOW_PROFILE flag replaces the STATUS_BAR_HIDDEN flag. When set, this flag

Android: Backspace in WebView/BaseInputConnection

夙愿已清 提交于 2019-12-17 06:43:49
问题 I have a problem with soft keyboard backspace in Android (4.2). I have a custom editor in a WebView (CodeMirror), which uses an empty <textarea> internally. It seems that backspace is not sent by an Android system unless it believes there is some text in the <textarea> . I have overridden WebView onCreateInputConnection in an attempt to dumb down soft input: @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { Log.d("CustomWebView", "onCreateInputConnection(...)");

Jelly Beans and ICS Emulators not Opening

℡╲_俬逩灬. 提交于 2019-12-14 03:07:22
问题 I'm use Eclipse IDE and added the ADT Plugin. I created the Emulator for Android 2.2 Froyo,2.3 Ginger Bread,4.0 ICS,4.1 Jelly Beans. Here Froyo and Ginger are working fine, when i start ICS Emulator Its take too long to start working very slow and Jelly beans not yet working. When i start the Jelly Beans Emulator getting error like this, Starting emulator for AVD 'JF' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the

Write to Global Settings in Android 4.2

一个人想着一个人 提交于 2019-12-13 14:33:18
问题 Android 4.2 has introduced a new class, Settings.Global, which now holds some of the settings that used to be in Settings.Secure or Settings.System. Writing to System Settings and Secure Settings was (and is) possible because or the WRITE_SETTINGS and WRITE_SECURE_SETTINGS permissions (see Manifest.permissions). The thing is... is there any way to modify Global Settings? For example, Airplane mode could before be toggled from an app and now, since it's in Settings.Global, it does not seem

Camera.open works on Android 4.2.2, but fails on 6.0.1

南笙酒味 提交于 2019-12-13 08:39:50
问题 I have 2 devices to test my app : an Acer v370 running Android 4.2.2, and a Samsung Galaxy S6 on 6.0.1 The app works fine on the Acer, but crashes instantly on the S6. I'm using _camera = Camera.open(0); and debugging says it crashes at this point. The error I get is : 09-15 11:24:33.491 15284-15284/com.user.qrReader E/AndroidRuntime: FATAL EXCEPTION: main Process: com.user.qrReader, PID: 15284 java.lang.RuntimeException: Unable to resume activity {com.user.qrReader/com.user.qrReader

google play services version issue real device

霸气de小男生 提交于 2019-12-13 07:46:49
问题 I´m new on android developement, and i have faced some troubles with google maps. here are a few questions I´know that adv with target 4.2 or higher includes google play services, does this imply that real devices with lower versions will not run my app? 01-28 15:46:55.529: W/GooglePlayServicesUtil(627): Google Play services out of date. Requires 4132500 but found 4131530 the lowest version for my app is 2.3 and it worked until i use gps and polilyne to draw routes between markers. I found a

Issue including executable with Android application when using Jelly Bean

吃可爱长大的小学妹 提交于 2019-12-13 02:26:31
问题 I have ported a few useful free/open source tools to Android. One is Octave and the other is gnuplot. They work together in unison to provide Matlab like capability for free (as in speech) and free (as in beer). I have packed them inside apps in an interesting way. Specifically, 1) I include the executable and shared libraries inside the libs/armeabi directory. Have to give them funny name because of android naming conventions. 2) I create directories bin / and mylib/ . I give them full

display picture in imageview photo taken by camera in android

淺唱寂寞╮ 提交于 2019-12-13 00:31:42
问题 I have a problem in Android development with camera. i try to take a pic and display it in to imageview but the result does not show but it works fine for Galaxy Note but i doesnt work for Galaxy S3 My Code is Bellow Camera Activity package com.nfs; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.view.Menu; import android.view.View; import android.widget.Button; import android.widget.ImageView; public class

background-attachment messes up rendering in Jelly Bean WebView?

旧街凉风 提交于 2019-12-12 16:09:32
问题 It seems that the background-fixed CSS property doesn't work right in Jelly Bean WebView (both inside an application and using the default Android browser). If I set this property, the background image gets loaded over the content, i.e. the content is behind the background image. Here's my relevant HTML code: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="target-densitydpi

How to turn on the Application setting 'Show Notifications' in 4.1 Jelly Bean for Toast Messages

旧巷老猫 提交于 2019-12-12 12:14:28
问题 My application uses Toast and it no longer works under Android 4.1 (Jelly Bean) unless the Application setting "Show notifications" is checked. Is there a way to programatically set this on? I have looked through the permissions list but have not found anything. Searching discovers an outstanding issue no. 35013 with Google. 来源: https://stackoverflow.com/questions/12611635/how-to-turn-on-the-application-setting-show-notifications-in-4-1-jelly-bean-fo