android-6.0-marshmallow

Programmatically disconnect call in android Marshmallow version

拈花ヽ惹草 提交于 2019-12-13 12:05:25
问题 I need to disconnect call through code in upper version of android. As per document we are not authorized to do so as it is private. While searching over SO I found different solutions that is working till lollipop. Inline is what approach I have tried till now. Approach One : public void disconnectCall(String type){ try { String serviceManagerName = "android.os.ServiceManager"; String serviceManagerNativeName = "android.os.ServiceManagerNative"; String telephonyName = "com.android.internal

Android progrees dialog error how to solve this?

耗尽温柔 提交于 2019-12-13 07:18:56
问题 I got an error on marshmallow device like below: but below marshmallow OS progress dialog working fine. Error As follow: E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference at com.android.internal.app.AlertController.setupView(AlertController.java:489) at com.android.internal.app.AlertController.installContent(AlertController.java:234) at android.app

Android 6.0 App Not Loading Activity

假如想象 提交于 2019-12-13 05:54:29
问题 I recently updated Android Studio and all associated support libraries, and my application is not progressing passed the first screen. The first screen is a basic LoadingActivity that checks the authentication state of the user. If the user is authenticated, it progresses to the application, otherwise it goes to an activity prompting a sign up. Here is the stack trace for my project: 04-19 12:29:41.707 16877-16877/com.sourcey.materialloginexample I/art: Late-enabling -Xcheck:jni 04-19 12:29

OutOfMemoryError crashes systemui when accessing Recent Apps only on Marshmallow

若如初见. 提交于 2019-12-13 05:25:12
问题 I'm working on an Android app that works well except when accessing the recent apps list on Android 6.0+. When I tap the recent apps button while my app is open, com.android.systemui will crash with the following stacktrace: 03-31 15:40:22.291 23442-23442/? E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 03-31 15:40:22.318 23442-23442/? E/MessageQueue-JNI: java.lang.OutOfMemoryError: Failed to allocate a 119596108 byte allocation with 16777216 free bytes and 57MB

Android 6.0: SD Card Directory creation fails in spite of having permissions

白昼怎懂夜的黑 提交于 2019-12-13 03:15:59
问题 I am trying to create an external directory structure to move some files from Device storage to SD card in Android phones. I have followed the steps given in https://developer.android.com/training/permissions/requesting.html and multiple stackoverflow answers. However, my program fails when I try to create the directories. My AndroidManifest.xml file contains the following lines: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name=

Permission from manifest doesn't work in Android 6

不打扰是莪最后的温柔 提交于 2019-12-13 02:54:41
问题 It completely ignores: <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> So I got exception: Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@86fb55b -- permission denied for this window type It's not even listed: How should I fix it? Thanks. EDIT: It's listed in Configure apps/ Advanced / Draw over other app. So i turn it on and now it works fine, but why there isn't any dialog to ask about permission when i run

Samsung Open Source for Android, its usage?

拈花ヽ惹草 提交于 2019-12-13 01:54:02
问题 I downloaded android device open source from Samsung OSRC. It was composed with Platform.tar.gz and Kernel.tar.gz It seems to do with building AOSP, found mk files. I'm curious whether it can be used(directly or indirectly) to build newer android version for device and whether I have to build new kernel based on this files. Thank you. 回答1: If you want to build for a newer Android version, you do not need to build another kernel. Just use the kernel provided by Samsung for your device (or the

getAllNetworkInfo() is Deprecated

人走茶凉 提交于 2019-12-13 01:43:31
问题 I wrote this code. ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivity != null) { NetworkInfo[] info = connectivity.getAllNetworkInfo(); if (info != null) { for (int i = 0; i < info.length; i++) { if (info[i].getState() == NetworkInfo.State.CONNECTED) {} But getAllNetworkInfo() is deprecated. Please help. Thank you. 回答1: as the docs say: getAllNetworkInfo() This method was deprecated in API level 23. This method

Fingerprint scanner not detected when using Android 6.0 Fingerprint API on Samsung S5

坚强是说给别人听的谎言 提交于 2019-12-13 00:35:55
问题 Androids 6.0 Fingerprint API cannot detect my fingerprint scanner on Samsung S5. Screen lock is secured with fingerprints I've 2 Fingerprints registered in fingerprint manager My S5 is updated to android 6.0 The fingerprint scanner is working fine, I use it to unlock my phone I cannot find anything to do with fingerprints in the Security Settings (Was told to allow Apps to have access to fingerprint here, but its not on it) In App Info of each app, is says Permissions: No Permissions

Android 6 (23) - no permission requested

ぐ巨炮叔叔 提交于 2019-12-12 20:15:35
问题 I stucked on new permission model in the Android 6. I defined following permissions in the manifest: <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application... But if i launched the app in the emulator and opened the app detail i saw the following : It says that app