[android-developers] Android : Why NUMBER_KEY return the number in reverse order

2011-01-03 Thread zohar lerman
0 down vote favorite Hi, I am trying to read the contact list using the following code: ContentResolver cr = getContentResolver(); Cursor cur = cr.query(People.CONTENT_URI,null, null, null, null); if (cur.getCount() 0) { while (cur.moveToNext()) { String id =

[android-developers] Re: Android : Why NUMBER_KEY return the number in reverse order

2011-01-03 Thread zohar lerman
First, thanks for your quick answer. Second, I am using SDK 1.5 therefore I am using Contacts.Phones.NUMBER_KEY. Third, Contacts.Phones.NUMBER is not normalize and include chars like ( and - and I want to compare between number I hold and number in the contact list -Z On Jan 3, 10:45 am, Sarwar

[android-developers] Re: Android : Why NUMBER_KEY return the number in reverse order

2011-01-03 Thread zohar lerman
thanks On Jan 3, 11:27 am, Sarwar Erfan erfanonl...@gmail.com wrote: Ok... here is the story then... Phone numbers are stored in stripped reversed order for easier matching. It helps to use the LIKE operator in SQL. For a normal SQL user, it might look same to use *where NUMBER_KEY LIKE

[android-developers] Android: issues after updating SDK manager

2010-12-19 Thread zohar lerman
I lately updated my Android SDK manager and since then my android went koo koo. I manage to fix most of the problems but 2 of them are still exists: 1. when I run the SDK Manager.exe I get Some packages were found but are not compatible updates message under Available Packages- android

[android-developers] Video is not shown when returning to app

2010-11-10 Thread zohar lerman
Hi, I have an activity with MediaPlayer and Button. The MediaPlayer contains a VideoView (using MediaPlayer.getDisplay(VideoView.getHolder())). When the button is pressed it pause the MediaPlayer and open a browser. returning to app suppose to continue the video (MediaPlayer .start()) When the

[android-developers] How to extend intent

2010-10-06 Thread zohar lerman
Hi, I am using the following code to play video: Intent myIntent = new Intent(Intent.ACTION_VIEW); Uri u = Uri.parse(path); myIntent.setDataAndType(u, video/*); try { context.startActivity(myIntent); } catch (ActivityNotFoundException e) { Log.e(TAG, cannot initiate video, e); } Is

[android-developers] Re: How to extend intent

2010-10-06 Thread zohar lerman
thanks On Oct 6, 11:55 am, Kumar Bibek coomar@gmail.com wrote: No, you cannot do that unless you know if the target component supports these callbacks (sets Result ) on finish. On Wed, Oct 6, 2010 at 3:21 PM, zohar lerman lirazo...@gmail.com wrote: Hi, I am using the following code

[android-developers] mediaController in APIDemo

2010-10-06 Thread zohar lerman
Hi I am using the code of APIDemo for streaming video. I want to add control bar to the videoview. I added the following code to the MediaPlayerDemo_Video.oncreate but the control was not shown: mPreview = (VideoView) findViewById(R.id.surface); MediaController mediaController = new

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

[android-developers] problem to run video stream in 1.5

2010-10-04 Thread zohar lerman
Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws the following exception: 10-04 10:46:42.073: ERROR/ZL(3984): error: Prepare

[android-developers] How to stream video

2010-10-02 Thread zohar lerman
Hi, I want to play video file that exists in one of my servers. I am using MediaPlay and VideoView classes and it works fine but the problem is that the video start to play only when it finished downloading the whole file. How can i stream it, meaning play the video while it continues to

[android-developers] Browser Source code

2010-08-29 Thread zohar lerman
Hi, Where can i find the Android Browser source code? Thanks Zohar -- 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: Browser Source code

2010-08-29 Thread zohar lerman
thanks On Aug 29, 2:27 pm, Mark Murphy mmur...@commonsware.com wrote: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a... On Sun, Aug 29, 2010 at 7:20 AM, zohar lerman lirazo...@gmail.com wrote: Hi, Where can i find the Android Browser source code? Thanks Zohar

[android-developers] Cannot play HTML5 video using webview

2010-08-26 Thread zohar lerman
Hi, I haven't been able to get the following html5 code to work: html head /head body video width=400 height=300 controls src=myvideo.m4v /video /body /html Notes: * I can see the video only with android browser but when i run it in WebView i see nothing. * I also tried with the

[android-developers] Does WebView Support html5 video?

2010-08-26 Thread zohar lerman
Can I load in Webview page that use html5 video tag? -Z -- 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] Can we determine Connection type information from the OS?

2010-07-31 Thread zohar lerman
I need to find is it 3G or WIFI connection - -- 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] Jar in Jar

2010-07-28 Thread zohar lerman
Hi, I am creating new Android widget for other users to use. I created JAR file from my project and it is working as expected when other users and this jar to their project. I am trying to enrich the widget and for that i am using other jar. So my JAR include another jar, and only my code can

[android-developers] Re: Jar in Jar

2010-07-28 Thread zohar lerman
extracting it first. On Jul 28, 9:12 am, zohar lerman lirazo...@gmail.com wrote: Hi, I am creating new Android widget for other users to use. I created JAR file from my project and it is working as expected when other users and this jar to their project. I am trying to enrich

[android-developers] Sorry, this video cannot be played on Nexus one 2.2

2010-07-19 Thread zohar lerman
Hi, I recently upgraded My Nexus one 2.1 to Nexus one 2.2. Since then i have problem to play mov files. I get Sorry, this video cannot be played error message. Intent myIntent = new Intent(Intent.ACTION_VIEW); Uri u = Uri.parse(url); myIntent.setDataAndType(u, video/*); try {

[android-developers] Re: Sorry, this video cannot be played on Nexus one 2.2

2010-07-19 Thread zohar lerman
Can you please provide an example? On Jul 19, 2:02 pm, Mark Murphy mmur...@commonsware.com wrote: Try using a real MIME type. Real MIME types do not have asterisks. On Mon, Jul 19, 2010 at 6:15 AM, zohar lerman lirazo...@gmail.com wrote: Hi, I recently upgraded My Nexus one 2.1 to Nexus

[android-developers] Re: Sorry, this video cannot be played on Nexus one 2.2

2010-07-19 Thread zohar lerman
Thanks but it still not working. Any other idea? On Jul 19, 2:38 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jul 19, 2010 at 7:31 AM, zohar lerman lirazo...@gmail.com wrote: Can you please provide an example? An example of a MIME type without an asterisk is: video/quicktime

[android-developers] Re: Sorry, this video cannot be played on Nexus one 2.2

2010-07-19 Thread zohar lerman
I guess it is the second option since the same file works as expected on htc 1.5 On Jul 19, 3:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jul 19, 2010 at 7:53 AM, zohar lerman lirazo...@gmail.com wrote: Thanks but it still not working. Any other idea? Not really

[android-developers] Re: Question About animation

2010-06-30 Thread zohar lerman
thanks On Jun 30, 11:02 am, Romain Guy romain...@android.com wrote: You simply need to use setFillAfter(true). On Wed, Jun 30, 2010 at 12:59 AM, zohar lerman lirazo...@gmail.com wrote: Hi, I want to move a view from location (x,y) to (x1,y1). What is the best way to do it? I tried

[android-developers] Google Maps App

2010-06-10 Thread zohar lerman
Hi, I have several Android devices and each of them has different version of Google Maps: 3.0 in HTC G1, 3.1.1 in HTC Dream and 3.4 in Nexus one and Motorola Droid. When i use the following code: Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(geo:0,0? q=Starbucks)); I get different

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-09 Thread zohar lerman
Thanks for your help but it still shrink the image. about the criteria: I have different criteria but to make it easy to explain i prefer this one. On Jun 9, 8:56 am, mort m...@sto-helit.de wrote: I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-09 Thread zohar lerman
Hi Mort, I just tried it again and i changed getItemViewTypeCount to getViewTypeCount and it is working as expected. Actually it even fixed some other issues that I had with the ListView thanks On Jun 9, 10:38 am, zohar lerman lirazo...@gmail.com wrote: Thanks for your help but it still shrink

[android-developers] ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread zohar lerman
Hi, I found strange behavior in ListView. I have ListView of TextView except from one entry that contains ImageView. when i on of the items is touched and scroll up and down the image is re-sized to about 2/3 its original size! Usually, the image remains in this smaller size when the user lifts

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread zohar lerman
I forgot to mention that it happens in SDK 2.1 but not in SDK 1.5 On Jun 8, 11:03 am, zohar lerman lirazo...@gmail.com wrote: Hi, I found strange behavior in ListView. I have ListView of TextView except from one entry that contains ImageView. when i on of the items is touched and scroll up

[android-developers] Sorry, this video cannot be played

2010-05-27 Thread zohar lerman
Hi, i am trying to open an youtube url but i get 'Sorry, this video cannot be played' message. It is not consistent and happend on htc ( dream and hero ) 1.5 devices but not on motorola droid. the code i am using is: Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(http://

[android-developers] You tube player class name

2010-05-24 Thread zohar lerman
Hi , I found that there is difference in class name of the YouTube player between devices: Some call it ‘com.google.android.youtube.PlayerActivity’ and some ‘com.google.android.youtube.YouTubePlayer’ My question is: Is there a way to retrieve the class name? Thanks -- You received this

[android-developers] Re: You tube player class name

2010-05-24 Thread zohar lerman
SO how do i open the you tube player? I hold youtube url (http://www.youtube.com/watch?v=dMH0bHeiRNg) and i want to show it directly in youtube player without opening the browser first? On May 24, 2:31 pm, Mark Murphy mmur...@commonsware.com wrote: zohar lerman wrote: Hi , I found

[android-developers] Android Market Place

2010-05-23 Thread zohar lerman
Is it possible to pass the android market place parameters for later use for example: request id? -- 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

[android-developers] Re: How to unregister listener after application get closed

2010-04-29 Thread zohar lerman
thanks On Apr 28, 5:42 pm, Mark Murphy mmur...@commonsware.com wrote: zohar lerman wrote: First thanks for your quick responses. Second I have few more questions 1. in your second suggestion is it possible ( and if yes how) to end the service later ( by user request) Call stopService

[android-developers] How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
Hi, I am writing an application that listens to phone calls and perform some tasks when phone call arrives. The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ (where starts register the listener and stops unregister it – see code below). The problem starts when the

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
() {            telephonyManager.listen(phoneListener, PhoneStateListener.LISTEN_NONE);  } - Anurag Singh On Wed, Apr 28, 2010 at 7:07 PM, zohar lerman lirazo...@gmail.com wrote: Hi, I am writing an application that listens to phone calls and perform some tasks when phone call arrives

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
Sorry for the misunderstanding but i am not using service. As i said in the initial post The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ On Apr 28, 5:02 pm, Mark Murphy mmur...@commonsware.com wrote: zohar lerman wrote: This is my temporary solution but i

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
1 can i stop it later On Apr 28, 5:22 pm, Mark Murphy mmur...@commonsware.com wrote: zohar lerman wrote: Sorry for the misunderstanding but i am not using service. As i said in the initial post The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ Right. You

[android-developers] How to get Linux version and manufacturer name

2010-03-26 Thread zohar lerman
Hi, I am using SDK 1.5 and I need to retrieve the linux version and the manufacturer name. please help. Zohar -- 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