¡@

Home 

2014/10/16 ¤W¤È 08:12:45

android Programming Glossary: droid

HTML5 <video> element on Android

http://stackoverflow.com/questions/1711078/html5-video-element-on-android

I haven't been able to get this to work using a Motorola Droid and haven't been able to successfully view a video on any of..

OpenGL extensions available on different Android devices [closed]

http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices

is also needed to determine capabilities. For example the Droid doesn't report VBO support in its extension list. It does report..

How can I connect to Android with ADB over TCP?

http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

TCP I am attempting to debug an application on a Motorola Droid but I am having some difficulty connecting to the device via..

Detect application heap size in Android

http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android

Size set to 24MB maxMemory 25165824 getMemoryClass 16 Moto Droid With VM Heap Size set to 24MB maxMemory 25165824 getMemoryClass..

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

to a Zeemote http zeemote.com gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect.. bluez tools log attached as well . I know for sure that Droid is able to talk to Zeemote as well because 'Game Pro' from the..

Making the Android emulator run faster

http://stackoverflow.com/questions/2662650/making-the-android-emulator-run-faster

is a bit sluggish. For some devices like the Motorola Droid and the Nexus One the app runs faster in the actual device than..

How to change the font on the TextView?

http://stackoverflow.com/questions/2888508/how-to-change-the-font-on-the-textview

question First the default is not Arial. The default is Droid Sans. Second to change to a different built in font use android.. is no Helvetica font in Android. The built in choices are Droid Sans sans Droid Sans Mono monospace and Droid Serif serif ... font in Android. The built in choices are Droid Sans sans Droid Sans Mono monospace and Droid Serif serif . While you can bundle..

Is AsyncTask really conceptually flawed or am I just missing something?

http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something

and wasteful. My solution to this as implemented in the Droid Fu library is to maintain a mapping of WeakReference s from.. a complex workaround and requires to sub class some of the Droid Fu library classes making this a pretty intrusive approach...

Android: Is application running in background?

http://stackoverflow.com/questions/3667022/android-is-application-running-in-background

not too late to admit my error. Another wrong solution Droid Fu library mentioned in one of the answers uses ActivityManager.getRunningTasks..

Percentage width in a RelativeLayout

http://stackoverflow.com/questions/4961355/percentage-width-in-a-relativelayout

the port. Is this possible The following XML works on my Droid but it doesn't seem to work for all screens. I would really..

Android Sleep/Standby Mode

http://stackoverflow.com/questions/5120185/android-sleep-standby-mode

This is working great on the emulator and on the Motorola Droid 1 but it doesn't work on the Droid X when the phone has been.. and on the Motorola Droid 1 but it doesn't work on the Droid X when the phone has been put into sleep mode. What I have discovered.. the phone is in sleep. It doesn't seem to do this on the Droid 1 or the emulator. I'm sure the workaround isn't too difficult..

Android - disable landscape mode?

http://stackoverflow.com/questions/582185/android-disable-landscape-mode

on devices with hardware keyboards or game pads a la the Droid 1 4 Xperia Play or the Nvidia Shield forcing portrait can make..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

2 Example showing how to enable the LED on a Motorola Droid http code.google.com p droidled Another Open Source Code http..

Calling hidden API in android to turn screen off

http://stackoverflow.com/questions/1875669/calling-hidden-api-in-android-to-turn-screen-off

hidden API in android to turn screen off I'm thinking about using a hidden api to.. turn the screen off in my app. setScreenState from http android.git.kernel.org p platform frameworks base.git a blob f core.. p platform frameworks base.git a blob f core java android os Power.java does what I want but its a hidden API. Does that..

Not understanding how to use different density images for 1.6+

http://stackoverflow.com/questions/1922697/not-understanding-how-to-use-different-density-images-for-1-6

layouts start looking different on those devices Thanks android share improve this question ldpi mdpi and hdpi correspond.. but its screen density is actually around 180dpi. The droid is a hdpi class device 240dpi but its screen is 265dpi. Bitmap.. 150x150 respectively. For more info see http developer.android.com guide practices screens 5Fsupport.html#qualifiers share..

Trying to draw textured triangles on device fails, but the emulator works. Why?

http://stackoverflow.com/questions/2113638/trying-to-draw-textured-triangles-on-device-fails-but-the-emulator-works-why

int reasource_id int texture_id Get the texture from the Android resource directory Bitmap bitmap BitmapFactory.decodeResource.. GL10.GL_TEXTURE_WRAP_T GL10.GL_REPEAT Use the Android GLUtils to specify a two dimensional texture image from our.. can see the black background. Here is a shot of what the droid does with the exact same code on it Edit3 Here are my BitmapOptions..

