[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread Jerry Yang

What is the result if you use a pc based VLC to test your rtsp broadcast?

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
Sent: Wednesday, February 04, 2009 3:07 PM
To: Android Developers
Subject: [android-developers] Re: RTSP Streaming on g1 phone



 Hi, thanks for your interest.

 I've tested many streams, but the following is the the most
conservative one.
 Video frame is 176x144, 8 fps.
 Video bitrate is around 64kbps, audio bitrate is 80kbps.
 I think this happens only with H.264 video. (base profile)

 The video player I used to test were two. One is Meridian Video
Player downloaded from android market and the other is my own
developed one (they show me the same result).
 I used android sdk r2 with g1 phone rc30.

 The log is like the following.

---
02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
0ff7a347
02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
bytes in 105ms
02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
bytes in 108ms

 I couldn't find what those error message means.

 Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
video. Am I right?

Best regards,
 Jeff.

On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
> Hi, Which player are you using? Or just calling the android sdk to play
> the rtsp stream?
> Thanks
> With best wishes
> Jerry
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf OfJeffOh
> Sent: Tuesday, February 03, 2009 7:59 PM
> To: Android Developers
> Subject: [android-developers] RTSP Streaming on g1 phone
>
>  Hi, I'm trying to receive RTSP streaming video with g1. The video
> file I made was encoded using QuickTime pro, and they are progressive
> streamable with a hint track. Video is encoded in H.264, and audio is
> encoded in AAC LC. File container is MP4. (They can be played via
> sdcard)
>
>  I used Darwin Streaming Server to stream this file.
>
>  With sample media player given from android, I changed 'path' to the
> address like "rtsp://172.29.10.109/test.mp4"
>
>  The results are really odd. It sometimes (like once per 20~30 times)
> runs well, but in other times, only audio is played and video freezes
> after first 1~3 frames.
>
>  Is there anyone having same problem or any idea? Any comments will be
> very appreciated.
>  Thanks in forward.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog

[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread Jeff Oh


 VLC plays every streams I used very well.
 I used streams only those VLC can play well.

Regards,
 Jeff.

On 2월4일, 오후5시04분, "Jerry Yang"  wrote:
> What is the result if you use a pc based VLC to test yourrtspbroadcast?
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
> Sent: Wednesday, February 04, 2009 3:07 PM
> To: Android Developers
> Subject: [android-developers] Re:RTSPStreamingon g1 phone
>
>  Hi, thanks for your interest.
>
>  I've tested many streams, but the following is the the most
> conservative one.
>  Video frame is 176x144, 8 fps.
>  Video bitrate is around 64kbps, audio bitrate is 80kbps.
>  I think this happens only with H.264video. (base profile)
>
>  The video player I used to test were two. One is Meridian Video
> Player downloaded from android market and the other is my own
> developed one (they show me the same result).
>  I used android sdk r2 with g1 phone rc30.
>
>  The log is like the following.
>
> ---
> 02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
> 0ff7a347
> 02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
> bytes in 105ms
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
> bytes in 108ms
>
>  I couldn't find what those error message means.
>
>  Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
> video. Am I right?
>
> Best regards,
>  Jeff.
>
> On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
> > Hi, Which player are you using? Or just calling the android sdk to play
> > thertspstream?
> > Thanks
> > With best wishes
> > Jerry
>
> > -Original Message-
> > From: android-developers@googlegroups.com
>
> > [mailto:android-develop...@googlegroups.com] On Behalf OfJeffOh
> > Sent: Tuesday, February 03, 2009 7:59 PM
> > To: Android Developers
> > Subject: [android-developers]RTSPStreamingon g1 phone
>
> >  Hi, I'm trying to receiveRTSPstreamingvideo with g1. The video
> > file I made was encoded using QuickTime pro, and they are progressive
> > streamable with a hint track. Video is encoded in H.264, and audio is
> > encoded in AAC LC. File container is MP4. (They can be played via
> > sdcard)
>
> >  I used DarwinStreamingServer to stream this file.
>
> >  With sample media player given from android, I changed 'path' to the
> > address like "rtsp://172.29.10.109/test.mp4"
>
> >  The results are really odd. It sometimes (like once per 20~30 times)
> > runs well

[android-developers] Re: What determines Android Market popularity ranking

2009-02-04 Thread Chister Nordvik

Would you share the percentage of active installs? My app is around
40-50% and while the rating is now 4.40, the app goes lower and lower
on the popularity rating. Maybe Google doesn't like my app? :-)

-Christer


On Feb 2, 4:13 pm, Sundog  wrote:
> I don't think that's true. I released my app on day one and it's been
> in the top ten ever since.
>
> On Feb 1, 9:39 am, brs  wrote:
>
> > There also seems to be a time aspect to it - newer apps seem to be
> > favored in the ranking even if they have not as many downloads or
> > ratings as an older one.
>
> > As a suggestion to the Market team: it would be really nice to list
> > the apps by multiple metrics. We already have date and this secret,
> > magic "popularity" metric. Sometimes I just would like to see which
> > are the most downloaded or most highly rated applications in a
> > particular category.
>
> > Bernhard
>
> > On Feb 1, 10:56 am, Chister Nordvik  wrote:
>
> > > Has anyone figured out this magic formula?
>
> > > I have a app that has > 15000 downloads, a rating of 4.38(600
> > > ratings), but it is still less popular than a competing app with <
> > > 1 downloads and a rating of 3.45. How is this possible? My guess
> > > is that it is related to the number of uninstalls but then the rating
> > > system is all wrong? I think I just have to make a new application
> > > with a similar name and start all over again since the app got a lot
> > > of uninstalls in the first version. But then I loose 600 ratings which
> > > could potentially be very important to have if the rating system
> > > changes...
>
> > > So please, Google employees, can you give us any hints on whether you
> > > are doing any changes to the rating system in the near future or give
> > > us any hints on how the list is decided?
>
> > > -Christer
>
> > > On Dec 18 2008, 3:44 pm, joshv  wrote:
>
> > > > I've posted this question to theMarkettechnical support forum and
> > > > received no answer, so I will try here.
>
> > > > Does anyone know what metrics are used to determine an 
> > > > application'spopularityin the AndroidMarket?
>
> > > > It does not appear to involve just the number of ratings, the download
> > > > count, or the average rating, as there are applications which are
> > > > persistently ranked lower bypopularityeven though they have higher
> > > > download counts, higher total ratings, and higher average ratings than
> > > > other apps that are more "popular" in the same category.
>
> > > > I don't want to point to specific apps in this post, but it should be
> > > > easy enough to find examples.  If a Google employee is interested in
> > > > specific examples, contact me directly.- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread Jerry Yang

No, idea, because I have no detail information about the detail imply of media 
player in this platform.
With best wishes
Jerry

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
Sent: Wednesday, February 04, 2009 4:07 PM
To: Android Developers
Subject: [android-developers] Re: RTSP Streaming on g1 phone



 VLC plays every streams I used very well.
 I used streams only those VLC can play well.

Regards,
 Jeff.

On 2월4일, 오후5시04분, "Jerry Yang"  wrote:
> What is the result if you use a pc based VLC to test yourrtspbroadcast?
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
> Sent: Wednesday, February 04, 2009 3:07 PM
> To: Android Developers
> Subject: [android-developers] Re:RTSPStreamingon g1 phone
>
>  Hi, thanks for your interest.
>
>  I've tested many streams, but the following is the the most
> conservative one.
>  Video frame is 176x144, 8 fps.
>  Video bitrate is around 64kbps, audio bitrate is 80kbps.
>  I think this happens only with H.264video. (base profile)
>
>  The video player I used to test were two. One is Meridian Video
> Player downloaded from android market and the other is my own
> developed one (they show me the same result).
>  I used android sdk r2 with g1 phone rc30.
>
>  The log is like the following.
>
> ---
> 02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
> 0ff7a347
> 02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
> bytes in 105ms
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
> bytes in 108ms
>
>  I couldn't find what those error message means.
>
>  Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
> video. Am I right?
>
> Best regards,
>  Jeff.
>
> On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
> > Hi, Which player are you using? Or just calling the android sdk to play
> > thertspstream?
> > Thanks
> > With best wishes
> > Jerry
>
> > -Original Message-
> > From: android-developers@googlegroups.com
>
> > [mailto:android-develop...@googlegroups.com] On Behalf OfJeffOh
> > Sent: Tuesday, February 03, 2009 7:59 PM
> > To: Android Developers
> > Subject: [android-developers]RTSPStreamingon g1 phone
>
> >  Hi, I'm trying to receiveRTSPstreamingvideo with g1. The video
> > file I made was encoded using QuickTime pro, and they are progressive
> > streamable with a hint track.

[android-developers] Re: how to test the existence of a specific activity ?

2009-02-04 Thread Al Sutton

getPackageManager() in a Context gives you one of these; 
http://code.google.com/android/reference/android/content/pm/PackageManager.html

You can then use 
http://code.google.com/android/reference/android/content/pm/PackageManager.html#getActivityInfo(android.content.ComponentName,%20int)
 
If you know the package class name, or 
http://code.google.com/android/reference/android/content/pm/PackageManager.html#getInstalledApplications(int)
 
if you just want to have a rummage through whats installed.

Al.
http://andappstore.com/

hapciu wrote:
> Is there a way to find out whether a specific activity is present on
> the phone ? I mean without firing an intent to start it and then catch
> the exception.
>
> thanks
>
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Mships.com << Can you help review, etc?

2009-02-04 Thread Al Sutton

Probably best move this to android-discuss as it's not about development.

Al.
http://andappstore.com/

Mships wrote:
> Hi guys!
> Asking for a bunch of immediate feedback on Mships.com
> Please go to http://www.mships.com and email what you think of the
> site, give feedback, suggestions for launching, specific online groups
> this might appeal to, ideas on how to promote easily, quickly online,
> virally etc.
>
> What I am asking for
> 1. Do you understand the point? Good deed actions daily specified by
> players, spreading around the world.
> 2. Can you leave a few messages? Thanks, we collect great messages.
> 3. Anyone see this launching for Android?
> 4. Is there anyone, or a few people, who can give feedback, guidance,
> and∫ help?
>
> Brief Mships OverView
> Mships is a bunch of "kindness games." People around the world follow
> TodaysInstructions for each game. One simple daily action sent in by
> other players, and hand chosen. TodaysInstructions,
> TomorrowsInstructions + "SpreadTheGame," todays instructions for all
> of us spreading the game using Twitter, FaceBook, blogs + other social
> sites.
>
> What I want from you
> I am hoping to appeal with a new, unusual "game" about making positive
> moves every day, coordinating kindness actions around the world with
> fun simple silly games. I am new to being a developer... for iPhone
> and Android. Just started. Can use any help I can get! Also looking
> for an iPhone & an Android development partner. This could be easy. A
> lot of where we're at right now is sending + collecting messages, and
> players using the wallpapers in the game to see if others made today's
> game "move(s)!" + in spreading the kindness games.
>
> THANKS!
> Jonathan
> Mships.com
> Game to reach the greatest Earth through simple daily moves.
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use proxy server on the g1?

2009-02-04 Thread Al Sutton

Sounds like an opportunity for someone to write an app. The source for 
the proxy settings page is in;

/packages/apps/Settings/src/com/android/settings/ProxySelector.java

in the git repository, so couldn't someone write an app using that, add 
in some buttons to change configuration and some optional Geo-location 
to switch proxy settings automatically based one where you are and it'll 
probably be a popular app.

Or is it another piece of  functionality limited to the in-crowd who can 
get their app signed with the right certificate?

Al.
http://andappstore.com/

friedger wrote:
> I am interested as well.
> Friedger
>
> On Jan 30, 3:18 pm, joff  wrote:
>   
>> Anyone figured this one out yet?
>>
>> On Jan 24, 9:38 pm, DJMoran  wrote:
>>
>> 
>>> I also need the exact same help, my school uses a proxy server to
>>> access the web.
>>>   
>>> Also my home wireless doesn't need a proxy to access the web.
>>>   
>>> I know the iPhone and iPod touch can use multiple proxy settings
>>> depending on the network it is connected to but what about the G1
>>>   
>>> On Jan 10, 1:52 pm, "kevkev...@googlemail.com"
>>>   
>>>  wrote:
>>>   
 Does anyone know how to connect to the internet via a proxy server on
 a g1 handset? I need to use a proxy server at school to get on the
 internet on wifi.
 
 Cheers
 
>> 
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread Jerry Yang

If no security or commercial issues, Can you send me your code for rtsp so that 
I try to analysis for you?
Thanks
Jerry

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Jerry Yang
Sent: Wednesday, February 04, 2009 4:30 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: RTSP Streaming on g1 phone


No, idea, because I have no detail information about the detail imply of media 
player in this platform.
With best wishes
Jerry

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
Sent: Wednesday, February 04, 2009 4:07 PM
To: Android Developers
Subject: [android-developers] Re: RTSP Streaming on g1 phone



 VLC plays every streams I used very well.
 I used streams only those VLC can play well.

Regards,
 Jeff.

On 2월4일, 오후5시04분, "Jerry Yang"  wrote:
> What is the result if you use a pc based VLC to test yourrtspbroadcast?
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh
> Sent: Wednesday, February 04, 2009 3:07 PM
> To: Android Developers
> Subject: [android-developers] Re:RTSPStreamingon g1 phone
>
>  Hi, thanks for your interest.
>
>  I've tested many streams, but the following is the the most
> conservative one.
>  Video frame is 176x144, 8 fps.
>  Video bitrate is around 64kbps, audio bitrate is 80kbps.
>  I think this happens only with H.264video. (base profile)
>
>  The video player I used to test were two. One is Meridian Video
> Player downloaded from android market and the other is my own
> developed one (they show me the same result).
>  I used android sdk r2 with g1 phone rc30.
>
>  The log is like the following.
>
> ---
> 02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
> 0ff7a347
> 02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
> bytes in 105ms
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
> bytes in 108ms
>
>  I couldn't find what those error message means.
>
>  Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
> video. Am I right?
>
> Best regards,
>  Jeff.
>
> On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
> > Hi, Which player are you using? Or just calling the android sdk to play
> > thertspstream?
> > Thanks
> > With best wishes
> > Jerry
>
> > -Original Message-
> > From: androi

[android-developers] Re: TV out for the T-Mobile G1 aka HTC DREAM possible ?

2009-02-04 Thread Rajesh S

possible..
and something similar is coming .. not exactly an external
display..  but support to send timed screen shots over USB
is coming up ..
you could use it with appropriate interface to show a demo/
present your special stuff on a projector.

expect it along with cupcake updated release.

On Feb 3, 8:30 pm, bassbox  wrote:
> Is there a way to write an application which sends out an SVideo or
> simmilar signal over the extusb ?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: LocationManager causes application to crash

2009-02-04 Thread pulkit

Mark,
Thanks for the reply, but I guess all permissions are in right place
as they are reflected in the Eclipse's view as well.

JS,
Thanks a lot for the suggestion. I'm able to see all the permissions
in the Eclipse's view but still application crashes.
No joy, we're really stuck here.

Any other idea what we might be missing??
Thanks again.

On Feb 3, 7:49 pm, JS  wrote:
> The permissions xml tags are wierd.
>
> Try going to do "Permissions" tab in the Eclipse's AndroidManifest.xml
> view.  Now see if all the permissions are shown in the List.  Making
> sure they all show there usually solves my permission problems.
>
> Anyone what changes?
>
> On Feb 3, 6:12 am, Mark Murphy  wrote:
>
> >pulkitwrote:
> > > Pratap
>
> > > here is the logcat trace. What we understand from this is that it
> > > requires ACCESS_FINE_LOCATION permission
> > > which you suggested in first place. Now that we have specified it in
> > > our manifest.xml, what might be the issue?
>
> > > We define permissions as:-
>
> > >    
> > >             > > android:name="android.permission.ACCESS_LOCATION"/>
> > >             > > android:name="android.permission.ACCESS_FINE_LOCATION"/>
> > >            
>
> > The error is:
>
> > > E/AndroidRuntime(  173): Caused by: java.lang.SecurityException:
> > > Requires ACCESS
> > > _FINE_LOCATION permission
>
> > This suggests your  elements are in the wrong spot or
> > something.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to update list

2009-02-04 Thread for android
In your adapter class u will be having the constructor something like this:
public class MyAdapter extends BaseAdapter{
   private List myList;
public MyAdapter(Context context, int rowResID,
List myList)
   this.myList= myList;
 }
 Other methods
 public void changeListContent(List myList){
this.myList= myList;
notifyDataSetChanged();
}


Now whenever u need to show a different set of data,u need to call the
changeListContent






On Wed, Feb 4, 2009 at 12:57 PM, cindy  wrote:

>
>
> I implemented the async incoming data on a separate thread which adds
> the items to a ArrayList that is connected to the view through my
> custom
> adapter (inherits BaseAdapter). But when I modified the ArrayList, the
> application crashes.
>
> Have you have the same problem?
> On Feb 3, 5:03 pm, Emmanuel  wrote:
> > Do you mean the data from your adapter has changed, and you want to
> > update your list from this ?
> >
> > To achieve this result, I create the adapter from the new data, and
> > reset it to the list.
> > There should be another cleaner method, but this is works for me !
> >
> > Emmanuelhttp://androidblogger.blogspot.com/
> >
> > On Feb 3, 7:36 pm,cindy wrote:
> >
> > > I have a list. Which will first show 10 items, user would be able to
> > > do pagination with click pagination button.
> >
> > > The list is extended from listActivity, and the list adapter is
> > > extends from BaseAdapter .
> >
> > > But how to update UI when I get next 10 items back?
> >
> > > Thanks!
> >
> > > April
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Onclick listener on ListView items

2009-02-04 Thread munish

Thanx pratap

On Feb 4, 10:59 am, PRATAP SOLAPUR  wrote:
> U should implement onItemSelectedListener for list items...
>
> On 2/4/09, munish  wrote:
>
>
>
>
>
> > Hi All
>
> > I want to set the onclicklistner on the each item to be displayed in
> > ListVIew.
> > Can anyone help me out ASAP.
>
> > The code i have written is
>
> > package munish.android;
>
> > import android.app.ListActivity;
> > import android.os.Bundle;
> > import android.widget.ArrayAdapter;
>
> > public class List extends ListActivity {
>
> >    public void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
>
> >        // Use an existing ListAdapter that will map an array
> >        // of strings to TextViews
> >        setListAdapter(new ArrayAdapter(this,
> >                android.R.layout.simple_list_item_1, mStrings));
> >        getListView().setTextFilterEnabled(true);
> >    }
>
> >    private String[] mStrings = {
> >             "ImageView", "Grid View", "List View", "Map View",
> >            "Image Switcher", "Queso Jalapeno", "Queso Majorero",
> >            };
> > }- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Radio Off

2009-02-04 Thread Kamal Hasan

Hi,

Programatically how to switch off Radio, bluetooth and wifi in
android  ?
Can I enable airplane mode ?

Kamal


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] URI for the CalendarAlerts? - Not in sources.

