samsung-mobile

What is the keycode for multitasking/appswitch for samsung galaxy s3?

女生的网名这么多〃 提交于 2019-12-02 19:52:37
问题 Our app is crashing (it says "application has stopped) after we longpress the home button on samsung galaxy s3 (the longpress button is used to popup the multitasking screen/app switch dialog) we do not have this problem on our another testing device htc evo 3d so what is the keycode for this "action" ? and how can we disable this function ? This code sadly does not work: public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_APP_SWITCH) { System.exit(0);

Samsung hovering API with finger

回眸只為那壹抹淺笑 提交于 2019-12-02 18:54:55
Samsung has done something great with the hovering API, and I'm interested in including it in my app. The problem is that the hovering API included in the SPen SDK only work with the SPen and not with the finger detection like the latest apps do on the Samsung Galaxy S4. Can anyone provide me with a link to the right SDK or even a sample project? EDIT: Nifhel commented, fallow this link: Floating Touch on Galaxy S4 ( requires API 12 and to create a new class that inherit from TextView for instance) EDIT: The accepted answer is a better solution and works perfectly well ( requires API 14 but

Developers Option in Pebble App Settings

ぐ巨炮叔叔 提交于 2019-12-02 17:07:30
问题 I am following this manual and I don't have the Developers Option in my Pebble App Setting when I look at Application Manager. Any idea why is that and how I can find it? I have a Samsung Galaxy S6. Pebble app > Settings > Developer Options and tick Enable Developer Connection . There's no such 3 lines for the app setting as shown in this link. 回答1: The manual you linked to seems to be the right set of steps. The screenshot you posted though indicates you do not have a Pebble connected, which

Layout on Samsung Galaxy Note

馋奶兔 提交于 2019-12-02 16:48:39
I have a weird issue that only occurs on the Samsung Galaxy Note. I have landscape and portrait layouts , in normal and large , as per : http://developer.android.com/guide/practices/screens_support.html On all phone so far it uses the normal and the tablets 7inch and 10 inch use the large layout (which was designed for tablets) and all is ok. However the Samsung Galaxy Note is using the large layout (and from it's screen size would indicate so) - but the layout is a complete mess as it does not seem to be large enough display to show the tablet UI. What is the exact screen combo for a Galaxy

Limited edittext on some samsung devices?

依然范特西╮ 提交于 2019-12-02 12:08:05
问题 I am trying to read a long text from the sdcard to an edittext in Android. On almost all devices this works very well, except for some samsung devices. When I try to read anything over 10kb the string I read it too gets the whole file. When I try to add this to the edittext its cut off at 10kb. Even if I put it in a loop trying to add a little bit at the time with append it still doesn't add more than 10kb. On every phone I have tried this works, on HTCs, Sony Ericssons, the nexus phones, but

Android - Samsung: Creating Widget with configuration activity fails

有些话、适合烂在心里 提交于 2019-12-02 10:43:15
问题 I built an application with the possibility to add widgets to the home screen. The widget is working with my Nexus 6P and a Motorola Moto G3. With Samsung Phones (Tested with S3 mini (4.1.2), S5, S6 (6.0.1)) the widget is not added at all or TouchWiz crashes. With another launcher (Nova) the widget is also not created on the S3 mini. In logcat I don't see any error message at all. I tried to narrow the problem down as far as possible. The widget gets created if I remove the android:configure=

Android app disappears sometimes from apps screen

爱⌒轻易说出口 提交于 2019-12-02 08:54:55
问题 My android app appears and disappears on app screen indeliberately. I couldn't find why this problem happens. Is the problem happening because my app manifest ? Is the problem related to the android version ? etc.. Spec Device manufacturer : Samsung Device model : SM-T311 Android version : 4.4.2 How it happens I install my app from email I open my app and use it I press home button I press apps button I couldn't see my app How I solve this I again press home button I again press apps I see my

What is the keycode for multitasking/appswitch for samsung galaxy s3?

倾然丶 夕夏残阳落幕 提交于 2019-12-02 08:35:25
Our app is crashing (it says "application has stopped) after we longpress the home button on samsung galaxy s3 (the longpress button is used to popup the multitasking screen/app switch dialog) we do not have this problem on our another testing device htc evo 3d so what is the keycode for this "action" ? and how can we disable this function ? This code sadly does not work: public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_APP_SWITCH) { System.exit(0); return false; } return super.onKeyDown(keyCode, event); } 来源: https://stackoverflow.com/questions/26554207

Android - Samsung: Creating Widget with configuration activity fails

橙三吉。 提交于 2019-12-02 06:02:41
I built an application with the possibility to add widgets to the home screen. The widget is working with my Nexus 6P and a Motorola Moto G3. With Samsung Phones (Tested with S3 mini (4.1.2), S5, S6 (6.0.1)) the widget is not added at all or TouchWiz crashes. With another launcher (Nova) the widget is also not created on the S3 mini. In logcat I don't see any error message at all. I tried to narrow the problem down as far as possible. The widget gets created if I remove the android:configure="de.cliff.strichliste.widgets.WidgetConfigurationActivity" from the counter_widget_info.xml. If I want

Samsung Intent For OnActivityResult coming Null when call camera

本秂侑毒 提交于 2019-12-02 05:23:22
问题 I am using following code to get picture from camera. Except samsung it is working fine in other mobiles. please let me know what i am doing wrong. final File root = new File(Environment.getExternalStorageDirectory() + File.separator + "temp" + File.separator); root.mkdir(); final String fname = "img_" + System.currentTimeMillis() + ".jpg"; final File sdImageMainDirectory = new File(root, fname); outputFileUri = Uri.fromFile(sdImageMainDirectory); // Camera. final List<Intent> cameraIntents =