[android-developers] AlarmManager with alarm icon

2011-01-19 Thread Andy Savage
I'm setting wake up alarms for a custom app using
AlarmManager.set(). This correctly registers an alarm and the
app is launched at the desired time. It doesn't however give a visual
alarm indicator in the notification bar (RIGHT hand side, next to the
time). How do I set this?

I have seen 3rd party alarm apps which trigger this icon to display.
They also cause a toast along the lines of Alarm scheduled for x
hours from now, which may be part of the process. Obviously it's
quite easy to generate that toast manually, but I'm wondering if that
is integrated too?

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: AlarmManager with alarm icon

2011-01-19 Thread Andy Savage
It's not a notification as far as I can tell. It appears on the RIGHT
hand side next to the time (Along with the other in built icons,
such as battery, connectivity etc). It doesn't appear in the app
specific list of notifications on the LEFT, or the notification drop
down list, or have associated text.

On Jan 19, 5:27 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 19 January 2011 18:19, Andy Savage nos...@starsphere.net wrote:

  I'm setting wake up alarms for a custom app using
  AlarmManager.set(). This correctly registers an alarm and the
  app is launched at the desired time. It doesn't however give a visual
  alarm indicator in the notification bar (RIGHT hand side, next to the
  time).

 AlarmManager is for alarms. Not alarms + icons + shower + cofee :)

  How do I set this?

 http://developer.android.com/guide/topics/ui/notifiers/notifications

  I have seen 3rd party alarm apps which trigger this icon to display.
  They also cause a toast along the lines of Alarm scheduled for x
  hours from now, which may be part of the process. Obviously it's
  quite easy to generate that toast manually, but I'm wondering if that
  is integrated too?

 If it's easy why should it be integrated? To make more problems in
 case you do *not* want it? Framework/OS gives you single bricks,
 not whole walls. And it should be that way, for many reasons incl.
 fexibility.

-- 
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: AlarmManager with alarm icon

2011-01-19 Thread Andy Savage
Both Klaxon and Alarm Clock Plus do this (Both have free versions
available on market if you want to take a look).

On Jan 19, 5:49 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jan 19, 2011 at 11:32 AM, Andy Savage nos...@starsphere.net wrote:
  It's not a notification as far as I can tell. It appears on the RIGHT
  hand side next to the time (Along with the other in built icons,
  such as battery, connectivity etc). It doesn't appear in the app
  specific list of notifications on the LEFT, or the notification drop
  down list, or have associated text.

 What app(s) do(es) this? Sounds like a hack.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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: EditText inside ListView

2010-12-19 Thread Andy Savage
In case anyone wants to quickly replicate this to check it, I have an
example project at: 
http://andysavage.homeip.net:2886/EditTextListViewDemonstration.zip

To replicate simply run the app, and try to type text into any of the
edit boxes. Using the emulator, when I first touch an EditText the
software keyboard popus up and focus is lost. I can then re-touch the
edit text, but as I try and type the software keyboard's predictive
text will be shown and the edit text will again lost focus, and
recreate 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] Re: EditText inside ListView

2010-12-19 Thread Andy Savage
This seems to solve the problem. Many many thanks.

On Dec 19, 5:34 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 You need to change in your AndroidMenifest.xml
 Add  *android:windowSoftInputMode=adjustPan*   in the activity holding the
 listview.
 This will solve your problem.

         activity android:name=.EditTextListViewDemonstration
                   android:label=@string/app_name
                   *android:windowSoftInputMode=adjustPan*



 Regards
 Sarwar Erfan

-- 
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] EditText inside ListView

2010-12-18 Thread Andy Savage
I've found a plethora of older unanswered questions about this, so I'm
adding one more in the hope that someone has now found a solution.

I have an EditText inside a ListView (Specifically its in a custom
Preference inside a PreferenceScreen, but a simple ListView is enough
to replicate it). When the EditText is touched, the software keyboard
is popped up and the EditText loses focus. You can retouch the
EditText and try to type, but when the predictive text suggests a word
it again loses focus and empties itself.

Upon inspection the EditText's parent view is being recreated, which
explains the losing focus and content. Digging a little deeper
Preference's getView(View convertView, ViewGroup parent) is being
called with a blank convertView, rebuilding the entire view rather
than reusing the existing one. I don't know if that's the right place
to be looking, or if that is normal for a ListView child. The view is
also recreated as the user scrolls (which makes scrolling somewhat
slower, but that's another issue).

I don't really know where to go from here. A PreferenceScreen expects
a ListView so I can't just change the view to LinearLayout or
something. I also don't really want to give up the custom EditText
preferences as they fit very well in the context they are being used.

Any ideas on how to stop this issue would be great.

-- 
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] C2DM Tied to Market? (e.g. will it work on non-official devices)

2010-08-16 Thread Andy Savage
Hi everyone,

Quick question.

Just wondering if Cloud to Device Messaging (C2DM) is available for devices
that use Android 2.2 but don't have the Android Market installed (because
they are not an official device).

Is this service tied to the Market?

Kind regards,
Andy Savage

-- 
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] Developing a project on both Android Windows

2010-08-10 Thread Andy Savage
Hi everyone,

I've got an interesting request that's hard to find information on Google
for.

I'm developing an application across both Android and windows which (mostly)
shares the same classes. I was looking for a really easy way to duplicate
some of the special Android classes on windows.

For example for the Log class, I wrote a MyLog class which performs exactly
the same but the actual class does different things (for example on windows
it just formats a string and writes it out to System.out).

I was wondering if anybody had any classes which performed similar functions
to Android in windows. For example, I'd love to have a drop in replacement
for the Broadcast system in Android that I could use in windows to get
very similar functionality.

Just wondering if anybody had any small classes they could share or any
links to something which duplicates even a small part of what Android does.

Cheers,
Andy

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

Re: [android-developers] an experiment in open development: Vdroid

2010-08-03 Thread Andy Savage
Hi there,

Just wondering if you can tell me what Vdroid does? I'm interested in
anything related to video recording and playback but I can't find this
package anywhere (I'm only using a developer phone so I can't see paid apps
on the store).

Couldn't find any screenshots or information.

Looking through the source code it just seems to use the inbuilt media
player to record movies? If possible could you point me to a website or
clarify the use of Vdroid?

I'm looking for a solution that will help me to play back raw video data.
Will this help me?

Cheers,
Andy

On Tue, Aug 3, 2010 at 12:38 AM, Donald Wilde androidwhac...@gmail.comwrote:

 After much thought, I've decided to open up my Vdroid for community
 development. Numerous people have asked me how to write video apps,
 and numerous other people have whined that it doesn't use their
 highest resolution, or it doesn't help them post to YouTube, or...
 etc.

 So, without further pontification, here it is.

http://vdroid15.sourceforge.net

 You'll need to be a working android developer to use it, because all
 that's included is the source and the resources. I've rerleased it
 under the BSD license so you could even just copy it and release it as
 your own. The only thing I ask is that you don't use my name, the name
 Vdroid,  or my icons.

 I do ask that you join in on my forum and post your comments, review
 my software, and add to the discussion with code and cogent insights.
 I've enabled the SourceForge BB so we can talk in a public forum.

 It is my hope especially that those of you with more advanced hardware
 will test it out and help me make it work. I know of one user with a
 BackFlip that sent me an e-mail saying that it was broken but he
 couldn't or wouldn't give me more information. Likewise, I've been
 told that my latest mod for the 720x480 DROID has problems, but the
 user was not helpful enough for me to be able to debug it without
 hardware.

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


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

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread Andy Savage
Hello,

Actually your in luck (sort of). There's an opensource java facebook client
available for Android here:
http://code.google.com/p/facebook-java-api/

I advise you check out google code (or google search) first before posting
as there are many great links that pop up with a simple Open Source
Facebook Client search :-)

Cheers,
Andy

On Fri, Jul 23, 2010 at 9:30 AM, xiaguang Chen chenxiagu...@gmail.comwrote:

 Thank you all the same, I will study it, if any solution was found, I will
 paste here.

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


-- 
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] Extended Logging Class?

2010-07-18 Thread Andy Savage
Hi everyone,

Just wondering if anybody has a nice logging class that wraps around the
standard logging class? For example a class that easily allows logging to be
turned on and off, checks for a release etc?

Cheers,
Andy

-- 
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] Route specific traffic through VPN?

2010-07-18 Thread Andy Savage
Hi all,

