samsung-mobile

Attempt to invoke virtual method 'void android.widget.Editor$SelectionModifierCursorController.hide()' on a null object reference

余生长醉 提交于 2019-12-23 08:58:18
问题 This error seems to be happening only on Samsung phones using Android 6.0.1. or 7.0: Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'void android.widget.Editor$SelectionModifierCursorController.hide()' on a null object reference android.widget.Editor.performLongClick (Editor.java:1139) android.widget.TextView.performLongClick (TextView.java:10945) android.view.View$CheckForLongPress.run (View.java:22568) android.os.Handler.handleCallback (Handler.java:739)

How to enable javascript console on Android 4.2.2

余生颓废 提交于 2019-12-22 04:46:35
问题 I'm trying to enable the JavaScript Console to debug a webpage in the stock Android browser on a Samsung Galaxy S4 running 4.2.2. On the S3 I just type in about:debug in the address bar and it comes up but it doesn't work on the S4, it seems to do an autocomplete for chrome://debug. Firstly it would be great to know how to get the console open and secondly why would Chrome's autocomplete be coming up for the stock browser? Thanks 回答1: I don't know how to activate this console. But I have used

Make Samsung Android device advertise as an iBeacon

假如想象 提交于 2019-12-22 04:43:26
问题 Has anybody used Samsung's Bluetooth LE APIs to make a Samsung Android device advertise as an iBeacon? This should be possible, but I do not have access to a device to try it. If anybody has used it to make a Samsung Android device advertise as any other Bluetooth LE peripheral, I would like to know that, too. EDIT: This is now possible on Android L. See here. 回答1: Unfortunately, @reTs and @duncan-c are right (+1 for each of them). The Samsung BLE SDK cannot send out real BLE advertisements

No debuggable processes in android studio when connected with phone which runs android 6.0

大城市里の小女人 提交于 2019-12-22 01:46:05
问题 everyone! I got so confused by android studio. when I plug in my phone to debug apps,logcat can detect my phone,but i can not choose process. It said "no debuggable processes",not common "no debuggable applications". My phone is samsung s5 (android 6.0),rooted. Any ideas? Thanks! 回答1: You need to enable adb integration , just go to Tools --> Android -->Check Enable ADB Integration It was a default feature a few versions ago but now it's disabled by default 回答2: I had a similar issue, when I

DragEventListener not working on Samsung S7 (6.0)

丶灬走出姿态 提交于 2019-12-21 23:44:26
问题 I'm looking for a direction to go with this one. I have a card melding game (Five Kings) which has been up for about 6 months; my latest version 0.9.22 has been stable since March. However, recently I have been getting reports of users unable to drag discards to the discard pile, and the common thread seems to be Samsung S7 with Android 6.0 . When you drag a card from your hand, the places you can drag turn transparent and when you drag over them they go back to normal (alpha=1). Other places

How to fix section mismatch errors during cross compile of android

戏子无情 提交于 2019-12-21 21:51:48
问题 I am using the google ndk toolchain to cross compile an image for my Samsung Note 3 SM-N900P model. I downloaded the Kitkat version of Samsung Source code, and believe I have followed the instructions in the Kernel Readme file. It stated to use 4.7 toolchain, and I found it in NDK version 8d. But I get the following error: ERROR: modpost: Found 2 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' To build the kernel despite the mismatches,

How to save an image into photo gallery using j2me

 ̄綄美尐妖づ 提交于 2019-12-20 07:50:51
问题 I am making an application for nokia, samsung, lg ets using j2me. I want to save an image into photo gallery of mobile. But i didn't have any idea what path i use to save image? 回答1: Look on this article, Getting Started with the FileConnection APIs. Also look on this example, File Connection Using J2ME api JSR 75. 回答2: String initDir = System.getProperty("fileconn.dir.photos"); Mobile's Internal Memory can make issue if it is limited. So You should use Memory card to save the images. You can

Common Signing tool for java mobiles

蓝咒 提交于 2019-12-20 04:39:09
问题 Can anyone tell me what is the common signing tools used by almost all java mobile vendors like Samsung, Sony, Nokia, Micromax, Moto and so on. 回答1: AFAIK, Thawte, Verisign and Java verified supports most of the devices. But all are cost. Once I was chatted with Thawte and Verisign technical team for this purpose. They said most of the devices will support after signing the application. But they don't have supported mobile model list. Better you can go with Thawte. 来源: https://stackoverflow

access both front and back camera simultaneously on samsung galaxy devices

冷暖自知 提交于 2019-12-18 16:48:23
问题 I know this question has been asked before but its been a long time. Asking this question again to gather any new hacks/thoughts/approaches. I need to access both front and back camera simultaneously. So far I have tried implementations using android camera API (Dual Camera- by Jens) and camera2 API. Both implementations work fine on devices having hardware support(Dual Image Signal Processors) for dual camera feature.I have tested and both implementations works fine on HTC one M8(Snapdragon

AlarmManager not working as expected in sleep mode on S5 Neo

試著忘記壹切 提交于 2019-12-18 15:54:33
问题 I am using an AlarmManager in a Service to be triggered every minute. PendingIntent pendingIntent = PendingIntent.getService(getApplicationContext(), 0, getUpdateServiceIntent(mContext), PendingIntent.FLAG_UPDATE_CURRENT); AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); // Cancel any pending Intent am.cancel(pendingIntent); // Set a new one am.set(AlarmManager.RTC_WAKEUP, 60000, pendingIntent); On the Samsung S5 Neo : When the screen is active, it is working as expected.