tablet

Portable Device Path on Windows

自作多情 提交于 2019-12-17 20:22:07
问题 I've actually got an Windows/Java Question. I've got a plugged-in device which I want to access via Java. Normally you can access an e.g. USB-Stick via the Drive letter... but this tablet is displayed by Windows as a "Portable Device"... which means, that the Path is something like "Computer\Archos 5S" and there is no Drive letter. I want to access a file on this device via Java, but I am not able to figure out the correct path to it. There is a similar question out there, but without a

Android ADB doesn't see device

走远了吗. 提交于 2019-12-17 16:18:55
问题 I'm trying to run my applications on OMEGA T107 tablet. But adb doesn't see my device. I tried almost everything. 回答1: I tried all the ways listed on the web for a whole day, but I didn't get any solutions. Then, I followed a link and in just two minutes my problem was solved! By the way, it's for Windows users! Find out the vendor id of the device from device manager. To do this, connect the OTG port to the USB port of your computer. Go to Start Menu and right-click on “My Computer” and

How to determine if the client is a touch device [duplicate]

梦想的初衷 提交于 2019-12-17 07:24:06
问题 This question already has answers here : What's the best way to detect a 'touch screen' device using JavaScript? (35 answers) Closed 6 years ago . is there any nice and clean method or trick to find out if the user is on a touch-device or not? I know there is stuff like var isiPad = navigator.userAgent.match(/iPad/i) != null; but I simply wonder if there is a trick to generally determine if the user is on Touch device? Because there are a lot more touch devices and tablets out there then just

JavaScript how to check User Agent for Mobile/Tablet

末鹿安然 提交于 2019-12-17 05:04:21
问题 I'm currently developing some JS work for a clients website which has different functionality across desktop and tablet platforms. Consider: if(! navigator.userAgent.match(/Android/i) && ! navigator.userAgent.match(/webOS/i) && ! navigator.userAgent.match(/iPhone/i) && ! navigator.userAgent.match(/iPod/i) && ! navigator.userAgent.match(/iPad/i) && ! navigator.userAgent.match(/Blackberry/i) ) { // do desktop stuff } else if ( navigator.userAgent.match(/iPad/i) ) { // do tablet stuff }

Android: allow portrait and landscape for tablets, but force portrait on phone?

蹲街弑〆低调 提交于 2019-12-17 01:33:29
问题 I would like tablets to be able to display in portrait and landscape (sw600dp or greater), but phones to be restricted to portrait only. I can't find any way to conditionally choose an orientation. Any suggestions? 回答1: Here's a good way using resources and size qualifiers. Put this bool resource in res/values as bools.xml or whatever (file names don't matter here): <?xml version="1.0" encoding="utf-8"?> <resources> <bool name="portrait_only">true</bool> </resources> Put this one in res

samsung mobile mtp device failed to install

被刻印的时光 ゝ 提交于 2019-12-14 02:43:34
问题 I am trying to test my android application on a samsung s2 phone with android version 4.0.3, I downloaded the usb driver from the official website, but the program does not detect the phone, returning a message telling me that samsung mobile mtp device failed any help please? 回答1: Hi I have followed the Exact steps from Link : http://androidforums.com/samsung-galaxy-s2-international/559858-samsung-mobile-mtp-device-cannot-installed.html Here are steps : (for Windows specific instructions):

Error in http connection android.os.networkonmainthreadexception

喜欢而已 提交于 2019-12-13 20:31:15
问题 I wrote app for android and i have one problem. It works on phone, but it doesn't work on tablet. I have Error : Error in http connection android.os.networkonmainthreadexception. It is my code: public class AktualizacjaActivity { public static final String KEY_121 = "http://xxx.php"; public String getServerData(String returnString,Context context) { DatabaseAdapter db1 = new DatabaseAdapter(context); db1.open(); String question=""; try { Cursor c = db1.makeCursor(DatabaseAdapter.STRUCT, new

How to change the Option menu icon in the Action Bar?

£可爱£侵袭症+ 提交于 2019-12-13 17:09:00
问题 On Honeycomb, when the options are hidden (not ifRoom), they are displayed in a Spinner in an option menu. I simply would like to know how to change the icon of this option menu (furthest to the right). By default, the icon is just three lines and 3 dots on ICS. Thanks ! 回答1: See more attributes from your android sdk installation, in platforms/android-XX/data/res/values/style.xml Here is menu overflow action button style definition: <style name="Widget.Holo.ActionButton.Overflow"> <item name=

Using same drawable image in two different folder to support all tablets.(same image (no change)in two folders)

孤街浪徒 提交于 2019-12-13 08:59:45
问题 I want to keep same images in two folders drawable-large-xhdpi and drawable-xlarge-hdpi. avoiding duplication of images reduces memory How? I am having images of 1920x1080 resolution Any usefull answer i am very thankful to all. (example: if the image is half of screen width , it should be half of the screen in all tablets) 回答1: If you want to keep exactly the same image in drawable-large-xhdpi and drawable-xlarge-hdpi then you apparently do not really understand what these xhdpi and hdpi

Android - testing on tablet.Which tablet is the best to test? [closed]

只愿长相守 提交于 2019-12-13 07:28:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Which tablet do you recommend me for testing android applications? 回答1: Motorola XOOM and Samsung galaxy TAB is best tablet. 回答2: The ASUS Transformer is doing me well. 回答3: If you test a very complicated application, you should use faster tablet like Samsung Galaxy Tab. Otherwise you can use some cheaper tablet