Re: [android-developers] Browser Video Plugin

2011-01-06 Thread andy zhao
Basically, I got two ways to do this:
1.you can capture the home key enent or other key enents,  and stop the
video playback.
2.in onpause() method, close your player

2011/1/6 yogi yogi.ru...@gmail.com

 Hi All,

 I just want to know when ever there is a video to play in a
 webpage(youtube.com) how browser invoke some other app for play the
 video, because my requirement is while playing the video then user
 presses the home key and again launches the browser. the Player
 should not be shown aagain.

 Thanks is advance...
 Regards
 Yogi

 --
 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] Browser Video Plugin

2011-01-06 Thread andy zhao
I konw that  webview can communicate with external activity, you can use
videoview to play your resource.
If you do like that, it's easy to close your player :)


Br

andy



2011/1/6 YoGenDr@ $iNgH yogi.ru...@gmail.com

 @ andy
 Yes nice solution but i didn't know how to get the instance of  already
 playing player.
 As it was launched by webkit framework or libwebcore.



 On Thu, Jan 6, 2011 at 1:35 AM, andy zhao zxganga...@gmail.com wrote:

 Basically, I got two ways to do this:
 1.you can capture the home key enent or other key enents,  and stop the
 video playback.
 2.in onpause() method, close your player

 2011/1/6 yogi yogi.ru...@gmail.com

 Hi All,

 I just want to know when ever there is a video to play in a
 webpage(youtube.com) how browser invoke some other app for play the
 video, because my requirement is while playing the video then user
 presses the home key and again launches the browser. the Player
 should not be shown aagain.

 Thanks is advance...
 Regards
 Yogi

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




 --
 Yogendra Singh
 B-Tech,Computer Science and Engg.,
 MNNIT,Allahabad

  --
 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] Browser Video Plugin

2011-01-06 Thread andy zhao
And if you have to use the webview to play your video(for instance: you use
the rtsp resource.) I think you should try to use javascript to control your
player:)

andy


2011/1/6 andy zhao zxganga...@gmail.com

 I konw that  webview can communicate with external activity, you can use
 videoview to play your resource.
 If you do like that, it's easy to close your player :)


 Br

 andy



 2011/1/6 YoGenDr@ $iNgH yogi.ru...@gmail.com

 @ andy
 Yes nice solution but i didn't know how to get the instance of  already
 playing player.
 As it was launched by webkit framework or libwebcore.



  On Thu, Jan 6, 2011 at 1:35 AM, andy zhao zxganga...@gmail.com wrote:

  Basically, I got two ways to do this:
 1.you can capture the home key enent or other key enents,  and stop the
 video playback.
 2.in onpause() method, close your player

 2011/1/6 yogi yogi.ru...@gmail.com

 Hi All,

 I just want to know when ever there is a video to play in a
 webpage(youtube.com) how browser invoke some other app for play the
 video, because my requirement is while playing the video then user
 presses the home key and again launches the browser. the Player
 should not be shown aagain.

 Thanks is advance...
 Regards
 Yogi

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




 --
 Yogendra Singh
 B-Tech,Computer Science and Engg.,
 MNNIT,Allahabad

  --
 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] share the tree view implementation on android

2011-01-03 Thread andy zhao
hi,all, Here's a good sample for the tree view implementation on android:

http://isomobile.com/read.php?tid-49.html

Hope this will be helpful for some special requirements:)


BR

andy zhao

-- 
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: Service or no service

2010-12-21 Thread andy zhao
I know how to realize your feature. But I am not sure this is good or not.

you can start an alarm manager to check the service is running or nor at
some minutes. If the service is being killed, you just start it again.



