[android-developers] Looper/Handler issue

2009-10-10 Thread BD
Hi. I'd like to know if Looper can enable handler to handle one message at a time, instead of handling all the messages in the queue together in one blocking call when Looper.loop() is called. Because the looper sends all the messages in the queue to the handler one after the other in one

[android-developers] Re: Physics engines for Android

2009-10-10 Thread murali raju
Hey thank u very much Andre its helped me a lot. thank u. On Fri, Oct 9, 2009 at 11:53 PM, André andre.rab...@googlemail.com wrote: I've heard that somebody ported C++ Box2d physics engine to NDK which sounds quite good in terms of performance. Maybe check the NDK group, too?

[android-developers] Re: Looper/Handler issue

2009-10-10 Thread Dianne Hackborn
That is simply not how Looper works. You call Looper.loop() to have the thread enter the message looper, and process messages until it is time for the thread to exit. Specific comments: The following code illustrates my problem: (pls note the lines referred: 1,2,3,45) Question 1: After calling

[android-developers] can anybody tell pls......

2009-10-10 Thread ragavendran s
problem in StringTokenizer String str=one.1.two.2.three.3 Stringtokenizer tok=new Stringtokenizer(str); while(st.hasmoreTokens()) { sb.append(st.nextToken); } Sustem.out.println(sb.toString()); output: one 1 two 2 three 3 but i need output like this: one two three i want to cut the values

[android-developers] Re: SDK 1.6 and emulator sdcard problem

2009-10-10 Thread preetam_pict
hi EvgenyV / all even i am facing the same problem in my case also file.mkdirs( ) is always returning false ! its happening since i upgraded to sdk version 1.6 :( does anyone has any solution for this ? thanks in advance ! ~pp On Sep 22, 4:21 pm, EvgenyV evgen...@gmail.com wrote: Hi

[android-developers] Re: SDK 1.6 and emulator sdcard problem

2009-10-10 Thread preetam_pict
anyways ... uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ has solved my problem :-) thanks all! ~pp On Oct 10, 12:27 pm, preetam_pict preetam.pa...@gmail.com wrote: hi EvgenyV  /  all even i am facing the same problem in my case also file.mkdirs( ) is

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread AJ
what is st and sb ?? Thanks, AJ On Oct 10, 11:55 am, ragavendran s sraghav.ra...@gmail.com wrote: problem in StringTokenizer String str=one.1.two.2.three.3 Stringtokenizer tok=new Stringtokenizer(str); while(st.hasmoreTokens()) {  sb.append(st.nextToken); }

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread ragavendran s
Sorry Here is my Revised Code problem in StringTokenizer String str=one.1.two.2.three.3 StringBuffer sb; Stringtokenizer tok=new Stringtokenizer(str); while(tok.hasmoreTokens()) { sb.append(tok.nextToken); } Sustem.out.println(sb.toString()); output: one 1 two 2 three 3 but i need

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread ragavendran s
Sorry Here is my Revised Code problem in StringTokenizer String str=one.1.two.2.three.3 StringBuffer sb; Stringtokenizer tok=new Stringtokenizer(str); while(tok.hasmoreTokens()) { sb.append(tok.nextToken); } Sustem.out.println(sb.toString()); output: one 1 two 2 three 3 but i need

[android-developers] Re: Mobile phone accelaration sensor

2009-10-10 Thread DD
Hi Mike, actually I am doing integrations on the acceleration readings obtained from the sensor, to implement dead reckoning . and yes, like you said, it is touchy. Then just wonder whether you have got better ways to do this? What did you mean by not a real-time OS? So is that to say, the

[android-developers] Re: SDK 1.6 and emulator sdcard problem

2009-10-10 Thread Evgeny V
Hi ! Since i've added the permissin entry in manifest the problem was solved. Thanks, Evgeny On Sat, Oct 10, 2009 at 9:27 AM, preetam_pict preetam.pa...@gmail.comwrote: hi EvgenyV / all even i am facing the same problem in my case also file.mkdirs( ) is always returning false ! its

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread AJ
Hi Raghav See the following code: StringBuffer sb = new StringBuffer(); String str=one.1.two.2.three.3; Pattern p =Pattern.compile([.\\d.]); String[] items = p.split(str);

[android-developers] Re: Screen Orientation Change

