android-5.1.1-lollipop

OpenCV4Android - Blank Image After Using MorphologyEX

江枫思渺然 提交于 2019-12-13 06:13:53
问题 So I'm attempting to get a BlackHat Morph of an image but after applying the Morph operation I'm getting a Blank image and I'm not sure why. private coid convertToBlackHat( Mat passedImage ) { // Create a structuring element (SE) int morph_size = 2; Mat element = Imgproc.getStructuringElement( Imgproc.MORPH_RECT, new Size( 2*morph_size + 1, 2*morph_size+1 ), new Point( morph_size, morph_size ) ); Mat dst = new Mat(); // result matrix // Apply the specified morphology operation Imgproc

Services stopping automatically from android OS 5.1.1

狂风中的少年 提交于 2019-12-11 05:27:29
问题 I am working on an application related to Voip & IM (chatting application). Till android OS 5.0 it is working good and no issues from client also. But from android OS 5.1.1 onwards we are facing issues. Issues: If the app is in foreground and if device goes to sleep mode it is working good. If the app is in background and if device goes to sleep mode after 10 minutes all the services are stopping automatically . Testing: For testing I created one timer task to print logs for every 1 minute.

Intent not working for Parcelable Objects in onActivityReenter with SharedElement Transitions

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:16:43
问题 I am working on Shared elements Transitions in Android and have executed the animations perfectly. The problem I am facing is when passing data using Intents. So, I basically start Intent from ActivityA, which is the first screen containing a recycler view, do an ImageTransform using TransitionName and start ActivityB, which contains a details activity containing a ViewPager. Now, when I press back button, ActivityB calls finishAfterTransition in which I create an Intent and set the result as

Cannot upgrade old application by android studio generated apk file in Lollipop

耗尽温柔 提交于 2019-12-11 00:15:22
问题 I was installed old version(version 1) of my application from google play store in my phones. Now I would like to update this app to new version(version 2), so, I generated new apk file by using android studio and I upload this generated apk to google drive. Then download and install from my several devices(Android 5.1.1, and Android 4.2.2). In android 4.2.2, I can install the downloaded apk and my application was upgraded to version 2 successfully. In Android 5.1.1, I can click on install

Location Permissions on Android 5.1

孤街醉人 提交于 2019-12-10 20:44:58
问题 We have built and deployed a location-based shopping app that worked perfectly. That is until we discovered that our app does not work on Android 5.1.1 devices due to a Security Exception thrown. After a little research I discovered that Google has created a new method of asking for permissions at runtime but did not see any clear ways of doing that. Can anyone give clear guidelines/lines of code of requesting permission from the user at runtime. Will the app also have to do this every time

SwitchPreference Callback behaviour change in lollipop

谁都会走 提交于 2019-12-10 11:17:46
问题 In our project we are using SwitchPreference similar to wifi settings.user can toggle value by clicking on toggle button and user can see more options by clicking on title. But this is not working in lollipop. I can see some behaviour change in lollipop. In kitkat: When user taps on toggle button, onPreferenceChanged callback is called and when user taps on title, onPreferenceClicked is called. In lollipop: you tap on toggle button or title onPreferenceClicked is called always and after that

Toast: Difference between “this” and “getApplicationContext()”?

假如想象 提交于 2019-12-08 16:03:24
问题 My device runs Android 5.1.1 and I found out that if I use Toast.makeText(this, "This is a toast", Toast.LENGTH_SHORT).show(); I got this: But if I use getApplicationContext() instead of this , Toast.makeText(getApplicationContext(), "This is a toast", Toast.LENGTH_SHORT).show(); I got this: Both are called directly from the activity. Why is this? 回答1: It has to do with the Theme the Context has associated with it. Using this is using a context (I'm assuming your Activity or Fragment ) that

App works well in android 5.1 and 6.1 but crashes in 4.10(API 16)

ε祈祈猫儿з 提交于 2019-12-08 13:23:47
问题 I am a newbee in the Android development. I am able to make this app work in Android 5.1 and but however when I tried to deploy this app in Android 4.1 it used to crash in the main activity itself. I understood its becuase I used vector images and android 4.1 is not compatible with it. To overcome this I set the code as mentioned below: // Gradle Plugin 2.0+ android { defaultConfig { vectorDrawables.useSupportLibrary = true } } You’ll note this new attribute only exists in the version 2.0 of

Android: support features don't appear in android L

妖精的绣舞 提交于 2019-12-07 21:44:25
问题 I use Android Studio 2.0 . I have used RecyclerView and CardView which render properly on kitkat but when the app is run on SAMSUNG A5 with android 5.1.1 (lollipop) the RecyclerView doesn't scroll and my CardView doesn't have elevation and corner. I tried solutions suggested in SO such as adding card_view:cardUseCompatPadding="true" and adding margin. Even changed xmlns:card_view="http://schemas.android.com/apk/res-auto" to xmlns:card_view="http://schemas.android.com/tools" But these didn't

Rejecting re-init on previously failed class error when loading a Class with dalvikvm

梦想与她 提交于 2019-12-07 19:52:52
问题 I am trying to use Terminal IDE on Lollipop 5.1.1. Using a Samsung E7 device, a mod version of Terminal IDE is provided by someone on XDA here: http://forum.xda-developers.com/showthread.php?t=1340852&page=7 I tried to use javac script in that mod but it gave an unsatisfied link error, saying that: $ javac java.lang.UnsatisfiedLinkError: org.apache.harmony.security.fortress.Services at org.apache.harmony.security.fortress.Engine.getServices(Engine.java:158) at org.apache.harmony.security