samsung-mobile

App-Link / Deep link only works one time on samsung or M+ Devices

只谈情不闲聊 提交于 2019-12-13 09:09:58
问题 I have explored recently that Samsung devices if you integrate deep links in your app (i.e. coming from the web to in-app) the chooser dialogue open only one time after its install and after that whenever the web detects that URL deep link initialize whichever app user has chosen last time to browse that webpage. I thought before that the OS saves the user preference on that specific deep link url maybe so by deleting / re-installing app will re-initialize the 'open with' dialogue. but on

Wallpaper not properly fit on Samsung devices

不羁的心 提交于 2019-12-13 07:57:12
问题 I want to set wallpaper through app for all device but problem is that my following approach work for Moto, sony, micromax but not properly fit for any samsung device like samsung S3, samsung duos, Tab etc, in these devices wallpaper is much zoom see in screenshots. please guide me for solve this problem. private void setMyWallpaper() { WallpaperManager myWallpaperManager = WallpaperManager .getInstance(getApplicationContext()); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager(

database support in Samsung galaxy gear 2

落爺英雄遲暮 提交于 2019-12-13 04:24:43
问题 I wanted to know which database does the Samsung Galaxy Gear 2 support. Gear 2 being based on Tizen I tried using the Web SQL database. However on the emulator it shows that the Web SQL is not supported. Can anyone tell me which database is supported for the Gear 2 ? 回答1: There are 3 ways get this done .. HTML5 Webstorage, IndexedDB and good old Files . More importantly, the Tizen wearable sdk comes with sample code HTML5 WebStorage Example. Since your apps are written in HTLM5 and compiles

Android BLE Beacon scanning on different phone models

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:49:47
问题 I am writing Android Application on finding and detecting IBeacons(These are BLE devices) and ranging them(depending on RSSI value) I use Sample code from https://developer.android.com/guide/topics/connectivity/bluetooth-le.html But this Code works different on my android devices (Samsung Galaxy S3 and LG G3). On my S3 the "onLeScan" callback rises many times in loop (about 5 per second) and give me different RSSI values every time depending on the range. But on my LG G3 the "onLeScan"

Samsung Open Source for Android, its usage?

拈花ヽ惹草 提交于 2019-12-13 01:54:02
问题 I downloaded android device open source from Samsung OSRC. It was composed with Platform.tar.gz and Kernel.tar.gz It seems to do with building AOSP, found mk files. I'm curious whether it can be used(directly or indirectly) to build newer android version for device and whether I have to build new kernel based on this files. Thank you. 回答1: If you want to build for a newer Android version, you do not need to build another kernel. Just use the kernel provided by Samsung for your device (or the

Dialog from service not showing on lollipop when screen is locked

淺唱寂寞╮ 提交于 2019-12-13 01:40:50
问题 I am trying to show a Dialog from service in onStartCommand method private Dialog incomingCallDialog; incomingCallDialog = new Dialog(MyService.this, R.style.PopupDialog); incomingCallDialog.setCancelable(false); incomingCallDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); incomingCallDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); incomingCallDialog.setContentView(view); Handler delayHandler = new Handler(); delayHandler.postDelayed(new Runnable() { @Override

Can't debug app on device

橙三吉。 提交于 2019-12-12 17:14:22
问题 All of my devices work just fine. This particular device, which is a Samsung, does not. When I plug the phone in, the phone shows up in the DDMS device's list. However, none of the apps/processes show up. This is the only device this happens for. Yes, USB debugging is enabled. Yes, debuggable is set to true in the manifest. Like I said, every other device works fine. I can plug another device in 2 seconds later and it works great. The device is running Android 4.0.4. Any ideas? 回答1: I had

Can't remove SMS logs from call log on Samsung devices

谁都会走 提交于 2019-12-12 15:41:26
问题 I'm trying to remove all SMS messages from the device via my app, but for some reason SMS logs still appear on the call log on some of the Samsung devices. I've tried a more "radical" approach, and deleted the following URI's using the ContentResolver : content://call_log/calls content://sms content://sms/inbox content://sms/sent content://mms/inbox content://mms content://mms-sms content://mms/address content://mms/part content://mms/sent content://mms/outbox Delete was done with the

Camera.Parameters device specific crash (Samsung S3 Mini)

不想你离开。 提交于 2019-12-12 14:04:23
问题 The following code is working on a Galaxy Nexus, Samsung S3 and HTC One X but it crashes on a Samsung S3 Mini @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Log.d(TAG, "entering surfaceChanged"); Camera.Parameters parameters = camera.getParameters(); List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes(); // set barcode scene mode if (parameters.getSupportedSceneModes() != null && parameters.getSupportedSceneModes().contains

Gallery images taken on Samsung androids always in landscape even if taken in portrait

蹲街弑〆低调 提交于 2019-12-12 12:51:13
问题 Picking images from gallery with the following code: Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); intent.addCategory(Intent.CATEGORY_OPENABLE); startActivityForResult(intent, PICK_FILE_RESULT_CODE); Getting result with the following code: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == PICK_FILE_RESULT_CODE) { if (resultCode == RESULT_OK && data !=