android-4.2-jelly-bean

How to open camera directly in panorama/photosphere mode?

醉酒当歌 提交于 2019-11-27 07:40:32
I am stuck in a problem in Android 4.2 Jelly Bean. How can I open camera from my application, by default in panorama/360 photosphere mode? I have searched a lot in grepcode and also Camera.Parameters , but nothing seems to help. Does anybody have any clues to open camera in panorama mode apart from video and image? there is no standard way to do it. AFAIK Panorama, Photoshere are proprietary features of Gallery3d (provided by Google) package com.google.android.gallery3d. It's depends on firmware of the device. in ApplicationManifest.xml <activity clearTaskOnLaunch="true" screenOrientation="0"

Change Actionbar height on Android JellyBean

ⅰ亾dé卋堺 提交于 2019-11-27 07:37:20
I've been recently developing an Android app, in which i need to have a custom layout and dimension for the tab bar. The way that i did it until now is by using Jake Wharton's ActionBarSherlock library to support pre-HoneyComb Android versions, and by applying a style to the app in which i edit the actionBarSize style item. Now, I've been testing the app on the Galaxy S3 (with Jellybean on it), and the tab bar height doesn't change anymore according to the actionBarSize value. So I've started looking through JellyBean's code, and I found this method in the ActionBarPolicy class: public int

HTTP Basic Authentication issue on Android Jelly Bean 4.1 using HttpURLConnection

风流意气都作罢 提交于 2019-11-27 07:04:40
问题 We are making HttpURLConnection based request to the Web server using HTTP Basic Authentication. Code works great on Android versions 2.x, 3.x., 4.0.x Now with Jelly Bean and v4.1.x authentication fails with the following messages in the LogCat: 01-27 10:54:18.886: ...::doReadRawData(731): An exception occured while reading data from remote host. httpURLConn.responseCode = 401 / httpURLConn.responseMessage = UNAUTHORIZED 01-27 10:54:18.886: ...::doReadRawData(731): java.io.IOException: No

Android WebView JellyBean -> Should not happen: no rect-based-test nodes found

人走茶凉 提交于 2019-11-27 06:20:42
My application is using a lot of webviews which are lying in fragments which are hold by a ViewPager. Whenever i swipe through the app on my Galaxy Nexus with Jellybean on it i get the following console message again and again: 08-23 13:44:03.374: E/webcoreglue(21690): Should not happen: no rect-based-test nodes found Can anyone explain to me what is going wrong here so that i might be able to fix the issue? John Reck The issue occurs because in some scenarios WebView fails to notice that its visible rect has changed, so as far as webkit is concerned the page is still not visible. Thus all

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

一个人想着一个人 提交于 2019-11-27 05:38:41
问题 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

YouTube IFrame API play method doesn't work before touch on some Android tablets

我只是一个虾纸丫 提交于 2019-11-27 03:26:07
问题 We're developing a YouTube player and are using the IFrame API. Everything works really nice except on our Android 4.2.2 test devices. Only on those devices (and not on any other version of Android), it is necessary to "manually" start the video by touching the video view. On all other devices, we can programatically start the video playing using the YouTube method. Once the video has been started in this way, the YouTube API works as expected (i.e. play, pause, stop methods all work

Android 4.2.2 USB debugging “Always allow from this computer” option result in target unknown for device?

二次信任 提交于 2019-11-27 03:15:34
问题 I am having problem connecting my 4.2.2 android device with PC after I select "Always allow from this computer". I have selected "Always allow from this computer" in 4.2.2 USB debugging and it works fine the first time but when I tried other time my devices always appear offline. I have tried with another device that is also 4.2.2 and the USB debugging popup and when I click ok (without selecting "Always allow from this computer") with device list became online. I have tried the following

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

做~自己de王妃 提交于 2019-11-27 00:31:29
  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. 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 enables “low profile" mode for the system bar or navigation bar. Navigation buttons dim and other elements in

Debugging Issues (Android Eclipse)

妖精的绣舞 提交于 2019-11-26 23:20:33
问题 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

appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2

半腔热情 提交于 2019-11-26 22:34:01
问题 We just changed our application to use the appcompat-v7 support library in order to take advantage of the support actionbar and support Material themes. Using v21.0.0 of appcompat-v7 (and v21.0.0 of support-v4) , we are now seeing crashes in Google Play and Crashlytics only from Samsung devices running Android v4.2.2 . Here is the stack trace from Google Play and the app appears to crash as soon as the actionbar` is shown and/or invalidated. java.lang.NoClassDefFoundError: android.support.v7