android-8.0-oreo

Internet permission not working in oreo and pie

一笑奈何 提交于 2019-12-12 07:14:07
问题 I'm new here. I built a simple app that sends some data to server and as well receives the response. The app is working fine on devices up to android N. But not working on O and P. Seems like the issue is with the internet permission. I have checked and the app is not sending any data to server while it is running on o and p. Please let me know if i need to seek any specific permission for internet access. I have added this in manifest <uses-permission android:name="android.permission

Android Oreo 8.0 Native C++ crash , but works fine for Android 7

牧云@^-^@ 提交于 2019-12-11 17:17:54
问题 I am working on an app (pdf viewer) using muPdf library , it's working fine for Android 7 (pdf pages and previews are shown without problems) , but it keeps crashing when i test it on emulator or real device with Android 8. 2019-01-22 09:57:58.178 13878-13980/com.niveales.wind A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xa5353a50 in tid 13980 (AsyncTask #5), pid 13878 (m.niveales.wind) 2019-01-22 09:57:58.418 13983-13983/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** **

Oreo Calendar changes

╄→尐↘猪︶ㄣ 提交于 2019-12-11 17:10:05
问题 I used to get the Calendar changes using this code in the manifest: <receiver android:name=".MyReceiver"> <intent-filter> <action android:name="android.intent.action.PROVIDER_CHANGED" /> <data android:scheme="content" /> <data android:host="com.android.calendar" /> </intent-filter> </receiver> But this is not possible with Android 8 Oreo. I have read it needs a Job or something similar (I have never used jobs yet,I haven't need them). Could any one type an example of a job to get fired every

Firebase notificacion sound / vibration when app in background with Android Oreo

随声附和 提交于 2019-12-11 17:00:26
问题 I can't get sound or vibration when app in background with Android Oreo. With app in foreground sound and vibration works fine. With previous versions of android and without Nofication Channel everything worked fine but now I don't find the way to do this. This is my code: private void showNotification(String title, String body) { NotificationManager notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); String NOTIFICATION_CHANNEL_ID = "com.example.name

getAllCellInfo() returns empty list in honor 9n

佐手、 提交于 2019-12-11 14:03:58
问题 getAllCellInfo() returns empty list in honor 9n . I am used for to get Cell id and Location area code. So what will i do to get Cell id and Location area code. I also tried getCellLocation() . And I got Cell id and Location area code when GPS is on. I want to get Cell id and Location area code when the GPS is in off state.(OS Android Oreo). TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); if (ActivityCompat.checkSelfPermission(getContext(),

In Android 8 (Oreo) Intent Chooser is not working to set WallPaper

大城市里の小女人 提交于 2019-12-11 13:37:18
问题 I'm using following code snippet to set wallpaper. In all version lower than Android 8 (Oreo) it shows a picker to choose lock screen or home screen or both etc. But in Android 8 it directly sets the wallpaper at Home screen without any confirmation. Is anything updated in Oreo or it is issue with the code? Uri sendUri2 = Uri.fromFile(externalFile); Intent intent1 = new Intent(Intent.ACTION_ATTACH_DATA); intent1.setDataAndType(sendUri2,type); intent1.putExtra("mimeType",type); intent1

Data not showing on Android Pie 9.0

☆樱花仙子☆ 提交于 2019-12-11 12:03:22
问题 After I updated my phone from Android Oreo 8.0 to Android Pie 9.0, I no longer can get data from MySQL database using HttpUrlConnection. I try with emulator Android Oreo 8.0 and the data is displayed. However, when I try with emulator Android Pie 9.0, the data is not displayed. Please help me. 回答1: I Recently had the same issue for Android 9, but I had to use some URLs for different screens. So I added android:usesCleartextTraffic="true" to Manifest and it worked, but we didn't want to

Unable to open trivial text file with FileProvider

删除回忆录丶 提交于 2019-12-11 09:52:48
问题 I'm going crazy, I used the new Android FileProvider in the past but I can't get it to work with a (trivial) just-created file in the Download folder. In my AsyncTask.onPostExecute I call Intent myIntent = new Intent(Intent.ACTION_VIEW, FileProvider.getUriForFile(mContext, BuildConfig.APPLICATION_ID + ".fileprovider", output)); myIntent.setType("text/plain"); myIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); startActivity(myIntent); My FileProvider XML is like this <?xml version="1.0"

Broadcast Receiver is not registering in android oreo

╄→尐↘猪︶ㄣ 提交于 2019-12-11 09:42:36
问题 SmsBroadcastReceiver was not triggering when i received otp in oreo. I have explicitly registered my receiver in fragment instead of not only in manifest. public class MyFragment extends Fragment{ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { intentFilter = new IntentFilter(); intentFilter.addAction(Telephony.Sms.Intents.SMS_RECEIVED_ACTION); smsBroadcastReceiver = new SmsBroadcastReceiver(); getActivity().registerReceiver

How does BLE scanning work for altbeacon library on Oreo?

冷暖自知 提交于 2019-12-11 09:03:11
问题 Before Android L Android Altbeacon library used background running services to scan BLE beacons. Default scan times are 1.1 seconds in a loop in the foreground and 10 seconds every 5 mins in the background. Also for background tasks alarm manager is used to wakeup the app. I was looking at how similar setup works in Android Oreo given that long-running background services are not allowed. I was going through http://www.davidgyoungtech.com/2017/08/07/beacon-detection-with-android-8 and it did