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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 {
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
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
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
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
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
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
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
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
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
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://
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
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
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
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
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
() {
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
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
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
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
40 matches
Mail list logo