samsung-mobile

Prevent Samsung predictive text in HTML form

僤鯓⒐⒋嵵緔 提交于 2019-11-30 16:57:30
I have an HTML form with a text input field. As the user types, we do AJAX requests to get predictive text suggestions, based on a list of values in our database. We display that list and the user can select one of them; then we show them the rest of the form. If you're viewing our web page on a Samsung Galaxy S4, in its built-in browser or Chrome or Firefox, the device's predictive input suggestions also appear as the user types. e.g. see the screenshot: It's easy enough for an individual user to disable this in the settings on their own phone. However we want to make it so it's always

Retrieving Fingerprint data?

让人想犯罪 __ 提交于 2019-11-30 15:51:06
I am looking for retrieving Fingerprint data to be sent to server backend. My application is used by sales team and whenever there is new customer, the sales will ask customer to scan his fingerprint (and eventually send them to corporate server). Is it possible to do it using latest API/SDK available out there? AFAIK, Samsung SDK doesn't provide it, nor Android Marhsmallow. eldjon Neither, the fingerprint image nor its features are accessible by the API. From Android website I quote: Thus, raw images and processed fingerprint features must not be passed in untrusted memory. All such biometric

Floating Touch on Galaxy S4

为君一笑 提交于 2019-11-30 15:45:53
问题 Samsung Galaxy S4 have the " Floating Touch " functionality, in which the finger can be detected even if the screen is not touched. I would like to fire an event on a button ( btn1 ) when the finger is passing hover it. I tried using the OnHoverListener , but onHover never get called when the MotionEvent is MotionEvent.ACTION_HOVER_ENTER or MotionEvent.ACTION_HOVER_EXIT or MotionEvent.ACTION_HOVER_MOVE , which are the event that I need. This is my code: btn1.setOnHoverListener(new

Floating Touch on Galaxy S4

风格不统一 提交于 2019-11-30 14:48:31
Samsung Galaxy S4 have the " Floating Touch " functionality, in which the finger can be detected even if the screen is not touched. I would like to fire an event on a button ( btn1 ) when the finger is passing hover it. I tried using the OnHoverListener , but onHover never get called when the MotionEvent is MotionEvent.ACTION_HOVER_ENTER or MotionEvent.ACTION_HOVER_EXIT or MotionEvent.ACTION_HOVER_MOVE , which are the event that I need. This is my code: btn1.setOnHoverListener(new OnHoverListener() { @Override public boolean onHover(View v, MotionEvent event) { Log.d("FloatingTouch", "onHover:

Open ServiceMode menu programmatically in Android

陌路散爱 提交于 2019-11-30 14:15:41
How to open the Android ServiceMode menu programmatically on Samsung Phones ? Manually, I can do it by dialing the ussd code *#0011#. This was a challenge and I've been a few hours looking for a solution. But i am afraid i don't have good news. 1. First attemp, Intent.ACTION_DIAL Is true that in the beginning, it was possible to directly call USSD codes from an app (using the intent Intent.ACTION_DIAL), and even from a website, just using the "tel:" schema. That opens the dialer, an puts the desired number. As when you put the last #, the code get send automatically, it was almost transparent

AlarmManager not working as expected in sleep mode on S5 Neo

让人想犯罪 __ 提交于 2019-11-30 13:44:06
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. When the screen is off, it is triggered every 5 minutes (instead of one). I try this exact same code on S5

access both front and back camera simultaneously on samsung galaxy devices

允我心安 提交于 2019-11-30 13:38:57
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 801) & Xiaomi Mi4(Snapdragon 801). Both implementations fails on Samsung s6 even though it's hardware

Native crash at /system/lib/libart.so on lollipop android 5.0.1 samsung

孤人 提交于 2019-11-30 13:07:50
I've an app built using cordova on google Play Store. The app works on all devices and models, except on a few Samsung devices running on android 5.0.1 (Note3 and Note4). The app crashes on launch. The crash stack trace is the following: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'samsung/treltexx/trelte:5.0.1/LRX22C/N910CXXU1BOC5:user/release-keys' Revision: '21' ABI: 'arm' pid: 25267, tid: 25267, name: anari.kanariapp >>> com.kanari.kanariapp <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7772c684 r0 00002000 r1 00005145 r2 b4d50c1d r3

Keyboard hiding EditTexts in Fragments

末鹿安然 提交于 2019-11-30 12:03:10
问题 edit: I need to use the keyboard, but it hides my EditText , I need it to scroll so the keyboard is not hiding it. I am using a Samsung tablet. My style: parent="android:Theme.Holo.NoActionBar.Fullscreen" The EditText fields are in a scrollable view, like so: The fragment layout: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android

How android app can detect what store installed it?

人盡茶涼 提交于 2019-11-30 11:06:14
问题 I have app in Google Play, Amazon, Samsung Apps and I plan to upload to other stores. I do not wish to compile separate build for every store. Is there way to detect what store installed app if same app submitted to different stores? 回答1: You'll have to expand this for each additional store, but this should get you started if (context.getPackageManager().getInstallerPackageName(context.getPackageName()).equals("com.android.vending") { //do google things } else if (context.getPackageManager()