android-7.1-nougat

Unable to sign apk “with only the traditional scheme” even after setting 'v2SigningEnabled' as false

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 19:15:04
问题 I updated my android-studio to latest stable version i.e. 'Android Studio 2.3 ' and also the gradle to 2.3.0 . Now, when I am trying to generate a signed apk of my app's release build, this "extra" thing (Signature versions:) is getting shown in the last step: I clicked on 'Signature Help' and this page got opened. I followed the doc and made changes to my build.gradle file like this: apply plugin: 'com.android.application' //Put Fabric plugin after Android plugin apply plugin: 'io.fabric'

Launch Fragment (instead of Activity) from Android 7.1 App Shortcut

痞子三分冷 提交于 2019-12-22 04:13:08
问题 I have decided to look at adding static shortcuts into an application, using this page as reference: https://developer.android.com/preview/shortcuts.html The XML for my shortcuts currently looks like so: <?xml version="1.0" encoding="utf-8"?> <shortcuts xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:shortcutId="id" android:enabled="true" android:icon="@drawable/icon" android:shortcutShortLabel="@string/short_label"

Launch Fragment (instead of Activity) from Android 7.1 App Shortcut

家住魔仙堡 提交于 2019-12-22 04:13:03
问题 I have decided to look at adding static shortcuts into an application, using this page as reference: https://developer.android.com/preview/shortcuts.html The XML for my shortcuts currently looks like so: <?xml version="1.0" encoding="utf-8"?> <shortcuts xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:shortcutId="id" android:enabled="true" android:icon="@drawable/icon" android:shortcutShortLabel="@string/short_label"

Shortcuts for Nougat version

我只是一个虾纸丫 提交于 2019-12-22 03:56:15
问题 I'm catching this fatal exception when I try to pass an Serializable inside an Intent bundle, and I think is related with the nougat shortcuts that I'm trying to implement. here the exception: 12-16 16:17:32.972 20461-20461/***.****.******.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: ***.****.******.debug, PID: 20461 java.lang.IllegalArgumentException: Bad value in PersistableBundle key=shortcutId value=***.****.******.common.cta.CtaAccountSectionModel@1fb70dc at android.os

Android SDK Version 25 - android.support v7:25 gives “No resource found that matches @color/hint_foreground_material_light” Adobe Creative SDK?

放肆的年华 提交于 2019-12-20 17:34:25
问题 I get the following error while the gradle sync/build after switching the compileSdkVersion to 25 and using the latest android.support library versions. compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support:design:25.0.0' compile 'com.android.support:recyclerview-v7:25.0.0' Error: No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light'). Any idea? EDIT: I think thats because of Adobe Creative SDK...

Android 7 Native Crash: libc.so tgkill

半腔热情 提交于 2019-12-17 21:25:28
问题 I'm seeing this native crash with the following stack trace. This happens in Android 7.0 & 7.1 only. Nothing new has been added to the app, which has been in production for a few years, but with more devices being updated to Nougat this crash happens frequently now and is becoming a nuisance. Any advice would be appreciated. native: pc 000000000007a6c4 /system/lib64/libc.so (tgkill+8) native: pc 0000000000077920 /system/lib64/libc.so (pthread_kill+64) native: pc 000000000002538c /system/lib64

android file provider: Example to access files in a folder of app private directory(/data/data/<pkg_name>)

孤街醉人 提交于 2019-12-13 01:30:01
问题 I am running android test using Cucumber.The reports of the test are being stored in /data/data/pkg_name/cucumber-reports.Now I need that content inside "cucumber-reports" folder.I used copy command to copy the cucumber reports folder from internal storage to Public External Directory(PICTURES) which is working in Marshmallow.But when I ran in Nougat,I am unable to copy that folder to External Directory.I am unable to access the folder on Android 7+ version device as due to the introduction

App Icon Launcher not showing in Android 7.1.1

不想你离开。 提交于 2019-12-12 13:03:28
问题 We are implementing a round icon (with a foreground and a background) and icon. <application android:allowBackup="false" tools:replace="android:allowBackup" android:label="@string/app_name" android:supportsRtl="true" android:icon="@mipmap/logo" //normal logo android:roundIcon="@mipmap/logo_o" //Our logo with foreground and background android:name=".MyApplication"/> Works for every version but not for API 25 Our code for Foreground with Background is the next one <?xml version="1.0" encoding=

Programmatically accept call in Nougat

杀马特。学长 韩版系。学妹 提交于 2019-12-12 07:09:03
问题 From one year, I have been working over IOT product and the application attached was working fine. Now I am not able to accept call programmatically in higher versions of android. Feature is very important to product. Any help is highly appreciated. Before security patch update November 2016 , Runtime.getRunTime.exec("Command") was working fine to accept call programmatically. Runtime.getRuntime().exec("input keyevent " +Integer.toString(KeyEvent.KEYCODE_HEADSETHOOK)); How to make it possible

AOSP building: replace my own keys with default test-keys

假装没事ソ 提交于 2019-12-11 06:26:10
问题 I am building AOSP and I want to sign the build with my own key. There is some official doc about this process here. But I wonder if I can simply turn around all of that process and instead do this things: Delete default android test-keys which are located at build/target/product/security put my keys (which are generated using official instructions at here) in that folder with same names. (Assume one key for all of shared,media,...) But this approach does not work. After burning the image,