2009-02-04 Thread code_android_festival_way

Could someone please tell me the URI for the calendar alerts? I have
found the URI for the calendars in the sources but the alerts are
stored in another table and I can't find the URI for the content in
this table because it is stored in a class which is not available. It
would be nice if some Googlers could mention the URI.

Regards and thank you very much.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: DM,FOTA & DS with Andriod

2009-02-04 Thread Xiaoliang Ding
 Does Android support DM & FOTA now? I do not think so.

 For sync contacts & calender, MTP is a good choice. But do not kown will
Android support it or not.

2009/2/3 manoj adepu 

>
> HI All,
>
> Is the source include in Android for following components DM,FOTA &
> DataSync.
> How the FOTA will trigger on Andriod..some the FOTA related index
> items are striked out..
>
> I would like to know about sync application like contacts & calender
> etc..
> plz let me know about these things..
>
>
> Regards
> Manoj
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Playing an audio file during a call

2009-02-04 Thread Mak

I want to accept incoming calls and play an audio file for the caller.
Is there a possibility of playing an audio file during a phonecall,
so that the caller hears a wav- file?
It seems to me that nothing is possible during a phone call since
release 1.0.
Hope this is getting better in the next release.
Has anybody information about the next release?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: base64 in the sdk ?

2009-02-04 Thread Alistair.

I think the answer is no.

You will find a Base64 encoder/decoder here:

http://www.source-code.biz/snippets/java/2.htm

It seems that it has been used with some success already.

http://groups.google.com/group/android-developers/browse_thread/thread/1b434be82afd2661/da653497508b22a3

Al.

On Feb 3, 10:25 pm, hapciu  wrote:
> Is there a base64 encoding/decoding utility anywhere in the Android
> SDK ?
> I wouldn't want to reinvent the wheel.
>
> 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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to acquire device name with code

2009-02-04 Thread Stanley.lei

Hi Jerry,

I have tested this solution. But unfortunately it seems not work.

I wanna know the list device name with command "adb devices", which
could be used as the serial number in the command "adb -s
serial_number shell" to login shell, but the constants in class Build
doesn't contain this information.

So any other comments?

Thanks,

Stanley

On Feb 4, 11:35 am, "Stanley.lei"  wrote:
> Thanks a lot. I will have a try.
>
> Stanley
>
> On Feb 4, 10:58 am, "Jerry Yang"  wrote:
>
> > I believe this link may helpful for 
> > u.http://code.google.com/android/reference/android/os/Build.html
> > With best wishes
> > Jerry
>
> > -Original Message-
> > From: android-developers@googlegroups.com
>
> > [mailto:android-develop...@googlegroups.com] On Behalf Of Stanley.lei
> > Sent: Wednesday, February 04, 2009 10:22 AM
> > To: Android Developers
> > Subject: [android-developers] How to acquire device name with code
>
> > Hi,
>
> > As we know, when we connect the G1 phone with USB, we could use "adb
> > devices" to show its device name. My question is whether there is a
> > method to detect this device name in phone with code, or how to judge
> > the "device name" is the just "myself" with code?
>
> > Any comment will be appreciated.
>
> > Thanks,
>
> > Stanley
>
>
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Automatic upgrade

2009-02-04 Thread mat

Many Thanks!


On Feb 3, 6:13 pm, Al Sutton  wrote:
> http://www.tomgibara.com/android/veecheck/
>
> Al.
>
> mat wrote:
> > Anybody knows how to resolve this issue ??
>
> >> Hi All,
> >> Can you provide some example code forautomaticupgradeof
> >> application? I have URL where the new version is hosted, so after the
> >> user start the application I'd like to download new version from given
> >> URL, reinstall and run the new version.
>
> >> Regards
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: collections vs arrays?

2009-02-04 Thread gsmd

Thanks.
Might be interesting to benchmark stuff like this.

On Feb 4, 3:51 am, Romain Guy  wrote:
> Collections are also often backed by arrays or linked list (which
> implies extra objects) so the overhead can be significant over an
> array. If you need a growing array though, you might want to stick
> with collections. android.view.ViewGroup uses its own growing array
> implementation to avoid the extra cost of ArrayList for instance.
>
>
>
> On Tue, Feb 3, 2009 at 5:48 PM, David Turner  wrote:
> > if you need to access them in a tight loop, arrays are much faster than
> > collections
> > (because accessing an array element is very fast compared to calling an
> > interface method to get at the corresponding item in a collection)
>
> > On Wed, Feb 4, 2009 at 2:37 AM,gsmd wrote:
>
> >> The 'Writing Efficient Android Code' paper doesn't mention this: are
> >> arrays preferred over Collections in terms of performance? To what
> >> extend?
> >> TIA.
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Compare Mobile Platforms

2009-02-04 Thread MMI

Simple, with around 7Mio sold IPhones and a more or less working shop
system, go for it for "fast" money. Android will need at least 1 year,
more likely 2 years to catch up with them. But it depends on the app
you want to write, if you write a business app, go for RIM (now) or
android (perhaps for long term), if you want to write games, i would
primary target the iPhone. It also depends on your knowledge, if you
are an java programmer, with no experience to objective-c or at least
C, stick to android.

As developer i like the android plattform best :)

Marcus

On Feb 3, 12:59 am, David  wrote:
> Hey guys,
>
> I am thinking of developing a small application and I am trying to
> decide between various Mobile applications platforms - Android, iPhone
> and RIMM.  I was wondering if any of you have any thoughts on any of
> these mobile platforms, there advantages/disadvantages etc.
>
> Also - how would you compare between the various app stores these
> mobile platforms have.
>
> Thanks guys for your help!
>
> - D
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get the Screen Mode (Landscape or portrait) in a service?

2009-02-04 Thread honglian...@gmail.com

Would you like to let me know how to get the Screen Mode (Landscape or
portrait) in a service?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Am I missing something really dumb.

2009-02-04 Thread Al Sutton

I have a service in an APK which starts a Thread which has the following 
in it's run method;

