galaxy

Galaxy Note 5: Density Reduced Automatically

╄→尐↘猪︶ㄣ 提交于 2019-12-13 14:19:01
问题 I created an app that relies on some screen metrics to function. It works great on all devices, except for the Galaxy Note 5. On the note 5 it reports the screen size of 1080x1920 while the screen is actually 1440x2560. I also see the following message in logcat: "ActivityThread﹕ Switching default density from 560 to 420" I'm finding the screen size by calling getWindowVisibleDisplayFrame in the following code: Rect usable_rect = new Rect(); Window window = activity.getWindow(); window

USB Debugging with Samsung Galaxy SII

自古美人都是妖i 提交于 2019-12-12 20:03:41
问题 I used to use the Android emulator for debugging. Everything was fine. But when I tried emulator for Android 4 it was lagging so much. It was almost impossible to use it. So I tried to use USB debugging with Samsung Galaxy SII with Android 4.0.4. I've enabled USB Debugging on device, installed drivers, tried to use Kies, but it just doesn't work. When I started debugging and selected this device in Android device chooser, it was looking like this: samsung-gt_i9100-0019caae19649e | N/A | 4.0.4

Galaxy Tablet browser sniff / detection

假如想象 提交于 2019-12-12 14:23:28
问题 Is there an effective way to sniff the browser type for the Samsung Galaxy Tablet? 回答1: For the default browser, the user agent will have the device model number in it (SGH-T849). Curiously, on the Tab, I don't see a way to change the user agent. That being said, people do use alternative browsers, which may or may not include the device model number in the user agent. 回答2: No, and keep in mind that some of us even change our user-agent to make sure we don't end up on the mobile version of a

Unable to receive SMS receive broadcast on Galaxy SIII running 4.1.1

霸气de小男生 提交于 2019-12-12 09:27:51
问题 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();

yamaha MS-3C sensor on samsung galaxy

会有一股神秘感。 提交于 2019-12-12 09:24:52
问题 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?

android httpclient.execute exception

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:08:42
问题 When I test on simulator, it works, but when test with my device (galaxy s3), it keeps throwing errors, when during the following code: HttpResponse response; response = httpclient.execute(httppost); the exceptions: 09-03 08:16:49.018: E/AndroidRuntime(24254): java.lang.RuntimeException: Unable to start activity ComponentInfo{sg.dianping/sg.dianping.activity.ItemListActivity}: android.os.NetworkOnMainThreadException 09-03 08:16:49.018: E/AndroidRuntime(24254): at android.app.ActivityThread

Creating an emulator for Galaxy S8? - Android Studio

浪子不回头ぞ 提交于 2019-12-12 07:43:52
问题 I create a new hardware profile in an attempt to make and emulator for the Galaxy S8/S8+. I set the screen size to 5.8/6.2 inches (depending on whether S8 or S8+, despite the fact this doesn't appear to affect emulator anyway), and the screen resolution to 1440 x 2960, like the device. The emulator appears nothing like it does on the real device. Testing my app on a real S8+ shows it to be laid out poorly, but on the emulator it appear to be relatively organised, and I noticed it uses the

Galaxy Camera records 320x480 video using ACTION_VIDEO_CAPTURE Intent

霸气de小男生 提交于 2019-12-12 02:40:02
问题 I launch video capture intent on Galaxy Camera using below code: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); // With and without this, it yields same resolution startActivityForResult(intent, 2); and default video resolution turns out to be 320x240 @30fps. How do I change it to use highest possible video resolution i.e. 1920x1080 回答1: How do I change it to use highest possible video resolution i.e. 1920x1080 Use

Arabic & English text problem in Galaxy S and Nexus S in TextView

青春壹個敷衍的年華 提交于 2019-12-11 14:05:02
问题 With a TextView with right gravity when I write a mix of English and Arabic texts, some English texts are moved to the right of the TextView and are not shown. This may be because of some sort of arabizer in Samsung. Any suggestions to fix that? 回答1: RTL language support is only partially implemented in Android 2.3. This may be one of the limitations. Try it in a 2.3 emulator (to see if this is specific to Samsung, as you suggest) and a 3.0 emulator (to see if this has been improved). 来源:

Fatal Exception: java.lang.SecurityException: !@Too many alarms (500) registered inside Firebase

半腔热情 提交于 2019-12-11 06:56:32
问题 I am getting following crash: Fatal Exception: java.lang.SecurityException: !@Too many alarms (500) registered from pid 27251 uid 11383 at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:217) at android.app.AlarmManager.setImpl(AlarmManager.java:484) at android.app.AlarmManager.set(AlarmManager.java:260) at com.google.firebase.iid.FirebaseInstanceIdService.zzagl(Unknown Source