[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] Re: Using layout includes with layouts that are greedy (want to take the entire screen space)

2009-07-31 Thread Hamy
ems harder. http://schemas.android.com/apk/res/android"; android:layout_height="fill_parent" android:orientation="vertical"> Thanks for any help! On Jul 31, 1:37 pm, Hamy wrote: > Hi all, > > I would like to use an in my XML file to add

[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 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: http://schemas.android.com/apk/res/android";

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

2009-06-30 Thread Hamy
it that would be better. If you can post your 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 thi

[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 po

[android-developers] Sad day with SQLiteDatabase.rawQuery

2009-06-20 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 try

[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 HttpClie

[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 org.apache.http.entity.ByteArra

[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 wrote: > if

[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 ther

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

2009-06-14 Thread Hamy
r 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 andro

[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 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 w

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

2009-05-27 Thread Hamy
On May 27, 12:39 pm, Marco Nelissen wrote: > On Wed, May 27, 2009 at 10:23 AM, Hamy 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

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

2009-05-27 Thread Hamy
ile 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,

[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 work.

[android-developers] Re: adb push wtf

2009-05-27 Thread Hamy
sh ~/Desktop/ff.mp4 /data/data/org.test/files/ff.mp4 HTH Hamy On Apr 6, 10:36 am, Bo wrote: > On Apr 5, 8:33 am, Mark Murphy wrote: > > > Bowrote: > > > Would you please give a little more detail about pushing files to that > > > app-local file sotre? I still got th

[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 fir

[android-developers] Re: Assistance with large datasets

2009-05-25 Thread Hamy
'. I 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 wrote: > > I'd reverse the question: if you aren't exposing the data to other > > applications, what are you *gaining* by using ContentProvi

[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 wrote: > Because of > this:http://www.cygnus-software.com/papers/comparingfloats/comparingfloats... > > > > On Thu, May 14, 2009 at 5:05 PM, Hamy wrote: > > > Raphael, > > > It's been a

[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 wrote: > On Thu, May 14, 2009 at 4:42 PM, Hamilton Turner wrote: > > > > > Hi all, > > I have been sear

[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 m

[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 wrote: > Don't you