Questions tagged [android-7.0-nougat]

Android 7.0 Nougat (API level 24), formerly known as "Android N".

android-7.0-nougat
Filter by
Sorted by
Tagged with
1 vote
0 answers
1k views

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found Android Nougat

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found - Android Nougat I dont understand this problem if this is from the server misconfiguration or I should ...
david's user avatar
  • 2,950
1 vote
0 answers
265 views

Syncadapter performSync is not working in queue if Network from offline to online for Android 7 and above

performSync() is working in order for Android below 7. The same is not working in order (Queue) for Android 7 and above. The sync adapter configuration is as below. <sync-adapter xmlns:android="...
Mohan R C's user avatar
2 votes
0 answers
548 views

context menu in android 7.0

I'm struggling with the following situation: I create the context menus in ListViews by overriding the onCreateContextMenu method from the listview myListView.setOnCreateContextMenuListener(...
MSantos's user avatar
  • 53
0 votes
1 answer
496 views

Notification icon not displayed in samsung Android 7

I am trying to display notification icon for my app. For all the OS versions and devices it is working fine except Samsung devices with Android 7. Notification icon in status bar. Here is the actual ...
pratik03's user avatar
  • 661
1 vote
1 answer
988 views

Android 7.0 Migration - Handling FileUriExposedException when accessing android_asset folder