Detect a finger swipe through JavaScript on the iPhone and Android

http://stackoverflow.com/questions/2264072/detect-a-finger-swipe-through-javascript-on-the-iphone-and-android

a finger swipe through JavaScript on the iPhone and Android How can you detect that a user swiped his finger in some direction.. that would work for websites on both the iPhone and an Android phone. javascript iphone android swipe share improve this.. both the iPhone and an Android phone. javascript iphone android swipe share improve this question I found this jquery touchwipe..

Getting the battery current values for the Android Phone

http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone

the battery current values for the Android Phone I am trying to collect power usage statistics for the.. I am trying to collect power usage statistics for the Android G1 Phone. I am interested in knowing the values of Voltage and.. for ACTION_BATTERY_CHANGED. But the problem is that Android does not expose the value of current through this SDK interface...

Why can't HTC Droid running OTA 2.1 communicate with RFCOMM?

http://stackoverflow.com/questions/2853790/why-cant-htc-droid-running-ota-2-1-communicate-with-rfcomm

2.1 communicate with RFCOMM Yesterday we received OTA Android 2.1 on my wife's HTC Droid HOORAY I am finally able to load.. fine when I run the app on my Moto Droid but on the HTC droid no data is ever present in the inputstream buffer. Personally.. D BluetoothA2dpService 74 Received intent with action android.bluetooth.device.action.ACL_CONNECTED 05 17 19 44 24.227 D 74..

CSS fonts on Android

http://stackoverflow.com/questions/3200069/css-fonts-on-android

fonts on Android I'm using @font face to display League Gothic on a website.. League Gothic on a website but it's not showing up on Android 1.6. Here's my code generated with Font Squirrel's @font face.. I read that @font face support is gone completely in Android 2 . But League Gothic is quite condensed so I would like to..

Do android support multiple languages?

http://stackoverflow.com/questions/3626976/do-android-support-multiple-languages

android support multiple languages If i run my android application.. android support multiple languages If i run my android application with a htc magic with locale English I find my application.. running properly and if i try to run it on Motorola droid with locale korean My application apk is not even installing..

Do iPhone / Android browsers support CSS @media handheld?

http://stackoverflow.com/questions/3893342/do-iphone-android-browsers-support-css-media-handheld

iPhone Android browsers support CSS @media handheld I want to change my web.. web browsers running on cell phones like the iPhone and Android. I've tried something like this in the CSS file @media handheld.. the iPhone etc ideally without using javascript iphone android css media share improve this question You can use @media..

Android INJECT_EVENTS permission

http://stackoverflow.com/questions/5383401/android-inject-events-permission

INJECT_EVENTS permission I am trying to create an application.. this permission to my manifest like this uses permission android name android.permission.INJECT_EVENTS uses permission Its still.. to my manifest like this uses permission android name android.permission.INJECT_EVENTS uses permission Its still throwing..

Load Url in Web View

http://stackoverflow.com/questions/6211525/load-url-in-web-view

it doesn't displayed in webview it displayed in default Android browser. How can we resist this to open in webview and one thing.. 2Fprod 2F4x silicone skin soft gel case for htc droid incredible 2Fq 2Floc 2F111 2F219945395.html mid 18893 cat_id.. 2Fprod 2F4x silicone skin soft gel case for htc droid incredible 2Fq 2Floc 2F111 2F219945395.html mid 18893 cat_id..

android compass seems unreliable

http://stackoverflow.com/questions/6256256/android-compass-seems-unreliable

compass seems unreliable I have been working on a small compass.. on another phone first was nexus S second was Motorola droid 1 . Between the two phones the difference ranges from being.. Thanks in advance Edit also tried it with the droid X with the worst results yet... When the phone is rolled around..

What is the difference between total installs and active installs in the Android market?

http://stackoverflow.com/questions/7336871/what-is-the-difference-between-total-installs-and-active-installs-in-the-android

between total installs and active installs in the Android market What is the difference between total installs and active.. my app and ONLY 47 active installs. What does it mean android google play share improve this question Total installs is.. like AdMob result will vary find niche forums and android specific forums like xda developers droid life etc. that would..

HTML5 <video> element on Android

http://stackoverflow.com/questions/1711078/html5-video-element-on-android

