[android-developers] Re: How to make chat window for IM?

2009-08-20 Thread Gulfam
Hi Yusuf Saib, Sorry for late response because i was on leave. Using TextView for chat window i have get the idea form APIDemos- >Text->LogTextBox. I have modifiy that code just like this replace add button with EditText and put it at the bottom of screen with send button same like default me

[android-developers] Re: How do I Activate the camera application from my app?

2009-08-20 Thread jagtap.jj
Refer this Intent i = new Intent("android.media.action.IMAGE_CAPTURE"); try{ startActivityForResult(i, TAKEPICTURE_ACTIVITY); }catch(ActivityNotFoundException e){ Toast.makeText(this, "Application not available", Toast.LENGTH_SHORT).show();

[android-developers] Invitation to connect on LinkedIn

2009-08-20 Thread Hucheng Zhou
LinkedIn Hucheng Zhou requested to add you as a connection on LinkedIn: -- Michele, I'd like to add you to my professional network on LinkedIn. - Hucheng View invitation from Hucheng Zhou http://www.linkedin.com/e/LLkLpmh1-H9DJacyTMkv6XzPQQ

[android-developers] latitude and longitude to Microdegrees

2009-08-20 Thread Honest
Hello, I want to dispaly one point on map. for that i will have to create the object of GeoPoint and we need to pass the altitude and longitude in it in Microdegrees. so can some one tell me how can i do it ? --~--~-~--~~~---~--~~ You received this message because

[android-developers] How to check if some email client is configured ?

2009-08-20 Thread Atif Gulzar
hi, How to check if some email client is configured ? and if configured how to get the default email client. THanks -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] How to override ContactsProvider like GoogleContactsProvider

2009-08-20 Thread Kenny Yu
To develop an APK, I want to modify or expand ContactsProvider functionality. GoogleContactsProvider is my role model. But I can't put my code to Android repository, like GoogleContactsProvider does. Mine is a 3rd party APK to develop. http://groups.google.com/group/android-developers/browse_thre

[android-developers] Can i use RotateAnimation to make a Drawable rotate?

2009-08-20 Thread bear tung
I want to draw some Drawables in a view, for example like Rect. Then I want to make a totate animation for each Rect when it's be clicked. I try to use RotateAnimation, but it not work. It look likes only can make a View rotating. so, how can I make this work? thanks a lot Bear --~--~-

[android-developers] Re: out of memory error & getWallpaper

2009-08-20 Thread Nivek
Well, even if we should "normally" not call the recycle method, I see in ApiDemos some calls to this method : LabelMaker.java - line 281 SpriteTextRenderer.java - line 122 TriangleRenderer.java - line 106 I tried to solve a problem of memory allocation when loading big files (4000x3000 pics) yest

[android-developers] Re: How to place an ImageView to a specific location on the screen ?

2009-08-20 Thread Dan Sherman
Don't use AbsoluteLayout, use FrameLayout, as AbsoluteLayout is deprecated. - Dan On Fri, Aug 21, 2009 at 12:51 AM, peeyush varshney < varshney.peey...@gmail.com> wrote: > Use Absolute Layout or WebView > > On Fri, Aug 21, 2009 at 3:15 AM, Emre A. Yavuz wrote: > >> >> Hi, >> >> Does anybody know

[android-developers] Re: Check for internet connection

2009-08-20 Thread Roman ( T-Mobile USA)
A very fast check is whether you have a valid IP address assigned. Another more complicated way is to use the network manager and listen for connection state changes. In case of you get disconnected you could keep this information in a persistent storage. Check this persistent information before

[android-developers] Re: How to place an ImageView to a specific location on the screen ?

2009-08-20 Thread peeyush varshney
Use Absolute Layout or WebView On Fri, Aug 21, 2009 at 3:15 AM, Emre A. Yavuz wrote: > > Hi, > > Does anybody know how to place an ImageView object to a specific location > on the screen or a tutorial/website etc. that may help me to figure it out > myself ? > > Let's say I have an image to be p

[android-developers] Re: error msg after run a thread

