samsung-touchwiz

Android samsung custom notification heads up view

偶尔善良 提交于 2020-06-29 14:08:45
问题 When notifications from some applications are displaying on Samsung S8 Touchwiz there is a custom view with nice animation and ellipsized text. For example message notifications in Telegram. Any ideas how to make my notification work like this on samsung? Tried all parameters in NotificationCompat.Builder but no success yet. Thanks. It look's like this: 回答1: I managed to figure out how you can make the notifications appear in such way on Samsung devices. The Samsung have "Edge lighting"

Android samsung custom notification heads up view

岁酱吖の 提交于 2020-06-29 14:03:17
问题 When notifications from some applications are displaying on Samsung S8 Touchwiz there is a custom view with nice animation and ellipsized text. For example message notifications in Telegram. Any ideas how to make my notification work like this on samsung? Tried all parameters in NotificationCompat.Builder but no success yet. Thanks. It look's like this: 回答1: I managed to figure out how you can make the notifications appear in such way on Samsung devices. The Samsung have "Edge lighting"

Multiple Instances of Android Application open - ONLY on Touchwiz

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:55:26
问题 I have been working on an application for Android devices recently - and I have noticed a perplexing issue that only occurs on devices running Samsung Touchwiz! When the application is running on a Touchwiz device the bug occurs. The bug can be reproduced by pressing the "back" button while the application is in the foreground - and then launching it again from the home screen (or anywhere else the icon may be). Looking in the multi-tasking menu it is clear that the system launches a second

ViewPager really slow on Samsung S4

瘦欲@ 提交于 2019-12-10 15:23:56
问题 SOLVED Apparently you need to have the fragment drawables in respective drawable-xhdpi etc and not in drawable. I have coded a ViewPager with three fragments that works flawlessly on LG G2, Sony Xperis S, Nexus4 and 5. But on the Samsung S4 it's impossible to swipe left/right without major lag, we have tested on 4 different S4's with the same resault. public class ViewPagerMainActivity extends FragmentActivity { PageIndicator mIndicator; int mViewPager; private AutoScrollViewPager viewPager;

Debugging in the stock browser on a Samsung Galaxy S4 on KitKat

放肆的年华 提交于 2019-12-04 16:26:29
问题 We have a Javascript bug that only appears in the stock browser of the Galaxy S4 (GT-I9505) running KitKat (4.4.2) and we're unable to debug it or view the Javascript console. I've tried running about:debug and it does enable the debug menu, but it also redirects me to a 'page not found' and going back/forwards removes the debug menu. We've also tried using logcat , but no messages are shown (this command works perfectly on a Nexus 4 JellyBean and in an emulated Gingerbread). adb logcat

Chooser with camera intent and image picker intent

懵懂的女人 提交于 2019-12-01 03:58:55
I have created a chooser for either picking an image from file or for making a picture. The code I use works fine on a Nexus 5, however when I try it on a Samsung S5, the chooser does not display the camera icons. public Intent makePhotoIntent(String title, Context ctx, String uniqueImageId){ //Build galleryIntent Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); galleryIntent.setType("image/*"); //Create chooser Intent chooser = Intent.createChooser(galleryIntent,title); if (checkexCameraHardware()){ Intent cameraIntent = new

Chooser with camera intent and image picker intent

筅森魡賤 提交于 2019-12-01 01:40:52
问题 I have created a chooser for either picking an image from file or for making a picture. The code I use works fine on a Nexus 5, however when I try it on a Samsung S5, the chooser does not display the camera icons. public Intent makePhotoIntent(String title, Context ctx, String uniqueImageId){ //Build galleryIntent Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); galleryIntent.setType("image/*"); //Create chooser Intent

Samsung “App optimisation” feature kills background applications after 3 days

旧城冷巷雨未停 提交于 2019-11-27 08:49:23
We are currently developing an Android app that is a fitness-tracker application. It runs constantly in the background, and it works fine on most devices, but we've been having issues with the application dying completely on some Samsung devices. After some investigation, it seems like some Samsung devices has a completely custom "App Optimisation" feature ( http://forums.androidcentral.com/samsung-galaxy-s6/599408-app-optimisation-after-updating.html ), which is basically a (very) primitive version of the Doze feature that exists in later versions of Android which basically just murders apps

Samsung “App optimisation” feature kills background applications after 3 days

假装没事ソ 提交于 2019-11-26 14:19:08
问题 We are currently developing an Android app that is a fitness-tracker application. It runs constantly in the background, and it works fine on most devices, but we've been having issues with the application dying completely on some Samsung devices. After some investigation, it seems like some Samsung devices has a completely custom "App Optimisation" feature (http://forums.androidcentral.com/samsung-galaxy-s6/599408-app-optimisation-after-updating.html), which is basically a (very) primitive

How to interface with the BadgeProvider on Samsung phones to add a count to the app icon?

删除回忆录丶 提交于 2019-11-26 12:44:16
Samsung's TWLauncher allows apps to create badge counts on app icons. This is completely undocumented! There is no mention of it anywhere , and only a handful of apps are using it (e.g. Facebook, eBay). How do you use this functionality to add a count to your app icon? This is very specific to Samsung devices. I am not asking about Android in general. I'm only asking about badging Samsung's Touchwhiz interface which currently allows badging. Android does not. Daniel Ochoa First you'll need to add the following permissions to your AndroidManifest.xml file. <uses-permission android:name="com.sec