Intent intent = new Intent("com.funkyandroid.TEST", dataURI);
MyService.this.sendOrderedBroadcast(intent, null);

In a different APK I have the following in the application section manifest;



http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread rktb



On Feb 4, 1:07 am, Jeff Oh  wrote:
>  Hi, thanks for your interest.
>
>  I've tested many streams, but the following is the the most
> conservative one.
>  Video frame is 176x144, 8 fps.
>  Video bitrate is around 64kbps, audio bitrate is 80kbps.
>  I think this happens only with H.264 video. (base profile)
>
>  The video player I used to test were two. One is Meridian Video
> Player downloaded from android market and the other is my own
> developed one (they show me the same result).
>  I used android sdk r2 with g1 phone rc30.
>
>  The log is like the following.
>
> ---
> 02-04 16:04:57.754: ERROR/QCvdecH264(32): get_parameter: unknown param
> 0ff7a347
> 02-04 16:04:57.754: WARN/QCvdec(32): vdec: opened
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.694: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.694: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.714: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.714: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.724: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.724: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.744: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.744: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.764: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.764: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:01.774: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:01.774: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.114: DEBUG/dalvikvm(105): GC freed 325 objects / 15208
> bytes in 105ms
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.814: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.814: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.834: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.834: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.845: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.854: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.854: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:05.874: WARN/QCvdec(32): SetTHINErr
> 02-04 16:05:05.874: WARN/QCvdec(32): Error while parsing Slice Header
> 02-04 16:05:10.114: DEBUG/dalvikvm(997): GC freed 1095 objects / 76232
> bytes in 108ms
>
>  I couldn't find what those error message means.
>
>  Also, as I know g1 phone uses QDSP to decode MPEG4 video and H.264
> video. Am I right?
>
Only H.264 is played by QDSP. Not the mpeg4.
> Best regards,
>  Jeff.
>
> On 2월4일, 오후2시40분, "Jerry Yang"  wrote:
>
> > Hi, Which player are you using? Or just calling the android sdk to play
> > the rtsp stream?
> > Thanks
> > With best wishes
> > Jerry
>
> > -Original Message-
> > From: android-developers@googlegroups.com
>
> > [mailto:android-develop...@googlegroups.com] On Behalf OfJeffOh
> > Sent: Tuesday, February 03, 2009 7:59 PM
> > To: Android Developers
> > Subject: [android-developers] RTSP Streaming on g1 phone
>
> >  Hi, I'm trying to receive RTSP streaming video with g1. The video
> > file I made was encoded using QuickTime pro, and they are progressive
> > streamable with a hint track. Video is encoded in H.264, and audio is
> > encoded in AAC LC. File container is MP4. (They can be played via
> > sdcard)
>
> >  I used Darwin Streaming Server to stream this file.
>
> >  With sample media player given from android, I changed 'path' to the
> > address like "rtsp://172.29.10.109/test.mp4"
>
> >  The results are really odd. It sometimes (like once per 20~30 times)
> > runs well, but in other times, only audio is played and video freezes
> > after first 1~3 frames.
>
> >  Is there anyone having same problem or any idea? Any comments will be
> > very appreciated.
> >  Thanks in forward.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send em

[android-developers] Re: RTSP Streaming on g1 phone

2009-02-04 Thread rktb

I can't seem to ping 172.29.10.109. Any address where I can access the
file from?

-Ravi

On Feb 3, 5:59 am, Jeff Oh  wrote:
>  Hi, I'm trying to receive RTSP streaming video with g1. The video
> file I made was encoded using QuickTime pro, and they are progressive
> streamable with a hint track. Video is encoded in H.264, and audio is
> encoded in AAC LC. File container is MP4. (They can be played via
> sdcard)
>
>  I used Darwin Streaming Server to stream this file.
>
>  With sample media player given from android, I changed 'path' to the
> address like "rtsp://172.29.10.109/test.mp4"
>
>  The results are really odd. It sometimes (like once per 20~30 times)
> runs well, but in other times, only audio is played and video freezes
> after first 1~3 frames.
>
>  Is there anyone having same problem or any idea? Any comments will be
> very appreciated.
>  Thanks in forward.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: cupcake/development/tools/eclipse/scripts/build_server.sh failed on Mac OS -- HELP

2009-02-04 Thread Jean-Baptiste Queru

This is not a question about official SDKs, so you should probably
move this discussion to android-platform.

JBQ

On Tue, Feb 3, 2009 at 9:46 PM,   wrote:
>
> I am using  Mac Pro which has "Darwin" linux.  I tried to ADT 0.9.0 by 
> running the script at
>
> cupcake/development/tools/eclipse/scripts/build_server.sh
>
> The script keeps failing with error saying that it only works on Linux.
>
> I am in need of the ADT 0.9.0.  Is there a way for me to successfully 
> building this from the cupcake source ?
>
> If not, can someone send me a built ADT 0.9.0 ?
>
> Any help is greatly appreciated.   Please, email me at 
> 'enetconsult...@comcast.net
>
> Thanks.
>
>
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OpenGL ES 1.1 - Point Sprites

2009-02-04 Thread hbk723

The documentation says that OpenGL ES 1.1 support is "not complete".
Does this mean that if a method is provided it should work or that
some methods provided in the API don't work?

For example, I would like to be able to use some of the
GL_POINT_SPRITE_OES stuff. I have noticed that if you cast a GL10 to a
GL11 (casting doesn't throw an exception but I'm not sure if simply
casting between the two will actually work), you can call some
functions like glPointSizePointerOES() that don't exist under GL10.
Should I be able to assume these methods would work?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Unofficial SDK 1.5 with Media Files

2009-02-04 Thread Breno

 Hi,

Here i'm posting my SDK 1,5, based on Latest Cupcake
source code, and this SDK includes the media files, that normally are
hidden under @hide directive. The emulator are ok in both Linux and
Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
the SDK is ok, and the documentation also. The plugin is also there.

http://rapidshare.com/files/193805280/android_sdk_15_linux.zip.html
http://rapidshare.com/files/193788111/android-sdk_15_windows.zip.html
http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip.html

Enjoy!!

Breno T. Minzon
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to remove application specific data

2009-02-04 Thread shahzad ahmad
When an application is installed , it preserves the data of previously
installed application . Is there any way to completely wipe out the previous
application on fresh install ?

Is there any registry or some location where an application can store data
and it gets automatically wiped out when application is uninstalled ?

thanks,
shahzad

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Unofficial SDK 1.5 with Media Files

2009-02-04 Thread Breno

Please, use this linksthe others has a 90 days of life just...

http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip
http://rapidshare.com/files/193811442/android-sdk_15_windows.zip
http://rapidshare.com/files/193814085/android_sdk_15_linux.zip

Best Regards

Breno

On Feb 4, 12:07 pm, Breno  wrote:
>  Hi,
>
>             Here i'm posting my SDK 1,5, based on Latest Cupcake
> source code, and this SDK includes the media files, that normally are
> hidden under @hide directive. The emulator are ok in both Linux and
> Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
> the SDK is ok, and the documentation also. The plugin is also there.
>
> http://rapidshare.com/files/193805280/android_sdk_15_linux.zip.htmlhttp://rapidshare.com/files/193788111/android-sdk_15_windows.zip.htmlhttp://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zi...
>
> Enjoy!!
>
> Breno T. Minzon
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to completely wipe out the application data

2009-02-04 Thread shahzad ahmad
I'm developing an application which downloads a file from FTP server. The
code first checks if file is present on local system . If it is not present
on local system then it downloads it from FTP server. Application must
download file from FTP server when it executes first time after getting
installed.

If we reinstall the application , android preserves the data of old
application .So now application finds the file on local system and does not
download it from FTP server. But it should always download the file on first
execution after fresh install.

Is there any way to completely wipe out the previous application data on
fresh install ?

Is there any registry or some location where an application can store data
and it gets automatically wiped out when application is uninstalled ?


thanks,
shahzad

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Read Image with multiple Frames - Animated Gif

2009-02-04 Thread Mike Reed

Sorry, the decoders don't expose per-frameness yet.

It may seem awkward, but you can load a Movie, and then draw each
frame into an offscreen bitmap, and then save/compress those into
separate files.

On Tue, Feb 3, 2009 at 5:23 PM, Siva Rajaraman  wrote:
>
> Hello Everyone,
>
> I would like to know how to read in an image file which has multiple
> frames in it. Something like an animated gif file. I would like to
> perform frame by frame animation with a file of this type. I don't
> want to have each frame as drawables in the resource directory. Can
> anyone trhow some light on how to perform the above mentioned tasks.
>
> Thanks
>
> Siva
>
> P.S - I have already checked the example in the API demos where an
> animated gif is read as an object of type Movie. I don't want to read
> it in as a movie file.
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Unofficial SDK 1.5 with Media Files

2009-02-04 Thread Jean-Baptiste Queru

This is off-topic for android-developers, which focuses on using the
official SDK. Please move this to android-discuss.

Note to developers: applications developed with unofficial SDKs,
especially those that come from in-progress source trees, and
especially those that explicity expose more APIs than the regular
source tree, are at a high risk of not being compatible with current
and future releases of Android.

Creating such applications (which are likely to not work in the
future) hurts the entire Android ecosystem by giving the perception
that upgrades hurt application compatibility, even though the Android
team takes application compatibility very seriously.

JBQ

On Wed, Feb 4, 2009 at 6:27 AM, Breno  wrote:
>
> Please, use this linksthe others has a 90 days of life just...
>
> http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip
> http://rapidshare.com/files/193811442/android-sdk_15_windows.zip
> http://rapidshare.com/files/193814085/android_sdk_15_linux.zip
>
> Best Regards
>
> Breno
>
> On Feb 4, 12:07 pm, Breno  wrote:
>>  Hi,
>>
>> Here i'm posting my SDK 1,5, based on Latest Cupcake
>> source code, and this SDK includes the media files, that normally are
>> hidden under @hide directive. The emulator are ok in both Linux and
>> Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
>> the SDK is ok, and the documentation also. The plugin is also there.
>>
>> http://rapidshare.com/files/193805280/android_sdk_15_linux.zip.htmlhttp://rapidshare.com/files/193788111/android-sdk_15_windows.zip.htmlhttp://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zi...
>>
>> Enjoy!!
>>
>> Breno T. Minzon
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using G1 as modem

2009-02-04 Thread Disconnect
Stones, houses, etc.

That post was 3 months old.

..not too bright, are you?

On Tue, Feb 3, 2009 at 7:50 PM, cmisak - www.redkite.us wrote:

>
> Xavier Mathews
>
> Not so bright are you. tethering your phone (any phone) to your
> laptop opens up a powerful traveling and mobile tool... Sure you can
> surf your internet on your phone but that can be annoying, and doesn't
> support Flash.. So peal open that thing you call a brain.
>
> The problem i have with some of these hacks like teatherbot they scare
> me to try. And half the instructions are difficult and incomplete for
> someone that doesn't understand SDK.. has anyone found an app or
> solution as easy as BlackBerry tethering? For now i'll stick to my
> Pearl but i'm keeping a watchful eye on the G1 and maybe the G2 for
> tethering and than i'll make the full jump.
>
> Thanks All
>
>
>
> On Dec 11 2008, 1:04 pm, "Xavier Mathews" 
> wrote:
> > U No and why would anybody want to use the G1 as a phone modem?
> >
> > On 12/11/2008, Tee  wrote:
> >
> >
> >
> > > Hi, the burning question on everyones lips are when is a developer
> > > going to make an app that allows us to use the G1 phone as a modem?
> >
> > > Is there anything in progress out there...besides the hacked version
> > > which seems like too much hassle
> >
> > --
> > Xavier A. Mathews
> > Student/Browser Specialist/Developer/Web-Master
> > Google Group Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > "Fear of a name, only increases fear of the thing itself."
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] bad packet exception - eclipse debugging

2009-02-04 Thread ad

eclipse debugging - what to do?

[2009-02-04 16:09:49 - ddms]null
com.android.ddmlib.BadPacketException
at com.android.ddmlib.JdwpPacket.findPacket(Unknown Source)
at com.android.ddmlib.Client.getJdwpPacket(Unknown Source)
at com.android.ddmlib.MonitorThread.processClientActivity(Unknown
Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)

