android-5.0-lollipop

Android native crash initiating from /system/framework/arm/boot.oat

白昼怎懂夜的黑 提交于 2019-12-05 10:27:33
问题 After recent update of my application in Google Play, I started receiving lot of crash reports, all of them are from Samsung devices with Android 5. Lower android versions work fine and devices of other manufacturers with Android 5 work fine too. I don't have any device where I could reproduce the issue, so I can't bisect. I am trying to deduce what could be wrong from the crash report and from list of changes since my last working version (which is unfortunately long). All the crash reports

Android audiomanager - I want to set silent mode, but applied the priority mode (lollipop)

£可爱£侵袭症+ 提交于 2019-12-05 10:00:36
问题 My problem is occurs in android lollipop os. I want to set 'silent mode', but lollipop os applies to ' priority mode '. (I use AudioManager) Is there any way I can apply the 'silent mode' instead of 'priority mode'? My code : AudioManager mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); 回答1: Due to changes in API try using the int value 0 instead of AudioManager.RINGER_MODE_SILENT AudioManager mAudioManager =

Pass a Bundle to startActivityForResult to achieve Scene Transitions

家住魔仙堡 提交于 2019-12-05 09:45:50
I am playing around with Lollipop sceneTransitionAnimations . To get it to work you need to implement getWindow().setExitTransition() + getWindow().setReenterTransition() in the calling activity's onCreate , and getWindow().setEnterTransition() + getWindow().setReenterTransition() in the called activity's onCreate . Then, when you call startActivity you have to pass a Bundle to that function that you obtain by calling ActivityOptions.makeSceneTransitionAnimation(getActivity()).toBundle() . This works fine. However I need to start an activity using startActivityForResult . This function only

Android Lollipop becoming device admininistrator doesn't work

旧时模样 提交于 2019-12-05 09:09:54
I'm following this guide on how to have my app request to become a device administrator. This works great on any 4.x android versions with any phone, but doesn't work on Lollipop (I've tried on a Nexus 5 and on a Nexus 7). Logcat shoes the following error: *11-02 07:37:09.649: W/DeviceAdminAdd(10020): Cannot start ADD_DEVICE_ADMIN as a new task* Has anyone else come across this problem with Lollipop? What can be the cause? I've gone over all parts of the guide and made sure my XML, menifest, receiver, etc. are all as they should be (and again, it does work on any other version of OS or phone I

Since Android Lollipop 5.0 I am not able to communicate to server (X509TrustManager) via SSL or TLSv1

淺唱寂寞╮ 提交于 2019-12-05 07:47:27
问题 I hope someone can help me here. Since Android Lollipop 5.0 I am not able to communicate to server (X509TrustManager) via SSL. It seems like the app is entering in a infinity loop trying to establish handshake. Here is my code: SSLContext sc; SSLSocket sslsock; Socket sock; // Constructor RfbProto(String h, int p) throws IOException{ host = h; port = p; TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers()

Android 5.0 - How to implement this tablet layout from Material Design guidelines

不羁岁月 提交于 2019-12-05 07:46:31
问题 I am not getting it which is ActionBar and which is ToolBar. How do i implement this? Any answers appreciated..Thanks in Advance. 回答1: In this example, the blue toolbar is an extended height, overlaid by the screen content and provides the navigation button. There is another toolbar used in the detail view. I have circled both Toolbars below. 回答2: Haven't tried this yet but it should work. Here is your layout : <?xml version="1.0" encoding="utf-8"?> <!-- The important thing to note here is

What is a JobService in Android

余生长醉 提交于 2019-12-05 07:30:31
I am inspecting the latest samples in Android-L developer SDK. There is a sample class in android-L/ui/views/Clipping/ClippingBasic called TestJobService . It extends from JobService , which in turn extends from Service . I see that JobService is a class in android.jar, but I cannot find any information on it in the dev guides, nor in the Android sourcecode www.androidxref.com . Has anybody seen this class or know what it's purpose is? matiash It's a new type of service, that is invoked for tasks that are scheduled to be run depending on system conditions (e.g. idle, plugged in). Entry point

Why is it possible on Android 5 (Lollipop) to directly change UI views from other threads?

試著忘記壹切 提交于 2019-12-05 07:25:09
Consider the following code: new Thread() { @Override public void run() { myTextView.setText("Some text"); } }.start(); On pre-Lollipop androids, that code causes the CalledFromWrongThreadException exception, but why does it work fine on Lollipop androids? Testing environment: Genymotion emulator running Android 5.1 The code was inside the onCreateView() method of the Fragment class. It's a matter of timing, for example inserting your code in onCreate() would not crash the app on Samsung Galaxy S3 nor Nexus 7 2013 on Android 5.1. However, if you modify the code such that it's constantly

Android Spinner not working on Samsung Devices with Android 5.0

断了今生、忘了曾经 提交于 2019-12-05 07:16:49
I'm using a custom Spinner widget with the code below. Everything works fine on most devices except on Samsung's devices with Android 5.0. On click the Spinner should display a list of values but that doesn't happen. On emulators and others brands devices with Android 5.0 it works fine. Has anyone faced a similiar isse or have any idea of what might be happening? xml <?xml version="1.0" encoding="utf-8"?> <Spinner android:id="@+id/_combo_spinner" android:layout_width="0px" android:layout_height="wrap_content" android:layout_weight="1" android:focusable="false" android:background="@null"

How to be notified when screen pinning is turned off in Android 5.0 Lollipop?

孤街醉人 提交于 2019-12-05 05:52:26
问题 I have an app that runs in the background and starts an activity when a certain event occurs on the phone. I'm finding with Android 5.0 that when the user has screen pinning turned on with another app, the startActivity(intent) call is ignored completely. My app doesn't know that the activity didn't start, so the user then won't have another chance to see the activity until they manually reopen my app. Is there any sort of event I can register for to be notified when screen pinning is turned