I have a question regarding network connectivity.

Is it possible to route specific traffic through a VPN and other traffic not
through a VPN? (root access is no problem in my case if that's needed).

Basically I want to route traffic from my application through a VPN and have
traffic from all other applications being routed normally. Is it possible?

Kind regards,
Andy Savage

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

Re: [android-developers] Default Android Applications

2010-07-06 Thread Andy Savage
Hi there,

You can find this out by installing the SDK and running the emulator. This
will give you a working phone to have a look (for all intensive purposes).

On Mon, Jul 5, 2010 at 4:51 PM, Srinivasan J srinivas1...@gmail.com wrote:

 :

 Hi all,
  I am new to Android Developement.

 I am going to start writing applications in Android OS?

 I would like to know what are all the basic features and apps
 available when Android OS is installed in Mobile?

 I would like to implement following Apps
 Dialer,Contacts,Messaging
 Browser,Gallery,Camera
 Music,Media Player,Google Mail
 Market,Youtube,Alarm Clock
 Calculator,Calendar,Email
 Favorite contacts,FM radio,Google Maps
 Google Talk,Homescreen selector,Java Downloads
 Moxier Calendar,Moxier Contacts,Moxier Mail
 Moxier Sync,Moxier Tasks,My e-mail
 Quickoffice,Settings,SIM Toolkit
 Video editor,Voice recorder

 Out of these how many applications are available in Android OS and
 will be loaded when Android OS is installed in a mobile?

 Please do help me on this...


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

-- 
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: Echo Cancellation

2010-07-06 Thread Andy Savage
Just a nudge on this, anybody have any information?

On Wed, Jun 30, 2010 at 10:41 AM, Andy Savage a...@bluewire.net.nz wrote:

 Hi there,

 Can anybody tell me about the current state of echo cancellation in
 Android? Are the functions automatically applied to microphone input?

 Can I use it, or is it applied automatically?

 I presume it uses OSLEC? Is this correct?

 Kind regards,
 Andy Savage


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

Re: [android-developers] Filter for crapps (crap apps)

2010-06-29 Thread Andy Savage
+1 for this. It's kind of ridiculous.

One of Apples major arguments for moderation is that the Android App store
has lots of crap in it including pornographic stuff.

Whatever your view towards that kind of stuff. It would be really nice to
filter it. When I search for facebook chat, or gmail I don't want a whole
lot of sexy asian picture apps!
Sometimes the good apps get pushed way beyond my tolerance level to sort
through.

It would also be GREAT to sort apps by rating (with apps that have the
highest rating via number of votes first), that could help also.

On Tue, Jun 29, 2010 at 6:17 AM, YuviDroid yuvidr...@gmail.com wrote:

 Agreee!! +1 (or +1000...)


 On Mon, Jun 28, 2010 at 10:03 PM, Shane Isbell shane.isb...@gmail.comwrote:

 +1 for filtering. I think it would be pretty useful to be able to tag
 applications: picture viewer, web page launchers, etc and then have a
 preference section of AM that allows user filtering of those types.


 On Mon, Jun 28, 2010 at 9:25 AM, TreKing treking...@gmail.com wrote:

 On Tue, Jun 22, 2010 at 9:16 AM, McDanish bennymcandr...@gmail.comwrote:

 Does anyone know if there is some sort of filter funktion, either
 in Andoid Market itself or in/as an app?


 Nope, but it's needed desperately. The amount of garbage in the market
 has rendered the Just In List absolutely useless for discovering
 interesting new apps.


 -
 TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking

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




 --
 Shane Isbell (Founder of ZappMarket)
 http://apps.facebook.com/zappmarket/

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




 --
 YuviDroid
 http://android.yuvalsharon.net

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


-- 
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] Froyo for ADP2?

2010-06-29 Thread Andy Savage
Hi All,

Does anybody know when the 2.2 update will come out for the ADP2 phone?

I'm a bit pissed off that I recently purchased the phone only to have it
come out with a version that's 3 generations old.

Feeling a bit ripped off to be honest!

-- 
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] Echo Cancellation

2010-06-29 Thread Andy Savage
Hi there,

Can anybody tell me about the current state of echo cancellation in Android?
Are the functions automatically applied to microphone input?

Can I use it, or is it applied automatically?

I presume it uses OSLEC? Is this correct?

Kind regards,
Andy Savage

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

Re: [android-developers] Re: rtsp client?

2010-06-28 Thread Andy Savage
With certain types of well formed RTSP streams the mediaplayer class can
play it directly.

http://m.youtube.com is a great example of some well formed feeds, but most
RTSP feeds from the net seem to work fine.

I've also managed to get ffserver streaming fine to it using H.264.

On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote:

 afaik you can directly feed that trsp url to the MediaPlayer class...

 On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote:
  Hi
 
  could someone say if android supports an RTSP stack? We've an RTSP
  server that we'd like to stream video to an android rtsp client if
  thats possible
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Re: Avoiding GPL

2010-06-27 Thread Andy Savage
From a technical standpoint presuming the GPL licence allows it (I'm not a
lawyer and I don't pretend to be one) you might want to consider something
like OpenIntents.

http://code.google.com/p/openintents/

This could allow you to link two unrelated packages together in theory (I
think).

On Sun, Jun 27, 2010 at 2:29 AM, Fabrizio Giudici 
fabrizio.giud...@tidalwave.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 6/25/10 22:53 , Anton Persson wrote:
  Well, to connect to a MySQL database you need a connector, and the
  connector library shipped with MySQL is under GPL. Which is what I
  meant. And, hence, corporations buy licenses from MySQL to avoid
  having to release their applications under the GPL. (If you still
  don't believe me, try explaining the reason why they HAVE a dual
  license model... If they only wanted to sell support and
  indemnification, a separate paid-for license would NOT be needed...
  See Red Hat for an example of how that works..)

 But I was referring to MySQL, not the connector. Also, sure there will
 be also corporates who pay for not using the GPL, but my point was
 that one is not forced to pay to use it. Now I think we are made clear
 our points, and MySQL was only an example.

  And; the INTENT of MySQL is that if you use the GPL version of the
  MySQL database, your application should also be GPL. But, of
  course, there are loopholes. However, using these loopholes in a
  way that is obviously a circumvention is against this INTENT.
 
  If you want people to respect YOUR intellectual property, you
  should respect others as well, and not exploit their software in an
  unintended manner.

 Licenses arbitrate how much land each entity has the right to own, in
 other words they establish borders in a objective way that everybody
 agrees on, not a subjective or moralistic one. So while I personally
 might have some interest in what other people are willing to do
 (subjective and moral position), not everybody is compelled to do
 that, but only respect the law. Everybody uses licenses to try to
 place that border in the most convenient possible way. An author of
 FLOSS software tries to place the border in the best possible position
 in his perspective, and a user of a FLOSS software has the same right,
 in his perspective.

 PS MySQL intent was to make money, and GPL is one of the best way to
 do that, because of the double licensing thing. In fact, they made a
 lot of money. Note that the owner of MySQL has changed many times and
 the intents of the original founders, of Sun Microsystems and Oracle
 might have been changed. Frankly, if I used MySQL I wouldn't be
 interested in what their intents are, only in what I can do.


 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici - www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwmRwIACgkQeDweFqgUGxdGBACbBX13NejP63WSlLMgtoCuZ2xb
 cQcAn15F0686sMX6qDugfZy8ScS4ajE/
 =ME+q
 -END PGP SIGNATURE-

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


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

Re: [android-developers] Re: Avoiding GPL

2010-06-24 Thread Andy Savage
Ignoring the legal ramifications here. Let me say my opinion.

I think that we need to be quite wary of the licences of each app and
whether they are conforming to it. Obviously this person intends to try and
not conform to it (if they can figure out how).

But let me give you an example of why this in general is a bad idea.

I have gone through some trouble to try and find a way to play DivX/xVid on
Android for my app and I think that much of my time and trouble wouldn't
have been wasted if people were more strongly conforming to the software
that licences are released under.

Take RockPlayerBase for example, this app (which is in beta) plays DivX
and xVid. It's not magic, it simply does this by ffmpeg (I can tell by
checking the library names in the pcakge). I have no website (in English
atleast) to request this, but when it gets released I will be requesting
they they conform to the LGPL source and release instructions on how they
compiled it for android and the changes (if any) they made.