Android 2.0 should support the HTML5 video element. I haven't been able to get this to work using a Motorola Droid and haven't been able to successfully view a video on any of the HTML5 video example pages out there. Since there currently..

OpenGL extensions available on different Android devices [closed]

http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices

The profile is supposed to be before the number. It is also needed to determine capabilities. For example the Droid doesn't report VBO support in its extension list. It does report an OpenGL ES version of 1.1 however. That means it does..

How can I connect to Android with ADB over TCP?

http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

can I connect to Android with ADB over TCP I am attempting to debug an application on a Motorola Droid but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64bit VM running..

Detect application heap size in Android

http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android

to 16MB maxMemory 16777216 getMemoryClass 16 With VM Heap Size set to 24MB maxMemory 25165824 getMemoryClass 16 Moto Droid With VM Heap Size set to 24MB maxMemory 25165824 getMemoryClass 24 With VM Heap Size set to 16MB maxMemory 16777216 getMemoryClass..

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

super.onDestroy Original question I'm trying to connect to a Zeemote http zeemote.com gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect to the device LED flashes but connection is dropped immediately.. can connect to the Zeemote from my laptop perfectly fine using bluez tools log attached as well . I know for sure that Droid is able to talk to Zeemote as well because 'Game Pro' from the Market works fine with it but then it's a driver service..

Making the Android emulator run faster

http://stackoverflow.com/questions/2662650/making-the-android-emulator-run-faster

the Android emulator run faster The Android emulator is a bit sluggish. For some devices like the Motorola Droid and the Nexus One the app runs faster in the actual device than the emulator. This is a problem when testing games and visual..

How to change the font on the TextView?

http://stackoverflow.com/questions/2888508/how-to-change-the-font-on-the-textview

it to Helvetica android fonts textview share improve this question First the default is not Arial. The default is Droid Sans. Second to change to a different built in font use android typeface in layout XML or setTypeface in Java. Third there.. typeface in layout XML or setTypeface in Java. Third there is no Helvetica font in Android. The built in choices are Droid Sans sans Droid Sans Mono monospace and Droid Serif serif . While you can bundle your own fonts with your application and.. XML or setTypeface in Java. Third there is no Helvetica font in Android. The built in choices are Droid Sans sans Droid Sans Mono monospace and Droid Serif serif . While you can bundle your own fonts with your application and use them via setTypeface..

Is AsyncTask really conceptually flawed or am I just missing something?

http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something

context e.g. after a screen orientation change. This is slow and wasteful. My solution to this as implemented in the Droid Fu library is to maintain a mapping of WeakReference s from component names to their current instances on the unique application.. instance of a given component exists anymore. Still it is a complex workaround and requires to sub class some of the Droid Fu library classes making this a pretty intrusive approach. Now I simply want to know Am I just massively missing something..

Android: Is application running in background?

http://stackoverflow.com/questions/3667022/android-is-application-running-in-background

this before I posted an answer on the SO but hopefully it's not too late to admit my error. Another wrong solution Droid Fu library mentioned in one of the answers uses ActivityManager.getRunningTasks for its isApplicationBroughtToBackground..

Percentage width in a RelativeLayout

http://stackoverflow.com/questions/4961355/percentage-width-in-a-relativelayout

and port EditText's . Something like 80 for the host 20 for the port. Is this possible The following XML works on my Droid but it doesn't seem to work for all screens. I would really like a more robust solution. RelativeLayout xmlns android http..

Android Sleep/Standby Mode

http://stackoverflow.com/questions/5120185/android-sleep-standby-mode

which fires off a small function after an amount of time. This is working great on the emulator and on the Motorola Droid 1 but it doesn't work on the Droid X when the phone has been put into sleep mode. What I have discovered is that the timer.. after an amount of time. This is working great on the emulator and on the Motorola Droid 1 but it doesn't work on the Droid X when the phone has been put into sleep mode. What I have discovered is that the timer seems to pause when the phone is.. What I have discovered is that the timer seems to pause when the phone is in sleep. It doesn't seem to do this on the Droid 1 or the emulator. I'm sure the workaround isn't too difficult so I'm not asking for help for once I just want an explanation..

Android - disable landscape mode?

http://stackoverflow.com/questions/582185/android-disable-landscape-mode

is not the clearly popular orientation. When users are on devices with hardware keyboards or game pads a la the Droid 1 4 Xperia Play or the Nvidia Shield forcing portrait can make your app a giant usability hassle especially on the Shield..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

Code http code.google.com p torch source browse Update 2 Example showing how to enable the LED on a Motorola Droid http code.google.com p droidled Another Open Source Code http code.google.com p covedesigndev http code.google.com p search..