2009-10-10 Thread Neilz
Great, thanks! On Oct 10, 12:22 am, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: This must be simple, right? On Oct 8, 11:34 pm, Neilz neilhorn...@googlemail.com wrote: Richard that's great, thanks. I'm almost there. One further question... How can I check what the

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread ragavendran s
Hi AJ thanks for ur kind reply Here i need one more output: one 1 two 2 three 3 i want separate this like :one,two,three in list the list like this one two three when i click the one it will display 1(it the corresponding value shown in output) when i click two it should display

[android-developers] Re: How to find out how packaged the ROM?

2009-10-10 Thread RichardC
Maybe http://developer.android.com/reference/android/os/Build.html Not tried it -- RichardC On Oct 9, 11:05 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi,   is there any way I can find out programmatically who packaged the ROM (Google, HTC, cyanogen mod)?   I would like to include

[android-developers] Relation between Google GeoPoint instances

2009-10-10 Thread Neilz
Here's a tricky one. Or maybe it isn't... I am trying to find a way to tell the difference in degrees between two GeoPoints. I've been playing around with GoogleMaps for a while, and can't see an obvious relationship between points. For example, if I mark two points on the map which are clearly

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread ragavendran s
hi Aj here i i know how to display list the only problem is how to retrieve the corresponding values.can i separate the intager values and string values from string str =1.one.2.two.3.three.i need separate these 1 as integer value and one as string value.. On Sat, Oct 10, 2009 at

[android-developers] Re: Uniquely identifying a phone via an Http request

2009-10-10 Thread patrick
You can use the android id and add it in http header On Oct 9, 10:55 pm, stanlick stanl...@gmail.com wrote: Is there a way I can identify a handset on the server side of an Http request?  I realize many headers are included on the request, but I am uncertain as to how the handset might be

[android-developers] onSensorChanged: synchronized (this)?

