[android-developers] Re: Writing widgets *without* persistent services

2009-06-03 Thread beekeeper
Marc -- Excellent. I was indeed missing something obvious, and the solution was much simpler than anything I was contemplating. Many thanks for pointing it out. (I was somewhat familiar with the layout-land mechanism from my readings, but hadn't realized that it was so automagic and all-

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-03 Thread iDeveloper
I removed the code from onProviderDisabled. Had some other code there initially (was getting location from network - but thats very inaccurate) Also tried changing the 2000 to 2 but it doesn;t make a difference. I still can't get a fix. Any help please? On 02-Jun-09, at 4:03 PM, Mark

[android-developers] problem in installing adnroid plugin in eclipse

2009-06-03 Thread Honest
I read the docs for installing android plugin for eclipse. I did it according to it and i have downloaded and installed the plugin but after that when i cliced on Windows-prefrences i could not find Android in left panel. What could be wrong in it ?

[android-developers] Re: Detect Physical Keyboard Layout (ex: QWERTY vs QWERTZ)

2009-06-03 Thread Jeff Sharkey
The flags provided by getResources().getConfiguration().keyboard are a good way of checking which keyboard (if any) is available. http://d.android.com/reference/android/content/res/Configuration.html j On Tue, Jun 2, 2009 at 8:07 PM, csvy sou...@gmail.com wrote: Is there any way to determine

[android-developers] Country Codes for Localization

2009-06-03 Thread swapnil
Hi, Can any one tell me where I can find the Country codes. I need them for localization of the application. Thanks best Regards; Swapnil Dalal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How to detect current screen is vertical or horizontal?

2009-06-03 Thread aby
Hi, I need to set different content view after rotating device screen. Is there any method to detect the direction of current screen is vertical or horizontal?Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Bug with EditText and Linkifycation?

2009-06-03 Thread btm...@gmail.com
Yes, I get this too. I had to turn off all links on EditText, because entering a phone number or url caused the textview to crash :-( -Brian On May 20, 2:09 am, Marcus marcus.ter...@gmail.com wrote: Hi, I have an EditText with linkifycation on. But if the content contains a link and I tap

[android-developers] Can I use Picture.writeToStream to save picture to filesystem as png or jpeg format?

2009-06-03 Thread jerryfan2000
Hi folks, I am trying to capture screen from WebView and save the picture into either JPEG or PNG formats on android local filesystem. However, documentation of Picture.writeToStream doesn't mention anything about what format it stores or supports. So I am wondering is it possible to do what I

[android-developers] Re: How to detect current screen is vertical or horizontal?

2009-06-03 Thread Sujay Krishna Suresh
use an orientation sensor... On Wed, Jun 3, 2009 at 2:13 PM, aby orz0...@gmail.com wrote: Hi, I need to set different content view after rotating device screen. Is there any method to detect the direction of current screen is vertical or horizontal?Thanks -- Regards, Sujay Mark Twain

[android-developers] Re: How to detect current screen is vertical or horizontal?

2009-06-03 Thread guna
getRequestedOrientation() method will work until you forced to change the Orientation. On Wed, Jun 3, 2009 at 2:21 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: use an orientation sensor... On Wed, Jun 3, 2009 at 2:13 PM, aby orz0...@gmail.com wrote: Hi, I need to set

[android-developers] Outgoing call screen

2009-06-03 Thread Seer
Guys, I am making an app that is similar to a calling card app where it appends a number to the start of the phone number when you call out. I wanted to know if it is possible to change the number/text that is displayed when you make the call. I am using the new_outgoing_call broadcast to do

[android-developers] is upgrade to 1.5 safe???

2009-06-03 Thread Saurav Mukherjee
hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading the os to 1.5. i jus wanted to know if anybody has done the same and is it safe (ie if the 1.5 os version is stable)? --~--~-~--~~~---~--~~ You

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread guna
Yes, 1.5 is stable only, as you are working with G1, which is based on the cupcake version. On Wed, Jun 3, 2009 at 2:30 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread guna
Not exactly If you used the removed methods, it will show exception. Take care of those methods alone. On Wed, Jun 3, 2009 at 2:39 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: will the applications developed for 1.0 r2 work well on 1.5? is it backward compatible? On Wed,

[android-developers] Re: Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-03 Thread Mike Hearn
If you look at Romain Guys Shelves app (where this class originates) he actually stops then restarts asynctasks when the screen rotates. This doesn't seem like a great way to go, as you throw away the progress. But as AsyncTasks have a reference to the activity, I can see why it's done. The

[android-developers] Licensing an Android application programatically.

2009-06-03 Thread aayush
Hello list.. I had a query: If i wish to attach an evaluation license to my android application, how can that be achieved ? As for example, i may want to provide an evaluation license based application that expires in one of the following ways: 1. Time based (30 days etc) 2. Usage based ( 100

[android-developers] start call with intent from browser

2009-06-03 Thread dev_rob
Hi, is it possible to start a call from the android browser, let's say by clicking a link in an html file or with javascript after a button click? maybe with help of the gears api? i'd appreciate any hints, maybe an example of how to embed the intent in the html-file/in javascript. thanks a

[android-developers] Re: [ListView + Custom adapter] items can't be selected (or highlighted)

2009-06-03 Thread Tom
Ok I added to my class implements AdapterView.OnItemClickListener. Then I implemented onItemClickListener method and added in onCreate setOnClickListener(this). Now I can select and highlight items but only with the trackball. Nothing happens with the mouse event. May have implement

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Marc Lester Tan
Hi, # 1 - I believe you can do this when signing your certificate. # 2 - you can store the number of times your app is invoked on the Preferences then just check if it already exceeds your limit but then it can easily be broken by just uninstalling the application and download it again. I

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread aayush
okay..thanks for the answer Marc. For #1 i believe i need to create my own certificate by using the keytool utility and sign it as you suggest. Time based is my only requirement..as of now. Usage based is not a priority for me. aayush On Jun 3, 2:34 pm, Marc Lester Tan mail...@gmail.com

[android-developers] Re: Is Contact Content Provider threadsafe?

2009-06-03 Thread Gautam
Really appreciate a reply. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Sujay Krishna Suresh
if i were u if my app already interacts with the web then i'll initially hit a url from the app with may the phone's unique id... i'll take care of everythin else at the web-side... this will make sure that there's not much change in my app's performance... but i dont exactly no if an android

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread mobilekid
I would do the same. Get the android ID like this: String android_id = android.provider.Settings.System.getString (this.getContentResolver(), android.provider.Settings.System.ANDROID_ID); Then send it to your back-end and query the number of times you've made the same call or the date you

[android-developers] Not able to launch an activity of other app from Tab activity.

2009-06-03 Thread sukumar bhashyam
Hi, I am getting the following exception when I call an activity1 ( resides in 1.apk) using the following intent from TabActivity (activity 2 resides in 2.apk) Intent tab1intent = new Intent(); tab1intent.setAction( android.intent.action.VIEW); tab1intent.addCategory(

[android-developers] Advice on debug tool for I/O

2009-06-03 Thread mobilek...@googlemail.com
Hi, On a number of cases I have experienced problems with server / client communication where the server responses with XML files, which never reach my client. Is there any tool for monitoring everything incoming through an HTTP connection, or if not what is your advice to detect what's come

[android-developers] Re: items can't be selected (or highlighted)

2009-06-03 Thread Tom
I just want to notice that the Layout for the ArrayAdapter contains checkbox. On 3 juin, 11:33, Tom thomas.coz...@gmail.com wrote: Ok I added to my class implements AdapterView.OnItemClickListener. Then I implemented onItemClickListener method and added in onCreate setOnClickListener(this).

[android-developers] Re: items can't be selected (or highlighted)

2009-06-03 Thread Tom
I added to my class implements AdapterView.OnItemClickListener. Then I implemented onItemClickListener method and added in onCreate setOnClickListener(this). Now I can select and highlight items but only with the trackball. Nothing happens with the mouse event. On 3 juin, 13:23, guna

[android-developers] Re: Advice on debug tool for I/O

2009-06-03 Thread Zoltán Kisgyörgy
Same problem by me when I try to use the Twitter4J api for a twitter client application.So I'm interested too. Regards, Zoltan 2009/6/3 mobilek...@googlemail.com mobilek...@googlemail.com Hi, On a number of cases I have experienced problems with server / client communication where the

[android-developers] Re: items can't be selected (or highlighted)

2009-06-03 Thread guna
Post your latest code... So that its easy to correct the errors Check whether enabled the listitems. On Wed, Jun 3, 2009 at 4:59 PM, Tom thomas.coz...@gmail.com wrote: I added to my class implements AdapterView.OnItemClickListener. Then I implemented onItemClickListener method and

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread aayush
Thanks so much for the detailed suggestions. I really appreciate it. Basically, the web based alternative will require the users of the application to run it with an internet connection. My app is a telco application, usually tested in an isolated lab environment on a private LAN. Performance

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Neil
For one thing, it's Secure.ANDROID_ID not System.ANDROID_ID. But the documentation on that is a bit vague. It seems to be related to your Google login information, so that brings up two questions: 1. is it sensitive information? 2. does it change if you log in to another Google account? On

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Sujay Krishna Suresh
aayush, if u r goin for client-side implementations then i'm very sure that there're many workarounds... one of it was mentioned by marc earlier... N plz be clear whether ur app is standalone or does it make use of web in ur LAN?? On Wed, Jun 3, 2009 at 5:15 PM, Neil neilb...@gmail.com wrote:

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Sujay Krishna Suresh
N one of my friends suggested that u make use of the serial key system for differentiating bet licensed unlicensed users... it sounds good... the first time a user uses ur app... jus ask for their key... also have an option for evaluate.. if the user selects evaluate set a preference to null

[android-developers] wait till layout is shown

2009-06-03 Thread guruk
Hi, i have a main activity that needs quit a lot to load so i thought about a trick: i call a intropage that shows a pic and from directly it calls by intent the long loading page. Finaly I thought I would see the pic and in the background the other intent is loading, when its done the intro

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Sujay Krishna Suresh
But a drawback is that if not properly checked,the same key could be used with any no of ur apps... On Wed, Jun 3, 2009 at 5:29 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: N one of my friends suggested that u make use of the serial key system for differentiating bet licensed

[android-developers] java.lang.VerifyError - please help me some one

2009-06-03 Thread manoj
Hi friends, I have written an application which uses 3rd party library .jar files. This app worked fine for android 1.0 supported devices. But when I ran the same app on android 1.5 supported device (ADP 1.5), I got the java.lang.VerifyError. Can any one please help me to solve this? Thanks,

[android-developers] Re: help with google accounts

2009-06-03 Thread Sujay Krishna Suresh
Has anyone tried this in 1.5??? i'm plannin to move on to 1.5... jus wanted to make sure it works there as well... On Tue, Jun 2, 2009 at 10:27 AM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: Ya guys sorry for the mistake... was sleepy when i posted that... 2009/6/1 Luis Alberto

[android-developers] Re: wait till layout is shown

2009-06-03 Thread guruk
i even tried to place my startactivity for the main activity in onSTART but still my intro pics on the intro page are not shown. immediatly it starts the mainactivity... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] No intent to terminate(end) the call programmatically

2009-06-03 Thread Asif k
Hi all, Is android supports the terminating the phone call programmatically using either intent or any APi ? If not now then can we see one of the above in the future sdks?? Regards, Asif --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: No intent to terminate(end) the call programmatically

2009-06-03 Thread Mark Murphy
Asif k wrote: Is android supports the terminating the phone call programmatically using either intent or any APi ? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year

[android-developers] Can we go back to older versions?

2009-06-03 Thread Sujay Krishna Suresh
Hi everyone, i upgraded my adp1 to 1.5... once the reboot was complete many of my apps stopped workin... now i wanna go back to 1.1... how do i do this?? -- Regards, Sujay George Bernard Shawhttp://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html - A government that robs

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread aayush
Yes...sounds neat indeed.. On Jun 3, 12:09 pm, mobilekid mobilek...@googlemail.com wrote: I would do the same. Get the android ID like this: String android_id = android.provider.Settings.System.getString (this.getContentResolver(), android.provider.Settings.System.ANDROID_ID);

[android-developers] Re: Clarification on static variables

2009-06-03 Thread Mark Murphy
Peter Carpenter wrote: And this is where my question lies… What happens to the static variables? They are definitely gone when the process is terminated. Things get a bit murky if all components are stopped, since outside forces (e.g., broadcast intents) might trigger your code again, and

[android-developers] Re: Attempt to include a core VM class in something other...

2009-06-03 Thread Mark Murphy
markdsievers wrote: Just a bump...Same situation, upgrading Android and have ended up with this problem. Someone in the next cubicle has the same project working, so will post the solution shortly... The error message is fairly self-explanatory in terms of what to do, though the better answer

[android-developers] Re: items can't be selected (or highlighted)

2009-06-03 Thread Tom
public class UserList extends ListActivity implements AdapterView.OnItemClickListener{ private Client client; private ArrayListUser users = new ArrayListUser(); private UserAdapter userAdapter; @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-03 Thread twan
Thanks Streets Of Boston and Mike for your replies and ideas. I managed to solve this problem with your help. After some testing i made a Service which executes my tasks. When a task has a result i send the results to the activity which called the function on the service. When the screen rotates

[android-developers] Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-03 Thread sheik
Hello android developers.. i am not much familiar with service's and use of aidl...here is the scenario i look to put fwd Kindly help on it...Working on android sdk 1.1 1) Activity is launched and location updates are taken and they are print on the activity using textview.. 2)On click of BACK

[android-developers] Re: items can't be selected (or highlighted)

2009-06-03 Thread Tom
I'm sorry but it does'nt work. On 3 juin, 15:07, guna gunaz...@gmail.com wrote:  getListView().setItemsCanFocus(true); Change to true as like this... it will work then On Wed, Jun 3, 2009 at 6:23 PM, Tom thomas.coz...@gmail.com wrote: public class UserList extends ListActivity

[android-developers] Android Workflow

2009-06-03 Thread Markus
Hello, I try to develop a Android Application but I don't know how to handle the workflow. All examples are using one Activity and add some small functions. But how is it if I need a lot of more functions and views. I don't think that all should be in one activity, so I checked out the k9mail

[android-developers] Re: Use a new USB vid, How to support adb tools in linux, like Ubuntu

2009-06-03 Thread xiaohua
Resolved! --~--~-~--~~~---~--~~ 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] Re: Licensing an Android application programatically.

2009-06-03 Thread aayush
Excellent Al. Looks great. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of aayush Sent: 03 June 2009 14:05 To: Android Developers Subject: [android-developers] Re: Licensing an Android application

[android-developers] Re: Clarification on static variables

2009-06-03 Thread Streets Of Boston
I completely agree with Mark: Better yet, get rid of the static variables. Peter, if possible, it may be 'easier' to change all your non-constant static variable to member variables of your activity/service by refactoring. When you activity/service is destroyed, these variables will go too.

[android-developers] Re: Clarification on static variables

2009-06-03 Thread Mark Murphy
Streets Of Boston wrote: If you still need static access to these variable from other classes, you can have just one static variable: The currently active instance of your activity/service. Be sure to set this one to null when onDestroy is called. I agree with Mr. Boston (pssst...can I call

[android-developers] Re: Problem with getChildCount method???

2009-06-03 Thread Streets Of Boston
You have to do this through your BaseAdapter. Make sure that your BaseAdapter's individual elements/items have a variable that can determine if one is checked or not. If you want to check-mark all your list-item item's, run through every element in your BaseAdapter. Set every element to

[android-developers] Re: setText for EditText is not working in 1.5

2009-06-03 Thread Streets Of Boston
Great! But this tells me that Mark's hunch was correct. On Jun 3, 12:20 am, cindy ypu01...@yahoo.com wrote:  After I switch the sequence of 2 lines, it is working. mEditText = (EditText)findViewById(R.id.text_edit); mEditText.setText(123456); mEditText.addTextChangedListener(new

[android-developers] Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-03 Thread sheik
Hello android developers.. i am not much familiar with service's and use of aidl...here is the scenario i look to put fwd Kindly help on it...Working on android sdk 1.1 1) Activity is launched and location updates are taken and they are print on the activity using textview.. 2)On click of

[android-developers] Slow animation using SurfaceView

2009-06-03 Thread khose
Hi all! I want to do an animation using a drawable and a surface view. I've tried with a View, but actually it runs really slow, so i tested with surface view, but i can see no changes (as slow as using a view). What i do is: set a PolyToPoly matrix concat that matrix draw a bitmap and repeat

[android-developers] Re: audio codec

2009-06-03 Thread intbt
I am having a problem retrieving codec output and listing the bytes. Following the Breno/Sparks thread I was able to get past the errors with initializing Audio Record and my code seems to run but I get all 0's as output. I assume I am missing something in AudioRecord.read? I am trying to look

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Mike Wolfson
You will need to recompile your applications (make sure to switch the project properties to target 1.5 release) before redeploying them to an updated device. As far as other applications (ie. ones you downloaded, or didn't custom code) they will work for the most part. There are some subtle

[android-developers] Justify a TextView?

2009-06-03 Thread Anna PS
Hi all, I can see this question has been asked a couple of times before, but with no answer. How do I set the text in a TextView to be justified? That is, I would like it to look like the left-hand example here: http://en.wikipedia.org/wiki/Justification_(typesetting) Thanks, Anna

[android-developers] Re: Justify a TextView?

2009-06-03 Thread Mike Garcia
If you are in the eclipse ide with the android plugin, select the text view (open the xml file) and go to the properties tab. There should be an option called gravity. Set gravity to vertical-center|horizontal-center and that should do the trick. On Wed, Jun 3, 2009 at 10:33 AM, Anna PS

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Jason Van Anden
Just updated to it. So far so good. Jason Van Anden http://www.bubblebeats.com On Wed, Jun 3, 2009 at 11:29 AM, Mike Wolfson mwolf...@gmail.com wrote: You will need to recompile your applications (make sure to switch the project properties to target 1.5 release) before redeploying them to

[android-developers] Re: wait till layout is shown

2009-06-03 Thread Marco Nelissen
On Wed, Jun 3, 2009 at 5:00 AM, guruk ilovesi...@gmail.com wrote: Hi, i have a main activity that needs quit a lot to load so i thought about a trick: i call a intropage that shows a pic and from directly it calls by intent the long loading page. Finaly I thought I would see the pic and

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Mike Garcia
Yes. I have had the OTA update now for over a week and it is working as I would expect. If you are developing in the Eclipse IDE and have the 1.5SDK installed, I'd strongly recommend updating your phone ASAP! On Wed, Jun 3, 2009 at 4:00 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote:

[android-developers] Eclipse Visual SourceSafe Problem

2009-06-03 Thread Adem KARAKOLLU
Is there any one who are using Eclipse and Visual Sourcesafe...Android Resource manager try to parse all file in */res/values* and */res/layout * *directories... VisualSourceSafe puts the vssver2.scc file to these directories. * *Android Resource Manager can not parse scc files and gives error. *

[android-developers] Short question: Is HTC Dream multi-touch screen natively? Tks

2009-06-03 Thread codeplay
--~--~-~--~~~---~--~~ 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] click on a gone view

2009-06-03 Thread Guian
Why is this possible ? code : private OnClickListener _Listener = new OnClickListener() { public void onClick(View v) { if(v== myView){ if(myView.getVisibility()==View.GONE)

[android-developers] Re: Short question: Is HTC Dream multi-touch screen natively? Tks

2009-06-03 Thread Romain Guy
Short answer: no, it is not. On Wed, Jun 3, 2009 at 8:59 AM, codeplay yalpe...@gmail.com wrote: -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be

[android-developers] Re: How can I listen for WebView page load completed event

2009-06-03 Thread Lucius Fox
On Wed, Jun 3, 2009 at 9:16 AM, Lucius Fox lucius.fo...@gmail.com wrote: On Fri, May 8, 2009 at 10:35 AM, Mark Murphy mmur...@commonsware.com wrote: Lucius Fox wrote: Hi, Is it possible to listen for WebView page load completed event (the whole page is loaded including images, js files,

[android-developers] Re: How can I listen for WebView page load completed event

2009-06-03 Thread Lucius Fox
On Fri, May 8, 2009 at 10:35 AM, Mark Murphy mmur...@commonsware.com wrote: Lucius Fox wrote: Hi, Is it possible to listen for WebView page load completed event (the whole page is loaded including images, js files, css files and the page is completely rendered. Create a WebViewClient

[android-developers] Re: media player does not display video, only audio coming, the screen turns black

2009-06-03 Thread Brian Conrad
I've tried a bunch of files with the mediaplayer demo on the emulator. Most show about the first frame or two of video and just play the audio. I'm wondering if a really fast computer CPU is required for the mediaplayer to work? More documentation is also needed for both the mediaplayer

[android-developers] Re: Signed APK installed using a2b works / Same APK downloaded from market fails (force close)

2009-06-03 Thread chrispix
To update this thread. It appeared that there were some indeed valid force close issues, but even debugging on one phone did not cause it to fail until I did a factory reset on the phone. Then i was able to cause the force close. Any thoughts? Chris On Jun 3, 10:05 am, chrispix

[android-developers] Re: Audio record and ply the recorded audio..

2009-06-03 Thread intbt
This may help as well http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ I am having difficulties in using audio record - trying to save the codec byte output in an array/buffer. Any help? On Jun 3, 4:26 am, guna gunaz...@gmail.com wrote:

[android-developers] Having problems getting style attribute to work

2009-06-03 Thread Robert Green
I finally decided to use styles and themes instead of tediously setting attributes for each individual view. I was able to get the style to work when I set it on android:textAppearance, but when I try to just set it right on the style attribute like below, it no longer applies. This is

[android-developers] ListView OnItemClickListener no callback

2009-06-03 Thread Tom
Hi, One of my ListView's has a CheckBox on every item's RelativeLayout. I just found that clicking on any item of the ListView does not callback its OnItemClick(). If I remove the CheckBox from item layout, callback is ok then. My app needs to get both callbacks from the CheckBox as well as

[android-developers] Re: is upgrade to 1.5 safe???

2009-06-03 Thread Jason Van Anden
Now that I have been using it this AM - I must say ... sweet! The interface adjustments are great. j On Wed, Jun 3, 2009 at 11:39 AM, Mike Garcia sddm...@gmail.com wrote: Yes.  I have had the OTA update now for over a week and it is working as I would expect.  If you are developing in the

[android-developers] Re: ListView OnItemClickListener no callback

2009-06-03 Thread Romain Guy
You can't, it's one or the other. If you put a focusable widget in a list item, that's what happens. If you need checkboxes, use ListView's choice mode instead. On Wed, Jun 3, 2009 at 10:25 AM, Tom thomas.coz...@gmail.com wrote: Hi, One of my ListView's has a CheckBox on every item's

[android-developers] Re: Advice on debug tool for I/O

2009-06-03 Thread mathiastck
I run the emulator on my desktop, and use Wireshark filtered for http requests. http://en.wikipedia.org/wiki/Wireshark On Jun 3, 3:43 am, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, On a number of cases I have experienced problems with server / client communication where

[android-developers] Detecting hardware capabilities

2009-06-03 Thread Brian Smith
There are return values and such that allow handling if SensorManager sensors and location providers aren't available, but what about the camera and microphone for audio recording? Is there a way to detect those in software, or are we just to assume that every device running Android (even the

[android-developers] Re: How to run the android application on G1

2009-06-03 Thread cindy
After upgrade to 1.5, I can run the application from eclipse using emulator, but I could not run it on my g1 phone which is upgraded to 1.5 by tmobile. Help needed!!! On Jun 2, 9:56 pm, cindy ypu01...@yahoo.com wrote: After I upgrade to 1.5, how can I run my application on gphone from

[android-developers] Re: Having problems getting style attribute to work

2009-06-03 Thread Robert Green
Ok I think I may understand the problem but leads me down a very frustrating path. I think that if I were to set a style on a view, that style would need to inherit the default style and then override the values that I want to have custom. That's fine and all, but I have no idea where this

[android-developers] Re: Having problems getting style attribute to work

2009-06-03 Thread Robert Green
Also, When I say that, nothing happens when I do the above example, I'm saying that nothing happens in the ADT editor. I haven't tried running it like that, I've just tried to see it work in the preview. Should a style setting show up in the ADT layout editor? On Jun 3, 2:09 pm, Robert Green

[android-developers] Re: How to run the android application on G1

2009-06-03 Thread snctln
maybe try updating your sdk and eclipse plugin? http://developer.android.com/sdk/1.5_r2/index.html On Jun 3, 12:45 pm, cindy ypu01...@yahoo.com wrote: After upgrade to 1.5, I can run the application from eclipse using emulator, but I could not run it on my g1 phone which is upgraded to 1.5

[android-developers] Re: Signed APK installed using a2b works / Same APK downloaded from market fails (force close)

2009-06-03 Thread deepdr...@googlemail.com
Did you activate copy protection on your app in the market? There have been force close issues reported when doing so. I do not know whether these have been resolved in the meantime or not. Did you increment the android:versionCode integer attribute in the manifest with you new version? (you

[android-developers] Re: How to detect current screen is vertical or horizontal?

2009-06-03 Thread Hiro
not sure how much help this is, but i'm using it on a canvas i have Integer width = canvas.getWidth(); Integer height = canvas.getHeight(); // Check Orientation so we know which grid to use

[android-developers] Re: Eclipse plugin for android

2009-06-03 Thread Xavier Ducrohet
This is because you are attempting to run android.jar which does not contain any code at all (all the methods throw an exception). Also, note that a lot of the implementation of the view and drawing system is done in native and this is not provided with the SDK (nor could it as it's very tied to

[android-developers] Re: Attempt to include a core VM class in something other...

2009-06-03 Thread markdsievers
Root cause was two android jars on the classpath...Yes it is a silly error, cant help but be a little dissapointed that this problem manifested itself like this On Jun 3, 10:40 pm, Mark Murphy mmur...@commonsware.com wrote: markdsievers wrote: Just a bump...Same situation, upgrading Android

[android-developers] Why does ProgressDialog launched from OnItemClick wait until a subsequent thread's run method returns to show itself

2009-06-03 Thread pawpaw17
I have code in my activity's onCreate that sets an onItemClick listener. when it fires I try to show a ProgressDialog that will be up until a subsequent thread Thread does it's processing. Strangely to me, the progress dialog never shows until *after* the thread.run() processing is complete.

[android-developers] Re: Why does ProgressDialog launched from OnItemClick wait until a subsequent thread's run method returns to show itself

2009-06-03 Thread Robert Green
Because you're not truly creating a thread unless you call Thread.start (). Thread.run() will just do the runnable part in your current thread, which is, with certainty, not what you intended to do :) On Jun 3, 6:50 pm, pawpaw17 georgefraz...@yahoo.com wrote: I have code in my activity's

[android-developers] Re: Connect laptop built-in gps receiver to emulator

2009-06-03 Thread David Turner
emulator -help-gps ? On Wed, Jun 3, 2009 at 6:54 PM, Lex hakkinen1...@gmail.com wrote: Hello, my Dell Latitude E6400 has a built-in gps receiver. How can I hook it up with the emulator? I have enough problems spoofing gps data due to exisiting Android bugs, so I might as well use real

[android-developers] Re: Bug? Geo fix and sdk 1.5

2009-06-03 Thread David Turner
this is a known issue that will be fixed in the next 1.5 SDK release.Sorry about that. On Wed, Apr 29, 2009 at 1:10 AM, rob_b...@gmx.net rob_b...@gmx.net wrote: have the same problem! also tried with the r1 version of the new sdk 1.5. worked on sdk 1.1. doesn't matter if I use ddms or

[android-developers] Re: How to detect current screen is vertical or horizontal?

2009-06-03 Thread radiolistener
Try This, WindowManager z; z = this.getWindowManager(); Display r = z.getDefaultDisplay(); int rr = r.getOrientation(); HTH, Radio On Jun 3, 5:40 pm, Hiro the.h...@gmail.com wrote: not sure how much help this is, but i'm using it on a canvas

[android-developers] Re: How to detect current screen is vertical or horizontal?

2009-06-03 Thread Jeff Sharkey
The easiest way of showing a different layout based on orientation is to build it into your resources folders, and there is no extra code needed. Here's an example of how I use two different layouts depending on portrait or landscape:

[android-developers] Re: Themes - Is it possible to apply a style to a specific view ID (that multiple views share) from the Theme?

2009-06-03 Thread Jeff Sharkey
You can do this, but in the opposite direction. Each of the TextViews would request a specific android:style, which you could then define from the theme through attributes. Here's an example where I started doing something like this:

[android-developers] Re: Themes - Is it possible to apply a style to a specific view ID (that multiple views share) from the Theme?

2009-06-03 Thread Robert Green
Hmm... I guess I'm thinking of the way a class of HTML elements are styled in CSS. That would be really nice. Something where I could say in the theme, All titles will look like this, and then a UI element would somehow declare, I am a title. I suppose it would be a next-level thing with

[android-developers] Android Developer Phone Update Problems

2009-06-03 Thread Will
I'm developing on the Android G1 Dev phone and I've recently had a lot of compatibility issues. My firmware version is 1.0, not 1.5. If that's the problem, is there a way to get an update for the G1 Dev phone without having a cellular service (ie. no sim card)? (or should there be no noticeable

[android-developers] Re: problem in installing adnroid plugin in eclipse

2009-06-03 Thread biAji
It's depend on other eclipse plugin such like WST , And a broken eclipse update will end with adt acting strange.. On Jun 3, 2:28 pm, Honest honestsucc...@gmail.com wrote: I read the docs for installing android plugin for eclipse. I did it according to it and i have downloaded and installed

[android-developers] Re: Short question: Is HTC Dream multi-touch screen natively? Tks

2009-06-03 Thread codeplay
Thanks, how about HTC Magic? (Seems not stated in its tech spec) On Jun 4, 12:05 am, Romain Guy romain...@google.com wrote: Short answer: no, it is not. On Wed, Jun 3, 2009 at 8:59 AM, codeplay yalpe...@gmail.com wrote: -- Romain Guy Android framework engineer romain...@android.com

[android-developers] Callback to activity after layout has completed?

2009-06-03 Thread Keith Wiley
I want to find the dimensions of the various views in my layout. My understanding is this can only be done after layout is completed since layout is somewhat dynamic. So, after the activity calls setContentView() and then returns control on the main thread to the OS so that layout can occur,

[android-developers] Re: Callback to activity after layout has completed?

2009-06-03 Thread Keith Wiley
Ah right, I remembered DisplayMetrics for screen size. I knew I had seen that before. So, I guess I can deduce the status bar height then. Sorry. On Jun 3, 7:05 pm, Keith Wiley kbwi...@gmail.com wrote: I want to find the dimensions of the various views in my layout.  My understanding is

  1   2   >