galaxy

Android studio running app on Samsung Galaxy S3 hangs at Uploading file

时间秒杀一切 提交于 2019-12-05 04:37:48
My app with only one activity runs perfect on all emulators including the Samsung Galaxy S3 emulator provided by Genymotion. I am using the Android Studio. When I hook up my real Samsung Galaxy S3 to my computer it reads the device correct and it is online with all the correct developer options. It's correctly listed by adb as "device". I am targeting the correct API (18) for my device I believe, android 4.3 This is where it gets "stuck" and nothing happens on the real device: I had problem such that with the N10 tablet. It was caused by bad quality USB port/cable. Problem dissapeared when I

“take a picture and present it” in portrait mode on Samsung Galaxy S

喜夏-厌秋 提交于 2019-12-05 04:09:03
I am trying to simply take a picture and present it in an ImageView with my samsung galaxy s. it's working fine when I do it on landscape but not on portrait. I am not getting any error or exception - just not getting anything... There is a lot of questions about this topic and it seems to be problematic (something about camera orientation) but counldn't figure out the final solution for a simple "take a picture and present it" code. here is my (problematic) code that doesn't work: private void setUpListeners() { takePicture.setOnClickListener(new View.OnClickListener() { @Override public void

Issue with Samsung Galaxy SIII - Camera.onPictureTaken() returning interlaced image instead of proper capture image

a 夏天 提交于 2019-12-05 03:48:53
问题 We have an application that utilizes the rear 'Camera' to capture item image. So far all devices that we have tested are all working correctly in term of capturing image as it should be, until Samsung Galaxy SIII (S3). On Samsung Galaxy SIII only, we are observing that Camera.onPictureTaken() is returning an raw image appears to interlaced instead of proper capture image. Debugging each of camera parameter setting, determine that the following parameter setter is causing the issue. If we don

Android - Testing app on Galaxy S8 or LG G6

最后都变了- 提交于 2019-12-05 02:07:22
I was reading the following article about updating an app to take full advantage of devices like the Galaxy S8 or LG G6 https://android-developers.googleblog.com/2017/03/update-your-app-to-take-advantage-of.html And what I want to do is to test the app in an emulator of these screens and test it before and after adding the line of code the article suggests: <meta-data android:name="android.max_aspect" android:value="2.1" /> I have tried creating an AVD inside of Android Studio with a screen size of 5.8 and a resolution of 2960x1440 (Galaxy S8 screen resolution), and my app runs fine without

Cannot create directory in external storage although permissions are apparently set correctly

家住魔仙堡 提交于 2019-12-04 23:15:00
I have <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> in my manifest file, however I fail when trying to create a directory Log.d(LOG_STRING, android.os.Environment.getExternalStorageState() ); java.io.File folder = new java.io.File(Environment.getExternalStorageDirectory() + java.io.File.separator + "test"); boolean success = true; if (!folder.exists()) { success = folder.mkdir(); } if (success) { Log.d(LOG_STRING, "Created directory"); } else { Log.d(LOG_STRING, "FAILED WHILE CREATING DIRECTORY"); } The status of external storage is "mounted", but the test

Unable to receive SMS receive broadcast on Galaxy SIII running 4.1.1

早过忘川 提交于 2019-12-04 22:27:59
I have this problem only on Samsung Galaxy SIII running Android 4.1.1. There is no problem on Samsung Galaxy Ace and Samsung Galaxy Y. The broadcast SMS received is not firing up, when SMS is received. No other SMS app is installed on the phone. I am using the following code to receive the SMS broadcast smsReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Inside onReceive of smsReceiver"); Bundle bundle = intent.getExtras(); Object[] messages = (Object[]) bundle.get("pdus"); SmsMessage[] sms = new SmsMessage[messages.length]; //

yamaha MS-3C sensor on samsung galaxy

混江龙づ霸主 提交于 2019-12-04 20:16:49
I have a samsung galaxy s and i have made an application that make a list of sensor in the phone. That program show me many sensor, but my question is on two of them: MS-3C Magnetic sensor -->type:2 MS-3C Orientation sensor -->type:3 why it say that they are two different sensor? in the sheet of yamaha http://www.yamaha.co.jp/english/product/lsi/magnetic_sensor/ it seems to be a single sensor. Why android report it as two different sensor? it use the same chip to give me two type of data? Sorry for my english Orientation sensor is a virtual sensor that uses the other actual sensors (such as

Creating Galaxy S5 emulator

南楼画角 提交于 2019-12-04 19:09:05
问题 According to website gsmarena.com, the specifications of Galaxy S4 and Galaxy S5 are almost the same. Of course, those that concern us who want to create an S5 emulator. Is it advisable to use existing S4 emulator? If not, what should be changed to get Galaxy S5 emulator? My current S4 emulator, looks like this 回答1: I think it isn't necessary to update your S4 emulator since the changes are minor. However, if it is for testing applications or develop purposes I would recommend update it,

How to design a layout for 1080*1920 pixel screens? Which layout folder works for Samsung galaxy S4?

丶灬走出姿态 提交于 2019-12-04 14:54:46
问题 I'm creating an application which works for all types of screens, but I'm having problems while creating layouts for the Samsung Galaxy S4 1080*1920 (5 inch screen). Since 1080*1920 falls under 480dpi(XXHDPI), I have created folder called layout-sw480dp and have placed my file in there. When I look at it from xml view it looks perfect, but when I run it and check, the alignment has been changed. I have created other folders, such as layout-xxhdpi as well, and tried then but the alignment

Bring your app to the front when S Pen detached in android note?

半城伤御伤魂 提交于 2019-12-04 14:53:46
I want to open my application immediately when S Pen is detached , How can you do this, if the methods put under onSPenDetached is only called when my application is opened again? Thanks, Chandu The following works on my Galaxy Tab A 9.7 with S-Pen (SM-P550) running Android 5.0.2. Attaching and detaching the stylus creates Broadcast Intents of type com.samsung.pen.INSERT with a booleanExtra named penInsert of false if detached and true if put back into the device. Thus a Broadcast Receiver can be created that filters this kind of events. The following code is for such a Broadcast Receiver