[2009-02-04 16:09:49 - ddms]null
com.android.ddmlib.BadPacketException
at com.android.ddmlib.JdwpPacket.findPacket(Unknown Source)
at com.android.ddmlib.Client.getJdwpPacket(Unknown Source)
at com.android.ddmlib.MonitorThread.processClientActivity(Unknown
Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: LocationManager causes application to crash

2009-02-04 Thread Chander Pechetty

Put the permissions outside the application tag. and try

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get lists of email from contact application?

2009-02-04 Thread Mark Roberts

import android.app.Activity;
import android.content.ContentUris;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.util.Log;

public class Start extends Activity {
/** Called when the activity is first created. */
public static final String[] METHODS_PROJECTION = new String[] {
People.ContactMethods._ID,
People.ContactMethods.KIND,
People.ContactMethods.DATA,
People.ContactMethods.TYPE,
People.ContactMethods.LABEL,
People.ContactMethods.ISPRIMARY,
};
Uri mUri;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
people"), 1); //1 is the ID of the first created contact
Uri methodsUri = Uri.withAppendedPath(mUri,
People.ContactMethods.CONTENT_DIRECTORY);
Cursor methodsCursor = getContentResolver().query
(methodsUri,METHODS_PROJECTION, "kind=1", null, null);

Log.i("Cursor", "Count = " + methodsCursor.getCount());
}
}

On Feb 4, 4:44 am, dileep singh  wrote:
> Hi Mark,
> Can u give me some sample code?I am not able to get email with the above
> code.
> please provide me somple code
>
> On Wed, Feb 4, 2009 at 12:53 AM, dileep singh 
> wrote:
>
> > Thanks a lot mark.I will try the above code.
>
> > On Tue, Feb 3, 2009 at 10:46 PM, Mark Roberts  wrote:
>
> >> If you are looking for the emails for  a specific contact then you
> >> could do it like this where id is the id of the contact for which you
> >> are trying to get the data:
>
> >> public static final String[] METHODS_PROJECTION = new String[] {
> >>        People.ContactMethods._ID,
> >>        People.ContactMethods.KIND,
> >>        People.ContactMethods.DATA,
> >>        People.ContactMethods.TYPE,
> >>        People.ContactMethods.LABEL,
> >>        People.ContactMethods.ISPRIMARY,
> >>    };
> >> mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
> >> people"), id)
> >> Uri methodsUri = Uri.withAppendedPath(mUri,
> >> People.ContactMethods.CONTENT_DIRECTORY);
> >> Cursor methodsCursor = getContentResolver().query(methodsUri,
> >> METHODS_PROJECTION, "kind=1", null, null);
>
> >> On Feb 3, 12:05 pm, dilu  wrote:
> >> > Hi,
> >> > Please tell me how to get lists of email from contact application in
> >> > android?If possible then please provide me some sample code or
> >> > tutorial on this.
> >> > please help me.
> >> > Thanks
> >> > dileep
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem

2009-02-04 Thread Alowishus

Okay Gang,

Here is the problem, I am building an application and have multiple
images that need to switch when the user touches the screen, doesn't
matter where the users touches. The press the screen and the images
switch randomly. I purchased the ebook "Professional Android
Application Development" and have torn though it. I am stumped. I'm
thoroughly confused at this point. Any ideas on where I can go or how
I can accomplish this?

The simpler the terms you can put it in the better.

Thanks in advance,

Kevin
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] windowAnimationStyle - ignored in theme?

2009-02-04 Thread DaRolla

Hi,

I'd like to have some fancy effects on my Activities when entering or
exiting.

So I tried to use theming.

But it seems that it's completly ignored?

themes.xml (activated in Manifest)
@style/Animation.Activity

styles.xml


@anim/fade_in
@anim/fade_in
@anim/fade_in
@anim/fade_in


fade_in.xml
http://schemas.android.com/apk/res/android";
 android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="1000" />

Greetings,
DaRolla

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get lists of email from contact application?

2009-02-04 Thread dileep singh
Hi Mark,
Can u give me some sample code?I am not able to get email with the above
code.
please provide me somple code

On Wed, Feb 4, 2009 at 12:53 AM, dileep singh wrote:

> Thanks a lot mark.I will try the above code.
>
>
> On Tue, Feb 3, 2009 at 10:46 PM, Mark Roberts  wrote:
>
>>
>> If you are looking for the emails for  a specific contact then you
>> could do it like this where id is the id of the contact for which you
>> are trying to get the data:
>>
>> public static final String[] METHODS_PROJECTION = new String[] {
>>People.ContactMethods._ID,
>>People.ContactMethods.KIND,
>>People.ContactMethods.DATA,
>>People.ContactMethods.TYPE,
>>People.ContactMethods.LABEL,
>>People.ContactMethods.ISPRIMARY,
>>};
>> mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
>> people"), id)
>> Uri methodsUri = Uri.withAppendedPath(mUri,
>> People.ContactMethods.CONTENT_DIRECTORY);
>> Cursor methodsCursor = getContentResolver().query(methodsUri,
>> METHODS_PROJECTION, "kind=1", null, null);
>>
>> On Feb 3, 12:05 pm, dilu  wrote:
>> > Hi,
>> > Please tell me how to get lists of email from contact application in
>> > android?If possible then please provide me some sample code or
>> > tutorial on this.
>> > please help me.
>> > Thanks
>> > dileep
>> >>
>>
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: windowAnimationStyle - ignored in theme?

2009-02-04 Thread Mark Murphy

DaRolla wrote:
> I'd like to have some fancy effects on my Activities when entering or
> exiting.

AFAIK, support for that was cut out as part of releasing the newer
versions of the SDK.

The Development.APK allows you to enable slide animations for opening
and closing activities across the board, but I'm not aware of a
supported way to do it on a per-activity basis today.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to completely wipe out the application data

2009-02-04 Thread Mark Murphy

shahzad ahmad wrote:
> I'm developing an application which downloads a file from FTP server.
> The code first checks if file is present on local system . If it is not
> present on local system then it downloads it from FTP server.
> Application must download file from FTP server when it executes first
> time after getting installed.
> 
> If we reinstall the application , android preserves the data of old
> application .So now application finds the file on local system and does
> not download it from FTP server. But it should always download the file
> on first execution after fresh install.
> 
> Is there any way to completely wipe out the previous application data on
> fresh install ?

I would recommend you put metadata in your file itself that indicates
what version of your app the file supports. Rather than the rule be
"should always download the file on first execution", the rule should be
"should always examine the metadata and download the file if it is needed".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Touch screen Issue with Android + i.MX31- Help

2009-02-04 Thread Jun'ichi Hirayama
Hi  Rajesh

Lastyear I was porting Android on IMX31 platform ,
(kernel ver 2.6.22 )

I adapted mxc_ts.c


,diff -ur linux-2.6.22/drivers/input/touchscreen/mxc_ts.c
linux-2.6.22/drivers/input/touchscreen/mxc_ts.c
--- linux-2.6.22/drivers/input/touchscreen/mxc_ts.c 2008-06-02
20:40:12.0 +0900
+++ linux-2.6.22.android/drivers/input/touchscreen/mxc_ts.c 2008-06-17
18:49:28.0 +0900
@@ -38,6 +38,15 @@

 #define MXC_TS_NAME"mxc_ts"

+#define X_AXIS_MAX 1000
+#define X_AXIS_MIN 80
+#define Y_AXIS_MAX 1000
+#define Y_AXIS_MIN 80
+#define PRESSURE_MAX 1
+#define PRESSURE_MIN 0

 static struct input_dev *mxc_inputdev = NULL;
 static u32 input_ts_installed;

@@ -50,15 +59,39 @@
try_to_freeze();
memset(&ts_sample, 0, sizeof(t_touch_screen));
pmic_adc_get_touch_sample(&ts_sample, !wait);
-
+#if 1
+   if((ts_sample.x_position >= X_AXIS_MIN) &&
+   (ts_sample.x_position <= X_AXIS_MAX) &&
+   (ts_sample.y_position >= Y_AXIS_MIN) &&
+   (ts_sample.y_position <= Y_AXIS_MAX)) {
+   
+   input_report_abs(mxc_inputdev, ABS_X, 
ts_sample.x_position);
+   input_report_abs(mxc_inputdev, ABS_Y, 
ts_sample.y_position);
+   input_report_abs(mxc_inputdev, ABS_PRESSURE,
+ts_sample.contact_resistance);
+
+   input_report_key(mxc_inputdev,BTN_TOUCH,1);
+   }
+   else {
+   input_report_key(mxc_inputdev,BTN_TOUCH,0);
+   }
+   input_sync(mxc_inputdev);
+   
+   wait = ts_sample.contact_resistance;
+   msleep(20);
+#else
input_report_abs(mxc_inputdev, ABS_X, ts_sample.x_position);
input_report_abs(mxc_inputdev, ABS_Y, ts_sample.y_position);
input_report_abs(mxc_inputdev, ABS_PRESSURE,
 ts_sample.contact_resistance);
+
input_sync(mxc_inputdev);

wait = ts_sample.contact_resistance;
msleep(20);
+#endif
}

return 0;
@@ -77,6 +110,12 @@
mxc_inputdev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
mxc_inputdev->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH);
mxc_inputdev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
+   input_set_abs_params(mxc_inputdev,ABS_X,X_AXIS_MIN,X_AXIS_MAX,0,0);
+   input_set_abs_params(mxc_inputdev,ABS_Y,Y_AXIS_MIN,Y_AXIS_MAX,0,0);
+   
input_set_abs_params(mxc_inputdev,ABS_PRESSURE,PRESSURE_MIN,PRESSURE_MAX,0,0);
input_register_device(mxc_inputdev);

input_ts_installed = 1;

===
BTW I found ipu had some problem.following image is fix image.


diff -ur linux-2.6.22/drivers/mxc/ipu/ipu_common.c
linux-2.6.22/drivers/mxc/ipu/ipu_common.c
--- linux-2.6.22/drivers/mxc/ipu/ipu_common.c   2008-06-02
20:40:13.0 +0900
+++ linux-2.6.22.android/drivers/mxc/ipu/ipu_common.c   2008-06-17
18:49:40.0 +0900
@@ -588,23 +587,28 @@

if (dma_chan == IDMA_CHAN_INVALID)
return -EINVAL;
-
spin_lock_irqsave(&ipu_lock, lock_flags);

