android-7.1-nougat

Pixel launcher keeps stopping issue in Android 7.1.1 (API 25) emulator

耗尽温柔 提交于 2019-12-03 08:19:50
问题 I have created an Emulator using android 7.1.1 (API 25) CPU X86. When I start the emulator its showing pixel launcher keeps stopping issue. I have checked with CPU x86_64 also but same issue. Here is the screenshot: Here is my details config: 回答1: Selecting emulated performance --> graphics:Software-GLES 2.0 option in AVD setting.Solves my problem. 回答2: EDIT It seems like the issue is solved in Android Studio 2.2.3. If for some reason you still see this problem, the solution below works.

Pixel launcher keeps stopping issue in Android 7.1.1 (API 25) emulator

旧街凉风 提交于 2019-12-02 22:01:46
I have created an Emulator using android 7.1.1 (API 25) CPU X86. When I start the emulator its showing pixel launcher keeps stopping issue. I have checked with CPU x86_64 also but same issue. Here is the screenshot: Here is my details config: Selecting emulated performance --> graphics:Software-GLES 2.0 option in AVD setting.Solves my problem. EDIT It seems like the issue is solved in Android Studio 2.2.3. If for some reason you still see this problem, the solution below works. Original answer I found a reasonable solution for now. The problem is mainly in the launcher, not the emulator itself

Android Nougat 7.1.1 showAtLocation(…) Gravity not working

点点圈 提交于 2019-12-01 09:10:41
This is related to this question: Android Nougat PopupWindow showAsDropDown(...) Gravity not working However, when I applied this fix: if (android.os.Build.VERSION.SDK_INT >=24) { int[] a = new int[2]; anchorView.getLocationInWindow(a); popUp.showAtLocation(((Activity) mContext).getWindow().getDecorView(), Gravity.NO_GRAVITY, 0 , a[1]+anchorView.getHeight()); } else{ popUp.showAsDropDown(anchorView); } It doesn't work on Android Nougat 7.1.1. Particularly on Google Pixel and Nexus 6p devices. Has anybody got a fix for this? Please share. https://code.google.com/p/android/issues/detail?id

Android Nougat 7.1.1 showAtLocation(…) Gravity not working

我们两清 提交于 2019-12-01 05:47:17
问题 This is related to this question: Android Nougat PopupWindow showAsDropDown(...) Gravity not working However, when I applied this fix: if (android.os.Build.VERSION.SDK_INT >=24) { int[] a = new int[2]; anchorView.getLocationInWindow(a); popUp.showAtLocation(((Activity) mContext).getWindow().getDecorView(), Gravity.NO_GRAVITY, 0 , a[1]+anchorView.getHeight()); } else{ popUp.showAsDropDown(anchorView); } It doesn't work on Android Nougat 7.1.1. Particularly on Google Pixel and Nexus 6p devices.

Programmatically accept call in Nougat

橙三吉。 提交于 2019-11-30 00:15:32
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 in Nougat version of android. Looking for any sort of hack. I have opened a thread for the

Android 7 Native Crash: libc.so tgkill

折月煮酒 提交于 2019-11-29 18:42:53
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/libc.so (raise+24) native: pc 000000000001d24c /system/lib64/libc.so (abort+52) native: pc

How to create dynamic app shortcut using ShortcutManager API for android 7.1 app?

别等时光非礼了梦想. 提交于 2019-11-29 14:10:27
问题 In Android 7.1, developer can able to create AppShortCut. We can create shortcut in two way: Static shortcuts using resources(XML) file. Dynamic shortcuts using ShortcutManager API. So How to create a shortcut using ShortcutManager dynamically? 回答1: Using ShortcutManager , we can create app dynamic app shortcut in following way: ShortcutManager shortcutManager; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { shortcutManager = getSystemService(ShortcutManager.class)

list certificate stored in user credentials

我怕爱的太早我们不能终老 提交于 2019-11-28 21:19:56
In Android 7 Nougat, user installed certificate goes to "User credentials" instead of "Trusted credentials"(which consists of system credential & user credential). I used to access "Trusted credentials" by: KeyStore keystore = KeyStore.getInstance("AndroidCAStore"); through the above code I can then access system & user trusted credentials. But now, in Android 7, user installed certificate goes to a separate place called "User credentials" under Settings --> Security --> User credentials . My question is how can I programmatically list the credentials inside User credentials in Android 7? To

IllegalArgumentException: column '_data' does not exist

霸气de小男生 提交于 2019-11-28 20:26:01
In Nougat, this function is not working. String path = getRealPathFromURI(this, getIntent().getParcelableExtra(Intent.EXTRA_STREAM)); public String getRealPathFromURI(Context context, Uri contentUri) { Cursor cursor = null; try { String[] proj = {MediaStore.Images.Media.DATA}; cursor = context.getContentResolver().query(contentUri, proj, null, null, null); if (cursor == null) return contentUri.getPath(); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); return cursor.getString(column_index); } finally { if (cursor != null) { cursor.close(); }

list certificate stored in user credentials

烈酒焚心 提交于 2019-11-27 13:42:58
问题 In Android 7 Nougat, user installed certificate goes to "User credentials" instead of "Trusted credentials"(which consists of system credential & user credential). I used to access "Trusted credentials" by: KeyStore keystore = KeyStore.getInstance("AndroidCAStore"); through the above code I can then access system & user trusted credentials. But now, in Android 7, user installed certificate goes to a separate place called "User credentials" under Settings --> Security --> User credentials . My