galaxy-tab

Understanding Samsung Galaxy Tab screen density

我只是一个虾纸丫 提交于 2019-11-28 08:42:10
One would say that if the Galaxy Tab screen resolution (in portrait mode) is 600px and the screen width is 3.55inch , the screen density would be 600/3.55 = 169 dpi . Knowing that and keeping in mind the way the device independent pixels (dp) is computed ( http://developer.android.com/guide/practices/screens_support.html ): px = dp * (dpi / 160); 600 = dp * (169 / 160); dip = 568 So drawing a horizontal line of 568dp (device independent pixels) width starting at position 0 must exactly match the width of the screen. But if you try this on device you will find that the screen width is 400dp . I

Android : Samsung Galaxy Tabs and Android 2.2 Devices Showing GPS date 1 Day Advance from 1st jan 2012

こ雲淡風輕ζ 提交于 2019-11-28 07:21:00
I have the Galaxy tab GT-P1000 7 inch with firmware version 2.3.3 and Phones running Android 2.2. In both versions when ever I am trying to get the time from GPS, its showing 1 day advance from 1st jan 2012. Same code is working fine on Samsung, LG and Motorola Phones. The Sample code for the App is, package com.vxceed.dateTime; import java.util.Calendar; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.view.View; import

Bluetooth connection on Android ICS not possible

北城以北 提交于 2019-11-27 04:31:52
问题 i'm writting an app which sends byte codes from a tablet to a µ-controler. Everything worked fine on the Lenovo A1 (Androi 2.3) and Samsung Galaxy Tab 7 Plus N (Android 3.2). Now i'm having issues with the new Samsung Galaxy Tab 2 (Android 4.0). I'm able to pair with the Bluetooth antenna (which is connected to the µ-controller and communicates over the serial protocol). When I start the app I'm asked again to enter the password and to pair. After I enter the pairing password my main layout

Understanding Samsung Galaxy Tab screen density

≯℡__Kan透↙ 提交于 2019-11-27 02:22:37
问题 One would say that if the Galaxy Tab screen resolution (in portrait mode) is 600px and the screen width is 3.55inch , the screen density would be 600/3.55 = 169 dpi . Knowing that and keeping in mind the way the device independent pixels (dp) is computed (http://developer.android.com/guide/practices/screens_support.html): px = dp * (dpi / 160); 600 = dp * (169 / 160); dip = 568 So drawing a horizontal line of 568dp (device independent pixels) width starting at position 0 must exactly match

Android : Samsung Galaxy Tabs and Android 2.2 Devices Showing GPS date 1 Day Advance from 1st jan 2012

被刻印的时光 ゝ 提交于 2019-11-27 01:48:28
问题 I have the Galaxy tab GT-P1000 7 inch with firmware version 2.3.3 and Phones running Android 2.2. In both versions when ever I am trying to get the time from GPS, its showing 1 day advance from 1st jan 2012. Same code is working fine on Samsung, LG and Motorola Phones. The Sample code for the App is, package com.vxceed.dateTime; import java.util.Calendar; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener;

No Activity found to handle Intent : android.intent.action.VIEW

*爱你&永不变心* 提交于 2019-11-27 00:24:18
This is my code to play the recorded audio 3gp file Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(path); intent.setDataAndType(data, "audio/mp3"); startActivity(intent); But while running it in my HTC device (Android 2.2 Froyo) shows an exception: 05-04 16:37:37.597: WARN/System.err(4065): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/mnt/sdcard/mnt/sdcard/audio-android.3gp typ=audio/mp3 } 05-04 16:37:37.597: WARN/System.err(4065): at android.app.Instrumentation.checkStartActivityResult

Detect change in orientation using javascript

核能气质少年 提交于 2019-11-26 18:49:50
Is it possible to detect change in orientation of the browser on the iPad or Galaxy Tab using javascript? I think it's possible using css media queries. UPDATE: You might want to check out jQuery mobile orientationchange or the plain JS one: window.addEventListener("orientationchange", function() { alert(window.orientation); }, false); MDN: window.addEventListener("orientationchange", function() { alert("the orientation of the device is now " + screen.orientation.angle); }); Older answer http://www.nczonline.net/blog/2010/04/06/ipad-web-development-tips/ Safari on the iPad does support the

No Activity found to handle Intent : android.intent.action.VIEW

非 Y 不嫁゛ 提交于 2019-11-26 12:23:02
问题 This is my code to play the recorded audio 3gp file Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(path); intent.setDataAndType(data, \"audio/mp3\"); startActivity(intent); But while running it in my HTC device (Android 2.2 Froyo) shows an exception: 05-04 16:37:37.597: WARN/System.err(4065): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/mnt/sdcard/mnt/sdcard/audio-android.3gp typ=audio

Detect change in orientation using javascript

寵の児 提交于 2019-11-26 06:37:05
问题 Is it possible to detect change in orientation of the browser on the iPad or Galaxy Tab using javascript? I think it\'s possible using css media queries. 回答1: UPDATE: You might want to check out jQuery mobile orientationchange or the plain JS one: window.addEventListener("orientationchange", function() { alert(window.orientation); }, false); MDN: window.addEventListener("orientationchange", function() { alert("the orientation of the device is now " + screen.orientation.angle); }); Older