[android-developers] Re: Android 1.6 SDK is here!

2009-10-04 Thread fengcunhan
Anyone who can give me a android 1.6?That's sound strange,but it's ture.In my country I can not visit the developer page! 2009-10-04 fengcunhan 发件人: JoaJP 发送时间: 2009-10-04 13:18:30 收件人: Android Developers 抄送: 主题: [android-developers] Re: Android 1.6 SDK is here! Uhm, thank you, I

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-10-04 Thread Tom
Application Name: MobileMatchMe Website: http://www.mobilematch.me Description: MobileMatchMe is a mobile dating service that allows people to see and interact with each other in real-time using their mobile devices. We hope that the application will help people meet that may not have otherwise b

[android-developers] Query about speech recognition

2009-10-04 Thread srihari m
hi all.. im working with android for a while...im particularly interested in the speech recognition feature that is included in the latest release of android(1.5)...tried some programs with the recogniser intent interface..but that didnt work out well...the android developer site had very little t

[android-developers] Strange behavior

2009-10-04 Thread shahzad ahmad
Hi, I've developed an application which has a service and boot completed receiver. The boot completed receiver schedules the service to be executed after every 7 minutes. The boot completed receiver saves its context in a public static variable which is then accessed by service whenever it is

[android-developers] Re: updating UI from runnable

2009-10-04 Thread vorcigernix
Well, this is it gets interesting. This part of code is almost completely from list14.java from sdk, and it is working. I am disconnecting connection to server to simulate network error, which should appear in textview (to let my user know that last update try was at time, but unsuccessful). I am

[android-developers] Re: Strange behavior

2009-10-04 Thread shahzad ahmad
When the android marketplace was opened on android phone following line was being till i closed android market place W/SurfaceFlinger( 57): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later... What does this line means ? does this line occur because MyService

[android-developers] System Setting ties notification volume to ringer volume

2009-10-04 Thread Beth Mezias
Hi all, Do you know a way to programmatically change the default system setting that ties the ringer volume to the notification volume? In system settings I can see a constant called MODE_RINGER_STREAMS_AFFECTED. Is there a way that I can change this setting? I want to let the phone ring while

[android-developers] IP camera

2009-10-04 Thread Rana
I want know about IP camera in Android. Please mention details if known to you.. --~--~-~--~~~---~--~~ 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@googl

[android-developers] how to expand screen number?

2009-10-04 Thread henryhuang
By default, there are only 3 screens for google g1. but i know some applications can expand them to 5 - 7 screens. how to do it? thanks a lot. - Henry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: Capture large image

2009-10-04 Thread Rana
I am also in this problem. If any solution please help On Oct 4, 5:48 am, midtoad wrote: > stand further back from your subject. > > s > > On Oct 1, 7:37 am, Isuru Samaraweera wrote: > > > > > Hi All, > >   I want to capture much largerimagethan the current smallimagecaptured > > by the android

[android-developers] error creating avd with --force

2009-10-04 Thread Cyryl Płotnicki-Chudyk
PS C:\Users\cyryl\workspace> android create avd --name test --target 2 Android 1.6 is a basic Android platform. Do you wish to create a custom hardware profile [no] Error: Folder C:\Users\cyryl\.android\avd\test.avd is in the way. Use --force if you want to overwrite. PS C:\Users\cyryl\workspace

[android-developers] Re: Strange behavior

2009-10-04 Thread shahzad ahmad
Following are some more findings When application is running fine following message doesn't appear when service is scheduled /ActivityManager( 57): Start proc MyService.Test for service MyService.Test/.MyService: pid=426 uid=10023 gids={3003} rather a message from very first line Service is pr

[android-developers] is there somewhere the code of application Maps on Android 4 API ??

2009-10-04 Thread MarcoCanali
is there somewhere the code of application Maps on Android 4 API ?? --~--~-~--~~~---~--~~ 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 T

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-04 Thread RichardC
You could try glGetIntegerv(GL_MAX_ELEMENTS_VERTICES, &value); Have not tried this myself but found it in http://gpwiki.org/forums/viewtopic.php?t=8839 On Oct 4, 7:36 am, Jeremy Slade wrote: > I did wonder about the OpenGL command buffer limit -- any way to > verify for sure that I am hitting

