[android-developers] Re: about how to detect the usb device in Android

2009-12-12 Thread Lance Nanek
Yeah, but if Android doesn't use USB except to act as a USB device externally and do things like talk to the SD card slot internally, then expecting an intent to be sent when any USB device is plugged in might be a bit much. A general Linux approach, like listening for the DeviceAdded signal from

[android-developers] core tests coverage report 0%

2009-12-12 Thread James Wang
We ran core tests by the command /development/testrunner/runtest.py - v --coverage core and got coverage report successfully. But the reports says all are 0%. We ran apidemos and got coverage report which looks good. Below is the console output for core tests:

[android-developers] Re: How to select/install a locale other than English ?

2009-12-12 Thread Syl
I don't want to test individual activities. I know how to for the choice of the language using something similar to the code you post. However, I don't want to create an option Language in the configuration of my application, I just want to use the setting of the mobile. So, does someone know

[android-developers] Play Video via VideoView from source file though the emulator

2009-12-12 Thread Valentino XM
Hello fellow Androids! I have been attempting, in vain, to play video via VideoView using the code below and several variations there of. Of course i am a new!.. but waiting for any assistance to come from beginners has proven to be an exaperational pause in my effort to learn something new. We

[android-developers] Re: about how to detect the usb device in Android

2009-12-12 Thread lidemin
Thanks a lot to help me. I will try to understand what you said . Do you mean Android couldn't detect the USB plug-in and mount it automatically until now? Or in other words, the SDK doesn't surport that. Then how should i understand the android.intent.action.MEDIA_MOUNTED ? How to use it and

[android-developers] Re: Custom (created at run-time) notification bar icon

2009-12-12 Thread Menny
Any one can help? On Dec 10, 12:55 am, Menny menn...@gmail.com wrote: Hi, I'm looking for a way to provide to the NotificationManager an icon which was not statically created, but rather created at run-time by the application. I want to write a very simple weather application, which shows

[android-developers] Re: } catch (OutOfMemoryError E) {

2009-12-12 Thread rflexor
In fact that's what Google does (or at least did at a certain point in time), too. When I meddled with a single MapActivity that could switch between OpenStreetMap- and Google-Content, I constantly ran into OOMs. I found out that internally the Google Maps-API had an OutOfMemoryHandler that was

Re: [android-developers] Re: Debugging on Acer Liquid

2009-12-12 Thread Keiji Ariyama
Hi, Thank you for your providing information. However, my liquid is still not working... My Liquid have been detected as four devices by my PC(Windows XP and Vista). USB\VID_0502PID_3202MI_00 USB\VID_0502PID_3202MI_01 USB\VID_0502PID_3202MI_02 USB\VID_0502PID_3202MI_03 I tried your

[android-developers] Re: Acer Liquid on Ubuntu

2009-12-12 Thread Mikael
Thanks but I tried to follow these indications too but still nothing recognized... Mikael On Dec 11, 8:16 pm, Andrei gml...@gmail.com wrote: look at the bottom ofhttp://developer.android.com/guide/developing/device.html On Dec 11, 11:12 am, Mikael mikael.rous...@gmail.com wrote: Hi,

[android-developers] Is there any way to call start Main Activity from a Java program

2009-12-12 Thread Le Tuan Anh
As the title mentioned. I have a normal Java application, normally, we start an Android application from a Main Activity, now I must start it from my application. Is there any way to archive it ? Many thanks Regards -- You received this message because you are subscribed to the Google Groups

[android-developers] Reg: Animation at same time in a service and an activity causes flicker

2009-12-12 Thread sathya subbiah
Hi, I am having a service class and a activty. If I try to animation in both class at the same time, the animation is not proper. It flickers. Can any one let me know if two animations cannot be done on the display at the same time. Will it affect the performance?. Thanks Regards, Sathya --

[android-developers] Re: JDBC Driver for SQLiteDatabase

2009-12-12 Thread Joerg Pleumann
Hi Kris, yes, this is the general bugtracker for the Android open-source project. Please use it. I think it is adequate also for documentation issues or feature requests. I don't know about your specific issue, but the issues are being looked at by the Android team (mostly Google guys) and worked

[android-developers] Error in developing videoplayer

2009-12-12 Thread abi
hi, i'm running the videoplayer code using videoview concept. in emulator it showsthis video cannot be played i have tried all the input types mp4,wav,3GP,... please any one help on this. -- You received this message because you are subscribed to the

[android-developers] Re: Contacts FAQ?

2009-12-12 Thread ydario
Hi Brian, unfortunately I don't have a 2.0 phone, and the emulator does not have working authenticators. -- ...I try to add a contact programatically using the ContactsContract API.  What happens?  This I'm not completely clear on.  If you use the RAW_CONTACTS uris, I suppose you [must?]

[android-developers] How to get the GIVEN_NAME and FAMILY_NAME via android 2.0 contacts api

2009-12-12 Thread Paranoia
att -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] glTexImage2D gives gLError 1281 on real phone but not on emulator