Calling hidden API in android to turn screen off

http://stackoverflow.com/questions/1875669/calling-hidden-api-in-android-to-turn-screen-off

hidden API in android to turn screen off I'm thinking about using a hidden api to turn the screen off in my app. setScreenState from http android.git.kernel.org.. to turn screen off I'm thinking about using a hidden api to turn the screen off in my app. setScreenState from http android.git.kernel.org p platform frameworks base.git a blob f core java android os Power.java does what I want but its a hidden.. off in my app. setScreenState from http android.git.kernel.org p platform frameworks base.git a blob f core java android os Power.java does what I want but its a hidden API. Does that mean I shouldn't use it I would think its a fairly stable..

Not understanding how to use different density images for 1.6+

http://stackoverflow.com/questions/1922697/not-understanding-how-to-use-different-density-images-for-1-6

to have a density 1.5x that of the baseline G1 Won't my layouts start looking different on those devices Thanks android share improve this question ldpi mdpi and hdpi correspond to density classes not the actual density of the device. For.. of the device. For instance the G1 is a mdpi class device 160dpi but its screen density is actually around 180dpi. The droid is a hdpi class device 240dpi but its screen is 265dpi. Bitmap scaling is based on the density class only. The actual screen..

Trying to draw textured triangles on device fails, but the emulator works. Why?

http://stackoverflow.com/questions/2113638/trying-to-draw-textured-triangles-on-device-fails-but-the-emulator-works-why

textures private void loadGLTexture GL10 gl Context context int reasource_id int texture_id Get the texture from the Android resource directory Bitmap bitmap BitmapFactory.decodeResource context.getResources reasource_id sBitmapOptions Generate.. GL10.GL_REPEAT gl.glTexParameterf GL10.GL_TEXTURE_2D GL10.GL_TEXTURE_WRAP_T GL10.GL_REPEAT Use the Android GLUtils to specify a two dimensional texture image from our bitmap GLUtils.texImage2D GL10.GL_TEXTURE_2D 0 bitmap 0 Clean.. rendered onto it the transparency is working because you can see the black background. Here is a shot of what the droid does with the exact same code on it Edit3 Here are my BitmapOptions updated the call above with how I am now calling the..

Detect a finger swipe through JavaScript on the iPhone and Android

http://stackoverflow.com/questions/2264072/detect-a-finger-swipe-through-javascript-on-the-iphone-and-android

a finger swipe through JavaScript on the iPhone and Android How can you detect that a user swiped his finger in some direction over a web page with JavaScript I was wondering if there.. with JavaScript I was wondering if there was one solution that would work for websites on both the iPhone and an Android phone. javascript iphone android swipe share improve this question I found this jquery touchwipe plugin which works.. if there was one solution that would work for websites on both the iPhone and an Android phone. javascript iphone android swipe share improve this question I found this jquery touchwipe plugin which works on both my first generation ipod..

Getting the battery current values for the Android Phone

http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone

the battery current values for the Android Phone I am trying to collect power usage statistics for the Android G1 Phone. I am interested in knowing the values of.. the battery current values for the Android Phone I am trying to collect power usage statistics for the Android G1 Phone. I am interested in knowing the values of Voltage and Current and then able to collect statistics as reported in.. registering for an intent receiver to receive the Broadcast for ACTION_BATTERY_CHANGED. But the problem is that Android does not expose the value of current through this SDK interface. One way I tried is via sysfs interface where I can view..

Why can't HTC Droid running OTA 2.1 communicate with RFCOMM?

http://stackoverflow.com/questions/2853790/why-cant-htc-droid-running-ota-2-1-communicate-with-rfcomm

can't HTC Droid running OTA 2.1 communicate with RFCOMM Yesterday we received OTA Android 2.1 on my wife's HTC Droid HOORAY I am finally able to load my carputer app on her phone. Well we loaded it but it doesn't.. AT commands. ATI should respond with a device ID. That works fine when I run the app on my Moto Droid but on the HTC droid no data is ever present in the inputstream buffer. Personally I'm feeling pretty sure it's a bug or limitation in this release.. intent address 00 18 E4 1D 23 9B 05 17 19 44 24.227 D BluetoothA2dpService 74 Received intent with action android.bluetooth.device.action.ACL_CONNECTED 05 17 19 44 24.227 D 74 signal_BTEVENT_LINK_CONNECT_CNF Exiting 05 17 19 44 24.757..