[android-developers] allowTaskReparenting=true. Will there be a single instance of the activity ?

2009-10-04 Thread Amitkeerti
hi, Before asking my doubt, let me clarify my understanding of allowTaskReparenting... Suppose there exists a Task (say Task 1) and this task has an activity (say Activity 1) which wants to call my Activity (say Activity 2). Let my activity (activity 2) set the attribute allowTaskReparenting to

[android-developers] Re: is there somewhere the code of application Maps on Android 4 API ??

2009-10-04 Thread Mark Murphy
> is there somewhere the code of application Maps on Android 4 API ?? If you are looking for the source code to Google Maps, that application is not open source. If you are looking for the API to the Google Add-ons for Android 1.6 that is here: http://code.google.com/android/add-ons/google-apis

[android-developers] Question about the appwidget update period

2009-10-04 Thread Ivy
I need to provider an access for the user to customize the update period. But the appwidgetpoviderinfo just can be defined in XML. How to implement this? Thx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: how to expand screen number?

2009-10-04 Thread Mark Murphy
> By default, there are only 3 screens for google g1. but i know some > applications can expand them to 5 - 7 screens. > > how to do it? thanks a lot. Those are custom home applications. They are not "expanding" the number of "screens" of the built-in Home application -- they are replacing the bu

[android-developers] Re: updating UI from runnable

2009-10-04 Thread Mark Murphy
> I am getting error at > > stext.setText(sdf.format(cal.getTime()).toString()+ " chyba"); > > where it ends on null pointer exception. I tried to add: > > setContentView(R.layout.main); > > which required to add a listview named android:list. Now...it works > same way as before, it ends on same n

[android-developers] Re: Question about the appwidget update period

2009-10-04 Thread Mark Murphy
> I need to provider an access for the user to customize the update > period. > But the appwidgetpoviderinfo just can be defined in XML. > How to implement this? Step #1: Set updatePeriodMillis to be 0 Step #2: Use AlarmManager (and perhaps PowerManager.WakeLock) to set up your own alarm to invo

[android-developers] Re: Overlaying graphics on a camera preview?

2009-10-04 Thread Mark Murphy
> 1) draw graphics over a camera preview when it is the whole view for > the activity? > > 2)do the same thing with a camera preview in a layout shared with > other (small) views? Step #1: Put the camera preview's SurfaceView in a RelativeLayout. Step #2: Put the other widgets in the same Relati

[android-developers] Re: Android Market 1.6

2009-10-04 Thread Wenwei Cai
I do not really understand the sorting criteria in "Just In" list of Android Market. I saw some apps floats to the top of this category, but obviously they are not "just in" apps. Best regards, -stanley On Wed, Sep 16, 2009 at 2:07 AM, Robert Green wrote: > > 2 Things that could seriously benef

[android-developers] How does Android compute yaw,pitch,roll???

2009-10-04 Thread DD
Hi, It seems that for onSensorChanged(), the orientation readings (yaw,pitch,roll) are not detected directly, but computed from the acceleration readings. Does anybody know how they do this calculation? is it by rotationmatrix..? May I know exactly the calculation process? Thanks! --~--~

[android-developers] Inconsistency on the definition of the sign of X acceleration?

2009-10-04 Thread DD
Hi, I'm just wondering...on Android Web, I could find two completely opposite ways of defining which direction the positive X acceleration is. http://developer.android.com/reference/android/hardware/SensorEvent.html At the bottom, it says "When the device lies flat on a table and is pushed on it

[android-developers] Re: Capture large image

2009-10-04 Thread Carmen Delessio
I am able to do this using the solution I provided. Use the IMAGE_CAPTURE intent and add extra info to save the result to a file. See info on intents and startActivityForResult in the documentation. Intent i = new Intent("android.media.action.IMAGE_CAPTURE"); File photo=new Fil

[android-developers] starting an activity from an app widget...

2009-10-04 Thread sdphil
if I start an activity which is already up from within my application, I get: MyActivity.onRestart() MyActivity.onStart() MyActivity.onResume() If I start the activity from within my application widget, I get: MyActivity.onCreate() MyActivity.onStart() MyActivity.onResum