2009-08-20 Thread Ask
Use post and handler mechanism or RunFromUI interface. Thanks asif On Aug 20, 11:16 am, tstanly wrote: > thanks for reply, > > so how can I do for change thread's control to change my UI? > > thanks! > > On 8月20日, 下午1時03分, star double wrote: > > > > > My god, you must change your UI in main th

[android-developers] map with compass like indicator

2009-08-20 Thread sleith
hi, i'm trying to make a map with showing my location with an arrow that point to the way we are facing. the arraw image is something like this: ^ 0 always pointing north, so i rotate it with sensor orientation event ( image.rotate(values[0]) ) i would like to ask if google map's north is alw

[android-developers] How to force Activity in landscape mode without Activity restart

2009-08-20 Thread yoshitaka tokusho
Hi folks, I have a problem to start/create Activity in landscape mode. My Activity need to start in landscape mode and be used in landscape mode by users. So far, I used setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) to force screen orientation of my Activity to landscape mo

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread CraigsRace
Thank you Dianne!!! Yes, that did it. Cheers. On Aug 21, 1:53 pm, Dianne Hackborn wrote: > Be sure you put android:debuggable in your manifest: > > http://developer.android.com/guide/topics/manifest/application-elemen... > > > > On Thu, Aug 20, 2009 at 7:55 PM, CraigsRace wrote: > > > I just

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Dianne Hackborn
Be sure you put android:debuggable in your manifest: http://developer.android.com/guide/topics/manifest/application-element.html On Thu, Aug 20, 2009 at 7:55 PM, CraigsRace wrote: > > I just read up on DDMS, and yes, the documentation says I should be > able to debug (Ie. set breakpoints). But

[android-developers] Playing a video file from resource.

2009-08-20 Thread rizwan
Hi All, >From weeeks i m trying to play a video file from raw folder .but no success. I have used this code setContentView(R.layout.mediaplayer_2); mPreview = (SurfaceView) findViewById(R.id.surface); holder = mPreview.getHolder(); // Create a new

[android-developers] Re: Android Developer needed in Toronto

2009-08-20 Thread Fred Grott(shareme)
Keep looking as this is not Toronto On Aug 20, 2:34 pm, jsbelanger wrote: > I am looking for an Android developer in the Toronto area for a 3 > month contract. Please contact me asap if you are available. > > Thanks, > JS --~--~-~--~~~---~--~~ You received this me

[android-developers] Any instructions on how to setup a fresh git repo?

2009-08-20 Thread dinny
Hi all, I have just ported some open source tools(userspace, not GPL licensed) to Android. And I'm planning to put it within the Android repo. Could someone please kindly tell me how to set up a fresh git repo under $ANDROID_ROOT/external ? Thanks. Best Regards Dinny --~--~-~--~~--

[android-developers] Re: Android Developers Wanted

2009-08-20 Thread Fred Grott(shareme)
Is this local or remote? Fred Grott http://mobilebytes.wordpress.com On Aug 19, 8:30 pm, Ashwin wrote: > We are a government Software Contracting company. We currently have an > opening for a Google Android Developer. At the time of interview, you > will be required to sign a Non Disclosure agr

[android-developers] Re: self publish to a Tmobile G2?

2009-08-20 Thread Andrew Louth
> Can I self publish to a Tmobile G2?  Does anybody have a URL w/some > instructions on how to do this? Its very easy. All you really need to do is... 1. Plug your phone into your development machine via USB. 2. Using Eclipse, right click your project and select Run As --> Android Application

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread CraigsRace
I just read up on DDMS, and yes, the documentation says I should be able to debug (Ie. set breakpoints), however, it doesn't work for me. I'm wondering if it's because I'm using a standard G1 phone (not dev phone, and no root access). I can see all the logging ok in the LogCat, but when I start a

[android-developers] Re: How to avoid Touch Event

