[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-01-31 Thread Chander Pechetty
make sure your list item does not contains focusable children (like buttons, imageviews) setting android:focusable=false usually works for buttons and so on... On Jan 30, 2:42 pm, qmwestview qmwestv...@googlemail.com wrote: Hi, I have a working ListActivity class. Each of the list item

[android-developers] Re: Android Programming Class

2010-01-31 Thread Bob Kerns
You know, the sad thing is that you'd find it surprising that 8th- graders would know Java well enough to program apps for Android. So very rare are schools and teachers who actually GET that kids can learn to program, and properly taught, are empowered and excited by it. Seymour Papert was

[android-developers] Simple LinearLayout Question

2010-01-31 Thread scastria
Maybe I am missing something here: I have a simple horizontal LinearLayout with fill_parent set containing 3 TextViews inside it. I have set each of the TextViews to have 1.0 weight. My goal was to get each TextView to take up 33% of the LinearLayout. This sort of works, but the TextView sizes

[android-developers] Re: listview is getting me mad plase help

2010-01-31 Thread free1000
Just out of curiosity why do you have this in the ListView definition android:isScrollContainer=true Not saying it has anything to do with your problem,just wondering. The list knows how to scroll without this attribute being set. P On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote: hi

Re: [android-developers] Re: sdk setup.exe and windows 7

2010-01-31 Thread Android Development
hi Xavier, These issues on the tracker are related to this probelem: http://code.google.com/p/android/issues/detail?id=3917 http://code.google.com/p/android/issues/detail?id=3917#c14and http://code.google.com/p/android/issues/detail?id=6041 On Sat, Jan 30, 2010 at 4:17 AM, Xavier Ducrohet

[android-developers] Receiver during timeout: GentleAlarm developer needs help

2010-01-31 Thread mot12
Hi, This has been driving me crazy for a week: My GentleAlarm app has registered a receiver for android.intent.action.TIME_TICK in Activity_Nightmode, updating the time once per minute on the night display. When an alarm rings, an Activity_AlarmAlert comes up and starts an alarm service to play

[android-developers] avd hangs

2010-01-31 Thread Andrew Green
I've tried to install android dev on a netbook I have. Specs are not great though not too bad. When i run an avd it takes a while to get to the animated shiny android logo . Though it never gets past this. Even after waiting over half an hour. I have created a few avd's with different options yet

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Mario Zechner
@Kevin I can easily see wheter something runs at 30 or 60fps. http://www.gamasutra.com/blogs/RadekKoncewicz/20100106/4021/Framerates_Do_Matter.php is an interesting article on the matter @Federico The thread over at

Re: [android-developers] VerifyError - how can I solve this error?

2010-01-31 Thread brian karlo gutierrez
Hello,     Im not sure the cause of your VerifyError but in my case before I have tried this when Im subclassing the MapActivity...I got this VerifyError saying that the class that extends the MapActivity lets just say MyMapActivity.class is not found. During compilation no error but during

[android-developers] searching doc about com.google.android.com

2010-01-31 Thread zehunter
hi, i'm looking for some document, example about how it's possible to interact with this component : com.google.android.gm. it's about google mail service/client. is their any provider to act with database? is it possible to call this app with some parameter ? is it possible to find source code?

[android-developers] Re: Important Undocumented styles

2010-01-31 Thread Erik Martino
Thank you for the answer, instead of downloading the complete source of android you can browse it in gitweb http://bit.ly/btKBde /erik On Jan 29, 1:07 pm, skink psk...@gmail.com wrote: On Jan 29, 12:37 pm, Matt Oakes m...@matto1990.com wrote: In other words, look at the source code :)

[android-developers] Testing bluetooth on android dev phone 1

2010-01-31 Thread Nikhil Agarwal
Android 2.0 has not been released for the dev phone 1 and so I was wondering if it is possible to test applications that require bluetooth in any other way. You can't test it on the emulator as well. Any suggestions? -- You received this message because you are subscribed to the Google Groups

[android-developers] how can i access a sqlite database that is not own by my application?

2010-01-31 Thread zehunter
hi, i'm searching information about how i can access a specific database that to not belong to me, and that is store in /data/data/com directory is it possible without root access? it it possible with root access, and how? thanks in advance for all your help, regards, -- You received this

[android-developers] Re: Rating bar cut off

2010-01-31 Thread ls02
I do not have any padding or margins in both ratign bar itself or in parent linear layout that hosts the ratign bar. On Jan 29, 1:25 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com wrote: For some reason, I find that if you use padding, ratingbars often get cut off.  Try using margins instead.

[android-developers] Re: Bluetooth connect socket timeout

2010-01-31 Thread Ron
Here's some additional clues: Logcat says: 01-31 08:26:30.807: INFO/BluetoothEventLoop.cpp(1031): agent_event_filter: Received method org.bluez.Agent:RequestPinCode 01-31 08:26:50.158: WARN/ActivityManager(1031): Timeout executing service: ServiceRecord{447e6dc8

[android-developers] How do I get the KeyEvent when screen is OFF

2010-01-31 Thread awwa
Do you know how getting the KeyEvent when screen is OFF? (ex: KEYCODE_DPAD_CENTER) I want to get the keyevent without screen ON. Thank you. -- 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] Re: Android Programming Class