[android-developers] Re: IP camera

2009-10-04 Thread Miguel Paraz
On Oct 4, 4:41 pm, Rana wrote: > I want know about IP camera in Android. Please mention details if > known to you.. You want to use Android phones as an IP camera, or use Android for an IP camera OS? I think it's not possible since the recorder only saves to files. Or to view IP cameras? Yes it

[android-developers] Reading sensor values directly without having to use/wait for onSensorChanged

2009-10-04 Thread bmcc
Gentlemen, Up until now I have been using SensorEventListener.onSensorChanged (SensorEvent evt) to obtain data values from the on board sensors (G1) whenever a sensor event occurs (snippet below). However, what I really want to be able to do is read the values of all the sensors (i.e. Sensor.TYPE

[android-developers] Re: Capture large image

2009-10-04 Thread Isuru Samaraweera
1.5sdk or 1.6sdk? On Sun, Oct 4, 2009 at 7:16 PM, Carmen Delessio wrote: > I am able to do this using the solution I provided. > Use the IMAGE_CAPTURE intent and add extra info to save the result to a > file. > See info on intents and startActivityForResult in the documentation. > > Intent i

[android-developers] Re: Capture large image

2009-10-04 Thread Carmen Delessio
I am doing this in 1.5. On Sun, Oct 4, 2009 at 10:43 AM, Isuru Samaraweera wrote: > 1.5sdk or 1.6sdk? > > > On Sun, Oct 4, 2009 at 7:16 PM, Carmen Delessio > wrote: > >> I am able to do this using the solution I provided. >> Use the IMAGE_CAPTURE intent and add extra info to save the result to a

[android-developers] Re: Installing USB Driver for G1

2009-10-04 Thread Jason B.
I had this problem with both XP and Vista. I can't remember the exact label but here is what I did to eventually solve it: 1) Install the Android SDK (the \android-sdk-windows-1.5_r3\usb_driver \x86 folder has usb drivers) 2) Connected my G1 via any USB cable (used a couple different ones, didn'

[android-developers] Re: Reading sensor values directly without having to use/wait for onSensorChanged

2009-10-04 Thread Mark Murphy
> Up until now I have been using SensorEventListener.onSensorChanged > (SensorEvent evt) to obtain data values from the on board sensors (G1) > whenever a sensor event occurs (snippet below). However, what I really > want to be able to do is read the values of all the sensors (i.e. > Sensor.TYPE_O

[android-developers] Re: Reading sensor values directly without having to use/wait for onSensorChanged

2009-10-04 Thread bmcc
Thanks for the swift reply Mark. Hmmm that's a shame, i suppose I could listen for a sensorChanged event on the accelerometer, then for each other sensor in turn - and log the time delay between each event. Unsatisfactory as I'd really like to get the data every nth of a second to do some signal

[android-developers] Re: updating UI from runnable

2009-10-04 Thread vorcigernix
Thanks, now it is working :) On Oct 4, 2:27 pm, "Mark Murphy" wrote: > > I am getting error at > > > stext.setText(sdf.format(cal.getTime()).toString()+ " chyba"); > > > where it ends on null pointer exception. I tried to add: > > > setContentView(R.layout.main); > > > which required to add a li

[android-developers] Layout - Weight not working

2009-10-04 Thread Siju
Hi All, LinearLayout obeys weight and as per documentation weight gives priority to an object. Here is the layout I have: Here you can see that the first textview has a weight of 2, second has a weight of 0, but still the second text view takes up all the space. If I give the first edit view a w

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Mark Murphy
> LinearLayout obeys weight and as per documentation weight gives > priority to an object. Here is the layout I have: > > Here you can see that the first textview has a weight of 2, second has > a weight of 0, but still the second text view takes up all the space. > If I give the first edit view a

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Siju Mathew
Hi Mark, Thanks for your reply. Layout is not dependant on the weight, it is a weird combination of the text size and the weight. If I give a bigger text, the weight parameter does not have any use. Sorry for my words, I find it Stupid. But I am very weak in Layouts, I never could understand why

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Mark Murphy
> Layout is not dependant on the weight, it is a weird combination of > the text size and the weight. You are telling Android that you want to have each TextView take up as much space as its text requires (android:layout_width="wrap_content") and if that does not exactly fit the width, use the we

[android-developers] Re: Query about speech recognition

2009-10-04 Thread Lance Nanek
The docs mention a required extra that must be added to that intent called RecognizerIntent.EXTRA_LANGUAGE_MODEL: http://developer.android.com/intl/fr/reference/android/speech/RecognizerIntent.html#ACTION_RECOGNIZE_SPEECH So one thing to check is to make sure you are calling putExtra on the inten

[android-developers] Re: Installing USB Driver for G1

2009-10-04 Thread Thomas (geomancer)
I too am having the same problem except Win XP is too helpful and reinstalls the same driver every time I plug the Android in. "HTC Android Phone USB Device" under disk drives will not go away. I don't know how to have "plug and play" and not have "plug and play" at the same time. Regards, Tom Bi

[android-developers] Re: Android Market 1.6

2009-10-04 Thread Jason Van Anden
Of course the other problem is that there are clearly devs gaming the system. In entertainment this is particularly a bummer. I wish I could switch categories BubbleBeats is surrounded by sexy girls and 'soundboards' ... both of which contain collections of content that seems to violate cop

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Siju Mathew
Hi Mark, I understand that I am doing something wrong. All I want is to make the first textview take as much space as needed without wrapping and the second text view to wrap and display. I am not able to do this simple thing with Linear Layout. I tried giving 0px for both adn tried different c

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Mark Murphy
> All I want is to make the first textview take as much space as needed > without wrapping and the second text view to wrap and display. I am > not able to do this simple thing with Linear Layout. Use android:layout_width="wrap_content" and no weight for the first TextView. Use android:layout_wid

[android-developers] Re: MTJ error

2009-10-04 Thread pro
Thanks Xav! I don't know the role it plays. Thanks for confirmation. Now I need to hunt ( I'm noob ) to disable this from the eclipse workspace. Any pointer? -thx pro On Oct 3, 12:27 pm, Xavier Ducrohet wrote: > "Invalid MTJ Project." > Why are you using MTJ to develop for android in the firs