2009-08-20 Thread Zhangli
Hello, I resolved this issue! Same as my previous post, I put a transparent layout onto the top and make it consume all OnTouchEvent(). After this, other views under this top layout will lost focus when OnTouch happens(It is not I want ); by tracing, I found when Ontouch happen, before OnTouchEv

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread 宋庆欣
Thank for you help 2009/8/21 Dianne Hackborn > Then write it in a flat file. That works too. > > There is nothing all that special about this: your app is exiting > (finishing); you apparently want to restore some state that was saved from > the last time it run; so write it into persistent

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread CraigsRace
I just read up on DDMS, and yes, the documentation says I should be able to debug (Ie. set breakpoints). But it doesn't work for me, I'm wondering if it's because I'm using a standard G1 phone (not dev phone, and no root access). I can see all the logging ok on it, and DDMS shows me the processe

[android-developers] Re: CONTRACT - ANDROID Developers - Toronto

2009-08-20 Thread JP
It is highly inconvenient to try to remove your contact information and insert a company logo in a PDF. On Aug 20, 1:34 pm, Kent Loobey wrote: > You won't accept a "sound" version? > > > kevi...@talgroup.net > > kevin (dot) b (at) talgroup (dot) net --~--~-~--~~~---

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread Dianne Hackborn
Then write it in a flat file. That works too. There is nothing all that special about this: your app is exiting (finishing); you apparently want to restore some state that was saved from the last time it run; so write it into persistent storage somewhere when you are done and read it back when yo

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-20 Thread mscwd01
Oh and you'll need these: final int matrix_size = 16; float[] R = new float[matrix_size]; float[] outR = new float[matrix_size]; float[] I = new float[matrix_size]; float[] values = new float[3]; On Aug 21, 3:06 am, mscwd01 wrote: > Heres my code, which works: > > public void onSensorChanged(Se

[android-developers] Re: How to use the RotationMatrix, actually how to get it