2010/12/19 TreKing treking...@gmail.com

  On Sat, Dec 18, 2010 at 4:54 PM, Hans-Erik erikswed...@gmail.com wrote:

 AsyncTask out the door, Services welcome in.


 Realize that a Service can just as easily be killed.


   There's really no such thing as keeping a connection alive. Your
 process
  can and will be killed at some point, if not by the system then
 explicitly
  by the user.

 In my Desire phone i see both fring and Google mssagin always running
 Read some about a service being Sticky


 AFAIK, sticky means the system will try to restart the Service if it was
 killed before it was done. This does not guarantee that you will always be
 running.


 I read elsewhere that a service can be started with a Brodcastcmmand

 http://stackoverflow.com/questions/4468006/can-i-start-a-service-without-activity-or-receiver

 cant wrap my head around the code implementation here.
 after reading many questions here and elsewhere about this.
 I think the method is:
 - an apk file which contains a Service an activity and a
 BroadcastReceiver Class.
 - action.BOOT_COMPLETED will start only my Service, not the Activity.
  The user can from Main Launcher start Activity for in app settings
 and I Bind
  to Service and Unbind when done


 Yes, you can start a service in response to system events, however, I
 stress again that your Service can and will be killed eventually. You cannot
 count on it living forever.


 I look at your TreKing app. Im impressed nice work


 Thanks :-)


 Can I ask how did you tap into CTA bus tracker system GPS signal for all
 there Busses location?


 They have a whole API for 
 developershttp://www.transitchicago.com/developers/bustracker.aspx
 .


 -
 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.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] How to stream video to android device over HTTP.

2010-12-21 Thread andy zhao
Hi,
I don't know which method or class you use to play the audio or video
stream. I used VideoView class to do that successfully.

2010/12/20 Thierry Legras tleg...@gmail.com

 Hi,

 I would like to stream video files to Android device, and intend to
 integrate playback in my application.

 I first tried to use flash video streaming, which works pretty nice on my
 HTC Hero which integrated flash player, but now on Floyo ROM it does not
 work any more. I guess HTC player is more complete than froyo 2.2 flash
 support.

 Then I tried to stream with VLC software using RTSP and it appears to work
 only with WiFi. On 3G, I see on the streaming PC that the stream is sent,
 but nothing is displayed on the Android device, whereas it works on WiFi.
 I found this very interesting page from VLC stream  convert developper
 which seems to show that this method is hazardous. Indeed the proposed test
 does not work at all on my device/operator.
 http://traveldevel.com/vlc-stream-convert/streaming-over-3g

 Finally I am trying to stream over HTTP. I made it work (WiFi AND 3G) for
 audio stream only, but when I try to stream audio+video, it does not work at
 all (WiFi nor 3G). Of course I set the bitrate and screen size to low so it
 is supposed to work at least in WiFi. I tried several combination
 codec/muxer with no luck.

 So anyone knows if it is ever possible to stream video over HTTP? if yes,
 any idea which codec/muxer is supposed to work?

 Or at least what is the most universal and/or recommanded way to stream
 video to android device??

 Thanks for any help,

 --
 Thierry.

 --
 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] handing event of two button in widget

2010-11-29 Thread andy zhao
Can you send your detailed error log for analysis?  Cause it's difficult to
track the issue.


Br
Andy


2010/11/29 Honest honestsucc...@gmail.com

 hello,

 i have developed simple widget which display images from sd card. I
 have two button(for setting and open)  on center frame. Now i am
 calling Activity Class to display User Interface for setting and
 display Image in big view. But i am getting RunTimeException if i try
 to use PendingIntent for both button. if i set pendingIntent for one
 Button then it is working fine.  The following is my code snippet.
  hope to hear soon from you.


  Intent configIntent  = new Intent(context,
 ImagesWidgetConfiguration.class);
  configIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
 appWidgetId);
  //To specify open image action
  configIntent.putExtra(action, open);
  // gotta make this unique for this appwidgetid

 configIntent.setData(Uri.withAppendedPath(Uri.parse(URI_SCHEME + ://
 widget/id/), String.valueOf(appWidgetId)));

  PendingIntent pendingIntent1 =
 PendingIntent.getActivity(context, 0, configIntent,
 PendingIntent.FLAG_UPDATE_CURRENT);
  remoteView.setOnClickPendingIntent(R.id.play_pause,
 pendingIntent1);



 // For SecondButton
  //remoteView = new RemoteViews(context.getPackageName(),
 R.layout.main);
  Intent updateIntent=new
 Intent(context,ImagesWidgetConfiguration.class);
  updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
 appWidgetId);

  updateIntent.putExtra(action, setting);


 updateIntent.setData(Uri.withAppendedPath(Uri.parse(URI_SCHEME + ://
 widget/id/), String.valueOf(appWidgetId)));

   PendingIntent pendingIntent =
 PendingIntent.getActivity(context, 0, updateIntent,
 PendingIntent.FLAG_UPDATE_CURRENT);
  remoteView.setOnClickPendingIntent(R.id.next,
 pendingIntent);






 --
 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] wish to join you

2010-11-15 Thread andy zhao
cause I am interested in the android, hope can join your groups. tkx:)

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