2009-12-12 Thread Eong
I used a ndk library to decode the frames and update the ShortBuffer with RGB565 format. I allocate the buffer in the activity like below. ShortBuffer m_byteCanvas = ShortBuffer.allocate(m_width * m_height); ... And I use GLSurfaceView and set the renderer for it. mGLSurfaceView = new

[android-developers] Re: Adding ListView items dynamically - Force Close

2009-12-12 Thread Abhi
12-12 12:25:13.412: INFO/ActivityManager(589): Starting activity: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] flg=0x1020 cmp=com.sample.headerlist/.headerlist } 12-12 12:25:13.530: INFO/ActivityManager(589): Start proc com.sample.headerlist for activity

[android-developers] Cannot build Android source in Ubuntu

2009-12-12 Thread Seraieis
Hi all, I've been trying for days to build the android source in Ubuntu. I followed all the steps outlined in http://source.android.com/ download, but the actual make of the source fails. I captured the terminal output and saved it to Google Docs in the hopes that someone a lot smarter than me

[android-developers] Re: } catch (OutOfMemoryError E) {

2009-12-12 Thread Derek
I think I'm a little confused about how bitmap scaling is working with Android 2.0. We have an activity with a ListView which displays a small image (let's say 65x90sp) in each list item. The image source is just an image from the camera but we have specified that 65x90sp size for the ImageView

[android-developers] Setting for Use incoming call volume for notifications

2009-12-12 Thread Open
Hi All- Does anyone know where the value for Use incoming call volume for notifications is stored? This is a checkbox found in the Ringer Volume settings that allows you to set a separate notification volume and incoming call volume. I would like to programatically toggle the value, but I can't

[android-developers] Re: alarm not firing up !

2009-12-12 Thread Jags
Ok ! Now that I am able to fire up the alarm, how can I fire up the alarm with a little more context ? Like for example, I want to have my alarm give me a record id when it wakes me up ! How can I acheive that in a broadcast receiver ? regards Jagat On Dec 9, 7:14 pm, Jags jag...@gmail.com

[android-developers] Re: Adding ListView items dynamically - Force Close

2009-12-12 Thread Abhi
Is there no one who could help me? On Dec 12, 12:57 pm, Abhi abhishek.r.sha...@gmail.com wrote: 12-12 12:25:13.412: INFO/ActivityManager(589): Starting activity: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] flg=0x1020

[android-developers] Re: JDBC Driver for SQLiteDatabase

2009-12-12 Thread jotobjects
On Dec 8, 10:41 pm, Joerg Pleumann joerg.pleum...@gmail.com wrote: Regarding android.jar, I never checked but I could imagine that it contains only the public API classes and might even have the actual bytecode erased. Nothing is ever run against it. It is just there to make Javac or Eclipse

[android-developers] Re: Is there any way to call start Main Activity from a Java program

2009-12-12 Thread jotobjects
How are you going to run a JVM that could start an Activity without installing an Android application? On Dec 12, 5:00 am, Le Tuan Anh anhlt1...@gmail.com wrote: As the title mentioned. I have a normal Java application, normally, we start an Android application from a Main Activity, now I must

[android-developers] androidplayground.net