Whats really frustrating is that they didn't release these instructions at
the same time as their app. Now this is just one example but I am sure other
apps will be using opensource technologies that are designed to share
knowledge. Sometimes alot of trouble can be needlessly wasted when others
refuse to conform or try to avoid the good spirit licences.

Consider this when trying to sidestep GPL. It's there for a specific reason,
I can understand you wanting to keep proprietary code secret, but generally
my experience is most of the code could be happily released. Unless your a
rocket scientist it's likely something that could be of use to others, who
could in turn make changes which you can incorporate and so on.

*However all is not lost*, if you are looking to find a way to incorporate
some open code. Ask if the authors might release it under dual licence as
LGPL for you. A great example of how this can work is
Bambuserhttp://www.bambuser.com/opensource.
A proprietary program but they use ffmpeg and conform to LGPL licence. It
doesn't hurt their business or product and they have made life alot easier
for those who are simply trying to get stuff to work.

On Tue, Jun 22, 2010 at 11:44 PM, a genius droidhac...@gmail.com wrote:

 That scam won't be legal unless the license in question is the LGPL
 (with an L at the front). You say that what you are interested in
 using is a library. Typically, libraries use the LGPL since it just
 makes sense that libraries allow closed source components to link to
 them (L is for LIBRARY), however, there are still some nasty issues
 that are present such as the ability of the USER to REPLACE the
 LGPL LIBRARY with a newer version of the same library to your
 benefit, it doesn't have to be TRIVIAL to do so, so NDK within the
 same APK should suffice -- build the LGPL library into your program
 using the NDK, you will end up with a shared object file that is
 licensed as LGPL, which happens to be distributed along with your
 proprietary program in the archive container. Be sure to include a
 COPY OF THE LGPL LICENSE ALONG WITH THE LIBRARY and to be sure to
 identify what library it applies to. ALSO be sure to make notice
 WITHIN THE PROGRAM ITSELF that (A) you use LGPL components, (B) what
 the LGPL components are.

 If the library is licensed regular GPL, then NO, you MAY NOT use it.
 And no, a wrapper program DOES NOT avoid this issue since the entire
 purpose of the wrapper is clearly to avoid the GPL.

 On Jun 22, 3:10 am, Naveen naveen...@gmail.com wrote:
  Hi!
  I need to use some open source code with GPL3.
 
  As usual I don't want to open source code for full application.
 
  Now what I understand is if I make two separate process one with my
  main application code and other as a service or something with Open
  source library  then in that case I have to open source code only for
  the other one.
 
  Now the question is what is the best way to do so in Android.
 
  Suppose
  My Main App  is  A
  Open Source code is  B
 
  So A will give some data to B. B will process this and sends data back
  to A. B may not need to have any UI.
 
  1. Is it possible to install 2 seperate applications / processes from
  one APK?
  2. What is the best way ?Should B be a service? How will be the
  communication between A and B ?
  3. Is it possible to run/call B from A?
 
  Pls. advice
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 

Re: [android-developers] Re: Avoiding GPL

2010-06-24 Thread Andy Savage
I forgot to say in my previous post.

In response to the person talking about MySQL. I believe this is quite
different as MySQL is a completely self contained database system that other
applications communicate with. As in, it's a completely GPL package, rather
than a part of another application.

If you actually incorporated the MySQL code within your application I
believe it would break GPL (presuming your application was closed source). I
am not sure how this applies to the MySQL libraries that are setup to use
mysql say from PHP.

So in the same spirit if the original author decide to create two
self-contained applications that talked to each other and one could view
the source code of one (and have a working application) then I think it
would be fine. I think having a seperate process as such or even a linked
(non-system) library would be breaking GPL. The author might want to
consider this approach :-) although it would be interesting to see
technically how well it works due to speed etc etc.

I do think that there needs to be clearer information about how closed
source projects can use and contribute to open-source under the various
licences.

On Fri, Jun 25, 2010 at 10:46 AM, Andy Savage a...@bluewire.net.nz wrote:

 Ignoring the legal ramifications here. Let me say my opinion.

 I think that we need to be quite wary of the licences of each app and
 whether they are conforming to it. Obviously this person intends to try and
 not conform to it (if they can figure out how).

 But let me give you an example of why this in general is a bad idea.

 I have gone through some trouble to try and find a way to play DivX/xVid on
 Android for my app and I think that much of my time and trouble wouldn't
 have been wasted if people were more strongly conforming to the software
 that licences are released under.

 Take RockPlayerBase for example, this app (which is in beta) plays DivX
 and xVid. It's not magic, it simply does this by ffmpeg (I can tell by
 checking the library names in the pcakge). I have no website (in English
 atleast) to request this, but when it gets released I will be requesting
 they they conform to the LGPL source and release instructions on how they
 compiled it for android and the changes (if any) they made.

 Whats really frustrating is that they didn't release these instructions at
 the same time as their app. Now this is just one example but I am sure other
 apps will be using opensource technologies that are designed to share
 knowledge. Sometimes alot of trouble can be needlessly wasted when others
 refuse to conform or try to avoid the good spirit licences.

 Consider this when trying to sidestep GPL. It's there for a specific
 reason, I can understand you wanting to keep proprietary code secret, but
 generally my experience is most of the code could be happily released.
 Unless your a rocket scientist it's likely something that could be of use to
 others, who could in turn make changes which you can incorporate and so on.

 *However all is not lost*, if you are looking to find a way to incorporate
 some open code. Ask if the authors might release it under dual licence as
 LGPL for you. A great example of how this can work is 
 Bambuserhttp://www.bambuser.com/opensource.
 A proprietary program but they use ffmpeg and conform to LGPL licence. It
 doesn't hurt their business or product and they have made life alot easier
 for those who are simply trying to get stuff to work.

 On Tue, Jun 22, 2010 at 11:44 PM, a genius droidhac...@gmail.com wrote:

 That scam won't be legal unless the license in question is the LGPL
 (with an L at the front). You say that what you are interested in
 using is a library. Typically, libraries use the LGPL since it just
 makes sense that libraries allow closed source components to link to
 them (L is for LIBRARY), however, there are still some nasty issues
 that are present such as the ability of the USER to REPLACE the
 LGPL LIBRARY with a newer version of the same library to your
 benefit, it doesn't have to be TRIVIAL to do so, so NDK within the
 same APK should suffice -- build the LGPL library into your program
 using the NDK, you will end up with a shared object file that is
 licensed as LGPL, which happens to be distributed along with your
 proprietary program in the archive container. Be sure to include a
 COPY OF THE LGPL LICENSE ALONG WITH THE LIBRARY and to be sure to
 identify what library it applies to. ALSO be sure to make notice
 WITHIN THE PROGRAM ITSELF that (A) you use LGPL components, (B) what
 the LGPL components are.

 If the library is licensed regular GPL, then NO, you MAY NOT use it.
 And no, a wrapper program DOES NOT avoid this issue since the entire
 purpose of the wrapper is clearly to avoid the GPL.

 On Jun 22, 3:10 am, Naveen naveen...@gmail.com wrote:
  Hi!
  I need to use some open source code with GPL3.
 
  As usual I don't want to open source code for full application.
 
  Now what I understand is if I make two

Re: [android-developers] Transmitting signals at 433Mhz

2010-06-23 Thread Andy Savage
You would probably need to have a custom radio receiver and appropriate
driver, compile your own custom Android version and have an unlocked device
to load it in to would be my guess.

Perhaps a USB device to do such a job might be appropriate? You could use
the Google Development Phone 2 to do this if you loaded on 2.2 and used the
USB on the Go stuff to actually allow the phone to act as a host.

If you didn't have a USB device, you could use a Serial device and make your
phone talk to it. That would be my recommended path.

I'm sure it's possible, but surely not easy. Both of these options require a
custom device that can transmit/receieve at 433mhz

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Wed, Jun 23, 2010 at 9:06 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Jun 22, 2010 at 8:49 PM, aggie_hellcat2009
 lancaste...@gmail.com wrote:
   I am interested in transmitting to a device that only sends and
  receives on 433Mhz. Is it possible to make my program send and receive
  signals at this  frequency?

 No, sorry.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training...At Your Office: http://commonsware.com/training

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


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