[android-developers] Re: MTJ error

2009-10-04 Thread pro
BTW, I tried to look at the configuration management of eclipse... As it happen I tried to install quite a few plug-ins... For example: CDT, PHP, Mylin, CVS, Pulser, UML etc... Now I see there is a bunch of dependencies on MTJ. Without going through a vast enumerations, I'm still looking for

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and "back button". How to restore progress dialog?

2009-10-04 Thread Kacper86
@Gulfam: Hi! You don't have to anything else, just use this snippet as is was written by manoj :) On Oct 2, 8:57 am, Gulfam wrote: > Hi, > Kasper86 i am facing problem same as you. i am showning progress > dialog  but when i have changed my handset position from portrait to > landscape or lands

[android-developers] Re: Inconsistency on the definition of the sign of X acceleration?

2009-10-04 Thread Dianne Hackborn
In the doc for the second one: "This interface is deprecated, use SensorEventListener instead." On Sun, Oct 4, 2009 at 6:24 AM, DD wrote: > > Hi, > > I'm just wondering...on Android Web, I could find two completel

[android-developers] Re: using SKIA canvas in native code, SimpleJNI hack.

2009-10-04 Thread Dianne Hackborn
You are using private APIs, which are not supported across platform releases or devices. Expect any app doing this to break arbitrary at some platform update or on some device(s). On Sat, Oct 3, 2009 at 10:37 PM, siva wrote: > > I set out to use SkCanvas and other native SKIA classes but I coul

[android-developers] Ringer setup

2009-10-04 Thread Bala
Kids, while they are at school, wish to have the phone in silent mode. All other time, would like to have the ringer on. Is it possible to program the ringer mode with days and time? Is it a challenge to Android or the device manufacturers or for Google? Anyway, my kids will be the first users, if

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-04 Thread Cédric Berger
On Fri, Oct 2, 2009 at 19:15, Georgios Galyfos wrote: > I am sorry for asking this. I assume the developers taking part in the > challenge are allowed to judge in the contest, but this way they would be > allowed to judge even their own app, right? I havent used the judging app > yet, being afrai