2009-12-12 Thread iPaul Pro
I found my software being illegally distributed on this website. I thought some of you would like to know about it. They are charging 9.99 for unlimited access to over 300 apps, illegally. http://www.androidplayground.net I will report back with the results of my attempt to have the site remove

[android-developers] Re: Adding ListView items dynamically - Force Close

2009-12-12 Thread Abhi
Stupid man plain Stupid. :) It was the adapter. On Dec 12, 3:40 pm, Abhi abhishek.r.sha...@gmail.com wrote: Is there no one who could help me? On Dec 12, 12:57 pm, Abhi abhishek.r.sha...@gmail.com wrote: 12-12 12:25:13.412: INFO/ActivityManager(589): Starting activity: Intent {

[android-developers] Re: Button Bar

2009-12-12 Thread Wouter
There is a topic already about this http://groups.google.com/group/android-developers/browse_thread/thread/96d617a9e11cedfc?hl=en and there must be some kind of view for this. It is used in the Google Maps application.. On Dec 10, 3:28 am, Julian Chu walking...@0xlab.org wrote: Hi, A Button

[android-developers] Android Market Ranking Error

2009-12-12 Thread polyclefsoftware
Anyone else noticing problems with the rankings in the Android Market today? For the GamesCardsCasino category, the top three apps for the past couple of weeks have consistently been the solitaire megapack, the dominoes app, and Ahoy Matey. Viewing the market from my Droid all day, those apps are

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-12-12 Thread polyclefsoftware
Just tested on my Droid. That does indeed work. Thanks! On Dec 11, 9:25 pm, Micah mi...@zoltu.net wrote: The application only needs permission to ask authenticators for access to anaccount, but when they install they don't have to say which accounts the app will access. Just because an app

[android-developers] Re: androidplayground.net

2009-12-12 Thread iPaul Pro
Website responded immediately, vowing to remove the app by the end of the night. On Dec 12, 5:28 pm, iPaul Pro mr.paulbu...@gmail.com wrote: I found my software being illegally distributed on this website. I thought some of you would like to know about it. They are charging 9.99 for unlimited

[android-developers] Re: androidplayground.net

2009-12-12 Thread Andrei
I would advise to everybody to create Google alert for paid app You'll get updates daily put your app name apk MyAppName apk On Dec 12, 6:26 pm, iPaul Pro mr.paulbu...@gmail.com wrote: Website responded immediately, vowing to remove the app by the end of the night. On Dec 12, 5:28 pm, iPaul

[android-developers] Re: Android Market Ranking Error

2009-12-12 Thread Maps.Huge.Info (Maps API Guru)
The News Weather category, something I watch closely, is nominal today, everything where it should be. Could it be the dev unpublished those apps for some reason? -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Acer Liquid on Ubuntu

2009-12-12 Thread Andrei
does lsusb show your device? On Dec 12, 7:23 am, Mikael mikael.rous...@gmail.com wrote: Thanks but I tried to follow these indications too but still nothing recognized... Mikael On Dec 11, 8:16 pm, Andrei gml...@gmail.com wrote: look at the bottom

[android-developers] Re: androidplayground.net

2009-12-12 Thread iPaul Pro
@Andrel - Thats exactly how I found out about this. On Dec 12, 6:57 pm, Andrei gml...@gmail.com wrote: I would advise to everybody to create Google alert for paid app You'll get updates daily put your app name apk MyAppName apk On Dec 12, 6:26 pm, iPaul Pro mr.paulbu...@gmail.com wrote:

[android-developers] Re: Android Market Ranking Error

2009-12-12 Thread polyclefsoftware
No, the apps weren't unpublished...I'm the author of Dominoes. It appears to be back to normal now, though I think what they were showing were old rankings for the better part of the last 24 hours. I'm sure the devs of those apps appreciated the bump. On Dec 12, 5:57 pm, Maps.Huge.Info (Maps API

[android-developers] Re: Cannot build Android source in Ubuntu

2009-12-12 Thread Jack Palevich
I don't recognize the ARGH!!! error messages. I wonder if you're using an incompatible version of Java. Android needs version java-1.5.0-sun. You don't mention which version of Ubuntu you're using. If it's the latest version, then that may be the source of your problems. Android won't build on

[android-developers] Re: glTexImage2D gives gLError 1281 on real phone but not on emulator

2009-12-12 Thread Jack Palevich
My guess is that your problem is that you are trying to create a non- power-of-two sized texture, which is not supported on the G1. Try using 512 x 512 as your texture dimensions. You can continue to use 480 x 320 for glDrawTexOES. Here's how you can debug problems like this by yourself in the

[android-developers] Failed to reopen debug port for Selected Client to XXXX

2009-12-12 Thread Urizev
Hi, I am having lots of troubles in Eclipse ADT DDMS. When I start Eclipse IDE and some android project is open, console tab begins to show the following lines: [2009-12-13 03:03:07 - ddms]Failed to reopen debug port for Selected Client to: 8700 [2009-12-13 03:03:07 - ddms]Invalid argument

[android-developers] Getting magnetic field results as degrees

2009-12-12 Thread Jeffrey
I'm working on an application that will randomly point an arrow in a direction, and have that arrow maintain it's direction if the device is moved. All I want to do it get the magnetic field readings as degrees and I can do it from there. The problem I'm having is getting the magnetic field

[android-developers] Re: Using custom defaults for PreferenceScreen

2009-12-12 Thread Beth
One pattern for using XML preferences is to run addPreferencesFromResource once and only once, the first time your app is executed. You probably know that preferences can be saved and persist from one run of the application to the next. Use a boolean preference to determine if it is the first

[android-developers] Re: Getting magnetic field results as degrees

2009-12-12 Thread Jeffrey
Okay, so I got a little further, I'm now stuck at the point where I can pull values, but they are the micro-tesla measurements. How do I get degrees from this? On Dec 12, 8:13 pm, Jeffrey jeffisagen...@gmail.com wrote: I'm working on an application that will randomly point an arrow in a

[android-developers] Re: glTexImage2D gives gLError 1281 on real phone but not on emulator

2009-12-12 Thread Eong
Thanks! You are right, the GL_INVALID_VALUE error is caused by the dimensions. Now the glTexImage2D seems to be okay. But it only gives me a white screen on my phone.(It works on the emulator) Any idea? On 12月13日, 上午9时57分, Jack Palevich jack.palev...@gmail.com wrote: My guess is that your

[android-developers] Re: glTexImage2D gives gLError 1281 on real phone but not on emulator

2009-12-12 Thread Eong
I get it. I forget this lines. gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); Thanks again. It works fine now. It only takes 15-20ms to draw one frame. lol. On 12月13日,