if (bufNum == 0) {
reg = __raw_readl(IPU_CHA_BUF0_RDY);
+#if 0
if (reg & (1UL << dma_chan)) {
spin_unlock_irqrestore(&ipu_lock, lock_flags);
return -EACCES;
}
+#endif
__raw_writel(DMAParamAddr(dma_chan) + 0x0008UL, IPU_IMA_ADDR);
__raw_writel(phyaddr, IPU_IMA_DATA);
} else {
reg = __raw_readl(IPU_CHA_BUF1_RDY);
+#if 0
if (reg & (1UL << dma_chan)) {
spin_unlock_irqrestore(&ipu_lock, lock_flags);
return -EACCES;
}
+#endif
__raw_writel(DMAParamAddr(dma_chan) + 0x0009UL, IPU_IMA_ADDR);
__raw_writel(phyaddr, IPU_IMA_DATA);
}
@@ -1139,7 +1143,15 @@
if (wait_for_stop && channel != MEM_SDC_FG && channel != MEM_SDC_BG) {
timeout = 40;
while ((__raw_readl(IDMAC_CHA_BUSY) & chan_mask) ||
+#if 0
   (_ipu_channel_status(channel) == TASK_STAT_ACTIVE)) {
+#else
+  (_ipu_channel_status(channel) == TASK_STAT_ACTIVE) ||
+  __raw_readl(IPU_CHA_BUF0_RDY) & (1UL << out_dma) ||
+  __raw_readl(IPU_CHA_BUF0_RDY) & (1UL << out_dma))
+   {   
+#endif
timeout--;
msleep(10);
if (timeout == 0) {

BR
Jun'ichi


On Wed, Feb 4, 2009 at 2:47 PM, Rocky  wrote:

>
> Hi,
>
>  I been working on Android for past few we

[android-developers] Re: Problem

2009-02-04 Thread Phill Midwinter
Read your book more slowly.

2009/2/4 Alowishus 

>
> Okay Gang,
>
> Here is the problem, I am building an application and have multiple
> images that need to switch when the user touches the screen, doesn't
> matter where the users touches. The press the screen and the images
> switch randomly. I purchased the ebook "Professional Android
> Application Development" and have torn though it. I am stumped. I'm
> thoroughly confused at this point. Any ideas on where I can go or how
> I can accomplish this?
>
> The simpler the terms you can put it in the better.
>
> Thanks in advance,
>
> Kevin
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.com

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem

2009-02-04 Thread Faber Fedor
Start here: 
http://www.catb.org/~esr/faqs/smart-questions.html

On Wed, Feb 4, 2009 at 10:50 AM, Alowishus  wrote:

>
> Okay Gang,
>
> Here is the problem, I am building an application and have multiple
> images that need to switch when the user touches the screen, doesn't
> matter where the users touches. The press the screen and the images
> switch randomly. I purchased the ebook "Professional Android
> Application Development" and have torn though it. I am stumped. I'm
> thoroughly confused at this point. Any ideas on where I can go or how
> I can accomplish this?
>
> The simpler the terms you can put it in the better.
>
> Thanks in advance,
>
> Kevin
> >
>


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Am I missing something really dumb.

2009-02-04 Thread Al Sutton

dataURI is a content provider URI 
(content://com.funkyandroid.provider.test/) which is created using 
Uri.parse.

I can't see a way to specify a MIME type in Uri.parse or in the 
resulting Uri object, so am I still missing something?

Al.


Peli wrote:
> Your intent has a deceptively looking dataURI. Your intent filter
> should therefore contain the  tag with the corresponding
> MIME type of the dataURI in order to match.
>
> Peli
> www.openintents.org
>
> On Feb 4, 2:36 pm, Al Sutton  wrote:
>   
>> I have a service in an APK which starts a Thread which has the following
>> in it's run method;
>>
>> Intent intent = new Intent("com.funkyandroid.TEST", dataURI);
>> MyService.this.sendOrderedBroadcast(intent, null);
>>
>> In a different APK I have the following in the application section manifest;
>>
>> 
>> 
>> >
>> But the receiver doesn't receive the broadcast when I run it in the
>> emulator (or at least the log message doesn't get received).
>>
>> Any hints?
>>
>> Al.
>>
>> --
>> ==
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>> 
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Profiling Tools?

2009-02-04 Thread Gw1921

Hi

I've been running Eclipse on Mac OS X for android development. Since
I'm new to eclipse I'm not sure how to profile my apps. Especially
Memory usage. Could some one guide me to a direction please? 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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] [help] - Choosing the right adapter

2009-02-04 Thread Alex55

Hello Community,

I am having a hard time figuring out what adapter should I use to
accomplish the following.

Currently, I'm using an Array Adapter that is connected to an
ArrayList. It is populating a simple_list_item_1 type of ListView with
the information found in the Array.

My list was very functional, until I realized that I needed to
populate an existing TextView field with an Int[] Array. After doing
some reading I realized that ArrayAdapter will only let me populate
from 1 ArrayList.

Here is what my ListView looks like:

___
||
| TextView1   TextView3  |
| TextView2|
|__|
||
| TextView1   TextView3  |
| TextView2|
|__|
||
| TextView1   TextView3  |
| TextView2|
|__|


I am currently Overriding my getView so that I can control my list on
a per row basis.

TextView1 comes from the ArrayList
TextView2 comes from an IF statement (no auto populate required)
TextView3 needs to come from an int Array.



The following are code snippets for my Adapter:


Adapter call:
Java:


public ArrayAdapter aa;

aa = new IconicAdapter(this);

myListView.setAdapter(aa);



Subclassing and extending Adapter:
Java:
class IconicAdapter extends ArrayAdapter {
Activity context;

IconicAdapter(Activity context) {
super(context, R.layout.custom_layout,
R.id.custom_textfield, arrLIST);

this.context=context;
}


  public View getView(int position, View convertView,
ViewGroup parent) {





How would I need to modify my code in order to achieve this?

Appreciate your help,
Best Regards,

Alex

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Using resources from android.R.drawable

2009-02-04 Thread Andreas Frey

Hi,

is it allowed to use resources (images, etc) from android
(android.jar) inside my own application? I did not find anything about
this topic in the FAQ.

Technically this is no problem, but is it legal? I would prefer to use
the provided images to have an adequate look and feel.

Can you provide a link to the terms of use, where this question is
answered?

Many thanks in advance

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Building Dalvik

2009-02-04 Thread Kieran Bingham

Hi,
I've used repo to get android - and wanted to build -but get the
following error.
It looks like some environment variable somewhere is getting messed up
- but I'm having difficulty following it through the build system.

In particular,
*dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk:
No such file or directory*

looks like somehow the prefixing of the android_root folder has been
prefixed (or not separated) with the subdirectory of the dalvik ?

Can anyone help me with the following ?

kbing...@atlas:~/projects/android$ make
build/core/product_config.mk:211: WARNING: adding test OTA key

TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=

build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
/bin/bash: line 0: cd:
dalvik/libcore//home/kbingham/projects/android/dalvik/libcore: No such
file or directory
/bin/bash: line 0: cd:
dalvik/libcore//home/kbingham/projects/android/dalvik/libcore: No such
file or directory
dalvik/libcore/Android.mk:110:
dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk:
No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target
`out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
make: *** No rule to make target
`dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk'.
Stop.
kbing...@atlas:~/projects/android$


--
Regards

Kieran Bingham

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parsing RSS feeds, encoding problems

2009-02-04 Thread Ayusman

Hey Guys,

Go for this:

JavaScript:
=
/*Place this code externally*/
/* Function Used to Display Months in Words as Jan, Feb...*/
  function WordMonth(intMonth){
  var MonthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
  return MonthArray[intMonth]
}

/*Function Used to Fetch RSS Feeds from Other websites to yours...It
works with BoDY ONLOAD Functionality!*/
function GetRSSNews(){
  /*First*/

/*You can set as much as you want to display Feeds*/
 var iMax = 20

/*ActiveX Object Initialization*/
 var rssDoc = new ActiveXObject("Microsoft.XMLDOM")
 rssDoc.async = false


/*Insert your Required URL to be fetched>>For a test I have taken BBC
Feeds*/
 rssDoc.load("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/
front_page/rss.xml")

 /*You can assume it as DOM Structure of a XML Document for Logical
Means*/
 var headNode = rssDoc.selectNodes("/rss/channel")
 var itemNodes = rssDoc.selectNodes("/rss/channel/item")

 /*Condition to check if Length of item Nodes is greater or lesser
than the Parameter used to get no. of items displayed*/
 if(itemNodes.length" +
itemNodes.item(i).getElementsByTagName("title").item

(0).text  +""

}


myFeeds.innerHTML  = feedBody


}

=

HTML:
=
/*Place this code in the same folder assigning a name;eg:
index.html>>Also check for the paths I have used to call the
JavaScript, make sure that you modify as per your need!*/


RSS Feeds Test




=

I am sure this works out for you guys!.

Best Regards,
Ayusman Mohanty,
CSC
Reply me at: ayusman.moha...@gmail.com




On Jan 25, 11:58 pm, Chister Nordvik  wrote:
> The issue has still "new" status so either Google is just ignoring it
> or they think it's a bug in my code.
>
> I tried a little more and I experienced similar problems when fetching
> XML that has encoded html inside the tags (typically RSS feeds). This
> code works perfectly when running on the desktop but on android it
> just refuses to give me the text after it encounters "<" in this
> node:
> Test html chars: v2.1 released. description>
>
> The full sample code is included below in case someone would like to
> give it a try or tell me if I am missing something here!?
>
> Desktop output:
> * RSS: Test html chars: v2.1 released. Read about the
> changes here!
>
> Android output:
> Test html chars:
>
> Sample code:
>
>       URI rssurl = URI.create("http://www.hvaerstillingen.no/docs/rss/
> test.txt");
>       try {
>          DocumentBuilder builder =
>            DocumentBuilderFactory.newInstance().newDocumentBuilder();
>          Document doc = builder.parse(rssurl.toURL().openStream());
>
>          NodeList nodes = doc.getElementsByTagName("item");
>          for (int i = 0; i < nodes.getLength(); i++) {
>            Element element = (Element) nodes.item(i);
>
>            NodeList title = element.getElementsByTagName("title");
>            Element line = (Element) title.item(0);
>
>            Element descEl = (Element) element.getElementsByTagName
> ("description").item(0);
>            Node textNode = descEl.getFirstChild();
>            System.out.println("* RSS: "+ textNode.getNodeValue
> ());
>          }
>        }
>        catch (Exception e) {
>           e.printStackTrace();
>        }
>
> -Christer
>
> On 1 Des 2008, 19:54, "Xavier Mathews"  wrote:> Ok 
> Great!
>
> > Xavier A. Mathews
> > Student/Browser Specialist/Developer/Web-Master
> > Google Group Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > "Fear of a name, only increases fear of the thing itself."
>
> > On Mon, Dec 1, 2008 at 12:58 AM, ChisterNordvik  wrote:
>
> > > It's been added:
> > >http://code.google.com/p/android/issues/detail?id=1398
>
> > > -Christer
>
> > > On 1 Des, 01:55, "Xavier Mathews"  wrote:
> > > > Same Problem Here. Post It In The Issue Tracker!
>
> > > > On 11/30/2008, mobilek...@googlemail.com 
> > > wrote:
>
> > > > > Yes, I have also encountered the same problem. Any suggestions?
>
> > > > > On Nov 30, 10:53 pm, ChisterNordvik  wrote:
> > > > >> Hi!
>
> > > > >> Does anyone have a workingRSSparser with Android? I tried doing
> > > > >> simple DOM parsing of the XML but the character encoding isn't 
> > > > >> handled
> > > > >> properly so the norwegian characters aren't displayed. I have tried
> > > > >> everything but when I get the description element I just get the text
> > > > >> until the norwegian character. Any sample code of parsing
> > > > >> internationalRSSfeeds would be very welcome!
>
> > > > >> Here is the feed that I am having problems
> > > > >> with:http://www.dagbladet.no/rss/fotball/
>
> > > > >> -Christer
>
> > > > >> Sample cod

[android-developers] Re: Building Dalvik

2009-02-04 Thread Kieran Bingham

Solved this by following the instructions at
http://www.mail-archive.com/android-port...@googlegroups.com/msg01340.html
Also realised - that looks like a more appropriate mailinglist too :)

--
Cheers
Kieran

2009/2/4 Kieran Bingham :
> Hi,
> I've used repo to get android - and wanted to build -but get the
> following error.
> It looks like some environment variable somewhere is getting messed up
> - but I'm having difficulty following it through the build system.
>
> In particular,
> *dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk:
> No such file or directory*
>
> looks like somehow the prefixing of the android_root folder has been
> prefixed (or not separated) with the subdirectory of the dalvik ?
>
> Can anyone help me with the following ?
>
> kbing...@atlas:~/projects/android$ make
> build/core/product_config.mk:211: WARNING: adding test OTA key
> 
> TARGET_PRODUCT=generic
> TARGET_BUILD_VARIANT=eng
> TARGET_SIMULATOR=
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm
> HOST_ARCH=x86
> HOST_OS=linux
> HOST_BUILD_TYPE=release
> BUILD_ID=
> 
> build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
> /bin/bash: line 0: cd:
> dalvik/libcore//home/kbingham/projects/android/dalvik/libcore: No such
> file or directory
> /bin/bash: line 0: cd:
> dalvik/libcore//home/kbingham/projects/android/dalvik/libcore: No such
> file or directory
> dalvik/libcore/Android.mk:110:
> dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk:
> No such file or directory
> build/core/copy_headers.mk:15: warning: overriding commands for target
> `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
> build/core/copy_headers.mk:15: warning: ignoring old commands for
> target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
> make: *** No rule to make target
> `dalvik/libcore//home/kbingham/projects/android/dalvik/libcore/sub.mk'.
> Stop.
> kbing...@atlas:~/projects/android$
>
>
> --
> Regards
>
> Kieran Bingham
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Us this for your Feeds!

2009-02-04 Thread Ayusman

Hi Folks,

Place the following code in an external javascript file:


/* Function Used to Display Months in Words as Jan, Feb...*/
  function WordMonth(intMonth){
  var MonthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
  return MonthArray[intMonth]
}

/*Function Used to Fetch RSS Feeds from Other websites to yours...It
works with BoDY ONLOAD Functionality!*/
function GetRSSNews(){
  /*First*/

/*You can set as much as you want to display Feeds*/
 var iMax = 20

/*ActiveX Object Initialization*/
 var rssDoc = new ActiveXObject("Microsoft.XMLDOM")
 rssDoc.async = false


/*Insert your Required URL to be fetched>>For a Ref, I have used BBC
Feed*/
 rssDoc.load("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/
front_page/rss.xml")

 /*You can assume it as DOM Structure of a XML Document for Logical
Means*/
 var headNode = rssDoc.selectNodes("/rss/channel")
 var itemNodes = rssDoc.selectNodes("/rss/channel/item")

 /*Condition to check if Length of item Nodes is greater or lesser
than the Parameter used to get no. of items displayed*/
 if(itemNodes.length" +
itemNodes.item(i).getElementsByTagName("title").item

(0).text  +""

}

myFeeds.innerHTML  = feedBody

}


Place the following code in HTML file:




RSS Feeds Test





Please make sure that who ever using my code is changing the
Javascript location path as per their need.

Hope this works out for all those having problems in fetching RSS
Feeds using JavaScript!

Cheers,
Ayusman,
CSC

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Major media company seeking vendor for Android app development

2009-02-04 Thread Himanshu

Hi Tom,

I have seen your post in this forum. I am working with Aricent as
Senior Technical Leader which have arund 8000+ member world wide.

We are dedicatedly working on Android from last 1 year for one of the
Major US client. Our team has experties in Android, J2ME, Brew, and
BlackBerry.

For more details about Aricent please visit www.aricent.com.

Kindly provide me with your contact details so that we can get in
touch with you directly.

Looking forward to your reply.

Regards
Himanshu Shekhar
Mobile Number +91-9717731601.

On Feb 4, 4:18 am, tom  wrote:
> Hi all,
>
> I'm a mobile media product developer at a major media company in New
> York City, and we are looking for a vendor with experience in Android,
> web apps, and mobile in general. I understand Android is new, but if
> you've got something out there to see already, that would really help.
> Please reply with a brief description of your Android experience and a
> link or a word about yourself and your company.
>
> Thanks,
> Tom

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] android.graphics.PixelFormat

2009-02-04 Thread android developer
 Hi,

what are the parameters that need to be passed for

getPixelFormatInfo(int format, PixelFormat info)  function.
I have a bitmap and i am trying to get the pixel information of the bitmap.

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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapsApplication missing from source code?

2009-02-04 Thread Miroslav Mandov

Are you planning to release these apps (gMail, Market, IM, Maps,
Youtube etc.) as installable addons or apps, so that everyone can
install them? Similar to the apps for s60, java etc. mobiles.

On 28 Ян, 20:01, Jean-Baptiste Queru  wrote:
> It's not part of the Android platform, it's a Google-proprietary
> add-on that is not open-source.
>
> JBQ
>
>
>
> On Wed, Jan 28, 2009 at 8:39 AM, jsm  wrote:
>
> > Why is that closed? I mean the reasoning behind closing that app.
>
> > On Jan 28, 9:30 pm, Disconnect  wrote:
> >> Its closed source, just like gmail, contact/email sync, market, mp3 store,
> >> .. that might be it.
> >> (Anyone want to comment?)
> >> Oh, and the IM protocols (all of them) but not the framework. And - for 
> >> tmob
> >> users - the myfaves app.
>
> >> On Wed, Jan 28, 2009 at 11:24 AM, jsm  wrote:
>
> >> > Why is the com.google.android.apps.maps.MapsApplication missing from
> >> > the open source project site?
> >> > Is it closed source?
>
> >> > Can someone from google clarify please?
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem with setTheme() method

2009-02-04 Thread orbit

I am trying to create a simple dialog activity.

If i add: android:theme="@android:style/Theme.Dialog" to my 
tag in my AndroidManifest.xml everything works as it is supposed to. I
get a frame around my text and the background gets dimmed.

If i however instead if setting the theme in my manifest call setTheme
(android.R.style.Theme_Dialog); from my activities onCreate method
things get strange. I get the frame alright but the background in
black! not dimmed as it should be.

Can anyone help me out?

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to setup android application on android phone

2009-02-04 Thread 百合的味道
hi all,
   can you tell me the way to setup .apk on android phone
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] the datastore can not update

2009-02-04 Thread 百合的味道
when I store data into datastore,but it can not update immediately.
the next time open the app,it can update.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Onclick listener on ListView items

2009-02-04 Thread 百合的味道
you  can use the following function 
public void  onListItemClick(ListView l, View v, int position, long 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 this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I am getting SICK of 1 star ratings for charging!

2009-02-04 Thread DouglasN

On Feb 3, 7:59 pm, Beshoy Girgis  wrote:
> I think some cool additions to the market would be to be able to rate a
> comment with a thumbs up or down... then from there, show the top ten rated
> comments or what not.. no need to show all 1000 of them.

I think that would be workable. A button for anyone to report spam for
review would be expensive, but would work as well. Easiest would be
that you, the owner of the app, can delete comments. That would kind
of defeat the purpose of sincere communcation and would essentially
make the comments your ad.

I absolutely disagree that you should be able to block certain users
from getting your app, however stupid they are.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Error on AndroidManifest.xml..

2009-02-04 Thread ritter.han

  Hi, all.

  I'm trying to build the full Cupcake source code,
  And succeeded on my local Linux box.
  But once I copy the same source code to the remote server (Linux
based server)
  it returns the error like as below.

  target R.java/Manifest.java: Development (out/target/common/obj/APPS/
Development_intermediates/src/R.stamp)
  development/apps/Development/AndroidManifest.xml: 74: ERROR Error:
String types not allowed (at 'configChanges' with value 'keyboard|
keyboardHidden|navigation|orientation').
  make: *** [out/target/common/obj/APPS/Development_intermediates/src/
R.stamp] Error 1

  I tried ro delete out folder and 'make clean' also, but failed.

  Please tell me why the same source code return the error like the
above only in the remote server.
  Again, the smae one had been built on my local Linux box (Ubuntu).

  Thanks in advance.
  Shwan.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Debugging native libraries using DDMS ?

2009-02-04 Thread vrukesh

Hi,

is it possible to debug native libraries (based on C/C++) using DDMS
in Android ?

Or is there any other debugging tool for the native libraries in
Android ?
Vrukesh

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] TabHost in TabHost

2009-02-04 Thread drago

Hi,
I have one problem:
I create main TabActivity with external TabHost which consists of 3
tab activities. 1st and 3rd is a simple activities each of which
contains control button and EditText  2nd is also internal TabActivity
with only one tab. This tab contains one button. When I try switch
from this tab to any tabs of external main TabHost (manually by
clicking on TabWidget or programmatic by button clicking with API
function setcurrentTab(3)) then switched tab controls lost focus and
any controls aren't editable. I know that I miss something, but I
didn't understand what exactly wrong. If I switch only 1st and 3rd
tabs and didn't enter to the 2nd, I can edit both EditTexts in this
tabs. When I click to the second tab, factory creates content for the
second tab view with internal TabHost and now, any attempt to edit
EditText in 1st or 3rd shifts focus from EditText to the Buttons
(actually to the first control in activity)
Is there anything that i can try to avoid this problem? 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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] fileobserver

2009-02-04 Thread pradeep

i need to observe a sdcard i.e all the folders inside. i am creating
fileobservers for each folder in saparate threads, but i don't think
it is efficient. is there any other method for do so?

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it allowed to bundle the emu to your project?

2009-02-04 Thread dertom

Hi there,

I intend to participate in an online developing-competition. At the
end everyone have to present
a package that includes everything that is needed to start the
application. I think about writing
an application for android but I'm not so sure if it is allowed to
pack the Emulator with my project!?
I can't find something about that in the license.

Greets, ToM

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Storing data in the APK after creating it

2009-02-04 Thread Yorgos

Hello,

This issue has troubled me a lot, please help if you have any ideas.

- I am accessing an xml file from withing the apk, (stored in /res/
raw). The xml is read succesfully. My goal is to use this xml file as
data that can be changed in the apk.

- I tried unpacking and packing the apk file with ZIP compression and
the newly packed apk worked on the phone.

- I changed the xml file and packed the contents of the apk into a new
apk

- "install was unsuccesful" was the result of installing the new apk

As I see it, for every file stored into the apk, there are equivalent
references stored in the manifest and cert files:

for example:
SHA1-Digest: YS8iSCii71WMNrK7CHy5XLXBo+k=

Do you have any other ideas of how I can store/alter information into
the APK?

Please help, this is urgent

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using JNI to call C lib on android platform

2009-02-04 Thread Android development

I find the folder in android source code: frameworks\base\media\jni

I think thats the one you want. you can use the code as sample.

For example, the code below defined all the methods of class
MediaPlayer:
static JNINativeMethod gMethods[] = {
{"setDataSource",   "(Ljava/lang/String;)V",(void
*)android_media_MediaPlayer_setDataSource},
{"setDataSource",   "(Ljava/io/FileDescriptor;JJ)V",(void
*)android_media_MediaPlayer_setDataSourceFD},
{"prepare", "()V",  (void
*)android_media_MediaPlayer_prepare},
{"prepareAsync","()V",  (void
*)android_media_MediaPlayer_prepareAsync},
{"_start",  "()V",  (void
*)android_media_MediaPlayer_start},
{"_stop",   "()V",  (void
*)android_media_MediaPlayer_stop},
{"getVideoWidth",   "()I",  (void
*)android_media_MediaPlayer_getVideoWidth},
{"getVideoHeight",  "()I",  (void
*)android_media_MediaPlayer_getVideoHeight},
{"seekTo",  "(I)V", (void
*)android_media_MediaPlayer_seekTo},
{"_pause",  "()V",  (void
*)android_media_MediaPlayer_pause},
{"isPlaying",   "()Z",  (void
*)android_media_MediaPlayer_isPlaying},
{"getCurrentPosition",  "()I",  (void
*)android_media_MediaPlayer_getCurrentPosition},
{"getDuration", "()I",  (void
*)android_media_MediaPlayer_getDuration},
{"_release","()V",  (void
*)android_media_MediaPlayer_release},
{"_reset",  "()V",  (void
*)android_media_MediaPlayer_reset},
{"setAudioStreamType",  "(I)V", (void
*)android_media_MediaPlayer_setAudioStreamType},
{"setLooping",  "(Z)V", (void
*)android_media_MediaPlayer_setLooping},
{"isLooping",   "()Z",  (void
*)android_media_MediaPlayer_isLooping},
{"setVolume",   "(FF)V",(void
*)android_media_MediaPlayer_setVolume},
{"getFrameAt",  "(I)Landroid/graphics/Bitmap;", (void
*)android_media_MediaPlayer_getFrameAt},
{"native_setup","(Ljava/lang/Object;)V",(void
*)android_media_MediaPlayer_native_setup},
{"native_finalize", "()V",  (void
*)android_media_MediaPlayer_native_finalize},
};


On 2月4日, 上午10时27分, "Jerry Yang"  wrote:
> Hi, all
>
> Does anyone have any information about using the external C written lib?
>
> I have a C lib(no user interface, can be compiled like dll or lib) that
> need to be used in the app, but I cannot find any document in android
> SDK about how to use the external lib.
>
> My idea is: I should cross-compile the lib with arm based detain GCC and
> use the interface to Android app. Any one has any document or example
> about this?
>
> Appreciate for your help!
>
> With best wishes
>
> Jerry Yang

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] get notification using fileobserver

2009-02-04 Thread pradeep

hi,
I need to get notifications from the sdcard, for which i am
creating an instance of fileobserver in a separate thread for all the
folder. but creating a threads for each folder is not efficient if
there are many (abt 100 ) folders. Is there any other method through
which this can be done.

plz hepl me out.

pradeep

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] fileobserver

2009-02-04 Thread pradeep

hi,
  i need to subscribe file system notification from all the folders.
so I'm creating an instance of fileobserver for each folder in
separate thread, but i don't think it is efficient way of doing.

 Is there any other method to get the notifications.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Am I missing something really dumb.

2009-02-04 Thread Peli

In your provider, you should have a method getType(Uri uri) which
returns the MIME type of your Uri.

You should have defined it yourself as something like:
"vnd.android.cursor.dir/vnd.funkyandroid.provider.text"

and this is the MIME type that you have to declare in your intent
filter.

Peli

On Feb 4, 5:12 pm, Al Sutton  wrote:
> dataURI is a content provider URI
> (content://com.funkyandroid.provider.test/) which is created using
> Uri.parse.
>
> I can't see a way to specify a MIME type in Uri.parse or in the
> resulting Uri object, so am I still missing something?
>
> Al.
>
>
>
> Peli wrote:
> > Your intent has a deceptively looking dataURI. Your intent filter
> > should therefore contain the  tag with the corresponding
> > MIME type of the dataURI in order to match.
>
> > Peli
> >www.openintents.org
>
> > On Feb 4, 2:36 pm, Al Sutton  wrote:
>
> >> I have a service in an APK which starts a Thread which has the following
> >> in it's run method;
>
> >>             Intent intent = new Intent("com.funkyandroid.TEST", dataURI);
> >>             MyService.this.sendOrderedBroadcast(intent, null);
>
> >> In a different APK I have the following in the application section 
> >> manifest;
>
> >>         
> >>             
> >>                 
> >> But the receiver doesn't receive the broadcast when I run it in the
> >> emulator (or at least the log message doesn't get received).
>
> >> Any hints?
>
> >> Al.
>
> >> --
> >> ==
> >> Funky Android Limited is registered in England & Wales with the
> >> company number  6741909. The registered head office is Kemp House,
> >> 152-160 City Road, London,  EC1V 2NX, UK.
>
> >> The views expressed in this email are those of the author and not
> >> necessarily those of Funky Android Limited, it's associates, or it's
> >> subsidiaries.
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Read Image with multiple Frames - Animated Gif

2009-02-04 Thread Siva Rajaraman

Thank you for your reply Mike.

Do you know how to draw each frame into a bitmap??

Thanks

Siva

On Feb 4, 7:30 am, Mike Reed  wrote:
> Sorry, the decoders don't expose per-frameness yet.
>
> It may seem awkward, but you can load a Movie, and then draw each
> frame into an offscreen bitmap, and then save/compress those into
> separate files.
>
> On Tue, Feb 3, 2009 at 5:23 PM, Siva Rajaraman  wrote:
>
> > Hello Everyone,
>
> > I would like to know how to read in an image file which has multiple
> > frames in it. Something like ananimatedgiffile. I would like to
> > perform frame by frame animation with a file of this type. I don't
> > want to have each frame as drawables in the resource directory. Can
> > anyone trhow some light on how to perform the above mentioned tasks.
>
> > Thanks
>
> > Siva
>
> > P.S - I have already checked the example in the API demos where an
> >animatedgifis read as an object of type Movie. I don't want to read
> > it in as a movie file.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Profiling Tools?

2009-02-04 Thread Romain Guy

Hi,

The SDK comes with traceview and DDMS to analyze performance. For
memory usage, you can use DDMS to track allocations and the state of
the heap. We are also working on ways to give SDK developers access to
a heap analysis tool.

On Wed, Feb 4, 2009 at 8:17 AM, Gw1921  wrote:
>
> Hi
>
> I've been running Eclipse on Mac OS X for android development. Since
> I'm new to eclipse I'm not sure how to profile my apps. Especially
> Memory usage. Could some one guide me to a direction please? Thanks!
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Resource files XML imports

2009-02-04 Thread Raja Nagendra Kumar

Hi,

Does android resource files for values and layouts have any way to
import other xml files.

This is a good approach for products, where there is a core module and
many sub modules. The Submodule may also use some of the core defined
key value pairs etc.

Also, in case with a module, if the view is very complex.. better to
manage them as different xml's.

Are there any other approach to handle this.. by way R inheritance
etc.. I suppose only one R supported per application..

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get lists of email from contact application?

2009-02-04 Thread dileep singh
Thank you very much Mark.I will try this code and will let you know.once
again thanks.

On Wed, Feb 4, 2009 at 9:12 PM, Mark Roberts  wrote:

>
> import android.app.Activity;
> import android.content.ContentUris;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.Contacts.People;
> import android.util.Log;
>
> public class Start extends Activity {
>/** Called when the activity is first created. */
>public static final String[] METHODS_PROJECTION = new String[] {
>People.ContactMethods._ID,
>People.ContactMethods.KIND,
>People.ContactMethods.DATA,
>People.ContactMethods.TYPE,
>People.ContactMethods.LABEL,
>People.ContactMethods.ISPRIMARY,
>};
>Uri mUri;
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
> people"), 1); //1 is the ID of the first created contact
>Uri methodsUri = Uri.withAppendedPath(mUri,
>People.ContactMethods.CONTENT_DIRECTORY);
>Cursor methodsCursor = getContentResolver().query
> (methodsUri,METHODS_PROJECTION, "kind=1", null, null);
>
>Log.i("Cursor", "Count = " + methodsCursor.getCount());
>}
> }
>
> On Feb 4, 4:44 am, dileep singh  wrote:
> > Hi Mark,
> > Can u give me some sample code?I am not able to get email with the above
> > code.
> > please provide me somple code
> >
> > On Wed, Feb 4, 2009 at 12:53 AM, dileep singh <
> discover.dile...@gmail.com>wrote:
> >
> > > Thanks a lot mark.I will try the above code.
> >
>  > > On Tue, Feb 3, 2009 at 10:46 PM, Mark Roberts 
> wrote:
> >
> > >> If you are looking for the emails for  a specific contact then you
> > >> could do it like this where id is the id of the contact for which you
> > >> are trying to get the data:
> >
> > >> public static final String[] METHODS_PROJECTION = new String[] {
> > >>People.ContactMethods._ID,
> > >>People.ContactMethods.KIND,
> > >>People.ContactMethods.DATA,
> > >>People.ContactMethods.TYPE,
> > >>People.ContactMethods.LABEL,
> > >>People.ContactMethods.ISPRIMARY,
> > >>};
> > >> mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
> > >> people"), id)
> > >> Uri methodsUri = Uri.withAppendedPath(mUri,
> > >> People.ContactMethods.CONTENT_DIRECTORY);
> > >> Cursor methodsCursor = getContentResolver().query(methodsUri,
> > >> METHODS_PROJECTION, "kind=1", null, null);
> >
> > >> On Feb 3, 12:05 pm, dilu  wrote:
> > >> > Hi,
> > >> > Please tell me how to get lists of email from contact application in
> > >> > android?If possible then please provide me some sample code or
> > >> > tutorial on this.
> > >> > please help me.
> > >> > Thanks
> > >> > dileep
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] create a file while installing the apk

2009-02-04 Thread shahzad ahmad
I want my application to read configurations from a file . Is it possible to
copy the default configuration file in apk and get it copied to file system
when apk is installed ?

thanks,
shahzad

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Am I missing something really dumb.

2009-02-04 Thread Peli

Your intent has a deceptively looking dataURI. Your intent filter
should therefore contain the  tag with the corresponding
MIME type of the dataURI in order to match.

Peli
www.openintents.org

On Feb 4, 2:36 pm, Al Sutton  wrote:
> I have a service in an APK which starts a Thread which has the following
> in it's run method;
>
>             Intent intent = new Intent("com.funkyandroid.TEST", dataURI);
>             MyService.this.sendOrderedBroadcast(intent, null);
>
> In a different APK I have the following in the application section manifest;
>
>         
>             
>                 
> But the receiver doesn't receive the broadcast when I run it in the
> emulator (or at least the log message doesn't get received).
>
> Any hints?
>
> Al.
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What is the 'correct' way to set styles programmatically?

2009-02-04 Thread Kennard Consulting

Thanks again for your help, Dianne.

My apologies for not making myself clear: my original code was just a
hack. I would rather not manually retrieve the values and call setters
on a view.

So are you saying if I want to programmatically style a view I must
not use, say, 'new TextBox( context )' but rather 'new TextBox
( context, attributeSet )'? That's okay. In that case is there a way I
can obtain an AttributeSet given a style id?

For example, do I pass a home-made implementation of AttributeSet to
Theme.obtainStyledAttributes() and it will populate it for me? I tried
this in the past but there seemed to be some kind of hard-coded cast
to XmlBlock$Parser inside Theme.obtainStyledAttributes?

Regards,

Richard.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to instrumentation clicking a button of dialog?

2009-02-04 Thread Meryl Silverburgh

Hi,

In my activity, I have code which create dialog like this with +ve and
-ve button each has its own click action:

protected Dialog onCreateDialog(int id) {
switch (id) {
case CONFIRM_DIALOG:
 // create my own dialog with positive and negative button...

 }
}

My question is how can I create instrumentation to emulate the click
on that button? That onClick() implementation calls a private method
of my activity.

new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
aPrivateMethodOfMyActivity();
}

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem

2009-02-04 Thread Alowishus

Wow, thanks for all the constructive advice guys. I really appreciate
that.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Sdcard issue

2009-02-04 Thread krish24

Hi All,

We have ported android to our hardware. I am facing some issues
related to sdcard.

Here is the test scenario and issues:

First issue :

1>  On hardware, insert the card and copy a file to sdcard using dd
command.
2>  Remove the card from hardware.
3>  do ls /sdcard
It shows the file present in sdcard. It seems umount of sdcard device
is not happening.

Second issue:

1>  Copy a file to sdcard  using dd command.
2>  Remove the sdcard and check the content of the sdcard from PC.
File is not visible.
3>  Copy file to sdcard again and then  check the content of sdcard
from PC. File size is zero bytes.
4>  Restart the hardware and copy the file again. File is visible when
checked from PC.

Third issue:
1> The content of copied file are not matching with the original
source file.

Please share your Ideas, suggestions on how to fix this?

Regards,
krish



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: base64 in the sdk ?

2009-02-04 Thread Raymond Rodgers

hapciu wrote:
> Is there a base64 encoding/decoding utility anywhere in the Android
> SDK ?
> I wouldn't want to reinvent the wheel.
>
> thanks
>   
Personally, I made  two new packages within my app's package to handle 
the Apache Commons/Jakarta base-64 classes at 
http://commons.apache.org/codec/ . Since Android and the SDK already 
includes some of classes from that project, I don't know why they 
weren't already included, but they seem to work pretty well in my 
project at least.


Raymond

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Web services for mobile apps

2009-02-04 Thread dbradby

Hi Everyone,

We're been releasing quite a few iPhone and Android apps over the past
few months that have required various pieces of server side support.
Mostly we wanted to be able to control welcome messages, upgrade
notifications, collect errors and analytics. Having built all this
ourselves we now want to open it up to other mobile app developers.

Today we opened up shoutmob.com to developers who want to be part of
the beta.

We will be providing:

- broadcast messages (welcome, upgrade notifications)
- high score table storage and retrieval
- error collection
- usage statistics

 Developers who join up early will receive a signup bonus. So head
over to http://shoutmob.com?refcode=NoUtBO and sign up now.

Thanks!

Daniel
--
Connecting App Developers with Users - http://shoutmob.com/
iPhone, Android and Geolocation ramblings - http://jtribe.blogspot.com/
Android Market Stats - http://androidstats.com


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem

2009-02-04 Thread Mark Murphy

Alowishus wrote:
> Wow, thanks for all the constructive advice guys. I really appreciate
> that.

I'm not quite sure why you got the reaction you did. On the other hand,
I haven't played with low-level touch events, so I personally don't have
any specific advice to offer.

The SDK samples, like the ApiDemos, are a treasure trove for stuff like
this. If you can find a demo that does what you want, look at the source
code in your SDK's samples/ directory.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Am I missing something really dumb.

2009-02-04 Thread Al Sutton

Once again you've shown yourself as a genius. It's all working now.

Thanks (again),

Al.

Peli wrote:
> In your provider, you should have a method getType(Uri uri) which
> returns the MIME type of your Uri.
>
> You should have defined it yourself as something like:
> "vnd.android.cursor.dir/vnd.funkyandroid.provider.text"
>
> and this is the MIME type that you have to declare in your intent
> filter.
>
> Peli
>
> On Feb 4, 5:12 pm, Al Sutton  wrote:
>   
>> dataURI is a content provider URI
>> (content://com.funkyandroid.provider.test/) which is created using
>> Uri.parse.
>>
>> I can't see a way to specify a MIME type in Uri.parse or in the
>> resulting Uri object, so am I still missing something?
>>
>> Al.
>>
>>
>>
>> Peli wrote:
>> 
>>> Your intent has a deceptively looking dataURI. Your intent filter
>>> should therefore contain the  tag with the corresponding
>>> MIME type of the dataURI in order to match.
>>>   
>>> Peli
>>> www.openintents.org
>>>   
>>> On Feb 4, 2:36 pm, Al Sutton  wrote:
>>>   
 I have a service in an APK which starts a Thread which has the following
 in it's run method;
 
 Intent intent = new Intent("com.funkyandroid.TEST", dataURI);
 MyService.this.sendOrderedBroadcast(intent, null);
 
 In a different APK I have the following in the application section 
 manifest;
 
 
 
 >>> 
 But the receiver doesn't receive the broadcast when I run it in the
 emulator (or at least the log message doesn't get received).
 
 Any hints?
 
 Al.
 
 --
 ==
 Funky Android Limited is registered in England & Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.
 
 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
 
>> --
>> ==
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>> 
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Playing an audio file during a call

2009-02-04 Thread Dave Sparks

No, this is not supported. It requires access to in-call audio which
is currently not available to the apps processor.

On Feb 4, 3:36 am, Mak  wrote:
> I want to accept incoming calls and play an audio file for the caller.
> Is there a possibility of playing an audio file during a phonecall,
> so that the caller hears a wav- file?
> It seems to me that nothing is possible during a phone call since
> release 1.0.
> Hope this is getting better in the next release.
> Has anybody information about the next release?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to completely wipe out the application data

2009-02-04 Thread shahzad ahmad
thanks murphy for your reply.Suppose user downloads the same version of
application again then metadata will not help much.There should be some way
out everything when an application is uninstalled

On Wed, Feb 4, 2009 at 7:34 PM, Mark Murphy  wrote:

>
> shahzad ahmad wrote:
> > I'm developing an application which downloads a file from FTP server.
> > The code first checks if file is present on local system . If it is not
> > present on local system then it downloads it from FTP server.
> > Application must download file from FTP server when it executes first
> > time after getting installed.
> >
> > If we reinstall the application , android preserves the data of old
> > application .So now application finds the file on local system and does
> > not download it from FTP server. But it should always download the file
> > on first execution after fresh install.
> >
> > Is there any way to completely wipe out the previous application data on
> > fresh install ?
>
> I would recommend you put metadata in your file itself that indicates
> what version of your app the file supports. Rather than the rule be
> "should always download the file on first execution", the rule should be
> "should always examine the metadata and download the file if it is needed".
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: base64 in the sdk ?

2009-02-04 Thread joebowbeer

On Feb 3, 2:25 pm, hapciu  wrote:
> Is there a base64 encoding/decoding utility anywhere in the Android
> SDK ?
> I wouldn't want to reinvent the wheel.
>

There is not, but I'm hoping Issue 902 will lead to one.

http://code.google.com/p/android/issues/detail?id=902

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to completely wipe out the application data

2009-02-04 Thread Mark Murphy

shahzad ahmad wrote:
> Suppose user downloads the same version of
> application again then metadata will not help much.

*shrug*

Look at it this way: if hundreds, if not thousands, of feed reader
programs can figure out how to cache feed results and only download
updates, one would think their patterns (e.g., metadata) might work in
your case.

> There should be some
> way out everything when an application is uninstalled

I think it is all removed on a true uninstall. An upgrade (adb install
-r, downloading an update from the Market) is not a true uninstall --
the presumption is the application wants that data.

Personally, I think it'd be nice to have hooks whereby if you, say,
supply your own Application class, that it would be called on these
sorts of events (onInstall(), onPreUpgrade(), onPostUpgrade(),
onUninstall()). But, such hooks do not exist today, AFAIK.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem

2009-02-04 Thread Peli

The constructive advice is justified. We all would like to help you,
but we don't know what your problem is:

Is your problem:
1) You don't know how to catch a touch event on the whole screen?
2) You don't know how to switch images?
3) You don't know how to display an image?
4) You don't know how to write an Android application?
5) You don't know anything about (Java) programming and just started?

Depending on what your true question is, the answer that may help you
may be quite different.

Peli
www.openintents.org

On Feb 4, 5:55 pm, Alowishus  wrote:
> Wow, thanks for all the constructive advice guys. I really appreciate
> that.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I am getting SICK of 1 star ratings for charging!

2009-02-04 Thread Josh Dobbs
I think we should have the option to block users. I reserve the right to
refuse service to anyone. There are a LOT of comments for my apps that have
n0othing at all to do with the application, a lot of these contain racial
slurs and downright dirty language that I do not want to be associated with
myself, my apps, or my brand.

On Wed, Feb 4, 2009 at 1:18 AM, DouglasN  wrote:

>
> On Feb 3, 7:59 pm, Beshoy Girgis  wrote:
> > I think some cool additions to the market would be to be able to rate a
> > comment with a thumbs up or down... then from there, show the top ten
> rated
> > comments or what not.. no need to show all 1000 of them.
>
> I think that would be workable. A button for anyone to report spam for
> review would be expensive, but would work as well. Easiest would be
> that you, the owner of the app, can delete comments. That would kind
> of defeat the purpose of sincere communcation and would essentially
> make the comments your ad.
>
> I absolutely disagree that you should be able to block certain users
> from getting your app, however stupid they are.
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Properly rendering huge cursors of data in listview?

2009-02-04 Thread dmyung

Hello,

I've got a Listview in my activity with a cursor adapter and a view to
render the results.

When i return a rather large data set from my query (like say, 15,000
rows), the Listview.setadapter() call blocks on me and occasionally
gives me the dreaded ANR dialog.

I've tried various ways to background the operation.  Fetch the cursor
in a background thread, but that is a rather short operation since it
just returns a handle to the underlying dataset.

Obviously I can't background the loading of the adapter in the thread
because the setAdapter needs to be on the UI thread (i tried that and
got a nice exception and crash).

When setadapter is called, the app locks up while data is being
rendered in bindView() and newView().  Users have complained that it
looks like the app is frozen (which effectively it is), so they munge
around the menus and such while the operation is happening, causing
more havoc.

My current workaround involved doing a ViewSwitcher to put a little
progress widget to switch out while the listview is being rendered.
However, since it's on the UI thread, most if not all UI operations
get slammed.  Progress Dialogs don't show, the progress widget doesn't
animate, animation transitions cache weirdly.

The other workaround is to default to use smaller datasets which is
the more "duh" solution.  But the need will arise eventually to do
huge dataset queries and/or render more complex views within a
ListView...which I think will cause similar SetAdapter() blockages.

My question is this.

The API examples have the Inefficient list activity examples for
binding "slow" data on scroll events.  Is there a similar type of lazy
loading/fetching of data for a corresponding cursor adapter?  I want
to basically have a listview bound with a Cursor adapter ONLY render
the items in the visible view.  It seems like the cursorView sort of
does it already, but I was wondering if there was a way to tune the
amount of records it prefetches on intial rendering after setadapter
().  It seems to do way too much and it blocks the UI.

Many 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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing data in the APK after creating it

2009-02-04 Thread Mark Murphy

Yorgos wrote:
> Do you have any other ideas of how I can store/alter information into
> the APK?

Simple answer: Just re-run Ant to rebuild/resign your APK after
modifying the XML.

More complicated answer: Tease out the specific steps from Ant that will
achieve those ends. I think you will need aapt and apkbuilder at minimum.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing data in the APK after creating it

2009-02-04 Thread Georgios Galyfos
thanks for the reply, however I am trying to do this without needing to
rebuild the APK..

On Wed, Feb 4, 2009 at 7:46 PM, Mark Murphy  wrote:

>
> Yorgos wrote:
> > Do you have any other ideas of how I can store/alter information into
> > the APK?
>
> Simple answer: Just re-run Ant to rebuild/resign your APK after
> modifying the XML.
>
> More complicated answer: Tease out the specific steps from Ant that will
> achieve those ends. I think you will need aapt and apkbuilder at minimum.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android Training in Sweden -- http://www.sotrium.com/training.php
>
> >
>

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing data in the APK after creating it

2009-02-04 Thread Sundog

I'm pretty sure this cannot be done.

On Feb 4, 10:49 am, Georgios Galyfos  wrote:
> thanks for the reply, however I am trying to do this without needing to
> rebuild the APK..
>
>
>
> On Wed, Feb 4, 2009 at 7:46 PM, Mark Murphy  wrote:
>
> > Yorgos wrote:
> > > Do you have any other ideas of how I can store/alter information into
> > > the APK?
>
> > Simple answer: Just re-run Ant to rebuild/resign your APK after
> > modifying the XML.
>
> > More complicated answer: Tease out the specific steps from Ant that will
> > achieve those ends. I think you will need aapt and apkbuilder at minimum.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com
> > Android Training in Sweden --http://www.sotrium.com/training.php- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing data in the APK after creating it

2009-02-04 Thread Dianne Hackborn
An .apk is really just a zip file (and a jar file too), so in theory you can
use any zip tools you want on it, you just need to make sure that you
correctly re-sign it after making changes.  There is a caveat, however, that
aapt does a few special things to make sure to not compress certain files
and enforce alignment of uncompressed files for more efficient access at
runtime; you'll want to make sure you don't lose these things if using
normal zip tools.

The aapt command also has some zip-like options to add and remove files.

On Wed, Feb 4, 2009 at 9:49 AM, Georgios Galyfos  wrote:

> thanks for the reply, however I am trying to do this without needing to
> rebuild the APK..
>
>
> On Wed, Feb 4, 2009 at 7:46 PM, Mark Murphy wrote:
>
>>
>> Yorgos wrote:
>> > Do you have any other ideas of how I can store/alter information into
>> > the APK?
>>
>> Simple answer: Just re-run Ant to rebuild/resign your APK after
>> modifying the XML.
>>
>> More complicated answer: Tease out the specific steps from Ant that will
>> achieve those ends. I think you will need aapt and apkbuilder at minimum.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com
>> Android Training in Sweden -- http://www.sotrium.com/training.php
>>
>>
>>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: .apk file resource optimisation

2009-02-04 Thread FranckLefevre


Dear Raja,

I think that compressing resources in APK is not such convenient for
two re


On Feb 3, 11:44 am, Raja Nagendra Kumar 
wrote:
> When we open up the .apk file in winzip (as it is a jar file), we see
> the classes are compressed and stored as one file. However the
> resources are taken as is. Would it not be a nice approach to compress
> all the resources (specially if all the application has many images)
> and store it as one file, as this could further bring down the .apk
> size. I understand it needs more runtime memory though.. Are there any
> options to pack the resources this way already..
>
> As Android seems to run j2se.. I am assuming that such kind of runtime
> memory is not an issue.
>
> Regards,
> Raja Nagendra Kumar,
> C.T.Owww.tejasoft.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] use of recovery for updates and recovery

