[android-developers] Re: Varied accelerometer sample rate

2009-07-11 Thread Rud
You might try writing your data to the LogCat and then capturing it from there. Writing to a file might be introducing some of the delays your are seeing. Another option is to just write to LogCat when the time between samples exceeds a certain amount. I've seen file and other I/O impact results

[android-developers] Re: sensor event and augmented reality

2009-07-11 Thread Rud
I did some testing on the compass direction and the results are, eh, interesting. I compared the readings I was getting with the Google Sky Map and they were basically the same. Here is what I did. With both my app and SkyMap I had the phone in camera position. I positioned the phone on a piece

[android-developers] How to measuring elapsed time without currentTimeMillis?

2009-07-11 Thread Victor Lin
Hi, I want to develop a game, so I need to know elapsed time at lots places in my game. For example, to measuring FPS. I see there is some example use "System.currentTimeMillis" to measure elapsed time. But I see the warning on document: http://developer.android.com/intl/zh-TW/reference/java/lan

[android-developers] EditText number only?

2009-07-11 Thread Wah
Hi: I have an EditText field that is intended for only numbers ( digits, decimal point, +/- signs). How do I tell the software keyboard to jump to numeric mode directly? Wah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Re: ListView inside LinearLayout inside ScrollView

2009-07-11 Thread Justin Grammens
Thank you Mark! I've been looking for a better way to do section headers in Android 1.5 and no one has been able to help. I can't believe that the Android developers didn't build an easy way to do this into the API. Your SectionedDemo has been a life safer. Thanks again! On Jul 8, 4:18 pm, Michae

[android-developers] Lazy-load images into a ListView

2009-07-11 Thread Evan Charlton
Hey all, I will be surprised if this hasn't been asked before, but I've been Googling for days now and haven't found anything very helpful. My problem is this: I'm trying to lazy-load images into a ListView--almost exactly how Market does it, if you're familiar with that. It's not exactly like M

[android-developers] Re: Media AspectRatio

2009-07-11 Thread Alexey Krasnoriadtsev
Is the aspect ration is really different, or do you think youtube app just re sizes video to fit the screen? You can dynamically adjust SurfaceView layout parameters to take all you screen, maintaining aspect ration. On Jul 10, 8:26 am, glory wrote: > Hi, > > I am playing the video from the you

[android-developers] Re: sensor event and augmented reality

2009-07-11 Thread Rud
I've been looking at all of this the last couple days. I have an application that puts the three numeric values on the display. The code is below and I _think_ it is working okay. My test is to hold the phone against a wooden(!) door so I have a nearly vertical, steady surface. Say I put the bac

[android-developers] Re: "Complete Action Using" dialog

2009-07-11 Thread Dianne Hackborn
It's not actually a dialog. PackageManagerService returns the information for a special activity when resolveIntentActivity() finds multiple matching activities. So that code does the detection, and the component it returns is the one that ends up getting launched and displays the list of matchin

[android-developers] "Complete Action Using" dialog

2009-07-11 Thread n179911
Hi, Can you please tell me where in the android source code which invokes the "Complete Action Using" dialog? i.e. when I start an Intent, Android pops up a "Complete Action Using" dialog. Thank you for any help/pointer. --~--~-~--~~~---~--~~ You received this m

[android-developers] Re: Updating framework - How to include new Java classes for android.jar

2009-07-11 Thread Romain Guy
Hi, Even for your own modifications, please do not use the com.android package name. Even though this package is reserved for private APIs, your changes in this package might conflict with future changes made in Android itself (core dev team or contributions to the project.) Just use the package

[android-developers] Updating framework - How to include new Java classes for android.jar

2009-07-11 Thread clemsongrad
Folks, I updated the android framework ( java code), and I was able to compile the new java classes and test it. My issue is that i want to make some of the new java classes part of the android.jar, and i am unable to figure out the best way to add it to be build file. For example: I want to

[android-developers] Re: HTC Magic

2009-07-11 Thread Mike Wolfson
You will need to root your device, before you can flash a new ROM. So, yes, it appears your device is locked. On Jul 11, 1:58 am, Nima wrote: > Hi, > > I have followed the instructions in   > link:http://android-dls.com/wiki/index.php?title=Magic_Rooting > > but the following error is reported

[android-developers] Re: Video with MediaRecorder

2009-07-11 Thread hanged_man
Zeeshan, does (the intent solution) work on the emulator or not ? On Jul 12, 1:10 am, Zeeshan Muhammad wrote: > i am testing it on real device, i can see only the application title. my > automatic orientation is already disabled .please let me know if anybody has > tested video capture intent? >

[android-developers] Re: Modifying the UI within Java, not XML

2009-07-11 Thread Mark Murphy
Breezy wrote: > ListView, okay, that works. Now how do I make multiple TextViews and > insert them into the ListView on the fly? A cursory description of the process can be found here: http://developer.android.com/guide/topics/ui/binding.html (in their case they use a Spinner, though the techn