[android-developers] Re: Ringer setup

2009-10-04 Thread Mark Murphy
> Kids, while they are at school, wish to have the phone in silent mode. > All other time, would like to have the ringer on. Is it possible to > program the ringer mode with days and time? You can change the stream volume of the ringer stream programmatically via AudioManager. > Is it a challeng

[android-developers] Listen from google labs

2009-10-04 Thread Andrei
When I do adb logcat I see debug messages from Google Labs Listen app I thought they recommend we remove debug logs for release. They also print my email in log, which might be security problem? --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-developers] Re: Listen from google labs

2009-10-04 Thread Dianne Hackborn
You should probably send e-mail to the developer through the address shown in the market app. For the most part, Google's Android applications that appear on Market are written just like other third party applications, and are best dealt with that way. On Sun, Oct 4, 2009 at 3:36 PM, Andrei wrot

[android-developers] Re: Reading sensor values directly without having to use/wait for onSensorChanged

2009-10-04 Thread Dianne Hackborn
I am sure they are just returning the most recently received values. Note that the sensors can very well be different hardware parts, that generate updates on different schedules. For example the accelerometer and compass are very different types of hardware, and it would be a mistake to think th

[android-developers] Re: Ringer setup

2009-10-04 Thread Lance Nanek
On Oct 4, 4:17 pm, Bala wrote: > Kids, while they are at school, wish to have the phone in silent mode. > All other time, would like to have the ringer on. There's a nice free app for that called Locale. It supports controlling settings like that for time as well as location. You can read about

[android-developers] Mounted SD Card Access

2009-10-04 Thread Dave Smith
Can an Activity still have read/write access to an SD card after it has been mounted to USB storage (connecting USB and selecting Mount from the resulting notification screen). In other words, does mounting the SD card lock out system access until USB is disconnected. I need to create a live cha

[android-developers] Re: Mounted SD Card Access

2009-10-04 Thread Dianne Hackborn
No, the SD card is not accessible on the device when it is mounted on the computer. (It is a FAT filesystem, and only one thing can own it at a time: the on-device filesystem, or the computer.) On Sun, Oct 4, 2009 at 4:06 PM, Dave Smith wrote: > > Can an Activity still have read/write access to

[android-developers] Re: Midi Controller App?

2009-10-04 Thread Lance Nanek
Neat idea! Looks tough to get working for now, however. Android doesn't support USB Host capabilities, so you can't just plug a USB to MIDI device into the phone and connect to MIDI stuff. I guess the program could send commands to a separate computer via wireless, and that separate computer coul

[android-developers] Re: OpenGL ES flickering problems - double buffered?

2009-10-04 Thread Robert Green
The G1 reports 65536 for that parameter. On Oct 4, 7:06 am, RichardC wrote: > You could try > > glGetIntegerv(GL_MAX_ELEMENTS_VERTICES, &value); > > Have not tried this myself but found it in > > http://gpwiki.org/forums/viewtopic.php?t=8839 > > On Oct 4, 7:36 am, Jeremy Slade wrote: > > > I di

[android-developers] ContentResolver.query() returning null Cursor

2009-10-04 Thread Hamy
Hi all, Wanted to try and help some people out here. It took a while to figure this out, so hope it helps ;). So, if you are calling ContentResolver.query() and getting back a null Cursor, then you might want to ensure that you are actually passing in a valid URI. Only URI's with the content://

[android-developers] Re: Ringer setup

2009-10-04 Thread Bala
"Locale" is perfect and great solution. It works. Thanks a lot. Bala On Oct 4, 3:53 pm, Lance Nanek wrote: > On Oct 4, 4:17 pm, Bala wrote: > > > Kids, while they are at school, wish to have the phone in silent mode. > > All other time, would like to have the ringer on. > > There's a nice free

[android-developers] Re: How does Android compute yaw,pitch,roll???

2009-10-04 Thread Rud
See my blog for code to do the processing: http://mysticlakesoftware.blogspot.com/ Rud On Oct 4, 7:57 am, DD wrote: > Hi, > > It seems that for onSensorChanged(), the orientation readings > (yaw,pitch,roll) are not detected directly, but computed from the > acceleration readings. Does anybody