2009-08-20 Thread mscwd01
Heres my code, which works: public void onSensorChanged(SensorEvent event) { Sensor sensor = event.sensor; int type = sensor.getType(); switch (type) { case Sensor.TYPE_MAGNETIC_FIELD: mags = event.values.clone();

[android-developers] How to use the RotationMatrix, actually how to get it

2009-08-20 Thread Mike Collins
I have a sensor event handler that gets fired and I have no problem getting and processing acceleration readings. However this code always fails. if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { float[] geomagnetic = new float[3];

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread 宋庆欣
shared preferences couldn't store array. 2009/8/21 Dianne Hackborn > Put it in your shared preferences, put it in a raw file, whatever. > > > On Thu, Aug 20, 2009 at 6:04 PM, 宋庆欣 wrote: > >> Have I another way to store an array between sessions? DB is too >> complex. >> >> >> 2009/8/21 D

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread Dianne Hackborn
Put it in your shared preferences, put it in a raw file, whatever. On Thu, Aug 20, 2009 at 6:04 PM, 宋庆欣 wrote: > Have I another way to store an array between sessions? DB is too > complex. > > > 2009/8/21 Dianne Hackborn > >> If you finish your activity, that instance is gone, so you won'

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread 宋庆欣
Have I another way to store an array between sessions? DB is too complex. 2009/8/21 Dianne Hackborn > If you finish your activity, that instance is gone, so you won't get the > instance state. onSaveInstanceState is for restoring the activity to its > previous state after the user leaves

[android-developers] Re: com.android.inputmethod.latin

2009-08-20 Thread Dianne Hackborn
It is the soft keyboard. On Thu, Aug 20, 2009 at 2:15 PM, human android wrote: > > I always see this process running, does any one know what this process > does? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't

[android-developers] Re: can i move assets from app to sdcard

2009-08-20 Thread Dianne Hackborn
No, an .apk can not be modified once it is installed. On Thu, Aug 20, 2009 at 3:08 PM, zeeshan wrote: > > Hi Experts, > > as my app is too big in size and it seems a long job downloading > resources from web server. > > i want to move my files from assets folder in the app to sdcard on > first r

[android-developers] Re: Maximum depth of the activity stack

2009-08-20 Thread Dianne Hackborn
There is no limitation -- you may run out of memory, though. That said, I wouldn't really recommend doing this for a situation where a user could just continue navigating indefinitely and wouldn't necessarily think about going back over everything they have visited. For example, the standard bro

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Dianne Hackborn
On Thu, Aug 20, 2009 at 4:44 PM, CraigsRace wrote: > I've found many differences between the emulator and the device with > regards to OpenGL, now I only test my OpenGL stuff directly on the > device. Which is annoying, as it means I can't debug What do you mean you can't debug? Developing on

[android-developers] Re: ADC2

2009-08-20 Thread CraigsRace
Maybe they are doing the Apple approach. Keep it all quite, then go out with a bang. If that is the case, I would expect the site to open around the 26th. That would give devs 5 days to submit, and the public would hear the buzz and they would be able to d/l the apps only 6 days later. ...but I

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread CraigsRace
Fixed point is about twice as fast, however, in the grand scheme of things (unless you're doing a crazy amount of math), it doesn't really matter. I've found many differences between the emulator and the device with regards to OpenGL, now I only test my OpenGL stuff directly on the device. Which

[android-developers] NotifyMessage cannot be resolved to a type

2009-08-20 Thread Android Box
Hi, I copy this sample code from book, because it show "NotifyMessage cannot be resolved to a type" message, can anybody help me, how can I find a NotifyMessage.class? thank you. Ryan import java.util.Timer; import java.util.TimerTask; import android.app.Ac

[android-developers] Maximum depth of the activity stack

2009-08-20 Thread mgpc
Is it necessary to limit how deep the activity stack can become within an application? I'm implementing a browser-type app. Every time the user clicks a link, I could launch a new PageView activity, but then the activity stack might become very deep. Alternatively I could have a single PageView a

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-20 Thread Roman ( T-Mobile USA)
Ravi, I would first try to check out whether in general your code is able to receive the intents you are looking for. You can verify this with configuring the Wifi settings on the phone first and then by turning on/off your AP. If you are bale to see the events, then the next step would be to con

[android-developers] MediaRecorder API: preview is not happening and audio sounds muffled

2009-08-20 Thread sreeram
Hi, I am not able to see video preview. Here is is how I set up the MediaCorder, before I fire it up: mrec.reset(); mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA); mrec.setAudioSource(MediaRecorder.AudioSource.MIC); mrec.setO

[android-developers] Re: Handling phone ringing

2009-08-20 Thread Roman ( T-Mobile USA)
Are you referring "call picked up" to "call is accepted"? After the call is accepted (state CALL_STATE_OFFHOOK) you are able to get your dialog displayed but not earlier (at least I was not able to manage this ) -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The vi

[android-developers] Re: Site idea: istheadcsubmissionsiteopenyet.com

2009-08-20 Thread Dan Sherman
or: http://hasthelargehadroncolliderdestroyedtheworldyet.com/ On Thu, Aug 20, 2009 at 6:38 PM, Yusuf Saib (T-Mobile USA) < yusuf.s...@t-mobile.com> wrote: > > http://notyet.com/";> > > > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are

[android-developers] Re: Site idea: istheadcsubmissionsiteopenyet.com

2009-08-20 Thread Yusuf Saib (T-Mobile USA)
http://notyet.com/";> Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 20, 12:14 pm, Sebastian wrote: > Someone s

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Robert Green
The G1 has no floating point unit. Apparently fixed point can be much faster, depending on what you're doing. On Aug 20, 2:29 pm, "Dmitry.Skiba" wrote: > Ha, nice bug. I'm using floats though. > Why do you use fixed point? Is it (much) faster than float? > > Dmitry > > On 21 авг, 00:50, Robert

[android-developers] Re: CONTRACT - ANDROID Developers - Toronto

2009-08-20 Thread Fred Grott(shareme)
You will not accept a java version of the resume? On Aug 20, 3:16 pm, Kevin - IT Recruiter wrote: > I have 3 month contracts (extendable) available for Android Developers > in Toronto > You must be local (no remote work) > > Send me a word version of your resume ASAP > kevi...@talgroup.net > kev

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Robert Green
"Fwiw, the emulator is a software OpenGL implementation written in arm code, with the arm code being emulated." Dianne, That's all you had to say right there. I went from being annoyed with it to be impressed that it works as well as it does! On Aug 20, 2:47 pm, Dianne Hackborn wrote: > For

[android-developers] Check for internet connection

2009-08-20 Thread cafffiene
What is the simplest way to check whether my app can access the internet? I am using some APIs that use the internet, but they crash if there is no connectivity. So I just want to check if there is internet access by any means. thanks --~--~-~--~~~---~--~~ You re

[android-developers] Re: Determining Who Passed an Intent to You

2009-08-20 Thread Jonathan Herriott
Yes, I agree with you :) I was just noting that in my situation, simply checking the permission won't do. On Aug 19, 5:20 pm, Dianne Hackborn wrote: > Then keep track of the uid that owns the data, and compare that with the uid > of incoming calls. > > On Wed, Aug 19, 2009 at 4:13 PM, Jonathan

[android-developers] Re: ADC2

2009-08-20 Thread Dan Sherman
For the first 2 weeks, it was understandable. But good lord, theres no news. If there was news, it would be posted. Hundreds of people are waiting for it, just check the adc site each day, and it will eventually open... On Thu, Aug 20, 2009 at 5:40 PM, Sergo wrote: > > Is there any news about

[android-developers] can i move assets from app to sdcard

2009-08-20 Thread zeeshan
Hi Experts, as my app is too big in size and it seems a long job downloading resources from web server. i want to move my files from assets folder in the app to sdcard on first run. is this possible? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to place an ImageView to a specific location on the screen ?

2009-08-20 Thread Emre A. Yavuz
Hi, Does anybody know how to place an ImageView object to a specific location on the screen or a tutorial/website etc. that may help me to figure it out myself ? Let's say I have an image to be placed exactly at a certain location (when x and y coordinates are provided) on the screen.

[android-developers] Re: ADC2

2009-08-20 Thread Sergo
Is there any news about submission site? --~--~-~--~~~---~--~~ 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 gr

[android-developers] Re: Video with MediaRecorder

2009-08-20 Thread Greivin Lopez
Hi greatinnovus. I could not give you any suggestions because I'm still getting errors. In fact, I supposed is the your same error as our codes are very similar. At the moment Jason Proctor is the only one who claims to be successful in video capturing, maybe he could help us resolve the issue.

[android-developers] get music player state

2009-08-20 Thread STuFF
hi, I wonder if it's possible to get music player state, like which is the current music playing, title, author and so on ? Better, is it possible for an activity (or a service) to be notified on music state changements (start playing, pause, etc.) Someone can help me ? --~--~-~--~~-

[android-developers] com.android.inputmethod.latin

2009-08-20 Thread human android
I always see this process running, does any one know what this process does? --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Re: CONTRACT - ANDROID Developers - Toronto

2009-08-20 Thread Kent Loobey
On Thursday 20 August 2009 13:16:21 Kevin - IT Recruiter wrote: > I have 3 month contracts (extendable) available for Android Developers > in Toronto > You must be local (no remote work) > > Send me a word version of your resume ASAP You won't accept a "sound" version? > kevi...@talgroup.net > k

[android-developers] Re: Android Developers Wanted

2009-08-20 Thread N4Spd
I have an active Q clearance and lots of Android experience. Where are you located? Robert Chou Http://www.rcreations.com Http://hit-mob.com/forums On Aug 19, 6:30 pm, Ashwin wrote: > We are a government Software Contracting company. We currently have an > opening for a Google Android Develop

[android-developers] CONTRACT - ANDROID Developers - Toronto

2009-08-20 Thread Kevin - IT Recruiter
I have 3 month contracts (extendable) available for Android Developers in Toronto You must be local (no remote work) Send me a word version of your resume ASAP kevi...@talgroup.net kevin (dot) b (at) talgroup (dot) net --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: Changing audio path to earpiece from speakerphone

2009-08-20 Thread CR
I forgot to include a line, and although it's kind of obvious, I want to be complete: // private AudioManager am; am = (AudioManager)activity.getSystemService (android.content.Context.AUDIO_SERVICE); am.setRouting(am.MODE_NORMAL, am.ROUTE_EARPIECE, am.ROUTE_ALL); /

[android-developers] Changing audio path to earpiece from speakerphone

2009-08-20 Thread CR
Hi all. I'm trying to change the audio path to earpiece from speakerphone, and I cannot get it to work on the G1: the audio always goes through the speakerphone. Here's the code snippet: // private AudioManager am; am.setRouting(am.MODE_NORMAL, am.ROUTE_EARPIECE, am.ROUTE_

[android-developers] Setting background for CheckBox causes a problem

2009-08-20 Thread illyge
Hello! I have a CheckBox in my layout. Such as following: This works fine, but I want to set a custom background for it. So I do this: The background appears now, but ChekBox now looks strange. The text ("Sound mode on/off") now begins just where checkbox butto

[android-developers] Android Developer needed in Toronto

2009-08-20 Thread jsbelanger
I am looking for an Android developer in the Toronto area for a 3 month contract. Please contact me asap if you are available. Thanks, JS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: Why can't I use Parcel in aidl?

2009-08-20 Thread Dianne Hackborn
Because a Parcel isn't an argument you pass through interface functions, it is the underlying container used to transfer the function arguments. On Thu, Aug 20, 2009 at 2:36 AM, bear tung wrote: > hi, i sent a intent to call a service interface which returns a parcelable > object. > > but get er

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Dianne Hackborn
For this kind of stuff, you should probably focus mostly on real devices. Fwiw, the emulator is a software OpenGL implementation written in arm code, with the arm code being emulated. On Thu, Aug 20, 2009 at 10:50 AM, Robert Green wrote: > > I found the problem with the orthographic projection a

[android-developers] Re: Redrawing part of a custom ListView

2009-08-20 Thread Romain Guy
getChildAt(whatever).invalidate() On Thu, Aug 20, 2009 at 12:41 PM, alkar wrote: > > Hmm, I suspected that :) > Good to know for sure. Any ideas on the topic? > > On Aug 20, 10:33 pm, Romain Guy wrote: >> invalidateViews() does not just redraw, it relayouts and flushes the >> cache of Views. Do

[android-developers] Site idea: istheadcsubmissionsiteopenyet.com

2009-08-20 Thread Sebastian
Someone should build this site... http://istheadcsubmissionsiteopenyet.com/ All it needs to do, if you're too lazy to do some hand-coded HTML, is redirect it to http://code.google.com/android/adc/ I'd pay the $10 for the domain, and build the site myself, if I weren't too busy coding my ADC subm

[android-developers] Re: Redrawing part of a custom ListView

2009-08-20 Thread alkar
Hmm, I suspected that :) Good to know for sure. Any ideas on the topic? On Aug 20, 10:33 pm, Romain Guy wrote: > invalidateViews() does not just redraw, it relayouts and flushes the > cache of Views. Do not use this unless you have a very good reason to > do so. > > > > On Thu, Aug 20, 2009 at 1