Re: [android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread Andy Savage
From an Adsense point of view I can understand why this might be a bad idea.

I guess the way the adsense system works is the people who click are the
ones who are genuinally interested. Therefore if you promote people to just
click for no reason other than to support you then the advertiser would be
charged for a click that is very unlikely to lead to a sale.

Distorting the click-to-conversation type ratio.

Specifically for your case hzakimoto, if you want to encourage people to
help support you. I guess the best approach would be to place an obvious
Donate button and ask people to support you that way.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, Jun 22, 2010 at 1:40 PM, hzakimoto hzakim...@gmail.com wrote:

 Hi Mike,

 I use a number of providers. I'll check their policy on this.

 But since AdSense prohibit that, then I guess it's a bad approach
 after all.

 Thank you for your fast reply. =)

 On Jun 22, 12:12 pm, EboMike ebom...@gmail.com wrote:
  Who's the provider for your apps?
 
  If it's AdSense, then the guidelines clearly prohibit you from doing
  that:
 
  
  Misleading to clicks
 
  Publishers are not allowed to use language to lead users to click
  Google ads, such as:
 
  * Feel free to click an ad
  * Contribute to the cause, visit an ad
  * Help keep this site running, check out our sponsors
  * We need a new server. Support us!
  
 
  -Mike
 
  On Jun 21, 10:04 pm, hzakimoto hzakim...@gmail.com wrote:
 
 
 
   Hi.
 
   Have anyone try putting a message like
 
   Please visit our sponsors
 
   or something cuter like
 
   Please support our free games by visiting our sponsors ^_^
 
   above you ads banner?
 
   I want to hear everyone's opinion about this. Do you think it'll help
   increase CTR or not, and why?
 
   Thank you in advance !- 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Re: Personalized Screen lock

2010-06-22 Thread Andy Savage
Okay, now that we have established that the original message was a bit
vague.

I was wondering if I might ask my own.

How would one go about replacing the built in screen lock program with my
own?

Is there somewhere which specifies which package to run when the screen is
locked??

Kind regards,
Andy Savage

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Wed, Jun 23, 2010 at 7:34 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 The OP probably meant for the reader to figure out the answer to your
 question by reading message title and message body as one: so it is a
 tool for personalized screen locking he is asking for, which is still
 a rather vague request: does he mean 'password-protected screen lock,
 I wonder?

 Now may be the right time for me to say it: I hate that style of post
 writing, and that you asked the question shows that that style does
 NOT encourage clear communication. And now that I am already on that
 soapbox, I will go one step further and say that striving for clear
 writing encourages clear thinking, which in turn often solves the
 problem for you. So everyone, please, avoid the above-mentioned,
 deprecated style!

 On Jun 22, 10:03 am, TreKing treking...@gmail.com wrote:
  On Mon, Jun 14, 2010 at 10:30 AM, ranjan ar ranjan@gmail.com
 wrote:
   can you let me know if there is a tool or something.
 
  Tool or something for what?
 
 
 -
  TreKing - Chicago transit tracking app for Android-powered deviceshttp://
 sites.google.com/site/rezmobileapps/treking

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


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

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-06-21 Thread Andy Savage
*Hi Everyone,*

This problem is *really* bugging me. It's a lot bigger than a few of us not
being able to receive RTP.

It's the fact that Android currently *does not support incoming real time
streaming*! This is a *huge* problem for a new platform that wants to really
become the device people buy. Real time video streaming is a huge
industry... what a big oversight??!! I've posted a bug
reporthttp://code.google.com/p/android/issues/detail?id=8959q=rtpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars
but
I don't expect it to get fixed anytime soon as nobody has posted any
comments or even starred it.

However, there is an upside many people say that the beauty about
open-source is that you can fix it yourself. Sadly I'm not a C-coder and
would spend months just learning it. So, is anybody able to help me with the
required patches to OpenCore? I am sure for somebody with some experience
then it shouldn't be a big deal (I see that RTP is supported using RTSP so
to pass in a native RTP stream or to support SDP's from SIP shouldn't be too
hard I guess).

In the meantime I have been working to overcome this problem, I've attempted
a solution running FFMpeg  FFServer on the phone itself to stream out RTSP
(no transcoding just streaming).

My plan was to use this to stream to the video to the local MediaPlayer...
Unfortunately the RTSP playing code is very picky on Android. It wouldn't
play the stream.  However I have successfully gotten VLC to play the stream
from the phone (although this doesn't help me so much), so I know it works.
I'm a bit stuck on what to try next!

Any ideas would be appreciated.

Kind regards,
Andy Savage

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Thu, Jun 17, 2010 at 3:21 PM, Jez jeremy.a.co...@baesystems.com wrote:

 Thanks,

 I'll give this a try on the 2.1 (Desire) and see if it'll work - as
 I'm slightly suspiscious that
 it may have problems with TRUE live video (aka from an encoder) but
 will post here with what I find.


 Hoping always


 On Jun 9, 9:00 am, Andy Savage a...@bluewire.net.nz wrote:
  On the subject of this thread I have submitted a bug report... For those
  interested you may want to star it or add any useful comments:
 http://code.google.com/p/android/issues/detail?id=8959q=rtpcolspec=...
 
  I hope we can get this resolved. I'm not really a skilled enough coder to
  fix this issue myself (in the C sources). But anybody who could help
 would
  be much appreciated.
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
  On Wed, Jun 9, 2010 at 3:58 PM, Andy Savage a...@bluewire.net.nz
 wrote:
   You simply pass the RTSP url to MediaPlayer (although I think this
   functionality was somewhat broken before 2.1 so I can't be certain that
 it
   will work in 1.6-2.0).
 
   You can play it in the same way that you would play a file (but instead
 of
   passing the file descriptor pass the URL as a string).
 
   --
   The greatest challenge to any thinker is stating the problem in a way
 that
   will allow a solution
   - Bertrand Russell
 
   Andy Savage
   Cell Phone: +852 936 34341
   Skype ID: andy_savage
   Linked In:http://www.linkedin.com/in/andysavage
 
   On Mon, Jun 7, 2010 at 5:35 PM, Jez jeremy.a.co...@baesystems.com
 wrote:
 
   I'm confused by RTSP streaming - I've been trying to stream a LIVE
   video to Android (2.1)
   and not sure from the discussion here and previous posts that I've
   seen if Android can actually receive and play
   a LIVE video stream? I don't need any control of the video at all so
   just need to stream it.
 
   Jez
 
   On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote:
In my example I am using SIP, so the SDP information is actually
   exchanged
this way.
 
The RTSP is simply for receiving as a hack to Android's built in
   (arbitrary)
limitations. So the idea is to take the SDP for receiving and wrap
 it
   over
RTSP.
 
--
The greatest challenge to any thinker is stating the problem in a
 way
   that
will allow a solution
- Bertrand Russell
 
Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In:http://www.linkedin.com/in/andysavage
 
On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com
 
   wrote:
 There is a technical limitation to what SDP can legally convey. A
 single SDP document can contain only one end of media
 conversation.
 Therefore it is technically impossible to setup streaming with
 just
 one SDP document there have to be an exchange. When using RTSP or
 SIP
 terminals exchange their SDP information and thus get

[android-developers] How do the DivX players render the video?

2010-06-21 Thread Andy Savage
Hi there,

Small question. Does anybody know how the current closed-source DivX players
available on the market work in Android? Are there any open-source versions?

I presume that obviously they bypass the built in Android MediaPlayer and
render the frame's directly (after porting a native DivX codec presumbily).

Do you think they would render each bitmap on an OpenGL surface after
decoding the frame?

Kind regards,
Andy Savage

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage

-- 
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] Saving an encoded video stream with headers

2010-06-15 Thread Andy Savage
Hi All,

Just wondering if there's a way to save a pre-encoded video stream to a file
with headers.

For example I have a video stream encoded in h264. I simply want to save
this to a file and have mediaplayer playback this file. I have the RTP
framework to do this and can save it to a file, but as the file has no
headers, mediaplayer cannot play it back.

Is there a way to use it as a datasource and have mediaplayer record it?

Cheers,
Andy

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage

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

Re: [android-developers] Re: RTP stream video decoding

2010-06-10 Thread Andy Savage
I don't have the answer for you sorry, but I do suggest you check out the
Sipdroid source code.

The source code is mostly a mess and the comments are non-existent but the
audio works well (with very little delay). I would suggest get an idea of
how they did it by looking at their code and comparing their method to
yours.