2010-01-31 Thread Mihai Fonoage
Hi Josh, We are teaching undergrad and grad students Android at FAU. Our end goal is to get high school students interested in Android. I salute your efforts and I donated for these efforts! Mihai Fonoage On Jan 30, 6:20 pm, joshbeck josh.beck2...@gmail.com wrote: Hello everyone: I teach an

[android-developers] Is it possible to un-parcel a parcel without knowing what is in it?

2010-01-31 Thread Mike Luck
I have a published app that triggers after the Android Alarm Clock goes off. I read the Alarm Clock Label and if it matches a user provided label to trigger off of, my app is triggered. This works great. The problem is that the HTC Sence UI Alarm Clock uses a different Intent and the extras for

Re: [android-developers] Bluetooth connect socket timeout

2010-01-31 Thread avin gupta
Hi ron the g1 made by connect only handsets.its not working with others like pc and mobiles. NIRMAL On Jan 28, 2010 7:26 AM, Ron ronbruck...@comcast.net wrote: I'm getting a connect timeout using Android as a bluetooth client connecting to a server device. I'm pretty sure the UUID is correct

[android-developers] Re: Build Source on Windows

2010-01-31 Thread Thisara Rupasinghe
Thanks all for your commets... On Fri, Jan 29, 2010 at 10:58 AM, Thisara Rupasinghe thisara...@gmail.comwrote: Hi all, As i know Android source can not be build on Windows. Cant we work that on windows too like its on Mac. Why is this can not build on windows? what are the barriers? if

[android-developers] Re: Simple LinearLayout Question

2010-01-31 Thread Lance Nanek
The weight controls how the remaining space is used after the sizes are taken into account. That's why you often see width/height set to zero where weight is used. On Jan 31, 3:49 am, scastria scastria...@gmail.com wrote: Maybe I am missing something here: I have a simple horizontal

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
@Kevin Just like Mario, I can easily tell between 30 and 60fps, it makes a world of difference to me. I'm only going to be drawing simple 2D quads, no complex geometry, so 60 fps is very important to me. Anyway, the question is not whether I need 60 fps or not, the question is: Is the PowerVR

[android-developers] Re: how can i access a sqlite database that is not own by my application?