[android-developers] Re: Redrawing part of a custom ListView

2009-08-20 Thread Romain Guy
invalidateViews() does not just redraw, it relayouts and flushes the cache of Views. Do not use this unless you have a very good reason to do so. On Thu, Aug 20, 2009 at 11:22 AM, alkar wrote: > > I have a custom ListView and I want to redraw a View inside each row > under some circumstances. How

[android-developers] Redrawing part of a custom ListView

2009-08-20 Thread alkar
I have a custom ListView and I want to redraw a View inside each row under some circumstances. How would I do that in the ListActivity? I can use: ListView l = (ListView) findViewById(android.R.id.list); l.invalidateViews(); But that seems a waste, redrawing the w

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Dmitry.Skiba
Ha, nice bug. I'm using floats though. Why do you use fixed point? Is it (much) faster than float? Dmitry On 21 авг, 00:50, Robert Green wrote: > I found the problem with the orthographic projection and documented it > here -http://groups.google.com/group/android-developers/browse_thread/threa

[android-developers] androidID

2009-08-20 Thread Wayne Wenthin
Is anyone using this to determine uniqueness with a phone?How would you set that in the emulator? Wayne -- Writing code is one of few things that teaches me I don't know everything. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Setting background for CheckBox causes a problem

2009-08-20 Thread illyge
Hello! I have a CheckBox in my layout. Such as following: This works fine, but I want to set a custom background for it. So I do this: The background appears now, but ChekBox now looks strange. The text ("Sound mode on/off") now begins just where checkbox butto