Link:
http://sipdroid.org/

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Wed, Jun 9, 2010 at 5:52 PM, silentpartner 
silentpartner...@googlemail.com wrote:

 Hi everyone,

 Just a small question.

 Please tell me what is the a typical payload length in bytes of RTP
 packet containing voice data?

 I am sending RTP packets with raw PCM data using AudioRecord class,
 but the delay is very high at the receiver end !!!

 Best Regards


 On May 24, 8:44 am, Andy Savage a...@bluewire.net.nz wrote:
  Hi everyone,
 
  I need a little bit of help from some experts out there.
 
  Currently I am developing an application that will stream video using RTP
  and SIP. I have this mostly working with audio working fine both ways
 using
  Java (and native) codecs. I can stream out video also from the camera to
 a
  windows client.
 
  The problem comes from when I want to receive and decode the video on the
  android platform. I understand at this stage that Mediaplayer only
 supports
  RTSP streams. Ironically it does what I need (by getting the SDP
 information
  from using RTSP SETUP call and using that RTP/UDP information to receive
 the
  stream). But I can't seem to access this functionality, all it takes as
  input is a RTSP url. If you are unfamiliar the difference between RTSP
 using
  RTP and SIP using RTP. You can read about the differences
  herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
  .
 
  What I need to do is take an RTP stream encoded with h.263-1998 and
 somehow
  pass it to the mediaplayer (or even a lower level api if somebody can
  provide an example).
 
  The only way I can think around this is to write another service
  to receive the RTP stream and provide an RTSP interface... but this is a
  really ugly solution.
 
  I would really appreciate if anybody could offer any help with this.
 
  Kind regards,
  Andy Savage
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: Oracle Android App Store

2010-06-10 Thread Andy Savage
I think that it's highly possible for a competing App market to make a
splash but it would have to come pre-installed on the phones. It could be
possible though for a company who develops one to pre-install it if they
make a deal with HTC for certain models of phones :-)

Perhaps just pick 2 of the latest phones and make a deal with HTC to include
it alongside the google one. Or perhaps HTC could cobrand (HTC store run by
xyz company).


-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Fri, Jun 11, 2010 at 12:21 PM, gosh steve...@unimelb.edu.au wrote:

 HTC don't have the global reach.
 Of the Taiwanese companies ACER is probably the most international in
 reach and intent - although they are pretty much a Microsoft shop.
 They have this annual pattern thats been going for years, where they
 demonstrate some prototype typically running some variant of Linux
 (including Android) at Computex and the like, while they are
 negotiating a better annual deal for Windows XP/and now Windows7 from
 Microsoft, as a bargaining chip. ASUS has become their student in this
 - witness the EeePC which mainly comes installed with a Windows
 variant these days, after making its splash in the market with Linux.
 I don't think the answer to android app market invigoration likes in
 Taiwan.

 Steve

 On Jun 11, 11:48 am, Chi Kit Leung michaelchi...@gmail.com wrote:
  Maybe HTC can develop their own market. But I am doubtful about they are
  working closely with Google.
 
 
 
 
 
  On Fri, Jun 11, 2010 at 9:16 AM, Yahel kaye...@gmail.com wrote:
   Slight problem,
 
   The pre-installed market in every phone is Google's.
 
   How do you overcome that ?
 
   Internet Explorer is still the most used browser in the world(70 % on
   non-tech-savvy sites) 8 years after the launch of firefox which is way
   better. Just because IE is pre-installed in every windows machine.
 
   Same thing here. Other markets won't be able to compete because of
   that.
 
   Yahel
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Regards,
  Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info

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


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

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-06-09 Thread Andy Savage
You simply pass the RTSP url to MediaPlayer (although I think this
functionality was somewhat broken before 2.1 so I can't be certain that it
will work in 1.6-2.0).