Background After migrating to Android 7.0 I noticed my app was crashing with a FileUriExposedException when loading the following url in my webView: webView.loadUrl("file:///android_asset/myFolder/...
Lauren's user avatar
  • 123
2 votes
1 answer
163 views

IllegalArgumentException in File Provider - Android 7.0

I am trying to access a apk file saved in Download\AppName\myApk.apk from my app using FileProvider concept but failed I am using follwing code Intent intent = new Intent(Intent....
Rajeev Kumar's user avatar
  • 4,939
1 vote
1 answer
488 views

Image upload issue using Multipartentity in Nougat 7.0 and higher version

I have used the below code to capture the images from camera and stored into the device. Then i have uploaded those files by pressing button using multipartentity.These code works fine all the version ...
Vengat's user avatar
  • 235
-3 votes
1 answer
1k views

ThumbnailUtils.createVideoThumbnail not working for nougat device

Bitmap bitmap = ThumbnailUtils.createVideoThumbnail(localUrl, MediaStore.Video.Thumbnails.MINI_KIND); Here bitmap gives me null value.
Pratik Kukadia's user avatar
79 votes
3 answers
15k views

Unable to resume activity with java.lang.IllegalArgumentException on Android api >=24

There is a crash in my app on devices running version 7.0, 7.1.1 and 8.0.0 with the following stacktrace: Fatal Exception: java.lang.RuntimeException: Unable to resume activity {xxx/xxx.views....
Jiyeh's user avatar
  • 5,207
0 votes
1 answer
2k views

In Nougat Capture Image from Camera and get file from Uri

In Android Nougat and above versions the method to capture image from camera intent is changed and following code is working fine for me. Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); ...
Usman Rana's user avatar
  • 2,117
0 votes
0 answers
306 views

startActivityForResult causes my app to freeze on some devices

I have a device-specific problem. My app starts an intent with startActivityForResult, this works with almost all test devices only on some Android 7 devices, this leads to an APP freeze, where the ...
r3dstorm4's user avatar
2 votes
1 answer
774 views

Android 7 webview not loading urls after some time

we are experiencing a weird issue in our mobile app with devices running Android 7., although 6. are working fine for the same code. Users can navigate through different urls successfully in the ...
David Santiago Turiño's user avatar
1 vote
0 answers
131 views

Bluetooth server on Android Nougat

I have a problem with the Bluetooth server on android Nougat. Bluetooth seems to receive data more slowly (maybe it does not have the highest priority?) and then the plot of my charts happens slowly ...
Davide Torchia's user avatar
1 vote
0 answers
213 views

How to use numeric keyboard in android notification direct reply?

I want to use a numeric keyboard in android notification's direct reply and also want to set the input filter for it. RemoteInput remoteInput = new RemoteInput.Builder("log").setLabel(...
Rishabh Tanwar's user avatar
1 vote
0 answers
342 views

How to get all visible running applications package names?

I have a custom launcher which is always visible and it starts 3 different apps. Starting from Android N on each app icon click (on the custom launcher) I must check whether any of the 3 applications ...
Hayk's user avatar
  • 31
1 vote
0 answers
186 views

Android app freezes on Android Nougat

I have an app that runs perfecly on Android < 7 (marshmallow included), but when it comes to Android 7, after I log in on it, it freezes. It is not happening in other devices and is happening in 2 ...
Agustin Zanini's user avatar
0 votes
0 answers
241 views

How to check whether an EXTERNAL app has draw-over permissions in Android 7?

I am trying to check whether an external application (i.e. not the one I am writing, but another one running on the debug device) has draw-over permissions. However, regardless of the method I use, I ...
Totem's user avatar
  • 474
1 vote
1 answer
299 views

Check if activity is visible (onResume&Pause dosen't suit, because of multiwindow mode)

I need to ensure somehow the activity is on screen visible to user eyes. We can do this by listetning to onResume & onPause events in Activity class and setting some boolean in these functions. ...
ElSajko's user avatar
  • 1,632
0 votes
0 answers
449 views

Android notifications not received - Oreo vs Nougat

I am trying to run a Notification example that I downloaded from Google. I edit it to make it minimal - then compile it and it works OK. Here is my code: private void test_notifications() { ...
Ori's user avatar
  • 53
2 votes
1 answer
1k views

Programmatically detecting changes to BLE connection parameters

I want some way to read the connection parameters programatically in Android BLE. Android's BluetoothGatt class, as of API 21, provides these three modes to set up connection parameters. ...
Aroto's user avatar
  • 311
-2 votes
1 answer
31 views

Should I submit an app that only supports Android 6 and 5.1?

On my free time, I started working on an app. Back then Android 6 was recently released and 5.1 was still hot. It seemed logical to use Android 6 as my preferred SDK. Now a days, I barely have any ...
Jcorretjer's user avatar
0 votes
1 answer
975 views

DatagramSocket send blocks on Android 7.0

I'm using a DatagramSocket in an Android app for some UDP communication with a server. It sends packets to the server and listens for packets from the server. This was created about four years ago ...
DavidsAlias's user avatar
0 votes
1 answer
190 views

READ_SMS broadcast receiver does not trigger on Noughat and Marshmallow

I have read several questions in stackoverflow including this, this and this, but they did not help me to fix my problem. I have described my broadcast receiver in android manifest to receive ...
VSB's user avatar
  • 10.1k
0 votes
1 answer
3k views

After closing the screen, android closes socket connection in few minutes

I am implementing a real time taxi-hailing application with socket-io and in the implementation of driver application, we are dealing with socket problem. Even if the user closes the device screen, i ...
Ziac's user avatar
  • 21
1 vote
1 answer
283 views

App crashes while reading files from Storage path in noughat

Issue: The code is for choosing a file from external storage for doing OTA update from Android App.This works well in Kitkat but when it comes to Nougat phones(Moto G4) while ...
user avatar
1 vote
0 answers
353 views

Android 7.0 Animations are not working properly (alpha, duration, delay)

After upgrading my phone from Android 6.0 to 7.0 animations aren't working how they are supposed to work. I have small class for Animations in my project with 3 simple static methods: public static ...
Iriz's user avatar
  • 23
1 vote
0 answers
122 views

I am setting Periodic Sync 2 hour but by default Android (OS 7.0 Moto G5 S) taking 1 day, Any reason?

Below is code which I am using since 2015 but suddenly it is not working for Android 7.0 (working for all other below 7.0 OS phone except xiomi phone), I checked periodic sync "period" using below ...
Lokesh Tiwari's user avatar
1 vote
1 answer
2k views

OnOptionsItemSelected is not called in Xamarin.Android API 24+ (Android 7+)

I'm developing an app with Xamarin.Android that was working fine until the API 23 (Android 6.0): This is my OnCreate event: protected override void OnCreate(Bundle bundle) { SetTheme(Resource....
Federico Navarrete's user avatar
8 votes
4 answers
5k views

Couldn't hear incoming voice in recorded calls in android 7?

I am developing an Android app for recording calls. This is my code snippet. recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); recorder....
Sudarshana Dayananda's user avatar
1 vote
1 answer
548 views

Default method boolean methodname() not supported in API level lower than 24

i have changed my java compile version to 1_8. defaultConfig { jackOptions { enabled true } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 ...
Happy's user avatar
  • 1,061
1 vote
1 answer
829 views

BLE (Bluetooth Low Energy) at android nougat (over 7.0.0) can't read data

First my app can't read data in nougat with BLE I am using BlueNRG-MS Module to connect with device. Up to Marshmallow onCharacteristicChanged method called and I can receive data. But over 7.0.0 ...
박영훈's user avatar
0 votes
1 answer
72 views

Xamarin Can not compile using Android version 7

I Can not compile using Android version 7. I want to get a plan for Android 7 in the 2015 Visual Studio. I have installed sdk completely, installed Java Development Kit 1.8.0.92 But none of the above ...
Hadi Salehy's user avatar
0 votes
2 answers
1k views

Can't switch context with Appium for Cordova hybrid app on Android 7

[Appium 1.7.1] [Android 7.0] [Java] [Hybrid App] [Cordova] I tried with following logic to switch context, it's working with another Android OS like 5.1.1 but it's not useful for android 7.0. I am ...
Sanket's user avatar
  • 21
1 vote
0 answers
187 views

Google maps v2 custom Infowindow with two buttons

I used this answer to create a custom InfoWindow with 2 buttons . It works OK on every mobile except the ones with Android 7.
Popescu Denisa Elena's user avatar
0 votes
2 answers
492 views

Cannot set high resolution image(1920x1280) to image view on android 7.0

I run this app lot of devices. less than android 7 and more than android 7, that is fine. but when i run this app on samsung s6(android 7.0) it gives this error Fatal Exception: java.lang....
J.D's user avatar
  • 58
1 vote
1 answer
727 views

Status bar overlay image shifted down in android nought

I am trying to add an image to the status bar in xamarin forms android.. But the image is completely shifted down and coming under the normal status bar color i set in android nougat. This happened ...
George Thomas's user avatar
1 vote
1 answer
1k views

How to open wps office in my application Nougat?

I tried below code it is working upto Marshmallow it's not working in Nougat..can any one help me how to solve this... I have a Excelfile in my internal storage...i what open excelfile when button ...
demo's user avatar
  • 702
-1 votes
1 answer
1k views

Getting permissions on Android version 7 [duplicate]

I am developing a small application for sending SMS for Android. When you install an .apk Android 4.4 asks for permission to send SMS messages from the device. But Android 7 does not ask any ...
Artur Shamsutdinov's user avatar
1 vote
1 answer
659 views

Voice call recording Android 7.0 in samsung 8

I am trying to record the voice call through MediaRecorder. This not working android 7.0 but below android 6 its working perfectly. Can some suggest is there any way to record in android 7 phone. ...
Srikanth's user avatar
  • 584
1 vote
2 answers
514 views

Android App is not able to open in Appium Automation in android OS 7 Nougat

i try to open the Android app in Nougat 7 or above android version but there is a error show in appium, the error is bellow. info: [debug] Responding to client with error: {"status":33,"value":{"...
Mitul Parekh's user avatar
0 votes
1 answer
2k views

NotSerializableException when trying to write Serializable object to file

I'm on android and I'm trying to save a list of objects into a file but I always get this exception: java.io.NotSerializableException: android.app.Application. I've tried to find what could cause ...
Elie G.'s user avatar
  • 1,566
6 votes
1 answer
2k views

Android: Change language android N, application instance not updated

I follow Android N change language programmatically to changed language of my app in android N and above. However, I still have the problem with the application context instance. In my Application ...
Ngo Van's user avatar
  • 867
-5 votes
1 answer
123 views

I can't run an instanceof the LocalDateTime in activity android Nougat 7.x, [closed]

I can't run an instanceof the LocalDateTime in activity android Nougat 7.x,
Badr KALITOUSS's user avatar
0 votes
0 answers
1k views

Decryption failed after Encrypting File using AES in Android N(Nougat)

Well, I was about to encrypt a file from SDcard on user's order and Of course decrypt it back after that. well after a bit of searching I found out how to do it in android using "AES". everything was ...
Jalal Aghazadeh's user avatar
6 votes
1 answer
1k views

android O not receiving FCM push messaging while phone is in sleep mode

I am using FCM for push messaging. I did not getting FCM notification if application is closed by user in android Noughat OS. If user not close app, push notification works fine. also if user add ...
Aditya varale's user avatar
1 vote
1 answer
262 views

Android Nougat returns null while capturing video

Android version7 returns null URI. My Manifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com....
Myself's user avatar
  • 168
0 votes
1 answer
132 views

What is the workaround code to detect network changes from Nougat and further android versions >

I am using below code to detect network changes public class NetworkStateListener extends BroadcastReceiver { public static int NETWORK_CONNECTED_TYPE_WIFI = 1; public static int ...
Sai's Stack's user avatar
  • 1,375
0 votes
0 answers
498 views

How many types of UserHandles are there in android?

In my multi user aware application I use the below two ways of obtaining a user handle to OWNER(user 0) user. However both these handles are different. I do not understand why the two user handles are ...
savi's user avatar
  • 497
1 vote
0 answers
584 views

webview in android 7 not working properly

I am working on webview, its working fine on versions below marshmallow but there is problem in version 7 android. I am not able to upload files through webview on android 7 despite giving all the ...
souviksinha09's user avatar
4 votes
0 answers
611 views

Multiple layouts for physical keyboard on Android 7

I have LineageOS 14.1, and the menu with keyboard layouts for physical keyboard allows you to choose only one language (no multiple choice). How can I choose multiple languages? Now I have Gboard ...
ospanoff's user avatar
  • 106

1 2 3
4
5
18