[android-developers] Re: Bad OpenGL Emulation?

2009-08-20 Thread Robert Green
I found the problem with the orthographic projection and documented it here - http://groups.google.com/group/android-developers/browse_thread/thread/86270803dbf1f88/263cb69723b36495?lnk=gst&q=opengl#263cb69723b36495 Emulator performance is still really bad, though. I've started to use the device

[android-developers] ExpandableListView : query about collapse

2009-08-20 Thread JKDESAI
Hi All, I have made one app in which i have used ExpandableListView to make the tree structure. In that i have keep some nodes empty (Only parent having no child) & some with child nodes. Now the scenario is that when i click on the parent node, if it has the child then it is expan

[android-developers] Why can't I use Parcel in aidl?

2009-08-20 Thread bear tung
hi, i sent a intent to call a service interface which returns a parcelable object. but get errors: "return type Parcel can't be marshalled" #MyTest.aidl import android.os.Parcel; interface MyTest { Parcel testSetRect(int a, int b, int c, int d); } why? thanks for help. Bear --~--~-

[android-developers] Re: Has ADC submission site opened?

2009-08-20 Thread Idriss
Any news about the ADC submission site. Is it open yet??? Thanks idriss --~--~-~--~~~---~--~~ 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: update for syncML (client) and android

2009-08-20 Thread inshine
https://android-client.forge.funambol.org On Aug 19, 11:22 pm, Tdj wrote: >       Hello, > > On Jul 28, 5:49 pm, angelo wrote: > > > funambol do have a second release of the syncml client which did do > > contacts,events and tasks but I couldnt get it to work with my > >     where can I donwloa