You can play it in the same way that you would play a file (but instead of
passing the file descriptor pass the URL as a string).

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Mon, Jun 7, 2010 at 5:35 PM, Jez jeremy.a.co...@baesystems.com wrote:

 I'm confused by RTSP streaming - I've been trying to stream a LIVE
 video to Android (2.1)
 and not sure from the discussion here and previous posts that I've
 seen if Android can actually receive and play
 a LIVE video stream? I don't need any control of the video at all so
 just need to stream it.

 Jez


 On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote:
  In my example I am using SIP, so the SDP information is actually
 exchanged
  this way.
 
  The RTSP is simply for receiving as a hack to Android's built in
 (arbitrary)
  limitations. So the idea is to take the SDP for receiving and wrap it
 over
  RTSP.
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
  On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com
 wrote:
   There is a technical limitation to what SDP can legally convey. A
   single SDP document can contain only one end of media conversation.
   Therefore it is technically impossible to setup streaming with just
   one SDP document there have to be an exchange. When using RTSP or SIP
   terminals exchange their SDP information and thus get to know where to
   stream to and from where to accept the stream.
 
   MediaPlayer could accept just one SDP (i.e. streamer's), but then how
   would streamer would know where to transmit? Both of them have to
   exchange at least supported CODEC information and connection
   information (port and IP).
 
   Maybe I am just not aware of SDP format with two node's information.
   Can someone share an example?
 
   On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote:
I agree with Andy's comment:
 
On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote:
 
 There seems to be a limitation that means that it will only accept
 SDP
 information with RTP streams inside if it gets them from the RTSP
   stream
 (e.g. it gets this information from SETUP in the RTSP protocal).
 
It is possible to play a stream by requesting it via a RTSP request
(both audio and video are sent over RTP and the MediaPlayer is able
 to
decode and play them).
But it is not possible to play live RTP stream by requesting the SDP
file directly (via an HTTP request). The RTP streams (audio and
 video)
are sent to the device from the server. The MediaPlayer should just
get the SDP file, listen on the proper ports and decode the streams.
But it generates an error and do not play the streams.
 
Jean
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-06-09 Thread Andy Savage
On the subject of this thread I have submitted a bug report... For those
interested you may want to star it or add any useful comments:
http://code.google.com/p/android/issues/detail?id=8959q=rtpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

I hope we can get this resolved. I'm not really a skilled enough coder to
fix this issue myself (in the C sources). But anybody who could help would
be much appreciated.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Wed, Jun 9, 2010 at 3:58 PM, Andy Savage a...@bluewire.net.nz wrote:

 You simply pass the RTSP url to MediaPlayer (although I think this
 functionality was somewhat broken before 2.1 so I can't be certain that it
 will work in 1.6-2.0).

 You can play it in the same way that you would play a file (but instead of
 passing the file descriptor pass the URL as a string).

 --
 The greatest challenge to any thinker is stating the problem in a way that
 will allow a solution
 - Bertrand Russell

 Andy Savage
 Cell Phone: +852 936 34341
 Skype ID: andy_savage
 Linked In: http://www.linkedin.com/in/andysavage


 On Mon, Jun 7, 2010 at 5:35 PM, Jez jeremy.a.co...@baesystems.com wrote:

 I'm confused by RTSP streaming - I've been trying to stream a LIVE
 video to Android (2.1)
 and not sure from the discussion here and previous posts that I've
 seen if Android can actually receive and play
 a LIVE video stream? I don't need any control of the video at all so
 just need to stream it.

 Jez


 On Jun 1, 2:30 am, Andy Savage a...@bluewire.net.nz wrote:
  In my example I am using SIP, so the SDP information is actually
 exchanged
  this way.
 
  The RTSP is simply for receiving as a hack to Android's built in
 (arbitrary)
  limitations. So the idea is to take the SDP for receiving and wrap it
 over
  RTSP.
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
  On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com
 wrote:
   There is a technical limitation to what SDP can legally convey. A
   single SDP document can contain only one end of media conversation.
   Therefore it is technically impossible to setup streaming with just
   one SDP document there have to be an exchange. When using RTSP or SIP
   terminals exchange their SDP information and thus get to know where to
   stream to and from where to accept the stream.
 
   MediaPlayer could accept just one SDP (i.e. streamer's), but then how
   would streamer would know where to transmit? Both of them have to
   exchange at least supported CODEC information and connection
   information (port and IP).
 
   Maybe I am just not aware of SDP format with two node's information.
   Can someone share an example?
 
   On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote:
I agree with Andy's comment:
 
On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote:
 
 There seems to be a limitation that means that it will only accept
 SDP
 information with RTP streams inside if it gets them from the RTSP
   stream
 (e.g. it gets this information from SETUP in the RTSP protocal).
 
It is possible to play a stream by requesting it via a RTSP request
(both audio and video are sent over RTP and the MediaPlayer is able
 to
decode and play them).
But it is not possible to play live RTP stream by requesting the SDP
file directly (via an HTTP request). The RTP streams (audio and
 video)
are sent to the device from the server. The MediaPlayer should
 just
get the SDP file, listen on the proper ports and decode the streams.
But it generates an error and do not play the streams.
 
Jean
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-05-31 Thread Andy Savage
In my example I am using SIP, so the SDP information is actually exchanged
this way.

The RTSP is simply for receiving as a hack to Android's built in (arbitrary)
limitations. So the idea is to take the SDP for receiving and wrap it over
RTSP.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Mon, May 31, 2010 at 9:26 AM, Ignas ignas.limanaus...@gmail.com wrote:

 There is a technical limitation to what SDP can legally convey. A
 single SDP document can contain only one end of media conversation.
 Therefore it is technically impossible to setup streaming with just
 one SDP document there have to be an exchange. When using RTSP or SIP
 terminals exchange their SDP information and thus get to know where to
 stream to and from where to accept the stream.

 MediaPlayer could accept just one SDP (i.e. streamer's), but then how
 would streamer would know where to transmit? Both of them have to
 exchange at least supported CODEC information and connection
 information (port and IP).

 Maybe I am just not aware of SDP format with two node's information.
 Can someone share an example?

 On May 27, 3:22 pm, debelyoo jean.ross...@gmail.com wrote:
  I agree with Andy's comment:
 
  On May 25, 8:36 am, Andy Savage a...@bluewire.net.nz wrote:
 
   There seems to be a limitation that means that it will only accept SDP
   information with RTP streams inside if it gets them from the RTSP
 stream
   (e.g. it gets this information from SETUP in the RTSP protocal).
 
  It is possible to play a stream by requesting it via a RTSP request
  (both audio and video are sent over RTP and the MediaPlayer is able to
  decode and play them).
  But it is not possible to play live RTP stream by requesting the SDP
  file directly (via an HTTP request). The RTP streams (audio and video)
  are sent to the device from the server. The MediaPlayer should just
  get the SDP file, listen on the proper ports and decode the streams.
  But it generates an error and do not play the streams.
 
  Jean

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


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

Re: [android-developers] Re: Android Apps purchasing from anywhere in the world

2010-05-26 Thread Andy Savage
I believe that the 30% went to the carriers only?

If what you say is true and they take 30% where there is no carrier deal in
place then they have NO excuse (at least from our perspective) not to
implement *good* paid markets everywhere. For every minute that they don't
they are loosing significant revenue.

In my mind the Google Market is key. This is what will really be the iPhone
killer. Get this right and people will consider to move which means big
dollars for Google (directly or indrectly). Right now it's just idle threats
for people who criticize the iPhone, Apple Store and it's many flaws.
There's no better alternative.

I guess this is a slight rave, but to talk a little further on this when I
read a previous thread in regards to Google ignoring petitions. Seems almost
like shooting themselves in the foot. If enough people want something, why
wouldn't they listen to them and implement? Seems like Google has grown so
big and impersonal that it's loosing touch with it's customers (developer
customers that is).

Pity... because eventually they will figure this out. But in the meantime
they will miss significant revenue and fast-mover advantage.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


2010/5/26 Tomáš Hubálek tom.huba...@gmail.com



 On 26 kvě, 04:37, Andy Savage a...@bluewire.net.nz wrote:

  I for one certainly wouldn't mind 10% of my revenue going their way if
 the
  apps store was fantastic and it was available everywhere.

 FYI: Google takes 30% of your revenue in chosen countries ;-)

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


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

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-05-25 Thread Andy Savage
In the interests of keeping things together here is the
linkhttp://groups.google.com/group/android-developers/browse_thread/thread/f963e8f7ac35b75bfor
my thread I started in the developers thread just a few days ago
related
to this.

I will file a bug request sometime soon unless anybody else can shed any
light (although I don't know if there will be much attention paid to it). It
is more a feature enhancement than a bug I think, but
it's definitely causing me difficulty.

The functionality to decode RTP streams is already built into OpenCore but
unfortunately you can't pass an SDP file to the MediaPlayer (OpenCore
Wrapper) unless it contains an RTSP stream link inside it. This is a bit
dumb really... what's the point in passing an SDP file in that case? but ah.

There seems to be a limitation that means that it will only accept SDP
information with RTP streams inside if it gets them from the RTSP stream
(e.g. it gets this information from SETUP in the RTSP protocal).

Thus far it seems the only solution is to dump the RTP packets to a file
(periodically close the file and write a new one) then periodically open
these files in mediaplayer. A pretty ugly hack really!

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 2:19 PM, debelyoo jean.ross...@gmail.com wrote:

 Hi Andy,

 Good to see that the problem is not only specific to my environment :)
 And I hope we could find a solution, or at least one Android engineer
 will take a look at this post.

 I still stuck on it... I tried on Android 1.6 (G1) and Android 2.1
 (HTC Desire). Both do not work.

 I'm currently looking into the MediaPlayer sources, to see if I can
 get more details about the error and maybe fix the bug myself.

 Cheers
 Jean

 On May 24, 9:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Hi there,
 
  Any answer to this question? It's bugging me too. Jean, can you tell
  us what version you are testing this on? Have you tried 2.1?
 
  Cheers,
  Andy
 
  On May 6, 3:32 pm, debelyoo jean.ross...@gmail.com wrote:
 
 
 
   Hi dillirao,
 
   I don't receive onPrepared callback.
 
   After requesting the live stream through the SDP file (http://
   server_ip/live.sdp) I receive the following callbacks:
   - onBufferingUpdate -- Buffering 100%
   - onErrorCallback -- Command PLAYER_INIT completed with an error or
   info PVMFErrCorrupt
 
   My file is encoded in MPEG-4 part 2, audio is AAC, file format
   is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
   should not be a problem since I'm on Wi-Fi.
   I can stream the same file with a RTSP request from the Darwin server.
   It works smoothly.
 
   Any idea why the device returns this error ? evn though it can play
   the same stream via RTSP ?
 
   Jean
 
   On May 5, 3:06 pm, dillirao malipeddi dillir...@arijasoft.com wrote:
 
did u received OnPrepared callback.
Plz write a onErrorcallback and see, if you get error callback.
 
whats video profile and audio profile you are using.
 
use : h263/h264 15fps; 176x144 or 320x240  and use low bit rate , on
internet ; if lan, bw is not issu
for audio: use aac/ again try low bit rate encoding;... amr/ is ok...
 
Thanks
 
On Thu, Apr 29, 2010 at 6:32 PM, debelyoo jean.ross...@gmail.com
 wrote:
 I try to play a live stream on my android phone using the
 MediaPlayer
 object. But I definitely see a black screen. Does anybody have any
 experience with streaming on Android ?
 
 Here is what I'm doing:
 I broadcast a stream with Darwin streaming server (via
 PlaylistBroadcast) to my Android phone. The stream is sent over RTP
 to
 the IP of my device (unicast). A .sdp file describes my stream.
 
 In my app, I try to play the stream with the following code where
 url
 is rtsp://server_ip/live.sdp
 
 private void playVideo(String url) {
try {
//media.setEnabled(false);
 
if (player==null) {
//System.out.println(create MediaPlayer);
player=new MediaPlayer();
player.setScreenOnWhilePlaying(true);
} else {
player.stop();
player.reset();
}
 
player.setDataSource(url);
//holder.setFixedSize(320, 240);
player.setDisplay(holder);
 

  player.setAudioStreamType(AudioManager.STREAM_MUSIC);
player.setOnPreparedListener(this);
player.prepareAsync();
player.setOnBufferingUpdateListener(this);
player.setOnCompletionListener(this);
} catch (Throwable t) {
System.out.println(Exception

Re: [android-developers] Re: RTP stream video decoding

2010-05-25 Thread Andy Savage
Hi there,

I am working through this in a private discussion with another very helpful
user. Essentially it seems that at this stage the only way to get an RTP
stream to work is a couple of hacks:

A) Wrap it as an RTSP stream.
Basically need a client/server architecture, perhaps another little service
running in the background to buffer the RTP data (perhaps write to file?)
and then respond to appropriate RTSP commands.

I havn't tested this but theoretically it should work.

B) Write the data to two files. For example each file contains 1 second of
data. Write file, close file (thus the file gets timing information and lock
is released) open the file with mediaplayer and play. Meanwhile open another
file to write information to that. When mediaplayer finished with file 1,
get it to play file 2. Meanwhile write information to file 1 again. And keep
looping.

This is horribly resource intensive, but should produce an okay video (so I
hear). Although syncing information for this difficult (impossible?).

That's for streaming in. If your looking for information about streaming out
you should see the Sipdroid code VideoCamera.java where they implement a
'write to file', 'open file and stream' method. It produces a jerky but
reasonable video quality.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 5:29 PM, Jez jeremy.a.co...@baesystems.com wrote:

 Hi Andy,

 I have the same problem too - attempting to stream an axis encoded
 live video stream as h264 format and using the media player to show
 the video live on an Android phone.

 Now i'm not sure if this is possible?


 On May 25, 2:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Thanks for your suggestion.
 
  I had considered this. The problem with this approach is that it seems
 that
  the MediaPlayer requires anything passed in as a FileDescriptor to be
  seekable (this is the same problem that prevents me from substituting
  FileDescriptor for LocalSocket). In this case this means that the file
 would
  have to finish recording before it can be played so that the timing
 headers
  are added.
 
  The idea is to have (semi) real-time video so you can see what's going
 on.
  Think video calling... except that it doesn't quite have to be as
  responsible for now.
 
  Anybody else have any ideas?
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
 
 
  On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com
 wrote:
   How about writing the RTP stream to a file and playing it from there?
 
   On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
Hi everyone,
 
I need a little bit of help from some experts out there.
 
Currently I am developing an application that will stream video using
 RTP
and SIP. I have this mostly working with audio working fine both ways
   using
Java (and native) codecs. I can stream out video also from the camera
 to
   a
windows client.
 
The problem comes from when I want to receive and decode the video on
 the
android platform. I understand at this stage that Mediaplayer only
   supports
RTSP streams. Ironically it does what I need (by getting the SDP
   information
from using RTSP SETUP call and using that RTP/UDP information to
 receive
   the
stream). But I can't seem to access this functionality, all it takes
 as
input is a RTSP url. If you are unfamiliar the difference between
 RTSP
   using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
.
 
What I need to do is take an RTP stream encoded with h.263-1998 and
   somehow
pass it to the mediaplayer (or even a lower level api if somebody can
provide an example).
 
The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this
 is a
really ugly solution.
 
I would really appreciate if anybody could offer any help with this.
 
Kind regards,
Andy Savage
 
--
The greatest challenge to any thinker is stating the problem in a
 way
   that
will allow a solution
- Bertrand Russell
 
Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In:http://www.linkedin.com/in/andysavage
 
--
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.comandroid-developers

Re: [android-developers] Re: RTP stream video decoding

2010-05-25 Thread Andy Savage
Jez,

You might want to consider a pure RTSP implementation for what you want.
That should work fine for one way streaming. Android (atleast in 2.1)
handles this fine.

I understand some functionality relating to this was a little broken in
previous versions.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 6:12 PM, Andy Savage a...@bluewire.net.nz wrote:

 Hi there,

 I am working through this in a private discussion with another very helpful
 user. Essentially it seems that at this stage the only way to get an RTP
 stream to work is a couple of hacks:

 A) Wrap it as an RTSP stream.
 Basically need a client/server architecture, perhaps another little service
 running in the background to buffer the RTP data (perhaps write to file?)
 and then respond to appropriate RTSP commands.

 I havn't tested this but theoretically it should work.

 B) Write the data to two files. For example each file contains 1 second of
 data. Write file, close file (thus the file gets timing information and lock
 is released) open the file with mediaplayer and play. Meanwhile open another
 file to write information to that. When mediaplayer finished with file 1,
 get it to play file 2. Meanwhile write information to file 1 again. And keep
 looping.

 This is horribly resource intensive, but should produce an okay video (so I
 hear). Although syncing information for this difficult (impossible?).

 That's for streaming in. If your looking for information about streaming
 out you should see the Sipdroid code VideoCamera.java where they implement a
 'write to file', 'open file and stream' method. It produces a jerky but
 reasonable video quality.

 --
 The greatest challenge to any thinker is stating the problem in a way that
 will allow a solution
 - Bertrand Russell

 Andy Savage
 Cell Phone: +852 936 34341
 Skype ID: andy_savage
 Linked In: http://www.linkedin.com/in/andysavage


 On Tue, May 25, 2010 at 5:29 PM, Jez jeremy.a.co...@baesystems.comwrote:

 Hi Andy,

 I have the same problem too - attempting to stream an axis encoded
 live video stream as h264 format and using the media player to show
 the video live on an Android phone.

 Now i'm not sure if this is possible?


 On May 25, 2:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Thanks for your suggestion.
 
  I had considered this. The problem with this approach is that it seems
 that
  the MediaPlayer requires anything passed in as a FileDescriptor to be
  seekable (this is the same problem that prevents me from substituting
  FileDescriptor for LocalSocket). In this case this means that the file
 would
  have to finish recording before it can be played so that the timing
 headers
  are added.
 
  The idea is to have (semi) real-time video so you can see what's going
 on.
  Think video calling... except that it doesn't quite have to be as
  responsible for now.
 
  Anybody else have any ideas?
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
 
 
  On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com
 wrote:
   How about writing the RTP stream to a file and playing it from there?
 
   On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