[android-developers] How to create a shaped Button?

2009-10-04 Thread Cheng Zhong
Hi , Does any one know how can I create a button of any shape? I don't mean to use ImageButton and set it's background drawable or image drawable. In this case, ImageButton are in fact rectangle buttons. Any touches within its bounds will cause OnClick event. If you put some buttons together to

[android-developers] [help!]UTF-8 encoding problem

2009-10-04 Thread Kangping
hi all, i am working on an application supporting Chinese and have been puzzled by a encoding error.i really really hope someone here could help me out of this sucking problem...:( i take a Chinese string from an EditText and append it to a URL which goes like "?Owner=XXX". i am trying to send thi

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
Thanks. scrollTo() solved it for me. On 2 oct, 23:35, Romain Guy wrote: > mScrollX is not part of the public API. Use getScrollX() and > scrollBy()/scrollTo() to change it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
> mScrollX is a protected member of View, so should be accessible to any > subclass. It should be but eclipse is flagging it. I presume one of Android's eclipse Builders are flagging it. Regards, G --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] J2SE Java Application porting to Android

2009-10-04 Thread Jason
Hello. I'm trying to run J2SE JAVA Application on Android. As you know, the main problem is that J2SE classes such as awt, applet, and etc are not supported in Android. Consequently, this means that I should replace those many java classes with Android classes. So, Do you have some idea or info

[android-developers] Is it possible to dynamically add standard buttons to a gridview

2009-10-04 Thread andy parry
Hi. I have a gridview which is setup using an arrayadapter and currently a text view, so I get a grid of text (names). I know how to create a grid using images, but it it possible to create a grid using an arrayadapter and the standard android buttons, so that the 'names' from the textview becom

[android-developers] geo fix command yields incorrect values!???

2009-10-04 Thread Auguste Lunang
Hi all, Using telnet and geo fix to track GPS updates, i noticed that the logCat is reporting different values from what i entered. For example , with geo fix -122.084095 37.422006, log report gives -122.0853666782 and 37.42283421665 taken from getLongitude() / getLatitude() . the final

[android-developers] about AudioTrack

2009-10-04 Thread coolbanana
Hallo, i am working with sdk 1,5 for api about mp3-audiostreaming on G1 the problem that i have for the work currently are: 1: how can i keep the buffer for AudioTrack be filled? use the combination from OnPlaybackPositionUpdateListener, Play() and Write()? 2: is it possible, the mp3 stream

[android-developers] geo fix command yields incorrect values!???

2009-10-04 Thread Auguste Lunang
Hi all, Using telnet and geo fix to track GPS updates, i noticed that the logCat is reporting different values from what i entered. For example , with geo fix -122.084095 37.422006, log report gives -122.0853666782 and 37.42283421665 taken from getLongitude() / getLatitude() . the final

[android-developers] Touch HD

2009-10-04 Thread eweq-t...@live.com
Hey guys, I read this article here http://androidcommunity.com/android-coming-to-the-htc-touch-hd-20081007/ which states that Android is being ported to the Blackstone.Is that true?I talked to the guy from xda-developers who was supposed to port Android for the Touch HD but it seems he got a new

[android-developers] EMMA code coverage

2009-10-04 Thread Cristian Zamfir
Hi, I read various lists and blogs regarding setting up EMMA to obtain code coverage. I am TA-ing a software engineering class and it would great to have the students measure code coverage. Unfortunately, it seems EMMA is still in early development and there are still a few problems setting it u

[android-developers] Problem about drawing the item view by myself

2009-10-04 Thread Leo
Hello, I want to define the custom View, draw it by myself and use it in the BaseAdapter's getView() method. I have overwritted the onDraw(), but the onDraw() method isn't called and nothing displayed. I don't know why. Appreciate any advice and help. The code is as follow: public class V

[android-developers] mapview key problems

2009-10-04 Thread ian
Last week my old laptop failed, so I am re-Installing my apps on a new machine, an HP netbook with an Atom 270 chip.. Eclipse andf Android seemed to install fine until I add a mapView. For some reason, my new map API key fails to work. I tried erasing the old debug.keystore and changing the time

[android-developers] [adb ddms] i can't see my samsung galaxy on windows seven 64 bits

2009-10-04 Thread letroll
Hi all, Sorry for my bad english, I'm french! I want use my phone for debugging in eclipse, but there nothing in driver of sdk 1.6 for samsung galaxy anyone can help me? Bonjour tout le monde! J'aimerai utiliser mon samsung galaxy pour débuger mes applications dans eclipse, mais il n'y a pas

[android-developers] Pass cursor to new Activity

2009-10-04 Thread GabeRC
I'm working on an app, and one activity has a worker thread that initiates a database query, and if there are results once it has returned I would like to send these results to a new activity that will display them. Unfortunately I don't see a way to pack the Cursor object into the Intent object t

[android-developers] sdk 1.6 issues

2009-10-04 Thread Hyperjetta
Sorry if this a painfully obvious question, but I just updated my Android SDK to 1.6 and Eclipse Galileo to 0.9.3 as described on the upgrade page. Now all of my existing projects get flagged with errors. ALL of my existing projects were SDK 1.1, which I've noticed this new SDK roll out doesn't

[android-developers] How to set button background color?

2009-10-04 Thread Nicholas Key
Hi group members, I have a question about setting the background color for buttons. When I am using btn.setBackgroundColor(Color.RED), the entire button turns into a red rectangle. Is there actually a workaround to achieve this? Also what can I do to revert back to the default color of the butt

[android-developers] Re: Pass cursor to new Activity

2009-10-04 Thread Mark Murphy
> What is the best way to pass my database results into the new activity? Have the new activity do the database work in the first place. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~-

[android-developers] Re: Pass cursor to new Activity

2009-10-04 Thread Agus
Can't you do a db query again in the destined activity? On Sun, Oct 4, 2009 at 4:24 PM, GabeRC wrote: > > I'm working on an app, and one activity has a worker thread that > initiates a database query, and if there are results once it has > returned I would like to send these results to a new act

[android-developers] Re: sdk 1.6 issues

2009-10-04 Thread Xavier Ducrohet
The Android SDK packages we've released for 1.6 only contains 1.6 and 1.5 You can add support for 1.1 into your current SDK by using the SDK updater (see http://d.android.com/guide/developing/updating-sdk.html) Xav On Sun, Oct 4, 2009 at 4:38 PM, Hyperjetta wrote: > > Sorry if this a painfully

[android-developers] Re: How to set button background color?

2009-10-04 Thread Mark Murphy
> I have a question about setting the background color for buttons. > When I am using btn.setBackgroundColor(Color.RED), the entire button > turns into a red rectangle. Correct. > Is there actually a workaround to achieve this? What is "this"? > Also what can I do to revert back to the default

[android-developers] Re: mapview key problems

2009-10-04 Thread Xavier Ducrohet
Since you reinstalled a new machine, you have a new debug keystore with a different certificate which has a different MD5 fingerprint. Did you follow the instructions (http://code.google.com/android/add-ons/google-apis/mapkey.html) to get a new API key that matches your new certificate? Xav On

[android-developers] Re: How does Android compute yaw,pitch,roll???

2009-10-04 Thread DD
Thank you very much, Rud. I'm looking at your blog. One more thing I want to ask you. On your blog, you have a piece of code: private class OrientationListner implements SensorEventListener { ... Currently, I'm still using SensorListener, and I think it's already deprecated. But when I changed i

[android-developers] Re: Android 1.6 SDK is here!

2009-10-04 Thread Tom
I updated my Dev Phone to 1.6 using the firmware from HTC's web site: http://developer.htc.com/adp.html It sort of works, but it does crash with distressing frequency in "android.process.acore". You may want to hold off on upgrading from 1.5 to 1.6 unless you really need it. Does anybody know

[android-developers] Re: Android Device security ???

2009-10-04 Thread Babyboo
the "ro.secure" property can be ignore with the command "adb root". With this command, the adbd is started with root permission. When I connect to ADBD, the connection is ok, but the message reply always is "FAIL0012 device offline (x)". Is anyone know how to make the adbd running normally??? --~-

[android-developers] Re: How does Android compute yaw,pitch,roll???

2009-10-04 Thread DD
Hi Rud, I just finished reading all on your blog. For your reply to my first question, how Android computes the orientation from the acceleration. I think only one article is sort of related to my question, which is 13 July 2009 Sensor - Accelerometer & Magnetics But...er...sorry, I can't really

[android-developers] Re: sdk 1.6 issues

2009-10-04 Thread JoaJP
I've spent a good evening or so to get my code in shape for 1.5. You should find the relevant changes in the release notes, although if I remember correctly I had to work through some issues that were not included in the release documentation. BTW, release notes here: http://developer.android.com

[android-developers] Re: Layout - Weight not working

2009-10-04 Thread Raphael
I'm no layout expert but instead I'd try: - android:layout_width="fill_parent" for both - android:layout_weight=0 for the first one - android:layout_weight=1 for the second one. R/ On Sun, Oct 4, 2009 at 10:21 AM, Mark Murphy wrote: > >> All I want is to make the first textview take as much spa

[android-developers] Re: [adb ddms] i can't see my samsung galaxy on windows seven 64 bits

2009-10-04 Thread Raphael
Is this for Windows? I believe you should ask Samsung for a driver. Si c'est pour Windows, je pense que tu devrais demander un pilote a Samsung. R/ On Sun, Oct 4, 2009 at 10:51 AM, letroll wrote: > > Hi all, > > Sorry for my bad english, I'm french! > > I want use my phone for debugging  in ec

[android-developers] Re: Is it possible to override the sdcard using emulator from Eclipse (SDK 1.6, ADT 0.9.3) ?

2009-10-04 Thread Raphael
You can give extra emulator command line options in Eclipse: - specific to your in the Debug/Run Launch Configuration of a given project. - for all projects in the main preferences > android > launch. R/ On Sat, Oct 3, 2009 at 1:22 PM, davemac wrote: > > I've got an AVD setup with an SD card, b

[android-developers] Geocoder.getFromLocationName() vs bounding box?

2009-10-04 Thread Walles
Hi! I'm trying to use Geocoder.getFromLocationName() with a bounding box, but: * On 1.5 I get lots of results outside of my box. * On 1.6 I get no results at all. How should I use Geocoder.getFromLocationName() with a bounding box so that I get results inside of the box but not outside of it? H

[android-developers] Android as a Universal Remote for CE/HA?

2009-10-04 Thread Jed
Hi All, I'm wondering if there's any universal remote-ware for consumer electronics/home automation being developed in the Android ecosystem? Does anyone know of anything under way or a related Linux project that could be re-adapted for Android? If you look at the attached "rough" diagram I'm

[android-developers] GeoCoder.getFromLocationName always return null??

2009-10-04 Thread tstanly
hi all, I used GeoCoder.getFromLocationName for resoved address to GeoPoint, it will return true in the emulator,but "null" on my machine. the simple code I post bellow.. is anyboy knows about this issue? thanks! == Geocoder mGeocoder = new Geocoder

[android-developers] Re: How does Android compute yaw,pitch,roll???

2009-10-04 Thread Lance Nanek
SensorManager's getRotationMatrix() and getOrientation() methods are interesting to look at. You can see their implementation here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/hardware/SensorManager.java;h=bf945ec7bae33525decaeed3067266719b977303;hb=don

[android-developers] Update to 1.6 stops some ADC2 apps from working

2009-10-04 Thread bellapariah
I just got the 1.6 download and found out my ADC2 app is not working anymore. Works fine on 1.5 but people with 1.6 can't log in. Guess that explains the sudden drop in new accounts being created (We got around 70 testers before numbers plummeted to 5 to 6 over the weekend). :( If Google planned

[android-developers] Re: How to set button background color?

2009-10-04 Thread Nicholas Key
On Oct 4, 8:40 pm, "Mark Murphy" wrote: > > I have a question about setting thebackgroundcolorfor buttons. > > When I am using btn.setBackgroundColor(Color.RED), the entire button > > turns into a red rectangle. > > Correct. > > > Is there actually a workaround to achieve this? > > What is "t