[android-developers] Android Developers Wanted

2009-08-20 Thread Ashwin
We are a government Software Contracting company. We currently have an opening for a Google Android Developer. At the time of interview, you will be required to sign a Non Disclosure agreement and if you are hired a criminal background check will be conducted. The reason being is that you will be

[android-developers] Re: Android service always alive..

2009-08-20 Thread James
I'm using a WakeLock to keep the CPU alive for a few minutes while my timer runs. However, the CPU still seems to go to sleep after 5 minutes if I use PARTIAL_WAKE_LOCK. If I use SCREEN_DIM_WAKE_LOCK, it works as expected. In fact, I can't tell if PARTIAL_WAKE_LOCK does anything at all; the CPU

[android-developers] Seeking beta testers

2009-08-20 Thread Keith Wiley
Posting this on 'developers' instead of 'discuss' because I strongly prefer to hit only developers with this "free app" offer. I have had a very hard time getting any "real" users to volunteer to be beta testers for my app, despite calls on the app description and inside the app itself. ...so, i

[android-developers] Device Sleep State

2009-08-20 Thread Fraser
I'd like to be able to somehow either log or visually detect what the sleep state of the phone is. I have an app called DevTools which has a checkbox to show the sleep state on the LED but this isn't working (cannot check the checkbox). Does anyone know of a way to do this? Thanks, Fraser. --~

[android-developers] Re: Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread mscwd01
Peli, I think I love you :) No seriously, I changed: SensorManager.AXIS_X,SensorManager.AXIS_Z, To SensorManager.AXIS_Y, SensorManager.AXIS_MINUS_X and it basically works, its slightly out but I am almost sure its down to my projection code being slightly wrong ;) Three days of bother and on

[android-developers] Re: How to pick the mobile phone number of a contact using an Intent

2009-08-20 Thread cadlg
anybody ? On Aug 19, 5:27 pm, cadlg wrote: > Hello friends. > > I'm using this code to pick a contact: > >          Intent i = new Intent(Intent.ACTION_PICK, > People.CONTENT_URI); >           startActivityForResult(i, PICK_CONTACT_FROM_LIST); > > And this to read the phone numbers of the picked

[android-developers] Re: Has ADC submission site opened?

2009-08-20 Thread karthikr
Why hasnt there been any update anywhere regarding the status of the adc2, Or has it been mentioned somewhere that the submission sites will open only after a specific dates? Regards, R.Karthik --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Re: How to get JUnitReports via android.test.InstrumentationTestRunner

