[android-developers] ContentResolver.query() returning null Cursor

2009-10-04 Thread Hamy
Hi all, Wanted to try and help some people out here. It took a while to figure this out, so hope it helps ;). So, if you are calling ContentResolver.query() and getting back a null Cursor, then you might want to ensure that you are actually passing in a valid URI. Only URI's with the content://

[android-developers] Using layout includes with layouts that are greedy (want to take the entire screen space)

2009-07-31 Thread Hamy
Hi all, I would like to use an include / in my XML file to add a layout below a MapView(or any other greedy layout). I have been trying for a few hours now, and no luck so far. I was hoping someone could give me a hand. Here is what my XML looks like now: LinearLayout

[android-developers] Re: Using layout includes with layouts that are greedy (want to take the entire screen space)

2009-07-31 Thread Hamy
=my_key android:layout_above=@id/ImageView01/ /RelativeLayout Thanks for any help! On Jul 31, 1:37 pm, Hamy hamilt...@gmail.com wrote: Hi all, I would like to use an include / in my XML file to add a layout below a MapView(or any other greedy layout). I have been trying for a few hours

[android-developers] Re: Slow searching in large sqlite database ?

2009-06-30 Thread Hamy
structure and query, perhaps we can figure out a way to get the same results without a LIKE. Thanks, Hamy PS - skink, would you reference your previous post? I would like to read it! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] WST 3.1 does not allow editing of Android manifest

2009-06-28 Thread Hamy
. org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelectionModeEnabled ()Z Reverting back to WST 3.0.4 fixes the issue. Thanks, Hamy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Sad day with SQLiteDatabase.rawQuery

2009-06-21 Thread Hamy
Could someone please help me spot the bug here? Mainly, I can never seem to find a value once it has been stored in the database (I am 100% positive that the value is there). I can store it the first time, but the cursor in my findVenue() method (see below) never has any data. :-( If I do not

[android-developers] Re: Retrieving Records from a created Database and put it in a SPINNER

2009-06-20 Thread Hamy
if it is not there. The su command at the beginning simply allows you to change directories and list directories more easily, it is not required. Without su, you could do cd /data and a list (ls) would likely fail, citing permission problems Thanks, Hamy On Jun 19, 3:02 pm, Georgy georgearna...@gmail.com

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Hamy
Sorry, realized right after I sent that that the imports might be useful. H import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Hamy
Not sure if this will help, but I hope so. This is code I found in an application my research group is working on, and it is under apache v2 license. Thanks, Hamy Log.v(LOG_LABEL, LOG_MSG_PREFIX + Entering HTTPPoster.doAccidentPost); final HttpClient c = new

[android-developers] Detecting clicks on a google maps Overlay

2009-06-15 Thread Hamy
Hey all, I would like to put a bunch of dots on a google map, and have the appropriate listener called when one of them gets clicked. All i seem to be able to find is to get the location at which the click occurred, and then iterate through the dots until I find one that I think matches. Is

[android-developers] Keeping track of database row ID's

2009-06-14 Thread Hamy
for a private application only? To make your objects store the row ids? Thanks, Hamy --~--~-~--~~~---~--~~ 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

[android-developers] getting user information, and the accuracy of such information

2009-06-04 Thread Hamy
Hey all, I am trying to access user info on the device. I am interested in the user name, phone #, email, and ANDROID_ID. I have been using the TelephonyManager to get the phone number, and ANDROID_ID is simple to get, but could someone let me know how I am supposed to go about getting the user

[android-developers] Re: Why the Android docs are inconsistent?

2009-05-28 Thread Hamy
Agreed. Please file doc bugs for the benefit of is all. Hamy On May 27, 11:12 pm, Raphael r...@android.com wrote: Please file doc bugs athttp://b.android.com-- the API probably evolved before 1.0 without the javadoc being updated. R/ On Wed, May 27, 2009 at 6:51 PM, havexz bali.param

[android-developers] Re: adb push wtf

2009-05-27 Thread Hamy
/org.test/files/ff.mp4 HTH Hamy On Apr 6, 10:36 am, Bo wang.b.fr...@gmail.com wrote: On Apr 5, 8:33 am, Mark Murphy mmur...@commonsware.com wrote: Bowrote: Would you please give a little more detail about pushing files to that app-local file sotre? I still got the permission denied when I

[android-developers] Can only hear sound when playing video

2009-05-27 Thread Hamy
Hey all, I can only hear sound when trying to play a video in a surfaceView. The video codecs are very likely supported - I was reading this thread: http://groups.google.com/group/android-developers/browse_thread/thread/aeefa6c282c6dfcf where Mark Murphy mentions that the video is known to

[android-developers] Re: Can only hear sound when playing video

2009-05-27 Thread Hamy
a issue, but before I do, do you know if they include it elsewhere? I don't want to turn in an issue that says it is never mentioned, and then have them dismiss it because it was mentioned somewhere I didn't look. Thanks again, I am so relieved to be done with that! Hamy On May 27, 10:57 am, Marco

[android-developers] Re: Can only hear sound when playing video

2009-05-27 Thread Hamy
On May 27, 12:39 pm, Marco Nelissen marc...@android.com wrote: On Wed, May 27, 2009 at 10:23 AM, Hamy hamilt...@gmail.com wrote: Marco, Thank you so much! I just spent a day and a half trying every example I could get my hands on, and about 2 minutes before you replied I found a hint

[android-developers] Video Recording help

2009-05-26 Thread Hamy
Hi all, I am having some trouble getting video to record. Every time I call prepare(), I get a IOException with an error message prepare failed. Any help would be great. thanks, Hamy public class Test extends Activity { /** Called when the activity is first created

[android-developers] Re: Assistance with large datasets

2009-05-25 Thread Hamy
know that's not exactly what you were looking for, but it's my two cents Hamy On May 24, 9:07 am, Matt Williams m...@makeable.co.uk wrote: I'd reverse the question: if you aren't exposing the data to other applications, what are you *gaining* by using ContentProvider? If you want a model

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Hamy
Raphael, It's been a while since I was doing this kind of math, mind telling me why that would be advantageous here? Thanks! Hamy On May 14, 7:02 pm, Raphael r...@android.com wrote: On Thu, May 14, 2009 at 4:42 PM, Hamilton Turner hamilt...@gmail.comwrote: Hi all, I have been searching

[android-developers] Re: Finding if two line segments intersect

2009-05-14 Thread Hamy
Awesome, updated appropriately! On May 14, 7:07 pm, Romain Guy romain...@google.com wrote: Because of this:http://www.cygnus-software.com/papers/comparingfloats/comparingfloats... On Thu, May 14, 2009 at 5:05 PM, Hamy hamilt...@gmail.com wrote: Raphael, It's been a while since I

[android-developers] Do Cursor s stay valid across database changes?

2009-05-13 Thread Hamy
Hey All, I am looking to create objects that internally store a few cursors. When asked for data, those objects will use the cursors to get the data from the database. This is to hide my database structure from the rest of my app. My question is, if I get a cursor, and change the database with

[android-developers] Re: Projection Question

2009-05-12 Thread Hamy
I don't know, sadly - but I would really like to. I have done some reading, and apparently the projection is not very accurate. I have not tested this myself yet, so I do not know if that is true or not. Thanks, Hamy On Apr 12, 12:51 pm, Albert Hernández albert.hernan...@gmail.com wrote: Don't