[android-developers] Turn off Gtalk

2009-07-11 Thread vovkab
Hello everyone Is any way to turn off gtalk (go offline) grammatically? --~--~-~--~~~---~--~~ 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.

[android-developers] Re: any help of live video streaming?

2009-07-11 Thread Mark Murphy
Zeeshan Muhammad wrote: > thanks for the quick reply, this is really usefull. > can u please guide how can i receive this stream on server side? You would have to ask them -- I have not tried their techniques. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: Modifying the UI within Java, not XML

2009-07-11 Thread Breezy
ListView, okay, that works. Now how do I make multiple TextViews and insert them into the ListView on the fly? Thanks for the fast response BTW. On Jul 11, 6:02 pm, Mark Murphy wrote: > Breezy wrote: > > Kinda like if you search for > > an app in the market.  There's no way of telling how ma

[android-developers] Re: Video with MediaRecorder

2009-07-11 Thread Zeeshan Muhammad
i am testing it on real device, i can see only the application title. my automatic orientation is already disabled .please let me know if anybody has tested video capture intent? On Sat, Jul 11, 2009 at 10:58 AM, hanged_man wrote: > > @Zeeshan > Are you getting a black screen ? if yes that's pro

[android-developers] Re: Modifying the UI within Java, not XML

2009-07-11 Thread Mark Murphy
Breezy wrote: > Kinda like if you search for > an app in the market. There's no way of telling how many results > would be returned so I figured I would have to create each textview on > the fly within the .java file. Use a ListView. I'm 90% certain that is what they do. It automatically scrolls

[android-developers] Modifying the UI within Java, not XML

2009-07-11 Thread Breezy
So I have the basics down... I can create a UI with the XML, I can show it and change the screen to another UI (another XML file) but how do I add to the UI? Hmmm, hard to explain... Say I have a header (just 2 textviews) that will remain at the top and below that is a search box and button (ma

[android-developers] Re: any help of live video streaming?

2009-07-11 Thread Zeeshan Muhammad
thanks for the quick reply, this is really usefull.can u please guide how can i receive this stream on server side? On Sat, Jul 11, 2009 at 11:40 PM, Mark Murphy wrote: > > zeeshan wrote: > > i am looking for any help in live video streaming to my server. > > anybody can direct where can i fin

[android-developers] Re: any help of live video streaming?

2009-07-11 Thread Mark Murphy
zeeshan wrote: > i am looking for any help in live video streaming to my server. > anybody can direct where can i find some help http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Fwd: tools dex

2009-07-11 Thread Mark Murphy
ssfss wrote: > Hi. Thank you for your answer. * > What's recompiling*? How can I do it? Please explain that completely > with details. Uh, I can't give too many details, as I am not familiar with the source code in question. You need to get the source code and build scripts for those JARs, downl

[android-developers] any help of live video streaming?

2009-07-11 Thread zeeshan
Hi Experts, i am looking for any help in live video streaming to my server. anybody can direct where can i find some help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: When Parsing the Soap response problem...

2009-07-11 Thread Christine
I am not familiar with KSOAP, but if that's the json response you get, you can parse it with xstream or any json parser. On Jul 11, 12:55 pm, "android.vinny" wrote: > HI > > I want to Consume the SOAP Web Services in Android > > i downloaded KSOAP2 Library > > i have done some thing like this ..

[android-developers] Re: Couldn't get connection factory client

2009-07-11 Thread Christine
I take it there's something wrong with your View: > 07-11 05:13:48.969: ERROR/ZoomButtonsController(776): Cannot make the > zoom controller visible if the owner view is not attached to a window. --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Mix tab with ImageView and TextView

2009-07-11 Thread Christian S.
How can I best mix in one activity a tab activity with an ImageView / TextView? Any thoughts would be highly appreciated. thanks, christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Christine
The alternative would be, if I understand your question correctly, to have one listadapter that takes data from various sources, depending on some variable that is set. Your app would prepare the various sources of data independently, and the getView in your listadapter determines which of the sou

[android-developers] Re: Fwd: tools dex

2009-07-11 Thread ssfss
I forgot that say I used which jar files: collection of jetty jar files version6.1.12rc2 jetty-client-6.1-20090306.224120-1 cometd-jetty-6.1-20090306.224120-1 On Sat, Jul 11, 2009 at 2:18 PM, ssfss wrote: > Hi. Thank you for your answer[?]. * > What's recompiling*? How can I do it? Please explai

[android-developers] Re: Fwd: tools dex

2009-07-11 Thread ssfss
Hi. Thank you for your answer[?]. * What's recompiling*? How can I do it? Please explain that completely with details. I don't know which jar file has problems.[?] Please help me! I'm very confused[?]I dont have any time for run this project.[?] On Fri, Jul 10, 2009 at 1:42 PM, Dan Bornstein

[android-developers] Broadcast on SIM state change

2009-07-11 Thread Zod
Hi, Am I right if I say that, there is no broadcast action currently for the SIM card state changes ? Thanks, Zod. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] Re: query regarding InputMethodManager