[android-developers] Re: Where can I catch a point that is assured to be called when a Service is destroied

2009-12-12 Thread zhiyazw
Up. Anybody can help on this? On 12月11日, 上午11时27分, zhiyazw zhiy...@gmail.com wrote: Thank you, Mark. I read your linked topic, But AlarmManager is not suitable to me. My service is not started periodically, it started by broadcast, Actually by android.intent.action.PHONE_STATE. On each

[android-developers] Scaling Transparent Graphics in 2.0.1

2009-12-12 Thread Sheado
Help! I have some transparent graphics in my game. Up through 2.0.0 they have looked fined. Since Android 2.0.1 though, some parts of the fully transparent regions of the graphics are instead slightly opaque (e.g. a circular gradient that goes to 100% transparency will have a faint halo around

Re: [android-developers] Re: Debugging on Acer Liquid

2009-12-12 Thread Keiji Ariyama
Hi, I have succeeded. ; Acer Liquid %SingleBootLoaderInterface% = USB_Install, USB\VID_0502PID_3201 %SingleBootLoaderInterface% = USB_Install, USB\VID_0502PID_3202MI_00 %SingleAdbInterface% = USB_Install, USB\VID_0502PID_3202MI_01 %CompositeAdbInterface% = USB_Install,

[android-developers] Re: Scaling Transparent Graphics in 2.0.1

2009-12-12 Thread Sheado
I found an answer to my question, woot! Here it is: http://groups.google.com/group/android-developers/browse_thread/thread/2f3507f57f910201/58baa85ba435c26f?lnk=gstq=transparent+png#58baa85ba435c26f And to summarize: If your transparent graphics look crappy (they have faded halos around them or