2009-08-20 Thread Brett Chabot
I'm not familiar with JUnitReports, but one way you could do this is to parse the results outputted by 'adb shell am instrument -r -w ...", and convert it into whatever XML format you needed. There is existing parsing code in the Android open source project at development/testrunner and developme

[android-developers] Re: Bitmap.Compress.JPEG always saving with low compression level

2009-08-20 Thread karthikr
Hi Guys, Im still stuck up with this issue, Can someone help me out, my jpeg image is always saving with a lower quality where as if i save it as a png image its fine. I have tried different compression levels. Thanks in advance. --~--~-~--~~~---~--~~ You recei

[android-developers] Problem saving bitmap in JPEG format

2009-08-20 Thread karthikr
Hi Guys, Im trying to save a bitmap in a JPEG format, and i can see that the image is always stored with a lower quality even if i give the compression level as 100, however for PNG it is working fine. SImilaarly during Media.insert() or getContentResolver().insert() the image is stored with a

[android-developers] Re: why glReadPixels return Alpha always -1

2009-08-20 Thread Steven Levis
Hi, This is due to an incompatibility between Java signed byte type and OpenGL's unsigned byte type. I get around this issue by casting the returned byte value to an int. If the value is negative, add 256, due to two's complement arithmetic. For example, a signed byte value of -1 is the same

[android-developers] Re: ListView onListItemClick to Create a Context Menu?

2009-08-20 Thread Brad
I'd register the control as a context menu receiver. That'll allow you to have the list item perform the default or preferred activity on click as well as hold click for further operations. This caters for fast simple use and powerful functionality. Something along these lines (where LIST_VIEW is

[android-developers] Re: Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread Peli
A couple of possible issues come to my mind: * Did you make sure that your compass is calibrated? (figure 8 in the air with the phone several times in various directions) * Are you far enough away from computers, steel, loudspeakers, or other objects that may deflect magnetic field lines (and thu

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-20 Thread Rick
Thank you for the correction. I just removed that flag and everything worked the same as you have stated. Guess I didn't experiment with it as much as I should have. Also, I have found a solution to my problem with auto cancel as well. On Aug 20, 2:01 pm, Dianne Hackborn wrote: > Er. > > FLAG_A

[android-developers] Re: Close Application

2009-08-20 Thread Dianne Hackborn
This does NOT exit the application, it just kills its current process, and if the user is down in a couple activities, all this ends up doing is removing the top activity (because it went away without saving its state) and goes to the previous one. And if there are other things running in the proc

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-20 Thread Dianne Hackborn
Er. FLAG_ACTIVITY_NEW_TASK will be added for you if you haven't set it already, since the status bar is not part of a task, so it must launch the activity into a new task. And FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY has absolutely -no- impact on how the activity is launched -- it is just set by the t

[android-developers] Re: Questions about onSaveInstanceState

2009-08-20 Thread Dianne Hackborn
If you finish your activity, that instance is gone, so you won't get the instance state. onSaveInstanceState is for restoring the activity to its previous state after the user leaves it (WITHOUT finishing it) and later returns and it needs to be restarted. Or if the configuration changes (rotatio

[android-developers] Re: ListView onListItemClick to Create a Context Menu?

2009-08-20 Thread stonedonkey
That does fire the dialog, but now I've lost the item clicked on, looks like the MenuItem is null? On Aug 20, 11:01 am, Nivek wrote: > If you use a ListActivity, try calling getListView().showContextMenu() > in your onListItemClick() implementation. > > Nivek > > On 20 août, 16:49, Mark Hansen

[android-developers] Re: space between component

2009-08-20 Thread Honest
can you give me any code snippt for it ? On Aug 20, 6:17 pm, Mark Murphy wrote: > Honest wrote: > > The following is my java file code as i am adding controls in java > > file so please take a look at it and let me know.. > > > Country.setAdapter(adapter); > >            layout.addView(Country);

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-20 Thread Rick
After some experimenting with the suggestions given here, I ended up changing the Intent flag from FLAG_ACTIVITY_NEW_TASK to FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY and that has given me the desired behavior which I believe would also do the same for your app Gustav. While I'm here, I would like for

  1   2   3   >