CSS fonts on Android

http://stackoverflow.com/questions/3200069/css-fonts-on-android

fonts on Android I'm using @font face to display League Gothic on a website but it's not showing up on Android 1.6. Here's my code generated.. fonts on Android I'm using @font face to display League Gothic on a website but it's not showing up on Android 1.6. Here's my code generated with Font Squirrel's @font face generator @font face font family 'LeagueGothicRegular' src.. sans serif It's not a big deal if @font face isn't supported I read that @font face support is gone completely in Android 2 . But League Gothic is quite condensed so I would like to specify a better fallback font for Android than the default..

Do android support multiple languages?

http://stackoverflow.com/questions/3626976/do-android-support-multiple-languages

android support multiple languages If i run my android application with a htc magic with locale English I find my application running.. android support multiple languages If i run my android application with a htc magic with locale English I find my application running properly and if i try to run it on Motorola.. with a htc magic with locale English I find my application running properly and if i try to run it on Motorola droid with locale korean My application apk is not even installing on the device. Does android support different language Is it..

Do iPhone / Android browsers support CSS @media handheld?

http://stackoverflow.com/questions/3893342/do-iphone-android-browsers-support-css-media-handheld

iPhone Android browsers support CSS @media handheld I want to change my web page CSS for web browsers running on cell phones like the.. CSS @media handheld I want to change my web page CSS for web browsers running on cell phones like the iPhone and Android. I've tried something like this in the CSS file @media handheld body color red But it doesn't seem to have any effect at.. on the iPhone. How can I write my CSS to work differently on the iPhone etc ideally without using javascript iphone android css media share improve this question You can use @media queries link rel stylesheet href path to iphone.css media only..

Android INJECT_EVENTS permission

http://stackoverflow.com/questions/5383401/android-inject-events-permission

INJECT_EVENTS permission I am trying to create an application that will have a service running in the background that will.. that I don't have the INJECT_EVENTS permission. I've added this permission to my manifest like this uses permission android name android.permission.INJECT_EVENTS uses permission Its still throwing the same permission exception though. After a bit.. have the INJECT_EVENTS permission. I've added this permission to my manifest like this uses permission android name android.permission.INJECT_EVENTS uses permission Its still throwing the same permission exception though. After a bit of searching..

Load Url in Web View

http://stackoverflow.com/questions/6211525/load-url-in-web-view

a small problem that I want to load a url in web view but it doesn't displayed in webview it displayed in default Android browser. How can we resist this to open in webview and one thing more that if I will use any other web url then it simply.. 2Fdefault.asp 3Fadid 3D17865 26sURL 3Dhttp 3A 2F 2Fwww.buy.com 2Fprod 2F4x silicone skin soft gel case for htc droid incredible 2Fq 2Floc 2F111 2F219945395.html mid 18893 cat_id 8515 atom 8517 prod_id 2513751439 oid 2388674793 pos 1 b_id.. 2Fdefault.asp 3Fadid 3D17865 26sURL 3Dhttp 3A 2F 2Fwww.buy.com 2Fprod 2F4x silicone skin soft gel case for htc droid incredible 2Fq 2Floc 2F111 2F219945395.html mid 18893 cat_id 8515 atom 8517 prod_id 2513751439 oid 2388674793 pos 1 b_id..

android compass seems unreliable

http://stackoverflow.com/questions/6256256/android-compass-seems-unreliable

compass seems unreliable I have been working on a small compass app the past couple of days and have gotten the code up.. up with edges of a book . I then put the sample application on another phone first was nexus S second was Motorola droid 1 . Between the two phones the difference ranges from being equal at some points but at most points being between 50 and.. Sensor.TYPE_ACCELEROMETER SensorManager.SENSOR_DELAY_UI Thanks in advance Edit also tried it with the droid X with the worst results yet... When the phone is rolled around 45 degrees rotated around z axis a computer coordinate system..

What is the difference between total installs and active installs in the Android market?

http://stackoverflow.com/questions/7336871/what-is-the-difference-between-total-installs-and-active-installs-in-the-android

is the difference between total installs and active installs in the Android market What is the difference between total installs and active installs I have 90 Total installs for my app and ONLY 47.. installs and active installs I have 90 Total installs for my app and ONLY 47 active installs. What does it mean android google play share improve this question Total installs is how many times your app has been downloaded. Active installs.. count by one. Advertise Create an ad campaign with something like AdMob result will vary find niche forums and android specific forums like xda developers droid life etc. that would help more people notice your app. Inside your other apps..