2010-01-31 Thread Brion Emde
You cannot do this, ever. It is fundamental to the security model of Android. The other database must have a published ContentProvider implemented on it for you to be able to access its data. http://developer.android.com/intl/de/guide/topics/security/security.html On Jan 31, 6:00 am, zehunter

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Lance Nanek
I don't have a Droid to test on, but if you haven't tried it already, it might be worth dropping the various texture settings down to their fastest/lowest quality and enabling mipmaps to check if that's where the problem is. Something like this: gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Robert Green
Federico - are you using GLSurfaceView or did you init EGL yourself? If you initialized it yourself, did you check to make sure the config gave you 24 bits of depth and not 16? That would be one thing to cause the slowdown. I usually get 40FPS on a Droid full-screen (not with a big quad but with

[android-developers] Problem finding a contact when ID is known

2010-01-31 Thread andrew android
I am having a problem viewing a contact in my app when I know the ID (because we just queried and stored it). I see some comments that a LOOKUP_URI is required but I don't know how to use it and no matter what, I get The contact does not exist even though I know with 100% certainty that it does.

[android-developers] Unable to get map overly to show

2010-01-31 Thread andrew android
My map overlay is not showing up after several attempts Here is my Overlay class code: public class myOverlay extends Overlay{ private final int mRadius = 6; @Override public void draw(Canvas canvas, MapView mapView, boolean shadow) {

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
Hi Lance, Yes, already tried using mipmaps, and every possible combination of min and mag filters. Still can't sustain 60fps with one fullscreen textured quad. I checked GL_DEPTH_BITS and it's properly set to 24. Thanks, Federico On Jan 31, 1:58 pm, Lance Nanek lna...@gmail.com wrote: I don't

[android-developers] Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread David Toledo
Hi All How to implement SQL Like in SQLiteQueryBuilder? Thanks David -- 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: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
Hi Robert, I'm using GLSurfaceView. I checked GL_DEPTH_BITS and indeed I have a 24 bit depth buffer. Since you have a Droid, could you do me a favor? Could you make a simple app with nothing but a GLSurfaceView, load a 1024x1024 texture (I'm actually using 512x1024, but 1024x1024 should show the

Re: [android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Kevin Duffey
Droid has dedicated video ram I believe. Not sure about other devices. I would guess the Nexus One does as well. On Sun, Jan 31, 2010 at 9:54 AM, Federico Carnales fedecarna...@gmail.comwrote: Hi Robert, I'm using GLSurfaceView. I checked GL_DEPTH_BITS and indeed I have a 24 bit depth

Re: [android-developers] Unable to get map overly to show

2010-01-31 Thread Kevin Duffey
Hmm.. I don't know.. I did not set the overlay position.. I just added it to my mapView and mine shows up. Try working with your location settings. I am not sure why the Location is needed tho. I use an ItemizedOverlay for a list of items I pull down from a server, which works fine. My map then

Re: [android-developers] Re: Android Programming Class

2010-01-31 Thread Kevin Duffey
Bob, I don't disagree at all. I am just amazed that Java has finally reached the 7th grade or so over say, Basic. Back in 1984 I was learning Basic on apple 2s in the 7th grade. I loved it. It is what started me on the path that leads to where I am today. I'd say out of several classes and

Re: [android-developers] Is it possible to un-parcel a parcel without knowing what is in it?

2010-01-31 Thread Kevin Duffey
That is odd? Is it an older version of Android and thus an older API? I am confused as to why an Android device would not do the same thing as other devices? The only thing that would make sense is that there is an older API on the device and the one you're using is newer? If that is the case,

[android-developers] WebView: How to find out that is scrolled?

2010-01-31 Thread Mariano Kamp
I would like to be notified when the user scrolled in the WebView. Besides WebView.setScrollChanged() being protected this looks like the right method. Unfortunately it doesn't seem to care for user induced scrolling, e.g. scrolling with the keyboard. Any idea? Cheers, Mariano -- You received

Re: [android-developers] Problem finding a contact when ID is known

2010-01-31 Thread ▯▯▯▯
Contact IDs are volatile, they often change as a result of aggregation. You need to store the lookup key rather than the id of a contact if you want a more stable reference. Cheers, Dmitri On Jan 31, 2010 9:42 AM, andrew android andygoldm...@gmail.com wrote: I am having a problem viewing a

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
I've created a small sample class to show the problem: http://fedecarnales.googlepages.com/TextureTest.java It simply creates a full screen GLSurfaceView, sets up an orthogonal 2D matrix, creates a 1024x1024 texture from the default icon file, and displays it as a 480x854 quad on screen. The

[android-developers] Re: Anyone used mob4hire for testing?

2010-01-31 Thread nEx.Software
I am registered as a tester, but haven't used it as a developer. On Jan 29, 12:24 am, Jason jason.poli...@gmail.com wrote: I just read an article about these guys: http://www.mob4hire.com They use some sort of crowd based testing process so you can test apps on a variety of handsets. Just

[android-developers] Re: Service Context.stopSelf() does not work!

2010-01-31 Thread Albert
Process.killProcess(pid); is killing the whole process stopSelf() and stopService() stops the service but the process which is still in the background and Android will kill it when needed. You don't need to kill your process to stop a service, if you read through the docs or this forum you will

[android-developers] device shaked? accelerometer once more

2010-01-31 Thread kretes
There has been a few discussions about it, but there is still not a good solution. Simple problem - recognize when the device is laying somewhere not moving (in relation to earth) and when is moving. Accelerometer seems to be a good sensor to use. First suprise came to me, when I logged data from

[android-developers] ItemizedOverlay ArrayIndexOutOfBoundsException

2010-01-31 Thread Eric Crump
I've seen all the posts about setLastFocusIndex(-1) and I've tried that. However, my application is still crashing. I'm not sure what to try. Here's my code public class UnitOverlay extends ItemizedOverlay { private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem ();

[android-developers] ItemizedOverlay ArrayIndexOutOfBoundsException

2010-01-31 Thread Eric Crump
I've seen all the posts about using setLastFocusedIndex(-1). I've tried that but my app is still crashing. I don't know what else to do to fix it. Any help is appreciated. public class UnitOverlay extends ItemizedOverlay { private ArrayListOverlayItem mOverlays = new

[android-developers] Re: Dev Guide misunderstands static classes?

2010-01-31 Thread pcockerell
Done! Thanks, Pete On Jan 30, 11:13 pm, joebowbeer joe.bowb...@gmail.com wrote: You should file a documentation bug and submit a patch for review. For example: http://code.google.com/p/android/issues/detail?id=895 On Jan 29, 9:27 pm, pcockerell pcocker...@gmail.com wrote: Hi there

[android-developers] Re: device shaked? accelerometer once more

2010-01-31 Thread Streets Of Boston
I'm not that familiar with how the sensor works, but judging from the values you report, i looks like the device is not entire horizontal or vertical. Your computeRealForce hovers around 0.4 (horizontally) or -1 (vertically). I guess you have to find a proper 'baseline' against which you can

[android-developers] Re: EditText - maximum width

2010-01-31 Thread android beginner
Hi, Any suggestion? Thanks On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com wrote: Hi, I made the EditText to accept only 4 characters, but my question was different. sorry for not being clear. When the EditText comes up, by default its very small(equavalent to

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Robert Green
I'd test it on my Droid but my graphics guy has it right now. I can try it out in a week or two when I get it back from him. I think you may be video memory bound in some form. It sounds like it's sheer bytes slowing you down. Can you load the texture as RGB_565 mipmapped - nearest and give me

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread Brion Emde
The LIKE part of the query appears in the WHERE clause, which would show up in your selection and selectionArgs of your Query, when you run query, not as a part of the QueryBuilder itself: a href=http://developer.android.com/reference/android/database/ sqlite/SQLiteQueryBuilder.html#query

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread Brion Emde
Oops, that link didn't work. It's http://developer.android.com/reference/android/database/sqlite/SQLiteQueryBuilder.html#query(android.database.sqlite.SQLiteDatabase, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String) On Jan 31, 10:53 

Re: [android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread David Toledo
No Understand. selectionArgs of your Query How to fill selectionArgs String selectionArgs[] = new String[] { ?A }; String columns[] = new String[] { MyContentProvider.VOCA_LIST }; cur = r.query(MyContentProvider.CONTENT_URI, columns,MyContentProvider.VOCA_LIST+='+text+', selectionArgs ,

[android-developers] Re: Problem finding a contact when ID is known

2010-01-31 Thread andrew android
Please tell me, though, how do you create a lookup key? Can you give or point me to a good example? On Jan 31, 12:47 pm, Dmitri Plotnikov () dplotni...@google.com wrote: Contact IDs are volatile, they often change as a result of aggregation.  You need to store the lookup key rather than

[android-developers] custom adapter

2010-01-31 Thread Andrei
How do i set row height if text of some rows more than one line when writing custom ArrayAdapter? Thanks -- 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

Re: [android-developers] custom adapter

2010-01-31 Thread android beginner
I believe in your custom ArrayAdapter, you would have override getView. get the default text size, double the size and again set the text size. Hope this helps. On Mon, Feb 1, 2010 at 10:51 AM, Andrei gml...@gmail.com wrote: How do i set row height if text of some rows more than one line when

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
Did the test you requested, RGB_565, mipmapped - nearest. Got 18ms/ frame. Better, but still unacceptable as this would only be the background image. The final app uses several sprites with alpha on top of the background, so the performance drops significantly. What's funny is that I'm getting

Re: [android-developers] Re: Multi-threaded http requests cause exception

2010-01-31 Thread Petroleum Nasby
On Wed, Jan 27, 2010 at 5:22 PM, Frank Weiss fewe...@gmail.com wrote: When you say thread, I hope you mean AsyncTask. That's the recommended way to run background tasks, such as network downloads, and reliably handle the resuslts in the UI thread On Android 1.5, AsyncTask single-threads.

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
Correction: using SurfaceView to draw the background image does indeed give me 60fps. And when adding the sprites on top of it, the performance is not 60fps anymore, but still better than GLSurfaceView. Federico On Jan 31, 9:09 pm, Federico Carnales fedecarna...@gmail.com wrote: Did the test

[android-developers] Re: custom adapter

2010-01-31 Thread Andrei
true is there example? On Jan 31, 7:01 pm, android beginner android.beginne...@gmail.com wrote: I believe in your custom ArrayAdapter, you would have override getView. get the default text size, double the size and again set the text size. Hope this helps. On Mon, Feb 1, 2010 at 10:51 AM,

[android-developers] scrollHorizontal problem on TextView

2010-01-31 Thread jotobjects
I have run into a similar problem. Apparently focus is required to get ellipsize=marquee or scrollHorizontal=true to operate. I haven't found where that is documented? Can anyone point that out? Bigger problem is I have one line TextView and even giving it focus doesn't allow it to scroll.

Re: [android-developers] Re: custom adapter

2010-01-31 Thread android beginner
This is just an example, which may not be applicable exactly in your case. public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater=context.getLayoutInflater();//initiliaze context in ur constructor View

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread jotobjects
Syntax of LIKE expression - http://www.sqlite.org/lang_expr.html#like On Jan 31, 3:23 pm, David Toledo dtole...@gmail.com wrote: No Understand. selectionArgs of your Query How to fill selectionArgs  String selectionArgs[] = new String[] { ?A };  String columns[] = new String[] {

Re: [android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread Frank Weiss
Hi David. The like keyword is semantically similar to the = operator in the where clause. For example: ... where country=CA and name like Sam% Using the query builder, the selection parameter would be country=? and name like ?, and selectionArg[1] would be Sam%. -- You received this message

[android-developers] changing the background color of an activity

2010-01-31 Thread guich
Hi, When i launch Activity A, the screen goes black, then dark-gray. Then A launches B, and the screen goes black and dark-gray again. Is there a way to set the default background color to black? Activity A has no screen, its just a stub that calls B. thanks and regards guich -- You

[android-developers] Re: Bluetooth connect socket timeout

2010-01-31 Thread Ron
I don't understand this message. Anyway, I have a Motorola Droid running 2.0.1. On Jan 31, 10:47 am, avin gupta businessguyrahuls...@gmail.com wrote: Hi ron the g1 made by connect only handsets.its not working with others like pc and mobiles. NIRMAL On Jan 28, 2010 7:26 AM, Ron

[android-developers] Re: Multi-threaded http requests cause exception

2010-01-31 Thread Streets Of Boston
Petroleam is right about AsyncTask using a thread-pool of only one thread on 1.5. Higher versions of Android use a pool of more than one thread. You can do something similar with ExecutorService and FutureTask classes (java.util.concurrent; i believe that AsyncTask is based upon these classes)

[android-developers] webview selection

2010-01-31 Thread jbo
Hi, is it possible to handle selections on a WebView? Any suggestion on how to do this without having to touch WebKit api? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Multi-threaded http requests cause exception

2010-01-31 Thread Mark Murphy
Petroleam is right about AsyncTask using a thread-pool of only one thread on 1.5. Higher versions of Android use a pool of more than one thread. You can do something similar with ExecutorService and FutureTask classes (java.util.concurrent; i believe that AsyncTask is based upon these

[android-developers] Re: How can I enable assert statement on Android?

2010-01-31 Thread EricWang
Thank you very much. It is what I need!! On Jan 28, 10:43 am, fadden fad...@android.com wrote: Did you stop/start the app framework after making the property change?  (There are some general instructions at the top of that document -- the property change doesn't affect anything until the

[android-developers] Why 'system' user cannot access /sdcard ?

2010-01-31 Thread david 1
Anybody know the reason for this issue? How to resolve it? Workaround is OK, too. I have a Java-JNI-App which must run in 'system' user mode, but once switch to that, my App then cannot access /sdcard. Confused. Any hint is appreciated. Thanks. david -- You received this message because

Re: [android-developers] Re: Problem finding a contact when ID is known

2010-01-31 Thread ▯▯▯▯
You don't need to create it. It is column on the Contacts table. There is also a conenience method on Contacts that will retrieve it for you. On Jan 31, 2010 3:43 PM, andrew android andygoldm...@gmail.com wrote: Please tell me, though, how do you create a lookup key? Can you give or point me

Re: [android-developers] Why 'system' user cannot access /sdcard ?

2010-01-31 Thread Dianne Hackborn
This doesn't belong in android-developers, but: if you hold an fd on the sd card you can be killed so that the sd card can be cleanly unmounted, and we don't want the system to be killed. Please move any further discussion to android-porting, since this is not a discussion about SDK app

[android-developers] Re: ItemizedOverlay ArrayIndexOutOfBoundsException

2010-01-31 Thread dye...@wivsys.com
I got this error, too. However, calling mapView.invalidate() on the enclosing map seemed to take care of this. I suspect that the map caches the order of the overlays, and this comes out of sync when an item is removed. Here is the following code I used: public void clear() {

[android-developers] Re: changing the background color of an activity

2010-01-31 Thread dye...@wivsys.com
Have you tried to set the theme of your activity to Android's Theme.Black? activity android:name=... android:label=... android:theme=@android:style/Theme_Black / On Jan 31, 5:30 pm, guich guiha...@gmail.com wrote: Hi, When i launch Activity A, the screen goes black, then

[android-developers] Particular Tag Parsing

2010-01-31 Thread Sasikumar.S
Hi, How to parse only the particular tag using SAX Parser?.. *sample.xml* * * main type= sub connameGeorge/conname conphonenumber840123456/conphonenumber extraUS/extra /sub /main when i try to parse the above sample.xml i'm getting all the values(conname, canphonenumber extra). But i need only

[android-developers] Re: how do you do the equivalent of hitting the home button in s/w

2010-01-31 Thread grace
hi, guess this can solve ur problem create an intent with { action=android.app.action.MAIN, category=android.app.category.HOME } this will launch the home screen(like when u click the home button) going through documentation of android could be of even more help On Jan 29, 3:02 am, sdphil

Re: [android-developers] Re: (x,y) co-ordinates of touched area ?

2010-01-31 Thread Vivek Satpute
Hi Martin, On Sat, Jan 30, 2010 at 6:47 AM, Martin google-gro...@digle.de wrote: This is a double-post. You posted the same question here: http://groups.google.com/group/android-beginners/browse_thread/thread/9d3d1d2ae4ac9ff3 I posted the same question in two different mailing list

[android-developers] How to call a java script function from android activity

2010-01-31 Thread Praveen Varma
can u tell me how to call a java script method from android activity... Thanks -- 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: Simple LinearLayout Question

2010-01-31 Thread dye...@wivsys.com
Why don't you take a look at the following blog: http://andmobidev.blogspot.com/2010/01/setting-width-of-view-using-percentage.html Regardless of text length--as you were expecting--I was able to show three equal-width TextViews. The combination of android:weightSum, android:layout_weight, and

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Federico Carnales
Hi Lance, I doubt that's going to change much, I'm not doing any complex geometry or anything. Just to make sure, I removed the glClear, glActiveTexture, and glBindTexture calls from the draw method, and the performance is exactly the same. The performance hit seems to come from using heavy

[android-developers] Re: How to call a java script function from android activity

2010-01-31 Thread Kumar Bibek
There are a lot of examples that you can look at... http://android-developers.blogspot.com/2008/09/using-webviews.html Check out the above link and you will get an idea. Kumar Bibek On Feb 1, 9:09 am, Praveen Varma dsrpraveenva...@gmail.com wrote: can u tell me how to call a java script

[android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Kumar Bibek
SAX parsing is done line by line, so there is no way that you can pick up a specific tag if you are SAX parsing. Kumar Bibek On Feb 1, 8:30 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to parse only the particular tag using SAX Parser?.. *sample.xml* * * main type= sub

Re: [android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Sasikumar.S
Ok. Thank u very much for ur reply. In SAX Parser it will parse line by line. How can we get only the particular data alone. Ex:- In a XML file there are 5 tags. SAX is parsing all the 5 tags. I need only the 1,3 4 tag value. How to retrieve that?. I did not need 2 5th value. can you pls

[android-developers] Re: Builtin layout xml source code?

2010-01-31 Thread Kumar Bibek
Sure, Open your Android SDK folder. There, you will have to dig into the platforms, then your specific sdk, res, layout. Check it out. Kumar Bibek On Jan 31, 8:57 am, scastria scastria...@gmail.com wrote: Anyway to see the source xml for android.R.layout.simple_expandable_list_item_2   ?? --

[android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Kumar Bibek
If you want to have a look at a code sample, please find an example here. http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html You just need to ignore the data which you do not need. On Feb 1, 9:51 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Ok. Thank u very much for ur

Re: [android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Frank Weiss
SAXParser does NOT parse line by line. That's incorrect. What you need is something like this: @Override public void characters(char[] ch, int offset, int count) { sb.append(ch, offset, count); } @Override public void endElement(String namespaceUri, String localName, String qName) { if

Re: [android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Sasikumar.S
Thank u frank. On Mon, Feb 1, 2010 at 10:29 AM, Frank Weiss fewe...@gmail.com wrote: SAXParser does NOT parse line by line. That's incorrect. What you need is something like this: @Override public void characters(char[] ch, int offset, int count) { sb.append(ch, offset, count); }

[android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Kumar Bibek
Well, true, it's not line by line, to be more specific, it's character by character. What I meant was, you can't just pick up specific data from the XML, you will have to go through the whole XML, or till the tag which you want to fetch. Kumar Bibek. On Feb 1, 10:12 am, Sasikumar.S

Re: [android-developers] Re: Particular Tag Parsing

2010-01-31 Thread Sasikumar.S
Ok Thank U Kumar On Mon, Feb 1, 2010 at 11:18 AM, Kumar Bibek coomar@gmail.com wrote: Well, true, it's not line by line, to be more specific, it's character by character. What I meant was, you can't just pick up specific data from the XML, you will have to go through the whole XML, or

[android-developers] Flipping view upside down

2010-01-31 Thread satish bhoyar
hi all, i want to make my textview flip upside down. i tried using the rotateanimation i can do it on side but how we can do it upside down? please give suggestion. thanks, satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: OpenGL poor performance with textures?

2010-01-31 Thread Robert Green
The texture memory copy / fill bottleneck has been fairly consistent across all chips so far. It's more pronounced on the MSM7200 chips but is clearly still there. The good news is that while you might not be able to get your upper FPS that you were hoping for, you probably will be able to get a

[android-developers] Re: fd = open(/dev/video0, O_RDWR) fails

2010-01-31 Thread sachinikam
After enabling UVC config variables issue is solved. -- 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] Is it possible to send some data while making a call

2010-01-31 Thread saikiran n
Hi We can make a call using intent . Is it possible to keep some data in this intent to receive at the destination? If so please give sample code Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: how can i access a sqlite database that is not own by my application?

2010-01-31 Thread remy berrebi
hi, thanks for your answer, i'm aware about security model, and permissions ans such. that's why i'm also asking if it's possible with ROOT access, as i imagine in normal state (no root) it's probably not possible. more of that, i still not find documentation, or any way to see what

[android-developers] Development on sip

2010-01-31 Thread Tony
Is there anyone developing sip (libosip2) related Apps on android platform,I have tried my best to test my sip App , but finally failed as i didn't know how to spell the sip URIs, I tested the app on two emulators, one of them was used to be a server.and the other was used as a client. both of

Re: [android-developers] Re: How to call a java script function from android activity

2010-01-31 Thread Praveen Varma
Thank you Kumar it was very helpful. On Mon, Feb 1, 2010 at 10:15 AM, Kumar Bibek coomar@gmail.com wrote: There are a lot of examples that you can look at... http://android-developers.blogspot.com/2008/09/using-webviews.html Check out the above link and you will get an idea.

Re: [android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread David Toledo
Thanks. It is Perfect Now 2010/1/31 Frank Weiss fewe...@gmail.com Hi David. The like keyword is semantically similar to the = operator in the where clause. For example: ... where country=CA and name like Sam% Using the query builder, the selection parameter would be country=? and name

[android-developers] Re: bluetooth support

2010-01-31 Thread Honest
I used the following third party too. http://code.google.com/p/android-bluetooth/ can i do SPP in it ? can you suggest me which android SDK i should use for my purpose of SPP communicaation and more device should be supported. can i use 1.5 ? On Jan 30, 9:58 am, DonFrench dcfre...@gmail.com

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread skink
On Feb 1, 7:59 am, David Toledo dtole...@gmail.com wrote: Thanks.  It is Perfect Now hi, if you don't know it already, 'like' has some weird behavior when used in quite big databases - it seem not to use indexes, see:

[android-developers] Application not run in the background

2010-01-31 Thread pramod.deore
Hello everybody, In my application I want to send sms, but the application must have to run in the background. It send the sms but it is not run in the background. I have following code. //Background.java package com.micro; import android.app.Activity; import android.content.Intent; import

Re: [android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread David Toledo
Thanks. I am using the parameter limit 2010/2/1 skink psk...@gmail.com On Feb 1, 7:59 am, David Toledo dtole...@gmail.com wrote: Thanks. It is Perfect Now hi, if you don't know it already, 'like' has some weird behavior when used in quite big databases - it seem not to use

[android-developers] Re: changing the background color of an activity

2010-01-31 Thread guich
Hi, Thanks for the answer. I also use android:theme=@android:style/Theme.NoTitleBar Can i use Black *and* NoTitleBar at the same time? thx guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread skink
On Feb 1, 8:37 am, David Toledo dtole...@gmail.com wrote: Thanks.  I am using the parameter  limit the issue is not about 'limit' parameter. it's about the difference between internal implementation of 'like' 'glob' search patterns - at least in 1.5 like didn't use indexes which yields to

  1   2   >