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
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?
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
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
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
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
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);
}
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
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
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
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
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);
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
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
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
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
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
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
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.!!
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
I had uses the MergeAdapter with this code:
public void retrieveVideotheek()
{
try {
HashMapString, Object response = (HashMapString,
Object)
client.call(film.retrieveTv, sessionKey);
Iterator it =
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
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
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
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 =
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
+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
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
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
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
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: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
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
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
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()
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
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
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
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
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
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
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
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
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 ==
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
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
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 =
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
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
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
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
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_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
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
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
Now I tried the following snippet but it doesn't quite work:
button3.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
String uriString =
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,
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
Now I tried the following snippet but it doesn't quite work:
button3.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
String uriString =
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
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é
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
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
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
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
80 matches
Mail list logo