samsung-mobile

Limited edittext on some samsung devices?

萝らか妹 提交于 2019-12-02 04:10:47
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 none of the Galaxy S... phone can do it. Has this happened to anyone else? Is there a workaround? 10

Samsung Intent For OnActivityResult coming Null when call camera

雨燕双飞 提交于 2019-12-02 03:34:56
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 = new ArrayList<Intent>(); final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

Common Signing tool for java mobiles

≡放荡痞女 提交于 2019-12-02 03:33:53
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. 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.com/questions/6649215/common-signing-tool-for-java-mobiles

Samsung device returns text messages when querying for call-log

匆匆过客 提交于 2019-12-02 00:49:11
问题 Some of my users report that on their Samsung devices (GT-N7000 & SGH-I777) a query I make in my app for the CallLog.Calls displays also text messages. I've created a dump of their CallLog ContentProvider , and it seems to have extra fields not mentioned in the Android API, and not returned on any of our test devices. Specifically, looking through the dump, there's a field called logtype , which seems to equal 100 for calls, and 300 for text messages. Having searching online for this field, I

Hide “NFC Tag type not supported” error on Samsung Galaxy devices

耗尽温柔 提交于 2019-12-01 19:16:58
I am working on an app that scans just the UID of MIFARE Classic cards to facilitate attendance registration. I have got it working. However, every time I scan a card on my Galaxy S4, I get a toast stating "NFC tag type not supported". I want to either block or hide that message while the app is open. I noticed there was one other question asking for the same thing on a Galaxy S6 but it was down-voted once and then ignored. I found this conversation on the Samsung Developers forum, however, I could not extract an answer from what is written there: if (NfcAdapter.ACTION_TECH_DISCOVERED.equals

What is the Samsung s3 user-agent?

我怕爱的太早我们不能终老 提交于 2019-12-01 03:08:16
I'm trying to find out what is the user agent of Samsung Galaxy S3. I don't have the device so I can't test myself. The user agent is going to be recognized by my web server. Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 http://en.wikipedia.org/wiki/Samsung_Galaxy_S_III this page contains all model number for s3 across all countries one can search for user string for all such models. What's My User Agent? is a great tool for figuring out what the User Agent of your current browser is. Just navigate to

Samsung enable disable “Driving mode”

一笑奈何 提交于 2019-12-01 00:32:16
I would like to enable/disable Driving mode which is available on some Samsung devices (Galaxy S2, S3). I know I have to put something to system settings, but I don´t know what. So please advice me what values I should use or where I can find this information. Settings.System.putInt(context.getContentResolver(), "something1", "something2"); Thank you in advance. Sure! This code works for me: Settings.System.putInt(getContentResolver(), "driving_mode_on", 1); // To Enable Settings.System.putInt(getContentResolver(), "driving_mode_on", 0); // To Disable Settings.System.putInt(getContentResolver(

Samsung galaxy S4 image capture Issue

旧街凉风 提交于 2019-11-30 23:09:15
I am developing an Android Application. I created a custom camera class to capture images. It is working fine in som many devices but when i Tried it with Samsung Galaxy S4 it returns image with gray lins as shown. My Code is : ![`*public void surfaceCreated(SurfaceHolder holder) { frontCam = SharedUserPrefs.getSharedPrefData(AutoCapture.this, Constants.IS_FRONT_CAMERA); if (frontCam.equals(Constants.VALUE_ON)) { for (int camIdx = 0; camIdx < Camera.getNumberOfCameras(); camIdx++) { Camera.getCameraInfo(camIdx, cameraInfo); if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { try

make multi language android application

与世无争的帅哥 提交于 2019-11-30 21:29:19
I created multi language (English, Russian, Uzbek) app. I put 4 string resoureses in 4 folders (values, values-en, values-ru, values-uz) as docs . When I change app language updates resourses configuration in App Controller like below: Settings.LANGUAGE = prefs.getString(User.LANG, Settings.RUSSIAN); Locale locale = new Locale(Settings.LANGUAGE); Locale.setDefault(locale); Configuration configuration = new Configuration(); configuration.locale = locale; getBaseContext().getResources().updateConfiguration(configuration, getBaseContext().getResources().getDisplayMetrics()); After that App

Images are being rotated by default upon upload

可紊 提交于 2019-11-30 19:08:26
I am trying to take a photo and upload the same into my application using Samsung S7. But the image is being rotated upon upload. Even if I am selecting the image from gallery also, it is being rotated upon upload. Is there anything that we can fix from jquery code. Please suggest. Thanks in advance HTML: <div class="photo-div" id="photo"> <img id="uploadimage" src="" hidden=""> </div> <label id="files-label" for="files" class=" myprofile-btn-bold">Replace Image</label> <input id="files" style="display:none;" type="file" accept="image/*" onchange="readURL(this);"> Jquery: function readURL