Hi everyone,
 
I need a little bit of help from some experts out there.
 
Currently I am developing an application that will stream video
 using RTP
and SIP. I have this mostly working with audio working fine both
 ways
   using
Java (and native) codecs. I can stream out video also from the
 camera to
   a
windows client.
 
The problem comes from when I want to receive and decode the video
 on the
android platform. I understand at this stage that Mediaplayer only
   supports
RTSP streams. Ironically it does what I need (by getting the SDP
   information
from using RTSP SETUP call and using that RTP/UDP information to
 receive
   the
stream). But I can't seem to access this functionality, all it takes
 as
input is a RTSP url. If you are unfamiliar the difference between
 RTSP
   using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
.
 
What I need to do is take an RTP stream encoded with h.263-1998 and
   somehow
pass it to the mediaplayer (or even a lower level api if somebody
 can
provide an example).
 
The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this
 is a
really ugly solution.
 
I would really appreciate if anybody could offer any help with this.
 
Kind regards

Re: [android-developers] Re: Android Apps purchasing from anywhere in the world

2010-05-25 Thread Andy Savage
That's just crazy. How can they hope to compete with Apple's paid store?

For sure that it's a different (and possibly exciting) interaction model for
apps, but honestly the revenue is far less garmented. I don't see why they
don't just take a cut from app purchases and then put that towards improving
the store and offering paid apps everywhere.

I for one certainly wouldn't mind 10% of my revenue going their way if the
apps store was fantastic and it was available everywhere.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


