android-6.0-marshmallow

Adb wifi connection with Android 6.0

孤者浪人 提交于 2019-12-19 07:41:50
问题 I have a Nexus 6 device with Android 6.0, stock version without root. To avoid to permanently connect device with usb cable i used this procedure: I connected the device by USB cable to PC type on terminal adb tcpip 5555 . type adb connect <device-ip>:5555 to connect in wifi mode. When i try to deploy an app from Android Studio, the connection is lost. I used this procedure many times and with other devices (without Android 6) and i have no problem. Any idea? 回答1: My device with Android 6.0.0

ZBAR barcode scanning library not working when using target sdk version 23 in gradle

放肆的年华 提交于 2019-12-19 05:46:31
问题 I am using zbar scanner library in my project. After updating to sdk 23 Marshmallow scanner is not working. Following is the gradle file. Scanner is working if I set targetSdkVersion anything other than 23. Following is the gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 15 buildToolsVersion "23.0.1" defaultConfig { applicationId "net.sourceforge.zbar.android.CameraTest" minSdkVersion 9 targetSdkVersion 23 } buildTypes { release { minifyEnabled false

AndroidHttpClient and HttpGet API deprecated in Android 6.0 Marshmallow (API 23)

可紊 提交于 2019-12-19 03:56:45
问题 Today I have updated android SDK API 23. As soon as I have changed my project to target Android SDK API 23, I started to get an error regarding Apache's client and AndroidHttpClient API in eclipse. Apache library API can no longer be found in API 23, nonetheless to continues to be working fine with API 22 and below. Can someone kindly suggest what the problem is behind these errors? One more error in project Thanks. 回答1: The entire Apache API was removed from SDK 23 since from SDK 22 it was

Spinner inner padding is larger on Android 6.0.1

前提是你 提交于 2019-12-18 12:57:09
问题 Intro: With the new release of Android 6.0.1, seems like Android made some changes on the Spinner component because by default, the inner padding around the down carrot is a bit bigger. I noticed this on an app where I haven't modified anything in the code, but simply updated the OS on the device and yet the spinners have different sizes. Situation: I have 2 spinners one next to the other in a RelativeLayout (mind the rest of the components, I added everything so you can see this part of the

How to continue using Browser Bookmark Changes in Android 6.0 (API 23)

让人想犯罪 __ 提交于 2019-12-18 12:35:59
问题 In my app, I have been using some of these function that are coming up as unknown when using Android 6.0 ( buildToolsVersion "23.0.1" ), the functions are: Browser.getAllVisitedUrls(getContentResolver()); , BookmarkColumns.URL , etc. How can I use the same functions going forward with Android 6.0. In the list of things that have changed in Android 6.0, I see the following: Browser Bookmark Changes This release removes support for global bookmarks. The android.provider.Browser.getAllBookmarks(

Call requires API level 23 (current min is 14): android.app.Activity#requestPermissions,checkSelfPermission [duplicate]

孤街浪徒 提交于 2019-12-18 10:52:11
问题 This question already has answers here : The method checkSelfPermission(Context, String) is undefined for the type ContextCompat (3 answers) Closed 3 years ago . I am trying add run time permissions android(6.0.1) API 23,If I use SDK version( min and target version both 23 ) it woks fine, like below, <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" /> If I change android:minSdkVersion(less then 23) For example: I am getting error below: Call requires API level 23 (current

Method FloatMath.sqrt() not found

╄→гoц情女王★ 提交于 2019-12-18 10:44:09
问题 I'm using the new Android Marshmallow SDK and the method FloatMath.sqrt() is gone. What should I use now? 回答1: The documentations say this: Historically these methods were faster than the equivalent double-based java.lang.Math methods. On versions of Android with a JIT they became slower and have since been re-implemented to wrap calls to java.lang.Math. java.lang.Math should be used in preference. All methods were removed from the public API in version 23. @deprecated Use java.lang.Math

The method checkSelfPermission(Context, String) is undefined for the type ContextCompat

淺唱寂寞╮ 提交于 2019-12-18 06:49:30
问题 Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Context context = (Permission) this; // In an actual app, you'd want to request a permission when the user // performs an action // that requires that permission. if (Build.VERSION.SDK_INT >= 23) { getPermissionToReadUserContacts(); } } // Identifier for the permission request private static final int READ_CONTACTS_PERMISSIONS_REQUEST = 1;

Can't answer incoming call in android marshmallow 6.0

荒凉一梦 提交于 2019-12-18 04:36:06
问题 I'm creating a calling app. Here's Auto answer which works on android 4.0 and 5.0; whereas when i have an incoming call answer call button works but it doesn't work on android 6.0. I tested answer of this post but it doesn't work too : Answer Incoming Call in Android 6.0 IncomingActivity: @Override public void onClick(View v) { switch (v.getId()) { case R.id.imgaccept: { if (Build.VERSION.SDK_INT >= 21) { new Thread(new Runnable() { @Override public void run() { try { Runtime.getRuntime()

Android M write to SD Card - Permission Denied

余生长醉 提交于 2019-12-18 03:04:39
问题 I'm trying to copy file from within my application to the SD card, but I get the error eacces (permission denied) . The OS is Android M and I have allowed runtime Storage permissions (checked in app info). I have also set the uses-permission in AndroidManifest.xml <application>...</application> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Doesn't work if I copy to SD card Source: data