2009-07-11 Thread Dianne Hackborn
There isn't one; you find out what is going on with the IME by your window being resized to accommodate it. On Sat, Jul 11, 2009 at 4:35 AM, Albert Pinto wrote: > > Hi Android Developers, > > I need a function to know whether keypad is opened or not. > > Please provide me the API/function to know

[android-developers] Re: Where to find native resources?

2009-07-11 Thread Dianne Hackborn
It's not part of the SDK. (Actually I may not even be part of the platform, but built into th camera app). On Sat, Jul 11, 2009 at 7:36 AM, doubleslash wrote: > > This is where one can find a lot of the native drawables > http://developer.android.com/reference/android/R.drawable.html > I've bee

[android-developers] Re: GpsStatus

2009-07-11 Thread Mark Murphy
Maps.Huge.Info (Maps API Guru) wrote: > Answered my own question, but now I have another... > > In this code: (which works fine) > > case GpsStatus.GPS_EVENT_SATELLITE_STATUS: > GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; > Iterable iSatellites = xGpsStatus.getSatellites() ; >

[android-developers] Re: GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)
Excellent! That removed the warning. Thanks... I haven't seen any examples of this code anywhere, so for those that want to get detailed information about the status of a GPS fix, this code works. -John Coryat On Jul 11, 1:02 pm, Mark Murphy wrote: > Maps.Huge.Info (Maps API Guru) wrote: >

[android-developers] Re: GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)
Answered my own question, but now I have another... In this code: (which works fine) case GpsStatus.GPS_EVENT_SATELLITE_STATUS: GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; Iterable iSatellites = xGpsStatus.getSatellites() ; Iterator it = iSatellites.iterator() ;

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Moto
The reason for this post was to use one ListView for multiple adapters because I thought it would help decrease the level of complexity my xml layout would have, therefore starting my activity much faster. Apparently it's not such a good idea. As of now, if this matters anyways, my fatty Activity

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Mark Murphy
Moto wrote: > Currently my lists can contain max 60 items and the > elements are fairly complex, about 5 TextViews no backgrounds. > > So multiple ListViews is not good for one activity? "Good" versus "not good" is a binary statement. In reality, it is more a continuum of increasing "not good" a

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Moto
Hey Mark, Let me explain a little better the situation: I only have one ListView and I'm displaying only one list at a time. The reason that I'm doing all this work inside one activity is that it gives me better flexibility when animating. If I could animate activities in and out on top of my gr

[android-developers] Re: problem in receiving the status of call

2009-07-11 Thread Marco Nelissen
The activity you specified is not present on the device that you ran your app on. You generally shouldn't explicitly name activities like that. You should use a 'send' or 'share' intent, and the system will figure out which activities support it. On Mon, Jul 6, 2009 at 9:30 PM, Tian Yingying wro

[android-developers] Re: Speech Recognition

2009-07-11 Thread jdesbonnet
I'm unclear about the availability of the voice recognition service. I tried the above example on my Vodafone branded HTC Magic (API version 1.5) but it's "Recognizer not present". There seems to be no application in the Android Market that provides this service (unlike Text To Speech functionali

[android-developers] GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)
How can I derive the getMaxSatellites(), getSatellites() and getTimeToFirstFix() from the GpsStatus Listener? -John Coryat I've got the listener for GpsStatus working like this: LocationManager locMgr = (LocationManager)getSystemService (Context.LOCATION_SERVICE); locMgr.addGps

[android-developers] Re: Where to find native resources?

2009-07-11 Thread doubleslash
This is where one can find a lot of the native drawables http://developer.android.com/reference/android/R.drawable.html I've been informed to use in xml @android:drawable/ic_menu_camera to get the camera icon. It's not the big blue camera icon one would see in the home screen though. It'd be bette

[android-developers] Hiding Soft input like using BACK buton

2009-07-11 Thread skyman
Hello, In my app I have AutoCompleteTextView and "search" button. When user clicks "enter" or "search" an Intent is fired and new Activity is started. But in that "new" Activity SoftInput should be invisible, so I make ((InputMethodManager)getSystemService (INPUT_METHOD_SERVICE)).hideSoftInputFro

[android-developers] Re: Memory leak in AudioTrack?

2009-07-11 Thread blindfold
I now ran into the very same problem on my ADP phone as well after applying settings for more strict JNI checking: by default, JNI checking is active on the emulator but not on the phone, so that is why I did not readily see it on the phone until activating JNI checking there for unrelated reasons