2009-10-10 Thread DD
Hi, I have a pretty simple question. For public void onSensorChanged (int sensor, float[] values){synchronized (this) { what's synchronized (this) for...? I'm really new to Java...what's gonna happen if I dont have this? Thank you very much.!!

[android-developers] Re: Relation between Google GeoPoint instances

2009-10-10 Thread RichardC
I don't know if there is something already in the SDK to work this out for you but if not you need to research Greate Circle algorithms. Note that if your points are only a few 10s of km (or miles) apart then you can approximate using pythagoras.

[android-developers] MediaPlayer and Amr

2009-10-10 Thread fala70
I used MediaPlayer for play an amr file and it work good. Now I'd like to play an amr stream progressive. I must use a my socket connection to get audio stream (no rtp no http but a private protocol). Can I play a buffer amr using ParcelFileDescriptor.fromSocket(_sc); ? I read the doc about

[android-developers] Re: onSensorChanged: synchronized (this)?

2009-10-10 Thread RichardC
Hi, Simply put synchronized(this) will stop multilpe threads changing the data in your class via all methods that are also synchronized (this). Have a read of http://java.sun.com/docs/books/tutorial/essential/concurrency/sync.html However I think that the interface you are using

[android-developers] Re: can anybody tell pls......

2009-10-10 Thread AJ
there are helper function available to do this. check this isDigit(char ch) Thanks, AJ On Oct 10, 3:02 pm, ragavendran s sraghav.ra...@gmail.com wrote: hi Aj here i i know how to display list the only problem is how to retrieve the corresponding values.can i separate the intager values

[android-developers] Re: onSensorChanged: synchronized (this)?

2009-10-10 Thread RichardC
I wish could edit our messages ... I should have said something like: .. will block multilpe simultaneous threads changing the data ... -- RichardC --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] How to use a buildin drawable resource?

2009-10-10 Thread Victor Lin
I need to use some buildin drawable I found in http://developer.android.com/reference/android/R.drawable.html I set drawable @drawable/ic_input_add to a button in my layout xml file. The add icon appears on the button of layout editor. But there is a error of that xml file said that Description

[android-developers] Re: How to use a buildin drawable resource?

2009-10-10 Thread Sujay Krishna Suresh
U can use findViewById() to get the view, n then use android.R.* in the java class associated. Dunno a soln in XML. Sujay On Sat, Oct 10, 2009 at 4:20 PM, Victor Lin borns...@gmail.com wrote: I need to use some buildin drawable I found in

[android-developers] ssh and ftp connections not run in android sdk 1.6

2009-10-10 Thread manu
Hi, i've developed a conectivity app. The ssh connection run successfully in sdk 1.5, but in the new version never connect with the servers. I use the jsch library to make ssh connection. My other problem is the ftp connections, this never run in android sdk, i try my code with SUN's JRE and run

[android-developers] How to register for multiple sensors

2009-10-10 Thread DD
Hi, A simple question: How do I register for multiple sensors? I just switched from registerListener(SensorListener listener, int sensors, int rate) , which is deprecated, to registerListener(SensorEventListener listener, Sensor sensor, int rate) . Previously, I could use | to indicate multiple

[android-developers] Re: BaseAdapter.getView()'s convertView parameter

2009-10-10 Thread Mark Murphy
Eric Mill wrote: AH, I GET IT NOW! I was having awful troubles with an ArrayAdapter recycling random views to me, in a list which used different kinds of views. The errors were maddening until I figured out what was going on, using that part of your book. It's absolutely insane...until

[android-developers] The project cannot be built until build path errors are resolved

2009-10-10 Thread Cyryl Płotnicki-Chudyk
Hi there, i'm having The project cannot be built until build path errors are resolved after each Project-clean in eclipse I have two projects with one referencing another. The error appears in the project referencing the another one. When the error appears I go to the 'configure build path' and

[android-developers] listview header

2009-10-10 Thread Wouter
Hey, What is the easiest way to add headers to a listview (and my list has multiple adapters (sections) so I need to show multiple headers for my list! Thank you, Wouter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: listview header

2009-10-10 Thread Mark Murphy
Wouter wrote: What is the easiest way to add headers to a listview (and my list has multiple adapters (sections) so I need to show multiple headers for my list! I have a MergeAdapter here that can serve that role: http://github.com/commonsguy/cwac-merge I have a SectionedAdapter here that

[android-developers] Re: listview header

2009-10-10 Thread xii stan
TextViewListView TextView ListView On Sat, Oct 10, 2009 at 8:42 PM, Mark Murphy mmur...@commonsware.comwrote: Wouter wrote: What is the easiest way to add headers to a listview (and my list has multiple adapters (sections) so I need to show multiple headers for my list! I have a

[android-developers] Re: listview header

2009-10-10 Thread Wouter
Hey Mark, Yes I am using the SeperatedListAdapter from Jeff Sharkey, but I will take a look at your SectionedAdapter. Can I use it in my project? Wouter On Oct 10, 2:42 pm, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: What is the easiest way to add headers to a listview (and my

[android-developers] Re: Publishing both free and paid versions of app on Android Market

2009-10-10 Thread abarinoff
Thanks a lot for your clarification on this. On Oct 9, 6:19 pm, String sterling.ud...@googlemail.com wrote: On Oct 9, 11:16 am, abarinoff abarin...@gmail.com wrote: Thanks for pointing to those topic - it's quite interesting. But unfortunately solution of Justin Anderson doesn't help me

[android-developers] Re: listview header

2009-10-10 Thread Wouter
I had uses the MergeAdapter with this code: public void retrieveVideotheek() { try { HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveTv, sessionKey); Iterator it =

[android-developers] Sometimes the running emulator is not found from within Eclipse?!

2009-10-10 Thread Mariano Kamp
Hi, when launching my app from within Eclipse, sometimes the running emulator is found and displayed in the launch dialog, sometimes it isn't?! Killing adb, the emulator and Eclipse usually helps ... until it happens again. Any idea why this is? I see this behavior since the launch of

[android-developers] Emulator is very slow and CPU consuming

2009-10-10 Thread Andriy Zakharchuk
Hello all, few weeks ago I encountered a problem. My Android SDK 1.5 emulator became very slow and CPU consuming. This happened earlier, but was irregular just removing AVDs usually helped. Few weeks ago I installed Android SDK 1.6, tried to move my dev environment there and noticed that

[android-developers] Re: listview header

2009-10-10 Thread Mark Murphy
Wouter wrote: Yes I am using the SeperatedListAdapter from Jeff Sharkey, but I will take a look at your SectionedAdapter. Can I use it in my project? Sure! As I noted, SectionedAdapter is GPLv3, because it's derived from Jeff's code, which itself is GPLv3. If that license is incompatible

[android-developers] Re: listview header

2009-10-10 Thread Mark Murphy
Wouter wrote: I had uses the MergeAdapter with this code: public void retrieveVideotheek() { try { HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveTv, sessionKey); Iterator it =

[android-developers] Re: How to register for multiple sensors

2009-10-10 Thread Nithin
With one sensor, we can register only one sensor, so for multiple register, multiple sensor |Manager is required. On Oct 10, 4:42 pm, DD daviddiaofri...@gmail.com wrote: Hi, A simple question: How do I register for multiple sensors? I just switched from registerListener(SensorListener

[android-developers] Re: Sometimes the running emulator is not found from within Eclipse?!

2009-10-10 Thread Guru
+1 i have also ecountered this umpteen times on Windows XP. Sometimes it does not take recognise the internet connectivity.Only a restart helps On Sat, Oct 10, 2009 at 7:01 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, when launching my app from within Eclipse, sometimes the running

[android-developers] LinearLayout not filling all screen

2009-10-10 Thread Simon
hi guys, I'm trying to create a simple view of a header image, few buttons, then footer image. I'm using a LinearLayout inside a ScrollView. Even though i'm using the android:layout_gravity=bottom for the footer image, it's being placed about 1 cm above the bottom margin. i'm using the

[android-developers] ScrollView occupies entire screen height?

2009-10-10 Thread Mark Wyszomierski
Hi, I'm having trouble with this layout - I need a ScrollView, then a LinearLayout with a button below that: ScrollView height=fill_parent /ScrollView LinearLayout height=wrap_content Button Button /LinearLayout the scrollview pushes the linear layout under it off the screen. The

[android-developers] Re: LinearLayout not filling all screen

2009-10-10 Thread Mark Murphy
Simon wrote: I'm trying to create a simple view of a header image, few buttons, then footer image. I'm using a LinearLayout inside a ScrollView. Even though i'm using the android:layout_gravity=bottom for the footer image, it's being placed about 1 cm above the bottom margin. i'm using

[android-developers] Re: ScrollView occupies entire screen height?

2009-10-10 Thread Mark Murphy
Mark Wyszomierski wrote: I'm having trouble with this layout - I need a ScrollView, then a LinearLayout with a button below that: ScrollView height=fill_parent /ScrollView LinearLayout height=wrap_content Button Button /LinearLayout I am assuming the whole thing is being

[android-developers] Re: How to use a buildin drawable resource?

2009-10-10 Thread Lance Nanek
@android:drawable/ic_input_add On Oct 10, 6:50 am, Victor Lin borns...@gmail.com wrote: I need to use some buildin drawable I found inhttp://developer.android.com/reference/android/R.drawable.html I set drawable @drawable/ic_input_add to a button in my layout xml file. The add icon appears

[android-developers] Re: onSensorChanged: synchronized (this)?

2009-10-10 Thread DD
Thanks. Richard ! On Oct 10, 6:26 pm, RichardC richard.crit...@googlemail.com wrote: I wish could edit our messages ... I should have said something like: .. will block multilpe simultaneous threads changing the data  ... -- RichardC

[android-developers] Re: ScrollView occupies entire screen height?

2009-10-10 Thread Mark
Mark - works perfectly, thanks so much. On Oct 10, 10:20 am, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I'm having trouble with this layout - I need a ScrollView, then a LinearLayout with a button below that:  ScrollView height=fill_parent  /ScrollView  

[android-developers] Re: listview header

2009-10-10 Thread Wouter
There is no problem with the MergeAdapter, I had the same issue in 1.5. I have tried everything now but nothing works for me :s On 10 okt, 15:58, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: I had uses the MergeAdapter with this code:    public void retrieveVideotheek()    

[android-developers] Re: Using drawable resources

2009-10-10 Thread PaulT
Jerome, If you look up ID #0x7f02 in your R.java, what do you get? I'm finding the same issue with one of my apps now that I have upgraded to 1.6---it worked fine on 1.5---the error is: Caused by: android.content.res.Resources$NotFoundException: File res/drawable/t.png from drawable

[android-developers] Re: Using drawable resources

2009-10-10 Thread PaulT
Found the problem. The runtime is wrongly reporting which file is missing (and R.java has been wrongly generated). I had one file misnamed (the file name did not match the @drawable declaration) but it wasn't the reported t.png which was wrong. Suggest checking all your drawables and see if

[android-developers] Re: Using drawable resources

2009-10-10 Thread Mark Murphy
PaulT wrote: I wonder if the R.java generator is becoming confused when a file is missing from one of those directories? I doubt it -- that's part of the resource set system. With respect to R.java, I run into problems frequently when developing with Ant (not Eclipse) where R.java gets

[android-developers] Re: How to register for multiple sensors

2009-10-10 Thread Lance Nanek
Why not just call the new method multiple times, once for each sensor you want to listen to, keeping the other arguments the same? On Oct 10, 7:42 am, DD daviddiaofri...@gmail.com wrote: Hi, A simple question: How do I register for multiple sensors? I just switched from

[android-developers] First QVGA Android Phone — HT C Tattoo™ — on sale October 2009. Is your application ready?

2009-10-10 Thread htcand...@gmail.com
HTC Corporation is set to launch the HTC Tattoo™ — the first Android phone with QVGA resolution — this month with major European and Asian operators. The QVGA screen has helped make the HTC Tattoo a very affordable offering, while it still maintains HTC Sense and features such as a 3 Megapixel

[android-developers] How native Gallery is reading bigger images!

2009-10-10 Thread Abdul Mateen
Hi, I am a android developer, I stuck into a problem, how to read really big images with Android API, I am wondering how native Gallery ( Camera application ) is reading bigger images so fast. can any Android Engineer here direct me to the piece of code that android engineer used to draw bigger

[android-developers] Re: The project cannot be built until build path errors are resolved

2009-10-10 Thread Dan Sherman
I've had this issue before, and for me at least, it normally is due to eclipse messing up and building the projects in the wrong order (wrong considering dependencies). Give this a try: Do a project -- Clean, but only clean one project, not sure which usually works for me, I think its the one

[android-developers] Identifying phone hardware

2009-10-10 Thread Jeremy Slade
With all the new Android devices around the corner -- how do we identify what hardware the app is running on? Specifically for game development, I want to find out what input devices might be available (keyboard, trackball, dpad, etc), and possibly even how things are layed out -- dpad on the

[android-developers] Re: Identifying phone hardware

2009-10-10 Thread Dan Sherman
I've used this to get if the device has a physical keyboard (may or may not be the correct method with 1.6, haven't looked into it), but should put you in the right direction: Configuration conf = context.getResources().getConfiguration(); boolean hasPhysical = (conf.keyboard ==

[android-developers] Re: First QVGA Android Phone — HTC Tattoo™ — on sale October 2009. Is your applicat ion ready?

2009-10-10 Thread JoaJP
First off, thank you for approaching the dev community (I assume to speak for the rest here...) Question (cc to androidsupp...@htc.com, for reference: this is a response to your post in the Android Developers group): After devs exhaust the tools and resources that Donut offers, and access to a

[android-developers] Re: Identifying phone hardware

2009-10-10 Thread Mark Murphy
Jeremy Slade wrote: With all the new Android devices around the corner -- how do we identify what hardware the app is running on? Specifically for game development, I want to find out what input devices might be available (keyboard, trackball, dpad, etc), and possibly even how things are

[android-developers] Is HttpGet.abort() thread-safe?

2009-10-10 Thread Mark Wyszomierski
Hi, I'm using the following method to open a url and download: public class MyWebRequest { public HttpGet httpget; public void get(String url) { httpget = new HttpGet(url); DefaultHttpClient httpclient = new DefaultHttpClient(); HttpResponse response =

[android-developers] Re: How to find out how packaged the ROM?

2009-10-10 Thread Mariano Kamp
Thanks Richard. No, this information I already use. I got an answer from stackoverflow though: http://stackoverflow.com/questions/1547236/how-to-find-out-who-the-rom-provider-is Unfortunately it is using a command line utility that may break in the future, but this is better than nothing. On

[android-developers] Re: Sometimes the running emulator is not found from within Eclipse?!

2009-10-10 Thread Mariano Kamp
Regarding the internet connectivity thing: same here. On Sat, Oct 10, 2009 at 4:10 PM, Guru gurudut...@gmail.com wrote: +1 i have also ecountered this umpteen times on Windows XP. Sometimes it does not take recognise the internet connectivity.Only a restart helps On Sat, Oct 10, 2009 at

[android-developers] Re: Identifying phone hardware

2009-10-10 Thread Dan Sherman
Slightly better answer than mine :) On Sat, Oct 10, 2009 at 2:27 PM, Mark Murphy mmur...@commonsware.comwrote: Jeremy Slade wrote: With all the new Android devices around the corner -- how do we identify what hardware the app is running on? Specifically for game development, I want to

[android-developers] Re: Identifying phone hardware

2009-10-10 Thread Mark Murphy
Dan Sherman wrote: Slightly better answer than mine :) Heh, actually, I was thinking the reverse -- I keep forgetting about Configuration. For things Configuration supports (e.g., keyboard), that's a much better solution than looking at public fields on Build. At some point, we may need to

[android-developers] Need to place Childe view starting from left side

2009-10-10 Thread Android_Learner
I want to place first image view in gallery view starting from left side of the screen, instead of centre. Right now, it always position of first tem always starts from centre. Any help on this would be highly appreciated. --~--~-~--~~~---~--~~ You received

[android-developers] Re: Need to place Childe view starting from left side

2009-10-10 Thread Mark Murphy
Android_Learner wrote: I want to place first image view in gallery view starting from left side of the screen, instead of centre. Right now, it always position of first tem always starts from centre. Any help on this would be highly appreciated. Sorry, Gallery does not support that. The

[android-developers] Determining the real ROM installed on device

2009-10-10 Thread Paul Turchenko
Hi. I'm having trouble programatically determining amount of ROM installed on device. I've tried proc/meminfo, but this file contains only ROM available to OS, not the physical amount of it. Can please someone help me with it? --~--~-~--~~~---~--~~ You received

[android-developers] Should I use Canvas or SurfaceView for a chess game?

2009-10-10 Thread fhucho
Hi, I am developing a chess game, what view should I use for the chessboard, Canvas or SurfaceView? I want to implement some animations like moving a piece, fading the chessboard or maybe rotating the chessboard. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Does StreetView work in Android?

2009-10-10 Thread ian
Now I tried the following snippet but it doesn't quite work: button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String uriString =

[android-developers] Re: Should I use Canvas or SurfaceView for a chess game?

2009-10-10 Thread Dan Sherman
SurfaceView can be either run with a Canvas front-end, or an OpenGL frontend (which I think was your question). For a chess game, you're most likely going to be just fine with Canvas. You won't really need OpenGL until you have 50-100 sprites on the screen moving quite quickly :) - Dan On Sat,

[android-developers] Re: Determining the real ROM installed on device

2009-10-10 Thread Dianne Hackborn
Huh? /proc/meminfo is RAM. Are you looking for ROM or RAM? For RAM, that is /proc/meminfo (and yes it is only the amount available to the system, and I don't believe there is any other way to find out about memory that is not access by the system). On Sat, Oct 10, 2009 at 12:56 PM, Paul

[android-developers] Re: Does StreetView work in Android?

2009-10-10 Thread ian
Now I tried the following snippet but it doesn't quite work: button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String uriString =

[android-developers] Re: Identifying phone hardware

2009-10-10 Thread Jeremy Slade
Thanks much for the tips. It does indeed seem a bit scattered. On Oct 10, 1:19 pm, Mark Murphy mmur...@commonsware.com wrote: Dan Sherman wrote: Slightly better answer than mine :) Heh, actually, I was thinking the reverse -- I keep forgetting about Configuration. For things

[android-developers] Re: Physics engines for Android

2009-10-10 Thread Emmanuel
It looks like the Space Physic game is using the Box2D lib... Emmanuel http://androidblogger.blogspot.com/ http://www.alocaly.com On Oct 10, 8:24 am, murali raju manutd...@gmail.com wrote: Hey thank u very much Andre its helped me a lot. thank u. On Fri, Oct 9, 2009 at 11:53 PM, André

[android-developers] Re: Looper/Handler issue

2009-10-10 Thread BD
Thanks Dianne, for the reply. I fixed it by shifting the handler to the background thread, and including the looper quit() inside the handler. On Oct 10, 2:34 am, Dianne Hackborn hack...@android.com wrote: That is simply not how Looper works.  You call Looper.loop() to have the thread enter

[android-developers] Is there any method to get one view by name

2009-10-10 Thread Larry.Liu
Hi, Is there any method to get one view by name rather than it's ID? because we are composing a common lib, and it's not able for us to know the Resource ID at this time, So is there any method to get one view by name, not by findViewById? Thanks. Regards Larry/Xiangqian.liu

[android-developers] java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-10-10 Thread pawpaw17
I'm getting an unhandled exception in my class that fills an arrayadapter from items in a database: 10-11 04:05:26.883: ERROR/AndroidRuntime(886): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your

[android-developers] OpenGL on 1.6

2009-10-10 Thread Dan Sherman
Been working with OpenGL a little more recently, and have been noticing pretty bad performance on my G1. Were there any major changes to OpenGL in 1.6 that would change the performance (or made my code incorrect?) on device? As a test, I grabbed the SpriteMethodTest out of Apps-For-Android, and