2010/5/26 Tomáš Hubálek tom.huba...@gmail.com

 This sounds terribly. I love AdSense in web pages as it is not
 annoying but sometimes even useful. But I really hate ads in software.
 I wish what you wrote bellow is not true :-(

 Tom

 On 25 kvě, 20:41, Amir Alagic amirs...@gmail.com wrote:
  Hi,
 
  I don't think that this will happen any time soon for you in
  Singapore. Google is living on ads and few months ago Google bought
  AdMob for 750 million dollars. It it not in their interest to improve
  paid apps after they invested so much money in mobile advertising.
 
  Last year Google said that they will give us list of countries that
  will get paid apps... but it is more than a year and still almost
  nothing. There were some rumors that paid apps will come to Sweden at
  the end of Q1 2009, then that it will come in october 2009, then that
  it will come in Q1 2010 but nothing. Many people ask questions about
  that on so called Help forum for Android Market but nobody from Google
  is answering even if some people asked for more than a year.
 
  People that were on Google IO got 100 dollars checks to use with
  Adwords/Adsense (friend that was there told me about that). It looks
  like that Google prefer adds... I hope that I am wrong.
 
  On May 21, 11:34 am, hotr0d cyberm...@gmail.com wrote:
 
 
 
   I'm surrently located in Singapore and I really love my Nexus one and
   I would love buy apps from the market place. I hope the ability to buy
   android apps from anywhere in the world (just like Iphone apps) would
   be available really really really soon.
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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


-- 
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: RTP stream video decoding

2010-05-24 Thread Andy Savage
A little bit of hunting around has found this
threadhttp://www.mail-archive.com/android-developers@googlegroups.com/msg06179.htmlin
which somebody is trying to use a LocalSocket as a FileDescriptor
passed
to MediaPlayer. Unfortunately he doesn't get an answer.

Does anybody have any working code example where a LocalSocket could be used
to pass data to MediaPlayer? It seems like this would solve my problem as I
could pass data from my incoming RTP stream to a localsocket (I think).

Do you think this could work?

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Mon, May 24, 2010 at 2:44 PM, Andy Savage a...@bluewire.net.nz wrote:

 Hi everyone,

 I need a little bit of help from some experts out there.

 Currently I am developing an application that will stream video using RTP
 and SIP. I have this mostly working with audio working fine both ways using
 Java (and native) codecs. I can stream out video also from the camera to a
 windows client.

 The problem comes from when I want to receive and decode the video on the
 android platform. I understand at this stage that Mediaplayer only supports
 RTSP streams. Ironically it does what I need (by getting the SDP information
 from using RTSP SETUP call and using that RTP/UDP information to receive the
 stream). But I can't seem to access this functionality, all it takes as
 input is a RTSP url. If you are unfamiliar the difference between RTSP using
 RTP and SIP using RTP. You can read about the differences 
 herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
 .

 What I need to do is take an RTP stream encoded with h.263-1998 and somehow
 pass it to the mediaplayer (or even a lower level api if somebody can
 provide an example).

 The only way I can think around this is to write another service
 to receive the RTP stream and provide an RTSP interface... but this is a
 really ugly solution.

 I would really appreciate if anybody could offer any help with this.

 Kind regards,
 Andy Savage

 --
 The greatest challenge to any thinker is stating the problem in a way that
 will allow a solution
 - Bertrand Russell

 Andy Savage
 Cell Phone: +852 936 34341
 Skype ID: andy_savage
 Linked In: http://www.linkedin.com/in/andysavage


-- 
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] RTP stream video decoding

2010-05-24 Thread Andy Savage
Hi everyone,

I need a little bit of help from some experts out there.

Currently I am developing an application that will stream video using RTP
and SIP. I have this mostly working with audio working fine both ways using
Java (and native) codecs. I can stream out video also from the camera to a
windows client.

The problem comes from when I want to receive and decode the video on the
android platform. I understand at this stage that Mediaplayer only supports
RTSP streams. Ironically it does what I need (by getting the SDP information
from using RTSP SETUP call and using that RTP/UDP information to receive the
stream). But I can't seem to access this functionality, all it takes as
input is a RTSP url. If you are unfamiliar the difference between RTSP using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
.

What I need to do is take an RTP stream encoded with h.263-1998 and somehow
pass it to the mediaplayer (or even a lower level api if somebody can
provide an example).

The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this is a
really ugly solution.

I would really appreciate if anybody could offer any help with this.

Kind regards,
Andy Savage

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage

-- 
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 live stream (RTP) in MediaPlayer

2010-05-24 Thread Andy Savage
Hi there,

Any answer to this question? It's bugging me too. Jean, can you tell
us what version you are testing this on? Have you tried 2.1?

Cheers,
Andy

On May 6, 3:32 pm, debelyoo jean.ross...@gmail.com wrote:
 Hi dillirao,

 I don't receive onPrepared callback.

 After requesting the live stream through the SDP file (http://
 server_ip/live.sdp) I receive the following callbacks:
 - onBufferingUpdate -- Buffering 100%
 - onErrorCallback -- Command PLAYER_INIT completed with an error or
 info PVMFErrCorrupt

 My file is encoded in MPEG-4 part 2, audio is AAC, file format
 is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
 should not be a problem since I'm on Wi-Fi.
 I can stream the same file with a RTSP request from the Darwin server.
 It works smoothly.

 Any idea why the device returns this error ? evn though it can play
 the same stream via RTSP ?

 Jean

 On May 5, 3:06 pm, dillirao malipeddi dillir...@arijasoft.com wrote:





  did u received OnPrepared callback.
  Plz write a onErrorcallback and see, if you get error callback.

  whats video profile and audio profile you are using.

  use : h263/h264 15fps; 176x144 or 320x240  and use low bit rate , on
  internet ; if lan, bw is not issu
  for audio: use aac/ again try low bit rate encoding;... amr/ is ok...

  Thanks

  On Thu, Apr 29, 2010 at 6:32 PM, debelyoo jean.ross...@gmail.com wrote:
   I try to play a live stream on my android phone using the MediaPlayer
   object. But I definitely see a black screen. Does anybody have any
   experience with streaming on Android ?

   Here is what I'm doing:
   I broadcast a stream with Darwin streaming server (via
   PlaylistBroadcast) to my Android phone. The stream is sent over RTP to
   the IP of my device (unicast). A .sdp file describes my stream.

   In my app, I try to play the stream with the following code where url
   is rtsp://server_ip/live.sdp

   private void playVideo(String url) {
          try {
                  //media.setEnabled(false);

                  if (player==null) {
                          //System.out.println(create MediaPlayer);
                          player=new MediaPlayer();
                          player.setScreenOnWhilePlaying(true);
                  } else {
                          player.stop();
                          player.reset();
                  }

                  player.setDataSource(url);
                  //holder.setFixedSize(320, 240);
                  player.setDisplay(holder);

                  player.setAudioStreamType(AudioManager.STREAM_MUSIC);
                  player.setOnPreparedListener(this);
                  player.prepareAsync();
                  player.setOnBufferingUpdateListener(this);
                  player.setOnCompletionListener(this);
          } catch (Throwable t) {
                  System.out.println(Exception in media prep:
   +t.toString());
          }
      }

   public void onPrepared(MediaPlayer mp) {
                  //System.out.println(onPrepared);

                  int width=player.getVideoWidth();
                  int height=player.getVideoHeight();

                  if (width!=0  height!=0) {
                           holder.setFixedSize(width, height);
                           player.start();
                  }
   }

   I always have a black screen, buffering remains at 0%.
   I checked that I can play this live stream on VLC and QT on a desktop,
   and it works fine. If I request the same file via a direct RTSP
   request (rtsp://server_IP/myVideo.mp4) the file plays correctly on my
   android phone.

   I also tried to request the .sdp file by an HTTP request (http://
   server_IP/live.sdp) but the result is the same (black screen).

   Does anybody have already succeeded in playing a live stream on an
   android phone ?

   Cheers
   Jean

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

  --
  Thank you,
  Dilli Rao. Mwww.arijasoft.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 
  athttp://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: RTP stream video decoding

2010-05-24 Thread Andy Savage
Thanks for your suggestion.

I had considered this. The problem with this approach is that it seems that
the MediaPlayer requires anything passed in as a FileDescriptor to be
seekable (this is the same problem that prevents me from substituting
FileDescriptor for LocalSocket). In this case this means that the file would
have to finish recording before it can be played so that the timing headers
are added.

The idea is to have (semi) real-time video so you can see what's going on.
Think video calling... except that it doesn't quite have to be as
responsible for now.

Anybody else have any ideas?

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com wrote:

 How about writing the RTP stream to a file and playing it from there?


 On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
  Hi everyone,
 
  I need a little bit of help from some experts out there.
 
  Currently I am developing an application that will stream video using RTP
  and SIP. I have this mostly working with audio working fine both ways
 using
  Java (and native) codecs. I can stream out video also from the camera to
 a
  windows client.
 
  The problem comes from when I want to receive and decode the video on the
  android platform. I understand at this stage that Mediaplayer only
 supports
  RTSP streams. Ironically it does what I need (by getting the SDP
 information
  from using RTSP SETUP call and using that RTP/UDP information to receive
 the
  stream). But I can't seem to access this functionality, all it takes as
  input is a RTSP url. If you are unfamiliar the difference between RTSP
 using
  RTP and SIP using RTP. You can read about the differences
  herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
  .
 
  What I need to do is take an RTP stream encoded with h.263-1998 and
 somehow
  pass it to the mediaplayer (or even a lower level api if somebody can
  provide an example).
 
  The only way I can think around this is to write another service
  to receive the RTP stream and provide an RTSP interface... but this is a
  really ugly solution.
 
  I would really appreciate if anybody could offer any help with this.
 
  Kind regards,
  Andy Savage
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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


-- 
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] VP8 Video Codec

2010-05-24 Thread Andy Savage
Hi there,

I am wondering if there is any timeframe for VP8 to be included into
Android?

Is it possible for me to build and use it myself using NDK to decode/encode
video?

Kind regards,
Andy Savage

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

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