[android-developers] HTC Magic vs G1 performance

2009-07-11 Thread Christine
I find that my ADP1 phone has a better performance than my Google IO phone. In some cases, the Magic gets a timeout error where the G1 doesn't, running the same software. Also, I've seen a situation where a service would accidentally take too much resources, which the Magic couldn't handle - the s

[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-11 Thread Casper
any clue, how to resolve this problem On Jul 3, 6:14 pm, Casper wrote: > Hi > > thanks for the reply. > > i even tried that. > Interesting part is, except cavas.drawText for drawing text any other > paint call is working. if you try by your self, you will see the same > thing happening. > i adde

[android-developers] Re: Cannot load maps with Production API Key.

2009-07-11 Thread Mark Murphy
Ian wrote: > yes please! > > my release is blocked for similar reason. > > I got the maps key, compiled with new key, signed, but now it's all > grey. > > when I redo with debug key, it works... help! You need separate Maps API keys for debug versus production, since they are tied to the finge

[android-developers] query regarding InputMethodManager

2009-07-11 Thread Albert Pinto
Hi Android Developers, I need a function to know whether keypad is opened or not. Please provide me the API/function to know whether the Virtual Keypad is OPENED or CLOSED if anybody knows. I know already how to open/hide the keypad by using InputMethodManager. Thanks in advance, Regards, Al

[android-developers] When Parsing the Soap response problem...

2009-07-11 Thread android.vinny
HI I want to Consume the SOAP Web Services in Android i downloaded KSOAP2 Library i have done some thing like this .. private static final String SOAP_ACTION = "getRating"; private static final String METHOD_NAME = "getRating"; private static final String NAMESPACE = "http://www.w3.org/200

[android-developers] Browser can not access website on IIS

2009-07-11 Thread $§Kalle§$
Clicking on https://brtel0009000.wss3online.de should normally popup a dialog box for entering some account/pw. This works fine on any Windows, Mac, Linux, iPhone, but it does not work on Android/G1 (I am using 1.5) You will get the information: You are not authorized to view this page Http Err

[android-developers] View Problem

2009-07-11 Thread peeyush varshney
Hi, I want when I open my Activity it shows Built-in Control that is id/metronome_image in given xml. but when i click over it should replace with my Custom control that is CustomMetronome in given xml. when i click again outside it should replace back to Built-In. -- Thank & R

[android-developers] Re: WebView

2009-07-11 Thread Mark Murphy
> Really strange...I found a lot of similar example, but with SDK > 1.5_R2, the web content stays blank. > I've set correctly permission. If I load my URL without a WebView > Client my page is loaded correctly in default browser. > I saw some opened bugs in Google Android tool. > > Can you give a

[android-developers] Re: WebView

2009-07-11 Thread arnouf
Really strange...I found a lot of similar example, but with SDK 1.5_R2, the web content stays blank. I've set correctly permission. If I load my URL without a WebView Client my page is loaded correctly in default browser. I saw some opened bugs in Google Android tool. Can you give a status of thi

[android-developers] Re: Video with MediaRecorder

2009-07-11 Thread hanged_man
@Zeeshan Are you getting a black screen ? if yes that's probably due to a bug in the emulator (i think starting from the latest 1.5 sdk), you might as well have noticed that you can't run either the camera or the camcorder from the emulator, it's not a problem in your code it's problem in the emul

[android-developers] Re: HTC Magic

2009-07-11 Thread Nima
Hi, I have followed the instructions in link: http://android-dls.com/wiki/index.php?title=Magic_Rooting but the following error is reported fastboot boot recovery-RAv1.0H.img downloading 'boot.img'... FAILED (remote: not allow) Whether any locking is there in the device Please advice Thanks&

[android-developers] NullPointerException when adding an ExpandableListView

2009-07-11 Thread guishenl...@gmail.com
Hi all, I want to add an ExpandableListView in a LinearLayout defined in main.xml. But I met "NullPointerException:null" when I added it to the xml file. I don't know what's wrong with it. Could anyone help me to solve this problem? Thank you in advance! Here is the code of main.xml:

[android-developers] Re: Demo App

2009-07-11 Thread John Smith
2009/7/10 UK Android Apps UK Android Apps > I want to release a demo version of my app. > > I added a restriction that the app could only be used 5 times by > storing a counter in the db. > > However a user can easily uninstall and install the demo again! > > What the best way to manage this? >

[android-developers] Re: Play YouTube videos in WebView?

2009-07-11 Thread Mariano Kamp
*bump* ;-) On Thu, Jul 9, 2009 at 9:03 PM, Mariano Kamp wrote: > Hi, > when accessing a website with embedded YouTube video from within the > browser, I can play the video. When accessing it from WebView I haven't been > able to do that. Is that not possible or is there anything I do wrong? >