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
2 votes
0 answers
70 views

How to start apk file install right after "Unknown Sources" are enabled in Nougat?

How to start apk file install right after "Unknown Sources" are enabled in Android Nougat? In my activity I download file on button click, then I call intent to start install my apk file. Then I am ...
patonjo's user avatar
  • 460
1 vote
1 answer
996 views

Android Nougat devices not supporting java.util.Base64 library

I've been given few jar files which use java.util.Base64 to encode and decode data, when i try to get response from a network call using these jars to parse the data, i'm getting Failed resolution of: ...
madroid's user avatar
  • 336
0 votes
0 answers
120 views

Button savedInstanceState and onRestoreInstanceState

Saving the State of Drawable xml Button. private boolean mJam; private button mSwitch; private static final String KEY_ENABLE = "KEY_ENABLE"; @Override protected void onCreate(Bundle ...
puspak saha's user avatar
0 votes
1 answer
186 views

Front cam recording using MediaRecorder not working smoothly

I have a Huawei P9 Plus smartphone running Android 7.0. I'm using MediaRecorder to record the front cam. It is a 8 MP camera. I'm using the following settings (I think this is the most important part, ...
machinery's user avatar
  • 6,110
0 votes
1 answer
736 views

Android device camera is not opening, after allowing system permission with Ionic 3

I wanted to use camera plugin in my app. I requested camera permission, but after allowing camera is not opening Trying it on Following device - Moto g4 plus with android version 7.0 Following ...
Pratibha's user avatar
  • 257
0 votes
1 answer
231 views

Forcing the Android emulator to store changes to /system to preserve root

I am using Nougat 7 emulator and was able to root the emulator. But after rebooting all the changes i made to android /system folder are gone. Is there any way to preserve the /system. My real ...
bhodhi's user avatar
  • 1
0 votes
0 answers
170 views

PixelCopy on pre-Nougat devices [duplicate]

I would like to use the functionality of PixelCopy (Image to bitmap) on pre-Nougat devices but unfortunately it is not available. Is there some compat method available which does the same thing? I'm ...
hellowill89's user avatar
  • 1,568
21 votes
0 answers
468 views

View gets cropped above 10.000 pixel width

UPDATE: Works on Emulator with Android Oreo (8.X). I have the possibility to do changes right to the android sources, so it would also help if someone knews what in the android sources I have to ...
Daniel Z.'s user avatar
  • 3,168
0 votes
0 answers
285 views

A service is not working in background when I kill my application on Nougat

I have working in background task when I kill my application keep on check background task. I want when Kill my application keep Every checking data from API any new data is there it's show local ...
siva's user avatar
  • 103
10 votes
2 answers
4k views

Handling Display Size change

I am migrating my app target SDK Version to android oreo. One of the changes which might affect the app is that if the Display size of the device is changed then the app targeting Android Nougat and ...
Rahulrr2602's user avatar
0 votes
2 answers
185 views

Why cannot I attach a file in Android N+?

I'm developing an App that is exporting some HTML tables as attachments. I have noticed that my code doesn't work if I try to attach the HTML table to Gmail, Google Drive, or any E-mail provider in ...
Federico Navarrete's user avatar
2 votes
2 answers
2k views

Picking an image from gallery gives error Android N

I am having trouble with retrieving the Uri from an intent in Android N. As far as I know on Android 24 and above to get an external Uri you need FileProvider declared in Manifest. That's all done and ...
Теодор Митев's user avatar
1 vote
0 answers
1k views

java.lang.UnsatisfiedLinkError: dlopen libffmpeg.so: has text relocations

I got an error while using ffmpeg library in android Noughat and above.The error recieved is given below.java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/lib/arm/libffmpeg.so: has text ...
alina t's user avatar
  • 11
5 votes
2 answers
1k views

Not able to use dagger-injected objects in attachBaseContext() to update locale

I am using dagger and I have to update the locale in the attachBaseContext of the activity, I am keeping the locale update logic inside LocaleManager and LocaleManager instance is already inside ...
user2143279's user avatar
7 votes
5 answers
4k views

Get URI file path from inconsistent Android native file pick returned URIs

From Android N and upwards I am facing this issue. When I select a file from any apps on the file picker drawer on the left such as Gallery and File Manager, the URI's are received, and I can do what ...
Asiimwe's user avatar
  • 2,229
2 votes
0 answers
203 views

React Native - Request Location in android 7, 7.1 dont work, return timeout

I have worked in Project relate to Location. static currentLocation(myLocationCallback) { try { navigator.geolocation.getCurrentPosition( (location) => { if (this....
Tuan Nguyen's user avatar
  • 2,579
2 votes
2 answers
2k views

How to get file path from URI in Android N

How can I get the file path from Uri when I open a video file from file explore. Uri host is "content" and "_data" return null. I want to get other videos in the same directory thus i have to get ...
welcomeworld's user avatar
1 vote
0 answers
75 views

Android Nougat notification action button not showing in notification

Here is the library used in app level build.gradle file: implementation 'com.android.support:appcompat-v7:28.0.0' Here is the code for notification : Intent snoozeIntent = new Intent(...
Tania Anand's user avatar
2 votes
1 answer
3k views

Nougat get LOCKED_BOOT_COMPLETED action

As I read in documentation Direct Boot in Android N to receive action that boot was completed when device is locked we should use android:directBootAware and android:encryptionAware attributes in ...
Leonid's user avatar
  • 5,073
1 vote
1 answer
438 views

Periodic Job in Android N (Nougat, 7.0)

Okay so I am not able to find any documentation or useful web pages about this. Help me StackOverflow, you're my only hope. Okay so originally my JobScheduler looks like this: JobScheduler ...
Chud37's user avatar
  • 5,007
1 vote
2 answers
2k views

Android 7.0 Kills App Even When Foreground Service is Running

I have tried every suggestion I could find on the Internet to use Foreground Service to keep my app running beyond sleep and deep sleep modes but nothing has been successful so far. I am working on a ...
jamejava's user avatar
2 votes
1 answer
4k views

Broadcast receiver for nought and Oreo + devices not working

public class ScreenReceiver extends BroadcastReceiver { private boolean screenOff; @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(...
Danial clarc's user avatar
1 vote
0 answers
132 views

While selecting Recent files getting null value content provider

Code is working fine when selecting file / image from Gallary, file manager, download folder. i m able to get file path from URI using content provider. but while selecting recent files in naugat ...
Ashu Kumar's user avatar
0 votes
0 answers
61 views

Outgoing voice is not getting recorded in Android version 7.0

I am trying to record calls using Mediarecorder,but this is not helping out to record outgoing voice is not getting recorded in Android Version 7.0 only. Its working fine with 5.0,6.0,8.0. But not on ...
Heena's user avatar
  • 133
1 vote
2 answers
2k views

How to create Notification.contentView in android Nougat and above?

I use Notification.contentView to replicate notification views: View notificationView = notification.contentView.apply(context, parent); Unfortunately as of version N, Notification.contentView may ...
wgm's user avatar
  • 2,178
0 votes
1 answer
1k views

Easiest Way to Deploy Xamarin Android App in VS 2017?

I have an Android app that I made maybe like 2 years back. I never deployed it to google store as it really is just for me. I deployed it on my phone and installed via apk or through VS itself (I can'...
chobo2's user avatar
  • 84.4k
0 votes
1 answer
258 views

How to show different layout in MultiWindow mode for android?

Can we have some different layout in split window mode? And some different layout in full screen mode? Is it possible in android or not ?
wsun31's user avatar
  • 91
1 vote
1 answer
873 views

Changing 'Screen Zoom' setting to 'Large' completely messing few screens (especially fragment layout) in my App

We know 'Android-N (7.0)' has introduced new feature where we can change 'Screen-Zoom' level from device settings. But changing 'Screen Zoom' level to 'Large' completely messing few screens (...
Dnyanesh M's user avatar
  • 1,389
-1 votes
1 answer
1k views

How to open Pdf from application to default viewer?

I'm trying to open pdf from my application to default document viewer in Nougat. This is not duplicate cause I have different problem than others so read till end . What I've tried: I know i have ...
Tejas Pandya's user avatar
  • 4,046
0 votes
2 answers
2k views

How to fix Lint's "[deprecation] locale in Configuration has been deprecated" warning

Hopefully this is not a duplicate of the many other questions regarding the locale deprecated context.getResources().getConfiguration().locale call as I already fixed it. How would I get rid of the ...
PIXP's user avatar
  • 2,462
0 votes
2 answers
372 views

How can i protect the app from "CLEAR ALL" action

I want to protect (or) lock my app from clear all recent apps list. Here i mentioned what I'm asking. Please find the screenshot below.
Saravanan S's user avatar
2 votes
1 answer
2k views

How to prevent android quick reply notification from being stuck in loading?

My app uses the Android N's new quick-reply feature to quickly take notes from a fixed notification, without having the user to open an activity. However, I would like the notification to be reset to ...
Victor2748's user avatar
  • 4,189
2 votes
3 answers
914 views

When app clear from recent apps list, background service stopped in android nougat and oreo

When I clear my app from recent apps list, my app background service killed. I tried with android nougat and oreo. But it's working in Android 6.0. After searched about the issue. Lot of people ...
Saravanan S's user avatar
0 votes
2 answers
524 views

Clearing Cache in Nougat Programmatically not allowing

I want to clear the cache of my app after performing some activity on server. Its working fine in Samsung phone (Android 5.0) But in Huawei phone (Android 7) is not clearing the cache. I think Nougat ...
immad Naseem's user avatar
0 votes
1 answer
236 views

How can i force android to paint the background of the statusbar?

With android:targetSdkVersion="23" the statusbar of my app is painted correctly, but when i set android:targetSdkVersion="24" the background of the statusbar of my app is not painted on android 8.0 (...
zeus's user avatar
  • 12.3k
0 votes
2 answers
567 views

Android Multi-window - Whats the purpose of android:resizeableActivity @ application level?

Starting from 7.0 android supports multiwindow mode. To have your app support multiwindow you need to mention this flag in your manifest. This flag is both available @ level and level. What's the ...
Akh's user avatar
  • 6,021
4 votes
2 answers
2k views

How can I hide "Emergency mode" on Samsung without Root?

How can I hide or lock "Emergency mode" found in the Power Menu on the Samsung (Android 7.0) without rooting the phone? Any assistance would be greatly appreciated! Thanks
oo33's user avatar
  • 133
1 vote
0 answers
54 views

Recording on Android for iPhone playback works sometimes

please don't flame as a duplicate as it is different from posts I have found and adds a clue to a working solution I have written code (see below) in Android Studio to record audio to file and it ...
user1228123's user avatar
1 vote
3 answers
1k views

Not able to set image on ImageView with normal setImageUri and with Picasso - Android Nougat

I am trying to select the image from gallery and send it to other activity. It's working fine in Kitkat but not working in android Nougat. I tried normal setImageUri and Picasso also. Still not able ...
Flutterian's user avatar
  • 1,761
5 votes
0 answers
480 views

Android view rotationY not working on huawei with Nougat

I don't know if I should ask this here but has anyone had this issue where Huawei devices with Android 7.0 had a bug where if you set the rotationY attribute to a view in XML, the view will not be ...
Trancol's user avatar
  • 347
0 votes
2 answers
606 views

Samsung Galaxy S8 Android 7.0 and up Stopping Network Traffic

I'm working on an app targeting a Samsung Galaxy S8 running Oreo or Nougat that requires constant network access in the background. The app needs to send UDP packets and access user GPS location at ...
ThePartyTurtle's user avatar
0 votes
0 answers
684 views

TransactionTooLargeException while selecting image from Gallery in Nougat

I am trying to get Image from Gallery in fragment. Following is the line of code I am using to get Image from Gallery. Intent intent1 = new Intent(Intent.ACTION_PICK, android....
Mehdi's user avatar
  • 103
3 votes
1 answer
2k views

GET_ACCOUNT permission is not granted in android N

I am working on Account manager. I want to check account is exists or not. private static final String TAG = "UserAccountUtil"; public static Account getAccount(Context context) { if (...
Priyadarshini Maurya's user avatar
1 vote
0 answers
892 views

Android 7.0 Nougat - Checking AOT and JIT compilation in ART

For some reason, I need to use only AOT compiler in ART. According to this link: https://source.android.com/devices/tech/dalvik/jit-compiler I used four commands below adb root adb shell stop adb ...
ZodiacLeo123's user avatar
6 votes
0 answers
632 views

How to use content URIs for ACTION_VIEW in Nougat?

I have an app that generates video files, which can be placed in the internal storage or the SD card, and need to be opened by the user's preferred video player app via Intent.ACTION_VIEW. The app ...
PM4's user avatar
  • 654
1 vote
0 answers
72 views

How to answer a call in Android starting API 24 and above?

I can answer calls up to API Lollipop using this code. For Marshmallow, I just add a permission request for the user then the same code works as well. However, starting API 24 it doesn't work! How ...
Mena's user avatar
  • 3,215
5 votes
1 answer
2k views

WorkManager is cancelled after phone goes into doze mode on Samsung Galaxy phones

I am trying to run background service with WorkManager. I started WorkManager when app goes to background. And I also started background service whenever WorkManger is running. I can see my app ...
Young's user avatar
  • 51
1 vote
1 answer
298 views

Android N, O App Overlay stays after Permission request declined

I have an app that needs access to the users accounts. As the user declines the Contact Permission Dialog, the odd behaviour begins. As usual the dialog appears and the app in background gets an ...
Rustyhamsterr's user avatar
1 vote
1 answer
2k views

PackageManager.getInstalledApplications(0); in Android 7.0

My problem is that I use package manager to list all the installed applications final PackageManager pm = parentActivity.getPackageManager(); List<ApplicationInfo> packages = pm....
Ophy's user avatar
  • 81
0 votes
0 answers
267 views

Android: Get number of files in zip (with Storage Volume/Storage Access Framework)

I'm using the Storage Volume to unzip a zip file on the SD card of my Android 7.0 phone to a folder on the SD card: InputStream is = getContentResolver().openInputStream(myZipFile.getUri()); ...
Neph's user avatar
  • 1,923

1
2
3 4 5
18