2009-02-04 Thread twebb

Regarding recovery functionality, is platform/bootable/recovery the
place to focus or is is platform/recovery?  Has anyone ported this
code/functionality for use on another target?  I'm trying to implement
an update mechanism for a new android-based device.

Some other questions include...
Comments in recovery.c indicate that the recovery tool uses
commands written to and read from /cache/recovery/..., but code
(recovery.c) seems to show that the bootloader commands are read from
and written to the "misc" partition?  How do bootloader and recovery
command mechanisms work?

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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Generate .apk without debug info in .class

2009-02-04 Thread Dan Bornstein

On Tue, Feb 3, 2009 at 2:50 PM, Nanard  wrote:
> If I test my application and generate a .apk, or if I use the 'Export
> unsigned' menu, I get the
> same application size.
>
> How can I remove debug information for my final releases ?

By "debug information" I assume you mean the local variable and line
number mapping tables. If not, please clarify. And if so:

I have to ask what your point is with the removal. If it's to save
space, then my bet is that the savings won't be significant enough to
bother. In particular, you can expect to save something like 10-15% of
your uncompressed dex file size, whereas in an apk the dex file is
compressed, and whereas in a typical app, the size of included media
resources (images, audio, etc.) probably dominate whatever the dex
savings are.

And with the info stripped out, you will of course no longer get
exception stack traces that have line numbers in them. Although
obviously you won't get feedback from everyone in the field who uses
your app and has trouble, just getting one good stack trace from the
field can be a godsend. Similarly, though you won't expect to hook a
debugger up to every broken instance of your app, the ability to do it
just once and see good local variable info can save you hours of
debugging time.

With that said, dx — the underlying tool used by the Eclipse plugin to
convert your code into a dex file — has options that cause it to omit
line number and/or local variable information ("--positions=none" and
"--no-locals" respectively). I don't believe the Eclipse plugin offers
you a way to include these options, though I could be wrong (sorry; I
don't use Eclipse myself). However, you can always call dx directly to
achieve whatever your goal is.

As a final note, if you are interested more in obfuscation than mere
space savings, you will probably want to run an obfuscator per se,
such as
ProGuard , over your class files
before converting them to a dex file. Again, I don't think the Eclipse
plugin gives you a way to do this, but with a normal shell command
line, it's easy enough to string together whatever tools you need.

I hope this helps.

-dan

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: fileobserver

2009-02-04 Thread Dianne Hackborn
You don't need to create any threads to use FileObserver -- it is
callback-based.

On Tue, Feb 3, 2009 at 11:27 PM, pradeep  wrote:

>
> i need to observe a sdcard i.e all the folders inside. i am creating
> fileobservers for each folder in saparate threads, but i don't think
> it is efficient. is there any other method for do so?
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   3   >