Re: [android-developers] Playing live stream (RTP) in MediaPlayer
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%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Listview background image changes on Scroll?
You are right If you are implementing your own list view it will call getView() method for every list item displayed in the visible area. when you scroll down/up same will happen and again it calls the getView(...) method for every getView(..) -- public View getView(int position, View convertView, ViewGroup parent) { .} based on the position you need to implement your condition for display background. may be this helps. On Sat, May 1, 2010 at 11:24 AM, javame_android su...@softwebsolutions.comwrote: Hi, The reason for this type of behavior is probably the conditions that have been put up to display the listview. Since, I need to change the background image on certain conditions. Now, after scrolling those conditions are not satisfied as it should be. I think this will need to be checked by me only since only I have the source code. Regards Sunil -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] TabHost Problem
when u click on another tab it pauses the previous activity and starts the new activity with the corresponding tab button save the activity state and values and when resumes the activity fill the saved values, u may implement onSaveInstanceState() to save the values and repopulate when resumes. may be this will help you. On Thu, Apr 29, 2010 at 2:47 PM, Chirayu Dalwadi chirayu.dalw...@gmail.comwrote: I'm developing an application in which i have few tabs. In one tab i have a calender button and when i set date using that button, the value of textview updates automatically. Now the problem is that when i click another tab the value of textview goes blank automatically how to resolve 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need MMSH Protocol library
however, let me tell you, after doing all mms/mmsh.. you get wma streams... where wma codec is not supported by android On Tue, Apr 27, 2010 at 2:33 PM, brian karlo gutierrez brikz...@yahoo.comwrote: Hello everyone, Do you know any way on how to play a stream using mmsh protocol? It seems android at default cannot play mmsh streams. Any idea or inputs on how to start? Thanks, Brian -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] J2ME converting/translation to Android
motorola is giving tools for free to convert j2me to android... enjoy On Mon, Apr 26, 2010 at 1:25 AM, ricardocunha ricardocu...@gmail.comwrote: Hi, I want to know if exists a converter for a j2me source-code to android. Listen, it´s not a runner, like a midp runner for android, it ´s a converter for a source code. A tool for translate a source code for a new plataform, from j2me to android. Sorry about my English. Thank´s for any help. -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] custom seekbar
layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@android:id/background shape corners android:radius=5dip / gradient android:startColor=#ff9d9e9d android:centerColor=#ff5a5d5a android:centerY=0.75 android:endColor=#ff747674 android:angle=270 / /shape /item item android:id=@android:id/secondaryProgress clip shape corners android:radius=5dip / gradient android:startColor=#80ffd300 android:centerColor=#80ffb600 android:centerY=0.75 android:endColor=#a0ffcb00 android:angle=270 / /shape /clip /item item android:id=@android:id/progress clip shape corners android:radius=5dip / gradient android:startColor=#4191bb android:centerColor=#bad8f2 android:centerY=0.75 android:endColor=#4c8fbe android:angle=270 / /shape /clip /item /layer-list On Mon, Apr 26, 2010 at 3:01 PM, student alsharewit...@gmail.com wrote: Hi android developer If anybody tel me how to change the color of secondary progress in seekbar. Is there possible to do it? Reply Soon Regards Student -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] video conversion from .flv to .mp4
ffmpeg -i *input.flv* -f mp4 -vcodec mpeg4 -r 15 -s 320x240 -acodec aac -ac 2 -ab 64 -ar 44100 *output.mp4* On Wed, Mar 24, 2010 at 4:09 PM, Guru gurudut...@gmail.com wrote: I have been trying to convert .flv to .mp4 in the server with ffmpeg ,and stream it through the android browser:-This is the command I have been using : ffmpeg -i *input.flv* -f mp4 -vcodec mpeg4 -r 25 -b 56 -s 610x340 -acodec aac -ac 2 -ab 64 -ar 44100 *output.mp4* The output streams like a charm on the iPhone,but i have had no luck on the android G1 developer phone,has any one tried this?If so what are the parameters that I may be missing.I am not even a beginner as far as media related libraries are concerned.Any pointers will be helpful. Thanks Guru -- 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can I use VideoView to streaming without buffering?
use low bit rate encoding... so that, even at low bandiwdths it works in the rtsp handshake, make sure, you provide codec params in DESCRIBE request/response.! On Thu, Apr 22, 2010 at 5:20 PM, Chirag chirag_vaish...@hotmail.com wrote: When you want live video streaming, second case is fine. Is there any way to reduce buffer size??? On Apr 14, 4:32 pm, MobDev developm...@mobilaria.com wrote: well most of the time buffering is just part of streaming... it's there so that a user will get a more seamless playback of the video/audio... The flipside is that it starts a little later because it has to buffer beforehand, and when it has enough data to play a specific amount of time seamlessly it will start.. Cutting out the buffering might mean frequent hickups during play... The first case might be acceptable for users (buffering) the second one definitely isn't (frequent hickups)... On 12 apr, 05:33, Kelvin sukel...@gmail.com wrote: I have a question. When I use the VideoView to play theRTSPstreaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code: String VideoUri = rtsp://192.168.5.121:/live/h264; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start(); Is anybody help me? 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can I use VideoView to streaming without buffering?
if u r using dss use sdp file with proper params to rtsp client understand the params.. key is encode low bit rate! On Tue, Apr 27, 2010 at 4:41 PM, dillirao malipeddi dillir...@arijasoft.com wrote: use low bit rate encoding... so that, even at low bandiwdths it works in the rtsp handshake, make sure, you provide codec params in DESCRIBE request/response.! On Thu, Apr 22, 2010 at 5:20 PM, Chirag chirag_vaish...@hotmail.comwrote: When you want live video streaming, second case is fine. Is there any way to reduce buffer size??? On Apr 14, 4:32 pm, MobDev developm...@mobilaria.com wrote: well most of the time buffering is just part of streaming... it's there so that a user will get a more seamless playback of the video/audio... The flipside is that it starts a little later because it has to buffer beforehand, and when it has enough data to play a specific amount of time seamlessly it will start.. Cutting out the buffering might mean frequent hickups during play... The first case might be acceptable for users (buffering) the second one definitely isn't (frequent hickups)... On 12 apr, 05:33, Kelvin sukel...@gmail.com wrote: I have a question. When I use the VideoView to play theRTSPstreaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code: String VideoUri = rtsp://192.168.5.121:/live/h264; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start(); Is anybody help me? 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 -- Thank you, Dilli Rao. M www.arijasoft.com -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Live stream latency
Arijasoft has developed android LiveStreaming SDK for Android. Its able to stream to all RTSP servers and verified with VLC and DSS ( darwin streaming server). you can request the android LiveStreaming SDK . Thanks On Wed, Apr 14, 2010 at 9:39 PM, Android dev gian23...@gmail.com wrote: Until now we only did the receive stream part of the application, not yet the send it to a server, and we did not need to deal with jni for it, as we are using the videoview/mediaplayer APIs. The videos that we used in our tests were from rtsp live streaming links that we found on the internet. What we are asking here is why does VLC show the same part of the video 2 to 10 seconds earlier than our Android application shows it, and why the other existing live streaming applications for Android that we found also have this delay. On 13 abr, 17:51, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: Hi, I am trying to create a live streaming application that just send the stream to a server. The code I followed the example on sipdroid, but I am with some difficulties in showing this stream on server side. Can you give some tips how to configure the vlc to receive the video stream from android? To do your application works, did you had to deal with jni? About the delay, what kind of video format are you using? Android supports H.263 encoder and decoder as said on this page: http://developer.android.com/guide/appendix/media-formats.html Regards, Rogerio 2010/4/13 Android dev gian23...@gmail.com We are developing an Android video conferencing application. After examining some already existing live-stream applications , we came to the conclusion that all or almost all existing applications have a delay of 3 to 10 seconds. The application we are developing was tested receiving a video stream on the Android device and the same video stream on VLC at the same time.The result of the test is that VLC shows the same part of the video 2 to 10 seconds earlier than our Android application on the phone(HTC hero) depending on the rtsp link used. we havent found what is the main cause of the delay and also dont know if it is possible to reduce that delay. In our case, as it comes to video conferencing, the delay should be lower than 2 seconds at least. Do you guys have some information about the cause of the delay or even how to reduce it? -- 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%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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 To unsubscribe, reply using remove me as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Streaming video from Android handset - code examples anywhere?
Arijasoft has developed android live streaming sdk, which streams from android device to any RTSP server from android device --- rtsp server; Please contact: cont...@arijasoft.com thanks On Tue, Feb 16, 2010 at 11:01 PM, jussi69 jussiniemin...@gmail.com wrote: Hi, I'm in the process of writing an application that would be streaming live video from Android handset into a server that resides in the internet. Are there any code examples that can handle this? I've been trying to search code examples, but could not find any. I have also bought a couple of Android development books, but none of those covered this kind of functionality. Any help would be greatly appreciated. Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] custom seekbar
save this xml in drawable folder and set it as ProgressDrawable to seek bar On Tue, Apr 27, 2010 at 4:27 PM, dillirao malipeddi dillir...@arijasoft.com wrote: layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@android:id/background shape corners android:radius=5dip / gradient android:startColor=#ff9d9e9d android:centerColor=#ff5a5d5a android:centerY=0.75 android:endColor=#ff747674 android:angle=270 / /shape /item item android:id=@android:id/secondaryProgress clip shape corners android:radius=5dip / gradient android:startColor=#80ffd300 android:centerColor=#80ffb600 android:centerY=0.75 android:endColor=#a0ffcb00 android:angle=270 / /shape /clip /item item android:id=@android:id/progress clip shape corners android:radius=5dip / gradient android:startColor=#4191bb android:centerColor=#bad8f2 android:centerY=0.75 android:endColor=#4c8fbe android:angle=270 / /shape /clip /item /layer-list On Mon, Apr 26, 2010 at 3:01 PM, student alsharewit...@gmail.com wrote: Hi android developer If anybody tel me how to change the color of secondary progress in seekbar. Is there possible to do it? Reply Soon Regards Student -- 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 -- Thank you, Dilli Rao. M www.arijasoft.com -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] I want to get Listview click event
implement onScrollListeners public abstract void onScroll (AbsListViewfile:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.html view, int firstVisibleItem, int visibleItemCount, int totalItemCount) Since: API Level 1file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/guide/appendix/api-levels.html#level1 Callback method to be invoked when the list or grid has been scrolled. This will be called after the scroll has completed ParametersviewThe view whose scroll state is being reportedfirstVisibleItemthe index of the first visible cell (ignore if visibleItemCount == 0) visibleItemCountthe number of visible cellstotalItemCountthe number of items in the list adaptor public abstract void onScrollStateChanged (AbsListViewfile:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.html view, int scrollState) Since: API Level 1file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/guide/appendix/api-levels.html#level1 Callback method to be invoked while the list view or grid view is being scrolled. If the view is being scrolled, this method will be called before the next frame of the scroll is rendered. In particular, it will be called before any calls to getView(int, View, ViewGroup)file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup). ParametersviewThe view whose scroll state is being reportedscrollStateThe current scroll state. One of SCROLL_STATE_IDLEfile:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#SCROLL_STATE_IDLE , SCROLL_STATE_TOUCH_SCROLLfile:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#SCROLL_STATE_TOUCH_SCROLL or SCROLL_STATE_IDLEfile:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#SCROLL_STATE_IDLE . On Mon, Apr 5, 2010 at 6:26 AM, syuta nakamura.sh...@gmail.com wrote: hello. I use ListView.(Adapter is a Custom Adapter) *extends BaseAdapter I wanto to get selected item, when I click the item in the list. now, I use OnItemClickListener, OnItemSelectedListener. but, This program doesn't do the operation for which I hope. not click. I want to get a selected Item in the list, when like mouse_down. (Moment when color of item in list changed?) Can this be done? -- 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 To unsubscribe, reply using remove me as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to use MediaPlayer to play streaming audio?
arijasoft has developed android online radio SDK, Capabilities of AOR-SDK 1) Play: a. shoutcast-aac, b. shoutcast-aacp, c.shoutcast-mp3, d. icecast-aac, e. icecast-aacp, f.icecast-mp3; 2) Play: m3u/pls support 3) Player status/control. 4) Song name; On Tue, Mar 23, 2010 at 12:48 AM, patbenatar patbena...@gmail.com wrote: I am interested in the solution to this as well.. And if not MediaPlayer, how does one stream audio from a Web source. Thanks all! On Mar 21, 10:38 am, sume museay...@gmail.com wrote: The dev guide suggests this MediaPlayer mp = new MediaPlayer(); mp.setDataSource(this, Uri.parse(http://wamu-1.streamguys.com:80;)); mp.prepare(); mp.start(); I can't seem to get it working though. I'm getting java.io.IOException: Prepare failed.: status=0x1 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Getting all of a long string in DDMS?
Like int read_cnt = 0; byte[] byteresp = new byte[1024]; int len = responseStream.available(); while(read_cnt len) { int size = len - read_cnt; int nR = responseStream.read(byteresp, 0, (size1024?1024:(int)size)); if(nR 0){ break; } read_cnt += nR; String resp= new String(byteresp, 0, nR); Log.i(Data, resp); resp = null; } On Mon, Mar 29, 2010 at 4:25 PM, Dilli dilliraomca...@gmail.com wrote: In your code you should read the complete data available in the responseStream because the stream may don't give complete data at one attempt. You need to call read method on responseStream till it ends. ( i.e: read bytes size -1) i.e read the data till you got end of stream. then convert it to String and display better way is to read block by block and display. May be this will help you. Thank you On Mar 29, 3:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: PVMFFailure when using MediaPlayer for radio streams
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Tue, Feb 16, 2010 at 1:08 PM, Kamal Hasan kamal.hasa...@gmail.comwrote: Hi, Any one has tried with HTTPS on media player I am getting Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported Error. I am able to play the file on http but failed to play on HTTPS. Can you help me in this regard. Kamal On Feb 11, 10:42 pm, Steve steveoliv...@gmail.com wrote: I can make this work on 1.6 with this linkhttp:// www.colorado.edu/AmStudies/lewis/Design/blue.mp3 What is the url you are trying to connect to? On Jan 29, 6:08 am, David trend...@gmail.com wrote: ps-I am using version 1.5 on a HTC phone On Jan 14, 9:48 pm, Tanmay tanm...@gmail.com wrote: I tried doing this in 1.6 but still gave me the Prepare Failed 0x1 error along with thePVMFFailurein the log. Has there been any solution to this one developed yet? On Dec 14 2009, 10:13 pm, YaushiIizuka vse5...@gmail.com wrote: Hi. String url = http://your.url;; MediaPlayer mp = new MediaPlayer(); mp.setDataSource(url); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); mp.start(); On 10月23日, 午後3:28, dede dede830...@126.com wrote: Hi, In 1.6,I also try to play stream through setDataSource(http:// xxx/.mp3), but also it return IOException: prepare failed, status=0x1. If set the url into windowsmediaplayer, it can play correctly, I wanna know your problem whether be resolved? If yes, can u tell me the solution,thanks very much. On 10月7日, 上午5时41分, iwhoyt wallace...@hotmail.com wrote: In 1.5 I was able to stream an mp3 over http by passing the url to setDataSource(). However I started gettingPVMFFailures in 1.6. For me the issue was the Content-Type http header. If the header was set correctly (Content-Type: audio/mpeg), the stream played. Otherwise if failed during PLAYER_INIT. On Sep 2, 2:32 am, siliconeagle rrmu...@gmail.com wrote: Also the URl is a http (MP3) stream URL - as opposed tioo other opost where RTSP is being tried. It looks like it should just work. Has anyone else got streaming working via a streaming URL? On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote: I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls will work withthe defaultmediaplayer? Or do i have to download chunks into a ping-pong buffer sor something? The url has no porblems downloading via the browser. the error is:- 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views 09-01 11:53:30.445 E/PlayerDriver( 35): Command PLAYER_INIT completed with an error or infoPVMFFailure 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1) 09-01 11:53:30.504 I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare failed.: status=0x1 09-01 11:53:30.644 W/System.err(16972): at android.media.MediaPlayer.prepare(Native Method) 09-01 11:53:30.644 W/System.err(16972): at net.robmunro.mypod.util.MediaPlayerWrapper.playMedia (MediaPlayerWrapper.java:111) the code i use is:- try { mPlayer.stop(); mPlayer.reset();} catch (Exception e) { e.printStackTrace();} this.source=source; if (source.equals(Globals.SOURCE_LOCAL)) { mPlayer.setDataSource(f.path); buffered = 0;} else if (source.equals(Globals.SOURCE_STREAM)) { mPlayer.setDataSource(f.remoteUrl); buffered = 100;} mPlayer.prepare(); mPlayer.start();- 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
Re: [android-developers] Re: MediaPlayer -- shoutcast radio streaming creates a lag in playback
On Tue, Nov 3, 2009 at 12:49 AM, Vladimir B odess...@gmail.com wrote: Should I use two files and swap between them while playing and downloading? On Nov 1, 2009 10:44 PM, Vladimir odess...@gmail.com wrote: Hello, all! I've been working on an app to stream some radio content. I get the stream and save it to a file. When there is enough of it to play, I invoke MediaPlayer and pass in the file. Here is the question...since MediaPlayer sees only the portion of the mp3 file that has already been written when MediaPlayer was instantiated, I have to instantiate multiple MediaPlayers and call the seekto() method. But the reinstantiation creates a short gap in playback -- about half a second (have been testing the app in the emulator, but I'm guessing the same will happen on the actual phone). I'm sure this has been solved by others -- any suggestions??? Below is the thread that's called from within my Service once the initial buffering has been done. All this does is repeatedly calling the play() method that just reprocessing the mp3 file (while another thread is writing to that mp3 file). private final Thread watchRadioPlayer = new Thread() { public void run() { while (isDownloading) { curPosition = RadioPlayer.play(OnlineRadioRetriever.fileName, curPosition); int delay = curPosition - previousPosition; previousPosition = curPosition; try { synchronized (this) { wait(delay); } } catch (InterruptedException e) { Log.e(watchRadioPlayer, Exception while calling wait: , e); } Log.d(watchRadioPlayer, RUNNING for : + delay); } Log.d(watchRadioPlayer, The THREAD is dead); } }; -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: MediaPlayer -- shoutcast radio streaming creates a lag in playback
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Tue, Nov 3, 2009 at 12:49 AM, Vladimir B odess...@gmail.com wrote: Should I use two files and swap between them while playing and downloading? On Nov 1, 2009 10:44 PM, Vladimir odess...@gmail.com wrote: Hello, all! I've been working on an app to stream some radio content. I get the stream and save it to a file. When there is enough of it to play, I invoke MediaPlayer and pass in the file. Here is the question...since MediaPlayer sees only the portion of the mp3 file that has already been written when MediaPlayer was instantiated, I have to instantiate multiple MediaPlayers and call the seekto() method. But the reinstantiation creates a short gap in playback -- about half a second (have been testing the app in the emulator, but I'm guessing the same will happen on the actual phone). I'm sure this has been solved by others -- any suggestions??? Below is the thread that's called from within my Service once the initial buffering has been done. All this does is repeatedly calling the play() method that just reprocessing the mp3 file (while another thread is writing to that mp3 file). private final Thread watchRadioPlayer = new Thread() { public void run() { while (isDownloading) { curPosition = RadioPlayer.play(OnlineRadioRetriever.fileName, curPosition); int delay = curPosition - previousPosition; previousPosition = curPosition; try { synchronized (this) { wait(delay); } } catch (InterruptedException e) { Log.e(watchRadioPlayer, Exception while calling wait: , e); } Log.d(watchRadioPlayer, RUNNING for : + delay); } Log.d(watchRadioPlayer, The THREAD is dead); } }; -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: MediaPlayer and 1.5 vs 1.6
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Wed, Oct 21, 2009 at 8:14 PM, Marco Nelissen marc...@android.com wrote: I meant: implement your own http server to run on the phone. This server would also be a shoutcast client, and connect to the remote shoutcast server. It would process the data, and then pass it to its own clients as if it were serving up regular mp3 files. Your MediaPlayer would then connect to localhost to get the mp3. But again, that seems like a lot of trouble when the majority of devices are already running Donut. On Wed, Oct 21, 2009 at 4:58 AM, coolbanana johanst...@gmx.de wrote: Hi Marco, how kann i the datestream from Inputstream = connection.getInputStream (), over one local http server to MediaPlay at SetDataSource()? Is it that u mean. i had try it with SetDataSource(FileDiscriptor), aber the only way that i found to set the FD with Socket-ParcelFileDescriptor-FD does work never! can u tell me, how should it be,pleas? Thanks C.B --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] shoutcast client on android
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Sat, Jan 30, 2010 at 2:23 AM, BD mv.bharad...@gmail.com wrote: Hi. I am trying to implement a shoutcast client on android, and parsing a .pls file. I am supplying the File path in this .pls to the Media Player as a url to stream, but it seems that the mediaplayer continues to remain in the Preparing mode and no streaming happens. (using a .mp3 in stream mode has no problems.) Could anyone please throw some light on this approach, and maybe suggest another way to do this? I'd appreciate any suggestions/ responses. -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Retrieving Shoutcast Meta-Data from MediaPlayer not possible. Any alternative ?
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Thu, Dec 10, 2009 at 7:49 PM, senthil sen irtt.sent...@gmail.com wrote: Can you please share me the source code of how u are getting the meta data of shoutcast stream. I am also trying to play a radio station. But i am getting a small gap in between while playing. thanks, Sondy On Nov 26, 8:23 pm, Ole o...@theco.de wrote: I've solved the issue. The solution is to simply get the meta-data separately from the MediaPlayer-stuff by connecting to the stream from time to time with HttpURLConnection and extracting the meta-data. -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Internet radio option and source code
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Fri, Aug 28, 2009 at 1:19 PM, Shakeel shakeelaha...@tataelxsi.co.inwrote: Dear all, I am writing a internet radio application. I have two options 1) first download the radio streams in to file and play from that. 2) directly play from only streams. Help me in arriving a best option. Also it would be of great help if I receive some reference code for direct only internet radio play. I am using shoutcast.com Regards Shakeel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Playing a audio stream not working using MediaPlayer
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Mon, Nov 30, 2009 at 4:27 PM, Nugman klaus.nuta...@googlemail.comwrote: First of all the MediaPlayer does not support all music streaming formats, as I understood. I also struggeling with it. For me it is working to play a mp3 file located on a server. Try this first. But it seems that m3u or aac is not supported at all. (Implement a ErrorListener to see the error) I hope that I am wrong in this case, but I cant get it to work, either. Maybe you can decrypt the m3u file yourself to get the mpeg itself. Let me know how this works. Nevertheless the best thing is, to create a remote service (or a thread) that prepares and plays the music. So it does not disturb the main gui. Sorry that is all I know. Greets Klaus On 27 Nov., 11:25, Jens-Christian Larsen jenschrlar...@gmail.com wrote: I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5). If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming? Thanks for any and all suggestions. public class MyActivity extends Activity implements OnPreparedListener { MediaPlayer streamPlayer = new MediaPlayer(); public void onPrepared(MediaPlayer mp) { streamPlayer.start(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String path = http://www.nch.com.au/acm/sample.aac;; // String path = http://radio.bis.bg:8000/buddhabar;; // String path = http://kzsulive.stanford.edu/audio/kzsu-1-24.m3u;; try { Uri uri = Uri.parse(path); streamPlayer.reset(); streamPlayer.setDataSource(this, uri); streamPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); streamPlayer.setOnPreparedListener(this); streamPlayer.prepareAsync(); } catch (Exception e) { e.printStackTrace(); } setContentView(R.layout.main); } } -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: android 1.5: How do we use the AudioTrack class?
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Thu, Jun 25, 2009 at 8:27 PM, sasq jonas.minnb...@gmail.com wrote: I get this to work fine through something like audioTrack.setPositionNotificationPeriod(bufSize/8); audioTrack.setPlaybackPositionUpdateListener(this); ... public void onPeriodicNotification(AudioTrack track) { int frames = track.getPositionNotificationPeriod(); track.write(samples, 0, frames*2); } However - the callback is *Not* called from the thread that created the AudioTrack (as it says in the documentation) but from the UI thread, so you have to make sure you never write so you fill the buffer or the UI thread will block. On May 5, 10:45 am, blindfold seeingwithso...@gmail.com wrote: On May 1, 6:43 pm, Jean-Michel jmtr...@gmail.com wrote: Blindfold, Yes, with the marker set at 1000 I would now *sometimes* get the onMarkerReached() callback, but extremely rarely (maybe once in a hundred one-second 8-bit mono PCM sample playbacks on my ADP, which is why I had not even noticed it at first). It may depend on parameter settings, sample length, CPU load, whatever, but for my use it is totally unreliable and useless. At least it proves that my coding was not totally wrong, or else the callback would *never* have been invoked. :-) I think we need some feedback from the Android Team about how onMarkerReached() is supposed to behave or under what conditions it works. Some undocumented statement order that one has to adhere to? Timing assumptions? By contrast, MediaPlayer's OnCompletionListener() works just fine for me. 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 -~--~~~~--~~--~--~--- -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] how to Play music from AudioTrack
when you set properties explicitly, be sure to set the correctly based on stream... you cant hard code the values.. Stream properties --. track properties... On Mon, Feb 15, 2010 at 4:42 PM, kavitha kavith...@gmail.com wrote: Hi All, I want to play music from online mp3 link. I am reading the music data into a stream and trying to play it using audio track. But itz giving only noise.No music i could listen. This is my code. int intSize = android.media.AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); AudioTrackoTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, intSize, AudioTrack.MODE_STREAM); oTrack.play(); oTrack.write(buffer, 0, buffer.length); here buffer is the audio data i am reading into. Same buffer I can play in MediaPlayer,,,But i could not play in audiotrack.. Please tell me the solution. It is urgent. Thanks Kavitha -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: how to Play music from AudioTrack
Arijasoft has Android online Radio SDK to play online radio streams of mp3/aac. http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpPlease get the SDK from them... and Develop online radio app . On Thu, Mar 18, 2010 at 10:25 AM, kavitha kavith...@gmail.com wrote: still I didnt get solution even ogg files give some gap I give it up On Wed, Mar 17, 2010 at 6:14 PM, Wouter wouterg...@gmail.com wrote: Hey, i am also creating a media player for online radio. I have my online streams in mp3 format and I also hear a gap between 2 files (i write the stream to different files and play them, just like kavitha). How can i convert the stream to ogg when I try to play it? Can you give me any solutions on how you did this? Thanks, Wouter On Feb 16, 1:03 pm, skink psk...@gmail.com wrote: On Feb 16, 12:20 pm, kavitha kavith...@gmail.com wrote: yes,,skink, I tried playing ogg files. ogg files give very less gap (almost inconsiderable)than mp3. I need to convert and store into ogg format now. how to convert from mp3 to ogg format? http://linux.die.net/man/1/oggenc -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: play audio from a stream in android...
Arijasoft has Android online Radio SDK to play online radio streams of mp3/aac. http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpPlease get the SDK from them... and Develop online radio app . On Thu, Feb 11, 2010 at 2:11 PM, MobDev developm...@mobilaria.com wrote: On 10 feb, 13:43, kavitha kavith...@gmail.com wrote: Thanks Mark Murphy, Suppose i play online FM for one hour and want to listen again from start( ie music played before half an hour),,then i need to store all music in a stream and should be able to seek back to that point and start playing at that point. hmmm, to me it sounds like you are confusing what a stream is all about... You want to store it in a stream ? I think what you actually want is to store it in a File on the device itself... The MediaPlayer can seek back, but this does mean that you will havve to read the whole stream (or song) with one MediaPlayer, using two will make it impossible for you to seek back into the first one if you are playing in the second one, as in it's not one continous piece of music/data... I gues streaming would be a good thing, even though the standard streaming capabilities (only mp3 on http) are pretty lacking imho...good quality with low bitrate (like aac) aren't supported... -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Regarding web radio channel playing
Arijasoft has Android online Radio SDK to play online radio streams of mp3/aac. http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpPlease get the SDK from them... and Develop online radio app . On Wed, Feb 17, 2010 at 11:37 AM, ameya dandekar ameya...@gmail.com wrote: Hi..i am ameya. I am new to android...i am currently working on application in which i am trying to play a online radio channel. i read on the forums abt rtsp support in android for the video files of .3gp and .sdp. So, using built in media player can we play the live radio channel? e.g http://yp.shoutcast.com/sbin/tunein-station.pls?id=868885 was shoutcast's one of the channelin vlc player it gets played...so can we play it using android media player or any other ?... Regards, Ameya -- 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 -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] cannot select target when creating new project
Hi there is no problem with your IDE at all as per your image the TargetName Vendor API level and platform selection box is squeezed set your screen resolution to display complete window (or) make the window bigger by dragging then you will see the platform selections and select build target ... Thanks On Thu, Mar 25, 2010 at 12:52 PM, kavitha kavith...@gmail.com wrote: Hi All I am not able to select build target when i create new project in android eclipse on mac system. I have installed eclipse-java-cocoa 32 bit version and ADT-0.96 version. This was a fresh installation and i also installed AVD and SDK Manager and have created 2 avd's. I tried creating bash profile. Even then i am not able to select build target,,the targets are not visible at all. I have attached image to show how it looks in eclipse. please help. Thanks Kavitha -- 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: help me
please write these lines inside button click listener code *not in onCreate()* username = name.getText().toString(); password = pass.getText().toString(); On Fri, Feb 19, 2010 at 2:47 PM, SREEHARI sreehari.madhusooda...@wipro.comwrote: As Darshana said u dint say what is the exact problem. Is this code getting failed for authentication?? Use .equals instead of == *if (username.equals(kami) password.equals(kami)) Hope this will work -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: apk installation on mobilefromLinux machine
first check that your device connected to PC correctly by command adb devices it will show the list of devices attached to your PC. On Mon, Sep 14, 2009 at 3:49 PM, André Charles Legendre andre.legen...@gmail.com wrote: Hi I want to install an application apk from a Linux machine to a mobile phone (Samsung Galaxy) When I run adb install from Linux (Kubuntu 9.04), I get a message telling : no device found. Any Idea welcome Andre -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development --~--~-~--~~~---~--~~ 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: A question about mediaplayer could not play rtsp?
please start the player on onPreparedListener() On Wed, Sep 9, 2009 at 1:59 PM, yjshi shiyaju...@gmail.com wrote: I create a mplayer to play the rtsp on the emulator . when the mplayer play the http ,it is ok. -- MediaPlayer mplayer = new MediaPlayer(); mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/ 20090313/wenjiabao1.mp4); mplayer.prepare(); mplayer.start(); -- but when it play the rtsp, it does'nt work.the Wireshark shows UDP CHECKSUM INCORRECT. 80689.93080310.4.70.24125.76.233.38 UDPSource port: 59211 Destination port: 6971 [UDP CHECKSUM INCORRECT] -- Then I let the mplayer worked on the device,but it is also has some problems.Just like working on the emulator ,it doesn't play .Because it is in the device ,I could not use the Wireshark to catch the packets. I will be appreciate if anyone could give me a suggestion . Thanks. -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to read values from the server using Http GET method
hi here i am sending the simple post method code which connect to the server and read response you can use http get in place of post method may be this will help you code example: private void connectandgetresponse(final String arg_emailsStr) { Runnable ssr = new Runnable() { public void run() { String servResponse = ; // to send arguments if required List NameValuePair nvps = new ArrayList NameValuePair(); nvps.add(new BasicNameValuePair(arg1, Uri.encode(arg1value))); nvps.add(new BasicNameValuePair(arg2, Uri.encode(arg2value))); nvps.add(new BasicNameValuePair(arg3, Uri.encode(arg3Value))); /// as many as wanted. // connect to server and get response from server DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpost = new HttpPost(URL to connect); try { httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); HttpResponse response = httpclient.execute(httpost); HttpEntity my_entity = response.getEntity(); if(null != my_entity) { InputStream input_Stream = my_entity.getContent(); int len = (int)my_entity.getContentLength(); if(len 0) { Log.i(Length of content..,[+len+]); byte[] byteresp = new byte[len]; int st_pos = 0; int req_sz = len; int bytes_toRead = len; int read_cnt = 0; while(read_cnt bytes_toRead) { int read_now = 0; if(null != input_Stream) { read_now = input_Stream.read(byteresp,st_pos,req_sz); } if(-1 == read_now) { break; } read_cnt += read_now; st_pos += read_now; req_sz = bytes_toRead - read_cnt; } servResponse= new String(byteresp); Log.i(getClass().getSimpleName(),Response = [+servResponse+]); } else { Log.i(getClass().getSimpleName(), No response.); } } else { Log.i(getClass().getSimpleName(), my_entity = NULL ); } } catch (Exception e2) { e2.printStackTrace(); } } }; new Thread(ssr).start(); } On Sat, Aug 29, 2009 at 6:11 PM, ragavendran s sraghav.ra...@gmail.comwrote: how to read values from the server using Http GET method whenever i m passing the url to the server it returns same url in the textview i think i commited mistake in http connection using GET method..would u tel me pls how it is?.. pls... with regards, Raghav.S -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development --~--~-~--~~~---~--~~ 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: Create File into Android emulator ??
Hi Dany BREARD you have no permissions to access windows file system through emulator if u want to create a file use byte[] decoded = Base64.decode( StringBase64 ); File oText = new File(/sdcard/filename.ext); //or: File oText = new File( File); //FileNotFoundException FileOutputStream fStream = new FileOutputStream(oText); fStream.write(decoded); fStream.close(); set sdcard while launching the emulator by -sdcard option On Mon, Aug 17, 2009 at 3:02 PM, Dany BREARD dany.bre...@gmail.com wrote: Maybe is about Security and Permissions or User IDs and File Access On Aug 17, 9:53 am, Dany BREARD dany.bre...@gmail.com wrote: All Errors: 08-17 07:50:29.964: WARN/System.err(860): java.io.FileNotFoundException: /C:/Documents and Settings/.../ workspace/SocketInterface/File 08-17 07:50:29.984: WARN/System.err(860): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 231) 08-17 07:50:29.993: WARN/System.err(860): at java.io.FileOutputStream.init(FileOutputStream.java:96) 08-17 07:50:30.004: WARN/System.err(860): at java.io.FileOutputStream.init(FileOutputStream.java:69) 08-17 07:50:30.004: WARN/System.err(860): at com.dany.android.socketinterface.Client.start(Client.java:343) 08-17 07:50:30.025: WARN/System.err(860): at com.dany.android.socketinterface.TabVoicemail.onCreate (TabVoicemail.java:51) 08-17 07:50:30.044: WARN/System.err(860): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 08-17 07:50:30.044: WARN/System.err(860): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 08-17 07:50:30.054: WARN/System.err(860): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2112) 08-17 07:50:30.064: WARN/System.err(860): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) 08-17 07:50:30.073: WARN/System.err(860): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) 08-17 07:50:30.084: WARN/System.err(860): at android.widget.TabHost $IntentContentStrategy.getContentView(TabHost.java:600) 08-17 07:50:30.094: WARN/System.err(860): at android.widget.TabHost.setCurrentTab(TabHost.java:310) 08-17 07:50:30.103: WARN/System.err(860): at android.widget.TabHost.addTab(TabHost.java:203) 08-17 07:50:30.103: WARN/System.err(860): at com.dany.android.socketinterface.InterfaceGraphiqueVVM.onCreate (InterfaceGraphiqueVVM.java:24) 08-17 07:50:30.113: WARN/System.err(860): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 08-17 07:50:30.113: WARN/System.err(860): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 08-17 07:50:30.113: WARN/System.err(860): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 08-17 07:50:30.133: WARN/System.err(860): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-17 07:50:30.133: WARN/System.err(860): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 08-17 07:50:30.143: WARN/System.err(860): at android.os.Handler.dispatchMessage(Handler.java:99) 08-17 07:50:30.153: WARN/System.err(860): at android.os.Looper.loop (Looper.java:123) 08-17 07:50:30.153: WARN/System.err(860): at android.app.ActivityThread.main(ActivityThread.java:3948) 08-17 07:50:30.153: WARN/System.err(860): at java.lang.reflect.Method.invokeNative(Native Method) 08-17 07:50:30.153: WARN/System.err(860): at java.lang.reflect.Method.invoke(Method.java:521) 08-17 07:50:30.153: WARN/System.err(860): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 08-17 07:50:30.163: WARN/System.err(860): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 08-17 07:50:30.163: WARN/System.err(860): at dalvik.system.NativeStart.main(Native Method) On Aug 17, 9:29 am, Dany BREARD dany.bre...@gmail.com wrote: Hi I want to create new File into android or in my workspace but a FileNotFoundException is thrown. [syntax=java] byte[] decoded = Base64.decode( StringBase64 ); File oText = new File(C:/Documents and Settings/.../workspace/ SocketInterface, File); //or: File oText = new File( File); //FileNotFoundException FileOutputStream fStream = new FileOutputStream(oText); fStream.write(decoded); fStream.close(); [/syntax] How can I create my File ?? Maybe there is something to instantiate about android security or something other ??? Thanks in advance. Dany -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] Re: Create File into Android emulator ??
and also set permission writeOwnerData On Mon, Aug 17, 2009 at 3:39 PM, dillirao malipeddi dillir...@arijasoft.com wrote: Hi Dany BREARD you have no permissions to access windows file system through emulator if u want to create a file use byte[] decoded = Base64.decode( StringBase64 ); File oText = new File(/sdcard/filename.ext); //or: File oText = new File( File); //FileNotFoundException FileOutputStream fStream = new FileOutputStream(oText); fStream.write(decoded); fStream.close(); set sdcard while launching the emulator by -sdcard option On Mon, Aug 17, 2009 at 3:02 PM, Dany BREARD dany.bre...@gmail.comwrote: Maybe is about Security and Permissions or User IDs and File Access On Aug 17, 9:53 am, Dany BREARD dany.bre...@gmail.com wrote: All Errors: 08-17 07:50:29.964: WARN/System.err(860): java.io.FileNotFoundException: /C:/Documents and Settings/.../ workspace/SocketInterface/File 08-17 07:50:29.984: WARN/System.err(860): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 231) 08-17 07:50:29.993: WARN/System.err(860): at java.io.FileOutputStream.init(FileOutputStream.java:96) 08-17 07:50:30.004: WARN/System.err(860): at java.io.FileOutputStream.init(FileOutputStream.java:69) 08-17 07:50:30.004: WARN/System.err(860): at com.dany.android.socketinterface.Client.start(Client.java:343) 08-17 07:50:30.025: WARN/System.err(860): at com.dany.android.socketinterface.TabVoicemail.onCreate (TabVoicemail.java:51) 08-17 07:50:30.044: WARN/System.err(860): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 08-17 07:50:30.044: WARN/System.err(860): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 08-17 07:50:30.054: WARN/System.err(860): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2112) 08-17 07:50:30.064: WARN/System.err(860): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) 08-17 07:50:30.073: WARN/System.err(860): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) 08-17 07:50:30.084: WARN/System.err(860): at android.widget.TabHost $IntentContentStrategy.getContentView(TabHost.java:600) 08-17 07:50:30.094: WARN/System.err(860): at android.widget.TabHost.setCurrentTab(TabHost.java:310) 08-17 07:50:30.103: WARN/System.err(860): at android.widget.TabHost.addTab(TabHost.java:203) 08-17 07:50:30.103: WARN/System.err(860): at com.dany.android.socketinterface.InterfaceGraphiqueVVM.onCreate (InterfaceGraphiqueVVM.java:24) 08-17 07:50:30.113: WARN/System.err(860): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 08-17 07:50:30.113: WARN/System.err(860): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 08-17 07:50:30.113: WARN/System.err(860): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 08-17 07:50:30.133: WARN/System.err(860): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-17 07:50:30.133: WARN/System.err(860): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 08-17 07:50:30.143: WARN/System.err(860): at android.os.Handler.dispatchMessage(Handler.java:99) 08-17 07:50:30.153: WARN/System.err(860): at android.os.Looper.loop (Looper.java:123) 08-17 07:50:30.153: WARN/System.err(860): at android.app.ActivityThread.main(ActivityThread.java:3948) 08-17 07:50:30.153: WARN/System.err(860): at java.lang.reflect.Method.invokeNative(Native Method) 08-17 07:50:30.153: WARN/System.err(860): at java.lang.reflect.Method.invoke(Method.java:521) 08-17 07:50:30.153: WARN/System.err(860): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 08-17 07:50:30.163: WARN/System.err(860): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 08-17 07:50:30.163: WARN/System.err(860): at dalvik.system.NativeStart.main(Native Method) On Aug 17, 9:29 am, Dany BREARD dany.bre...@gmail.com wrote: Hi I want to create new File into android or in my workspace but a FileNotFoundException is thrown. [syntax=java] byte[] decoded = Base64.decode( StringBase64 ); File oText = new File(C:/Documents and Settings/.../workspace/ SocketInterface, File); //or: File oText = new File( File); //FileNotFoundException FileOutputStream fStream = new FileOutputStream(oText); fStream.write(decoded); fStream.close(); [/syntax] How can I create my File ?? Maybe there is something to instantiate about android security or something other ??? Thanks in advance. Dany -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development -- Dilli Rao. M Software
[android-developers] Re: Andriod applications and obfuscation
Yes, i did obfuscation successfully using proguard4.4beta3 it's fine.. working i did based on example .pro files provided On Thu, Jul 23, 2009 at 9:55 AM, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Is any once successful in using obfuscation of .apk files. Are there any good documentation on options to be used with progaurd or any other obfucator. Regarrds, Raja Nagendra kumar, C.T.O www.tejasoft.com -- Dilli Rao. M Software Developer www.arijasoft.com - a pioneer in Mobile App Development --~--~-~--~~~---~--~~ 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: Force close msg for few seconds when application starts, why?
Please go through API demos In that progress bar examples are give and really help full Thank you On Wed, May 13, 2009 at 12:20 PM, sheik sheik...@gmail.com wrote: Thanks...the above refrence and sample code really helped in understanding threads and UI in android... Now i am looking for progress bar examples whr i can add it and make it enable wen i am sending data to the internet.. Kindly suggest on it... regards, sheik On May 11, 5:19 pm, dillirao malipeddi dillir...@arijasoft.com wrote: bellow code will connect to the url specified in the start_Download_Content( url to connect); and prints the response. may be this will help you and also set timeout as 10 sec import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import org.apache.http.client.HttpClient; import org.apache.http.client.ResponseHandler; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.BasicResponseHandler; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.BasicHttpParams; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class download extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); startDownload(); } /* static final String talam_vedike_chotu = http://www.arijasoft.com/customer_demos/Arija_Android_Dev/sdk/aor/cho... ?; String okato_argument = testnuller; String rendo_argument = null; String aakari_padasmooham = talam_vedike_chotu + mana_thalam= + okato_argument + vadi_thalam= + rendo_argument ; String sodhana_falitham = new String(); */ private void startDownload() { // TODO Auto-generated method stub Runnable downloader = new Runnable() { @Override public void run() { // TODO Auto-generated method stub start_Download_Content(http://your connection); } }; new Thread(downloader).start(); } public String start_Download_Content(String url_Pls)//throws Exception { int TIMEOUT_MILLISEC = 1; //=10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams, TIMEOUT_MILLISEC); //set connection time out HttpConnectionParams.setSoTimeout(my_httpParams, TIMEOUT_MILLISEC); // set socket time out HttpClient httpclient = new DefaultHttpClient(my_httpParams); //get http client with given params String responseBody = null; try { HttpGet httpget = new HttpGet(url_Pls); Log.i(PLS CONTENT GET,executing request + httpget.getURI()); // Create a response handler ResponseHandlerString responseHandler = new BasicResponseHandler(); responseBody = httpclient.execute(httpget, responseHandler); } catch(Exception e) { Log.i(Exception,Http Connection+e.toString()); } String _Content = responseBody; Log.i(,-START---); Log.i(Response,+_Content); Log.i(,---END-); return pls_Content; } } On Mon, May 11, 2009 at 5:23 PM, sheik sheik...@gmail.com wrote: Hi.. i am facing similar problem..as i am using network connection in the main threadcan u fwd any code regarding creating thread inorder to send the request...and thus avoiding force close error... kindly help in this regard.. thanking you..in advance.. regards, Sheik; On Mar 13, 4:40 pm, dillirao malipeddi dillir...@arijasoft.com wrote: don't do any complex operations like network connection.. etc on main thread for those operations use separate thread if any time taken operations on main thread will cause fource close exception try to keep main thread as simple as possible.. On Fri, Mar 13, 2009 at 5:05 PM, zeeshan genx...@gmail.com wrote: Hi Android Experts, i am having a force close Dialogue msg for few seconds when i run my application. can anyone tell me why is that and how can i resolve it. do i need to use thread to start my main activity? any solution? -- Dilli Rao. M -- Dilli Rao. M -- Dilli Rao. M --~--~-~--~~~---~--~~ 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
[android-developers] Re: Seek bar sequence
Hi, set the seek bar max size to (totalplaytime/1000) and ever sec try to fill the seek bar you have to write a thread and at every 1 sec intervals you have to get the player cur position and check with the previous position then fill the seekbar. sleep the current thread for 1 sec and after resume from sleep get the current position and do the required operation. this is also work for pause condition ( check cur_position with previous position) Thank you. On Mon, May 11, 2009 at 5:24 PM, Muthu Kumar K. muthum...@gmail.com wrote: Hi All, I have developed seek bar component (I am showing while playing the song). If i seeks the bar the song is getting changed the position based on the seek bar change event, and playing fine. But if I leave the seek bar it is not moving based on the song sequence. I know we have to do something for that. Can any one tell me how to get the event for moving the seek bar based on the song sequence. Thanks in Advance, Muthu Kumar K. -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Debugger Log information on device
i want to see the logs of the Android OS source code (which is in c++) On Tue, May 5, 2009 at 3:47 PM, maha lakshmi maha2...@gmail.com wrote: Hi, If you want see the logs from your C++ application, follow these steps. 1. use fprintf(stderr,..._); to print the logs in your source code. 2. launch ./emulator -shell 3. In another prompt, Type these commands $ adb shell stop $ adb shell setprop log.redirect-stdio true $ adb shell start 4. Then type $ adb logcat It will display all the logs from the emulator. On 5/5/09, Fred Grott(shareme) fred.gr...@gmail.com wrote: are you referring to the log in the traces file? On May 5, 4:18 am, Dilli dilliraomca...@gmail.com wrote: Hi all I am developing an application using media player I want to print total log to printed ( with the logs in the source code of android - media player) ie. the android(os) source code is in c++ and i trace the code and see the printing of error messages. but while compiling my project source and running on device i cant see the messages printed in android source I enabled device debugging in android manifest file. I want to print the error messages those are placed in android source (os) can any one tell me how to achieve this. Thank you -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Debugger Log information on device
sorry for disturbing you i cant write fprintf() in java application am i doing in correct way.. On Tue, May 5, 2009 at 3:57 PM, maha lakshmi maha2...@gmail.com wrote: Yes... just try it out... On 5/5/09, dillirao malipeddi dillir...@arijasoft.com wrote: i want to see the logs of the Android OS source code (which is in c++) On Tue, May 5, 2009 at 3:47 PM, maha lakshmi maha2...@gmail.com wrote: Hi, If you want see the logs from your C++ application, follow these steps. 1. use fprintf(stderr,..._); to print the logs in your source code. 2. launch ./emulator -shell 3. In another prompt, Type these commands $ adb shell stop $ adb shell setprop log.redirect-stdio true $ adb shell start 4. Then type $ adb logcat It will display all the logs from the emulator. On 5/5/09, Fred Grott(shareme) fred.gr...@gmail.com wrote: are you referring to the log in the traces file? On May 5, 4:18 am, Dilli dilliraomca...@gmail.com wrote: Hi all I am developing an application using media player I want to print total log to printed ( with the logs in the source code of android - media player) ie. the android(os) source code is in c++ and i trace the code and see the printing of error messages. but while compiling my project source and running on device i cant see the messages printed in android source I enabled device debugging in android manifest file. I want to print the error messages those are placed in android source (os) can any one tell me how to achieve this. Thank you -- Dilli Rao. M -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: expandable list view
you can use @Override public void onGroupExpand(int groupPosition) { // TODO Auto-generated method stub super.onGroupExpand(groupPosition); Toast.makeText(ExpandableList1.this, Group Clicked on pos = + groupPosition, Toast.LENGTH_SHORT).show(); } for get selected group position i think this will help you On Tue, Apr 7, 2009 at 5:09 PM, google swapna.annaman...@gmail.com wrote: hi, i am creating expandable list with group and childs, i am able to handle onchildclick() but not able to handle ongroupclick() can anybody helps in this regards, chandra -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Vista does not access G1 memory card
When you connect the device to your PC then 1) In the phone notification area it will display connect to USB open the notification and click on mount then it will allow you to access memory card I think it will help you On Thu, Apr 2, 2009 at 3:07 AM, intbt tacbe...@gmail.com wrote: I am trying to access the memory card but Vista says please insert a disk into removable disk H: and will not permit me to load files into the card. Any ideas as to what is wrong? -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Passing a 2 dimensional array to an Activity
you can do in this way also... Use a static two dimensional array in separate class and use it in service and activity On Wed, Apr 1, 2009 at 11:25 AM, Zhubham sahilz...@gmail.com wrote: Hi, I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE. How can I achieve this in minimum number of statements (as in avoiding putExtras for each and every string stored in the array)?? Please help me with this. Thanks. Best Regards, Zhubham -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do I know where my app received an ANR
You must not run any complex operations on main thread like i/o , or network operations for those operations use separate thread , otherwise it will cause ANR On Wed, Apr 1, 2009 at 1:32 PM, idev ideveloper...@gmail.com wrote: Hi Is there a way of finding out where my app threw an ANR (Application Not Responding). I took a look at the traces.txt file in /data and I see a trace for my application. This is what I see in the trace. DALVIK THREADS: main prio=5 tid=3 TIMED_WAIT | group=main sCount=1 dsCount=0 s=0 obj=0x400143a8 | sysTid=691 nice=0 sched=0/0 handle=-1091117924 at java.lang.Object.wait(Native Method) - waiting on 0x1cd570 (a android.os.MessageQueue) at java.lang.Object.wait(Object.java:195) at android.os.MessageQueue.next(MessageQueue.java:144) at android.os.Looper.loop(Looper.java:110) at android.app.ActivityThread.main(ActivityThread.java:3742) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Binder Thread #3 prio=5 tid=15 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x434e7758 | sysTid=734 nice=0 sched=0/0 handle=1733632 at dalvik.system.NativeStart.run(Native Method) Binder Thread #2 prio=5 tid=13 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x433af808 | sysTid=696 nice=0 sched=0/0 handle=1369840 at dalvik.system.NativeStart.run(Native Method) Binder Thread #1 prio=5 tid=11 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x433aca10 | sysTid=695 nice=0 sched=0/0 handle=1367448 at dalvik.system.NativeStart.run(Native Method) JDWP daemon prio=5 tid=9 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x433ac2a0 | sysTid=694 nice=0 sched=0/0 handle=1367136 at dalvik.system.NativeStart.run(Native Method) Signal Catcher daemon prio=5 tid=7 RUNNABLE | group=system sCount=0 dsCount=0 s=0 obj=0x433ac1e8 | sysTid=693 nice=0 sched=0/0 handle=1366712 at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=5 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x4253ef88 | sysTid=692 nice=0 sched=0/0 handle=1366472 at dalvik.system.NativeStart.run(Native Method) - end 691 - How can I find out where the problem is? Thanks. -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem on creating Socket
int SOCKET_TIMEOUT = 1; //10 sec InetSocketAddress myAddRess = new InetSocketAddress(url_connect,port ); //InetSocketAddress(InetAddress address, int port) try { //1. creating a socket to connect to the server Log.i(connecting to :+url_connect+], at port [+port+]); //requestSocket.setSoTimeout(SOCKET_TIMEOUT); //set time out for this scoket //if(myDebug.debug_Log)Log.i(SetSocketTimeOut,---WHILE CONNECTING SET TO 10 sec); requestSocket = new Socket();//(url_connect, port); try { Log.i(Try,To connect in 10 sec); requestSocket.connect(myAddRess, SOCKET_TIMEOUT); } catch (SocketTimeoutException SE) { Log.i(SocketTimeoutException,---+SE.toString()); requestSocket.close(); requestSocket = null; } } catch(Exception e) { Log.i(Exception,--is+e.tostring()); } This will try to connect with in 10 sec if not connected the timeout exception will raise On Tue, Mar 24, 2009 at 12:55 PM, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all, I'm working at an application about network and faced some problem.I did a client which will send some data to the server.But, if the server is not open, my client will in trouble. Here is the code and exact state: try{ Socket netSocket = new Socket(10.0.2.2, 9001); / *Problem is in this line*/ /* At this line, when I try to create a socket binding to the local PC, the program will pause for very long time(almost 5 mins) and then go to IOExcption handling code where shows The operation timed out..When the server in my local PC is running, everything is OK.I need the program can response immediately, can anyone help me? */ .. } catch (UnknownHostException e) { Log.d(SoControl, UnknownHostException : + e.getLocalizedMessage()); } catch (IOException e) { Log.d(SoControl, IOException : + e.getLocalizedMessage()); } -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: jarsigner jar sign apk update
when you want to update application in the device it checks for the previous key info with modifications. it wont allow you to sign same application with different signs if you want to use different keys you must change your package name of your application then it wont give error. otherwise it will give the error because it store installed application details in the system folder as xml file when you want to update an application it will check with previous one with same package On Tue, Mar 17, 2009 at 6:17 PM, Maxence Warzecha war...@gmail.com wrote: Hi all, This is what I did : - I signed my apk. - I published my apk. - I updated my application. - I sign my new apk file succesfully (**with an other keystore**). - I upload my new apk. - When poeple what to install updated version, they receive message look like apk file was not signed correctly. If they uninstall previous version, they are able to install new version (piouf...). I don't understand why. Can you tell me if need to keep my previous keystore *OR* with similar information? Or ...? Thank you! Max -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How the use same instances when launching application twice ?
when you create a new intent set flag as your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(your_intent); On Tue, Mar 17, 2009 at 2:56 PM, Derek cram.de...@gmail.com wrote: Hi, Is it possible to re-use all the instances of Activities and Services when an application is launched twice. For instance: 1/ I start my application APP1. Some activities are launched and a service is started. 2/ I click Home device button 3/ I can see the icon the launch again my application APP1 4/ I click on it and the APP1 is launched twice I would like to re-use the existing the instances of Activities and Services from the first launch. I guess it is related to SingleTop or SingleTask but it doesn't seem to work. Any suggestion ? -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to read the file in sdcard?
if you want to read the file from sdcard by programatically File myfile = new File(/sdcard/sample.xml); or if you want to get the dump the file to your system from command prompt you can use to get the file -- adb pull to insert the file to sdcard -- adb push OR you can do it by open ddms while running emulator/devise in device category choose file explore then it will display tree structure under sdcard you can found your files use given menu options pull and push to transfer files to and from the device i think this will help you Thank you if you want On Mon, Mar 16, 2009 at 11:57 AM, AlexNguyen alexnt...@gmail.com wrote: I have the file in sdcard: sample.xml I want to read it, so I dont know some code to connect to sdcard in android. Anyone help me, please? Thanks -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: TextView bug or feature?
use yourtextview.setVisibility(View.VISIBLE); //visible yourtextview.setVisibility(View.INVISIBLE); //In visible yourtextview.setVisibility(View.GONE); // removes the view it will work On Fri, Mar 13, 2009 at 4:13 PM, Pd lotusscr...@gmail.com wrote: Just had an odd problem with a TextView. Setting the visibility doesn't seem to work but doing the same on say a ScrollView does. Is this normal? -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Force close msg for few seconds when application starts, why?
don't do any complex operations like network connection.. etc on main thread for those operations use separate thread if any time taken operations on main thread will cause fource close exception try to keep main thread as simple as possible.. On Fri, Mar 13, 2009 at 5:05 PM, zeeshan genx...@gmail.com wrote: Hi Android Experts, i am having a force close Dialogue msg for few seconds when i run my application. can anyone tell me why is that and how can i resolve it. do i need to use thread to start my main activity? any solution? -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: apply color to Button
Thank you it works fine now.. On Thu, Mar 12, 2009 at 9:52 PM, Sundog sunns...@gmail.com wrote: Make sure the color you're sending has an alpha component. On Mar 12, 10:17 am, Dilli dilliraomca...@gmail.com wrote: Hi all, I am developing a simple GUI with three buttons i want to fill the button with color but i found back ground color. if i set mybutton.setBackgroundcolor (color); it's not visible how can i fill the button with color.. need help Thank you Dilli -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Using custom jar files in Android app?
you can create your own jar file by select right click on project of which you want to make jar and select export choose jar under java and select the .java files you want to make a jar and it will create jar for you and you can use that as 3rd party jar On Thu, Mar 12, 2009 at 10:20 AM, Shadakshari Hiremath shad...@gmail.comwrote: Hi Dirk, Thanks for your response. One more question. Is it possible to build a jar file from source in eclipse for some core modules? If yes then how? If not then is it possible by writting a make file? Please provide a sample. BR Shaddu On 12/03/2009, indiabolbol.com bolbolin...@gmail.com wrote: create a folder called lib and put 3rd party jar in there. Then add a reference to the jar in Eclipse as any other java app. On Mar 6, 1:22 pm, Dirk Jäckel dirk.jaec...@gmail.com wrote: Hi! I use thrid-party jars with my application. All it takes is the dx-compiler transforming the classfiles to dex-files. It might also be neccessary to have a uses-library statement in your manifest. Like: uses-library android:name=android.awt/ Its explained for eclipse here: http://groups.google.com/group/android-developers/browse_thread/threa. .. It is _not_ necessary to compile (.java - .class) the jars with the android sdk. Dirk -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Accessing the internet.
public String get_DAtaFromWeb(String url_toconnect)//throws Exception { int connection_Timeout = 1;// 10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout); HttpConnectionParams.setSoTimeout(my_httpParams,connection_Timeout); HttpClient httpclient = new DefaultHttpClient(my_httpParams); //get http client with given params String responseBody = null; try { HttpGet httpget = new HttpGet(url_Pls); if(myDebug.debug_Log)Log.i(CONTENT GET,executing request + httpget.getURI()); // Create a response handler ResponseHandlerString responseHandler = new BasicResponseHandler(); responseBody = httpclient.execute(httpget, responseHandler); } catch(Exception e) { if(myDebug.debug_Log)Log.i(Exception,Http Connection+e.toString()); } String Content = responseBody; if(myDebug.debug_Log)Log.i(,-START---); if(myDebug.debug_Log)Log.i(Response,+Content); if(myDebug.debug_Log)Log.i(,---END-); return Content; } On Mon, Mar 9, 2009 at 4:53 PM, murphy howt...@hotmail.com wrote: Hi all, Was just wondering if anyone had any code samples about writing and retrieving data from a website? I am currently creating an application which populates its textviews by accessing information from an online source. Thanks, Murphy. -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to see image and media files in SDCard from emulator
you can browse the sdcard by ddms - device - fileexplore you can push and pull files from that and also browse the files in which folder you placed On Fri, Mar 6, 2009 at 2:47 PM, Nithin nithin.war...@gmail.com wrote: Hi , When we insert images or media files to sdcard, how we can see this in emulator, means in which folder, i inserted some images and checked in pictures, but i cant see anything there, just blank only --No Pictures found displaying. For media i checked in Media scanner under 'Dev tools, there also cant see anything. Can anybody guide me in this issue. Thanks Nithin -- Dilli Rao. M --~--~-~--~~~---~--~~ 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: Refresh Notification after deleting from user
while creating notification set flags as FLAG_NO_CLEAR then the notification remains after user clicks clear notification Notification my_notification = new Notification(R.drawable.iconl, status_text, System.currentTimeMillis()); my_notification .flags = Notification.FLAG_NO_CLEAR; i think this will help you On Thu, Mar 5, 2009 at 2:26 PM, Manfred manfred.fettin...@gmail.com wrote: Hi! I have a Backgroundservice running, an icon is displayed in the status- bar. When a user clicks the button delete notifications my icon dissappears also. But i want that after that my icon appears again! So that the user is able to click on the notification to get into my application. Now i display the notification in a thread every time. But i want to display it only if it was deleted. I think the best way is to check if the notification is displayed, is there a way to get this information? Thanks manfred -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: MediaPlayer not running - just blank screen
did you get any error in ddms logcat ? may be your player gives error while try to play On Thu, Mar 5, 2009 at 3:14 PM, nithin nithin.war...@gmail.com wrote: Thanks for your reply, but still not working.. Now i am trying with this code... import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.widget.MediaController.MediaPlayerControl; public class Monster extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnPreparedListener { SurfaceView mPreview; SurfaceHolder holder; MediaPlayer mediaplayer; int mVideoWidth,mVideoHeight; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bushentry); mPreview = (SurfaceView)findViewById(R.id.surface); holder = mPreview.getHolder(); holder.addCallback(this); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); mediaplayer = MediaPlayer.create(this, R.raw.monster); mediaplayer.start(); mediaplayer.setDisplay(holder); mediaplayer.setOnPreparedListener(this); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } public void surfaceCreated(SurfaceHolder holder1) { mVideoWidth = mediaplayer.getVideoWidth(); mVideoHeight = mediaplayer.getVideoHeight(); if (mVideoWidth != 0 mVideoHeight != 0) { holder.setFixedSize(mVideoWidth, mVideoHeight); mediaplayer.start(); } } public void surfaceDestroyed(SurfaceHolder holder) { } public void onPrepared(MediaPlayer mp) { mVideoWidth = mediaplayer.getVideoWidth(); mVideoHeight = mediaplayer.getVideoHeight(); if (mVideoWidth != 0 mVideoHeight != 0) { holder.setFixedSize(mVideoWidth, mVideoHeight); mediaplayer.start(); } } } Still, the same problem, no error, but blank screen, any idea please.. Nithin On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote: You need to tell the mediaplayer where to display the video with setDisplaySurface(). Check out the media demo apps on developer.android.com. On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote: hi, I tried a simple mediaplayer application, just to run a .3gp file. First, i put the .3gp file in Raw folder and tried to run, but nothing is displaying, just blank screen only please guide me, where i am going wrong. I dont have any xml file, is it needed ?? heres the code, which i am trying import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; public class MonsterEntry extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MediaPlayer mediaplayer = MediaPlayer.create(this, R.raw.monster); mediaplayer.start(); } } Thanks Nithin -- Dilli Rao. M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to know the status of the MediaPlayer?
If you download and play files from net you will get 1) OnPreparedListener() 2) OnBufferU[dateListener() you must start player after you get onPreparedListener otherwise you will get Mediaplayer exception On Wed, Mar 4, 2009 at 9:26 PM, Marco Nelissen marc...@android.com wrote: On Tue, Mar 3, 2009 at 8:27 PM, manoj manojkumar.m...@gmail.com wrote: Hi, I am developing a media player application which downloads from internet and plays. Do you mean that it streams, e.g. you call MediaPlayer.setDataSource(http://yourhost.com/yourfile.mp3;), or are you really downloading the file first, and then playing back the downloaded copy? -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: MediaPlayer not running - just blank screen
you must set parameters for playing video see api demos - examples media - video demo player On Thu, Mar 5, 2009 at 1:15 PM, Nithin nithin.war...@gmail.com wrote: hi, I tried a simple mediaplayer application, just to run a .3gp file. First, i put the .3gp file in Raw folder and tried to run, but nothing is displaying, just blank screen only please guide me, where i am going wrong. I dont have any xml file, is it needed ?? heres the code, which i am trying import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; public class MonsterEntry extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MediaPlayer mediaplayer = MediaPlayer.create(this, R.raw.monster); mediaplayer.start(); } } Thanks Nithin -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Request to device test the Android Application
Hi You can use emulator also for GPS by giving latitude and longitude values in ddms Currently i am testing my GPS based application on emulator and they working fine On ddms in right side tabs Emulator Control in that give Latitude and Langitude values of the area and click send button at the time of your application searching for location through GPS It will work as real device I think this may little help to you Thanks Dilli On Thu, Feb 26, 2009 at 7:52 PM, Niti nitichan...@gmail.com wrote: Hi, We have been developing mobile applications for various mobile platforms and have recently started Android development. We are facing a small problem and looking for a volunteer who can just device test the application for us. Unfortunately, we were not able to device test the application. We are planning to upgrade the current application with some new features, some of them based on GPS, which are not possible to test on the emulators. These features are to enhance the user experience and increase the ease of searching the restaurants of their choice in their locality. It would be really great if anybody can volunteer for the device testing of the application, before we upload an upgrade on Android Market. This will help us develop a better application for the users, and at the same time we will have your valuable feedback on the applications. Thanks Regards, Nitichandra Ingle MoFirst Solutions Pvt. Ltd. --~--~-~--~~~---~--~~ 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: java.net.SocketException: The operation timed out............not behind proxy
if you want to set connection time out use bellow code int TIMEOUT_MILLISEC = 1; //=10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams, TIMEOUT_MILLISEC); //set conn time out HttpConnectionParams.setSoTimeout(my_httpParams, TIMEOUT_MILLISEC); // set socket time out HttpClient httpclient = new DefaultHttpClient(my_httpParams); //get http client with given params --- Dont do any I/O operations on Main thread please use another thread to connect to net the main thread will give force close exception every time if it delays by any I/O operations On Wed, Feb 25, 2009 at 4:23 PM, Pratap pratap.sola...@gmail.com wrote: I'm developing an app which needs to connect to the internet, but when i send a request using DefaultHtpClient.execute() method it takes 2-3 minutes and then the stacktrace says java.net.SocketException:operation timed out does anybody knos how to solve the problem...reply as soon as posible here is the stack trace... 02-25 10:11:53.839: WARN/System.err(211): java.net.SocketException: The operation timed out 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl (Native Method) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connect (OSNetworkSystem.java:119) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:227) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:521) 02-25 10:11:53.940: WARN/System.err(211): at java.net.Socket.connect(Socket.java:945) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket (PlainSocketFactory.java:117) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:129) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:164) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:119) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:348) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:555) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:487) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:465) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.registeraction (RegisterActivity.java:95) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.checkInput(RegisterActivity.java: 129) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity$1.onClick(RegisterActivity.java: 54) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.performClick(View.java:2109) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.onTouchEvent(View.java:3523) 02-25 10:11:53.950: WARN/System.err(211): at android.widget.TextView.onTouchEvent(TextView.java:4410) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.dispatchTouchEvent(View.java:3178) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1085) 02-25 10:11:53.950: WARN/System.err(211): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 02-25 10:11:53.960:
[android-developers] Re: Need help about Intent
in your first Activity Intent my_intent = new Intent(FirstScreen.this.getApplication(), SecondScreen.class); my_intent.putExtra(Value_String, HaiHow R U); startActivity(intent); in your Second Activity in onCreate Bundle extras = getIntent().getExtras(); String fromFirstActivity= extras.getString(Value_String); you can use fromFirstActivity as from previous activity value imp: the value pasesed in putExtras() // Value_String use the same for get the value in second Activity On Tue, Feb 24, 2009 at 2:12 PM, gganesh ganesh@gmail.com wrote: but the codeyour_extras.getExtras(myval) ; didn't work ,i suppose there is no such method in Bundle class i tried as show below Bundle your_extras = this.getIntent().getExtras(); String val = (String) your_extras.get(myval); but the val doesn't gives me the required data Any suggestions ? Thanks On Feb 24, 10:46 am, dillirao malipeddi dillir...@arijasoft.com wrote: you have to use Bundle your_extras = getIntent.getExtras(); String val = your_extras.getExtras(myval); On Tue, Feb 24, 2009 at 11:08 AM, gganesh ganesh@gmail.com wrote: hi friends, i have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2 i wrote in onCreate method of Screen1 class t=(EditText)findViewById(R.id.ed1); b=(Button)findViewById(R.id.but1); b.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent i= new Intent(v.getContext(),Screen2.class); i.putExtra(myval,t.toString()); startActivity(i); } My doubt is ,how to receive myval data in Screen2 class ,what is the code i have to add in AndroidManifest.xml file -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Need help about Intent
in your first Activity b.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { load_SecondActivity() } } load_SecondActivity() { Intent my_intent = new Intent(FirstScreen.this.getApplication(), SecondScreen.class); my_intent.putExtra(Value_String, HaiHow R U); startActivity(my_intent); } in your Second Activity in onCreate Bundle extras = getIntent().getExtras(); String fromFirstActivity= extras.getString(Value_String); you can use fromFirstActivity as from previous activity value On Tue, Feb 24, 2009 at 2:32 PM, dillirao malipeddi dillir...@arijasoft.com wrote: in your first Activity Intent my_intent = new Intent(FirstScreen.this.getApplication(), SecondScreen.class); my_intent.putExtra(Value_String, HaiHow R U); startActivity(intent); in your Second Activity in onCreate Bundle extras = getIntent().getExtras(); String fromFirstActivity= extras.getString(Value_String); you can use fromFirstActivity as from previous activity value imp: the value pasesed in putExtras() // Value_String use the same for get the value in second Activity On Tue, Feb 24, 2009 at 2:12 PM, gganesh ganesh@gmail.com wrote: but the codeyour_extras.getExtras(myval) ; didn't work ,i suppose there is no such method in Bundle class i tried as show below Bundle your_extras = this.getIntent().getExtras(); String val = (String) your_extras.get(myval); but the val doesn't gives me the required data Any suggestions ? Thanks On Feb 24, 10:46 am, dillirao malipeddi dillir...@arijasoft.com wrote: you have to use Bundle your_extras = getIntent.getExtras(); String val = your_extras.getExtras(myval); On Tue, Feb 24, 2009 at 11:08 AM, gganesh ganesh@gmail.com wrote: hi friends, i have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2 i wrote in onCreate method of Screen1 class t=(EditText)findViewById(R.id.ed1); b=(Button)findViewById(R.id.but1); b.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent i= new Intent(v.getContext(),Screen2.class); i.putExtra(myval,t.toString()); startActivity(i); } My doubt is ,how to receive myval data in Screen2 class ,what is the code i have to add in AndroidManifest.xml file -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Start activity within a thread
create a handler like sample code final Handler mHandler = new Handler(); Runnable MyActivity= new Runnable() { public void run() { startMyActivity(); } }; in your thread use mHandler.post(MyActivity); and in startMyActivity() {} UI changes or new Activity loading etc... you can do the work as your wish -- it's necessary to stop the progress On Tue, Feb 24, 2009 at 2:53 PM, Rohit mord...@gmail.com wrote: What do you mean by use handler to start the activity. could you give me some example code? rohit On Feb 24, 1:21 am, Rohit mord...@gmail.com wrote: well y is an instance of of my class and foo() is defined by me so I start an activity, however, the caller (from the thread.run()) method is not something that I do. I just noticed someone calling it like that (from the Thread.run() method) and it was not working, hence my question...Is the problem that it is being called from a thread or that there is a progree dialog being showed? or neither? Rohit On Feb 23, 8:06 pm, dillirao malipeddi dillir...@arijasoft.com wrote: you must stop the progress by dialog by dismissdialog() and from your thread you must use handler to start an activity the right way to start any UI tasks in the thread is by using handlers On Tue, Feb 24, 2009 at 5:46 AM, Rohit mord...@gmail.com wrote: There is an activity that shows a progress dialog and starts a new thread to do some work. One method that is called from this thread starts a new activity. i.e. ThreadX has a run() method that calls y.foo(). y.foo() starts a new activity with teh flag Intent.FLAG_ACTIVITY_NEW_TASK When I run this - I see the progress dialog but I dont see the new activity starting up from within the thread. All the context information is present to the thread. Thanks Rohit -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Sample Notepadv3 Orientation Bug
Hi I think in your notepadv3 solution in editnote.java check for onSavedInstanceState() ie.. when you change the phone mode it will call the onDestroy() of current Activity and again calls the onCreate() so in your activity it will check mRowId value from bundle then it will cause exception to solve this, you must put the same value in onSavedinstanceState() because before onDestroy , onSavedinstanceState() will be called ==code- @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putLong(NotesDbAdapter.KEY_ROWID, mRowId); } i think it will solve you problem On Tue, Feb 24, 2009 at 7:00 AM, SurtaX garylo@gmail.com wrote: Looking at the sample Notepadv3 Solution project. (In Portrait Mode) When you press menu -- Add Note -- Change orientation to landscape, will produce Sorry! The application com.android.demo.notepad3(process com.android.demo.notepad3) has stopped unexpectedly. Please try again. Any ideas why it is doing this? And propose a fix? -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Start activity within a thread
you must stop the progress by dialog by dismissdialog() and from your thread you must use handler to start an activity the right way to start any UI tasks in the thread is by using handlers On Tue, Feb 24, 2009 at 5:46 AM, Rohit mord...@gmail.com wrote: There is an activity that shows a progress dialog and starts a new thread to do some work. One method that is called from this thread starts a new activity. i.e. ThreadX has a run() method that calls y.foo(). y.foo() starts a new activity with teh flag Intent.FLAG_ACTIVITY_NEW_TASK When I run this - I see the progress dialog but I dont see the new activity starting up from within the thread. All the context information is present to the thread. Thanks Rohit -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Regarding application resume
try to keep one mediaplayer object ie define a separate class and stroe mediaplayer object as static in that use that object every time and also store the currently playing file name when the your player screeen starts again check for previous file and curent file if they are equal dont start the player again other wise start it with new mwdia link better to keep the variables as static i think this may help you little On Tue, Feb 24, 2009 at 11:07 AM, Sagar Parmar sagar.india...@gmail.comwrote: Hello everyone, I have an application that plays audio when user clicks on the 1st screen..This 1st screen starts a new screen that plays audio. Now I want the functionality that when user lauches application again from home screen, it should resume. Right now it plays that audio again so audio is played twice. Please help...its urgent..thnx... -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Need help about Intent
you have to use Bundle your_extras = getIntent.getExtras(); String val = your_extras.getExtras(myval); On Tue, Feb 24, 2009 at 11:08 AM, gganesh ganesh@gmail.com wrote: hi friends, i have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2 i wrote in onCreate method of Screen1 class t=(EditText)findViewById(R.id.ed1); b=(Button)findViewById(R.id.but1); b.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent i= new Intent(v.getContext(),Screen2.class); i.putExtra(myval,t.toString()); startActivity(i); } My doubt is ,how to receive myval data in Screen2 class ,what is the code i have to add in AndroidManifest.xml file -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to install .apk to hardware board as app
use In Eclips right click on the Apidemos choose android tool - Export Unsigned Application Package and sign the apk file and install it on device http://code.google.com/android/devel/sign-publish.html On Tue, Feb 24, 2009 at 11:49 AM, susanner zsusan...@163.com wrote: I want to install Apidemo.apk as one of apps to my hardware board, how can I achieve this? -- 网易邮箱,中国第一大电子邮件服务商 http://www.yeah.net -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Yes/No Dialog
int DIALOG_YES_NO_MESSAGE = 999; protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_YES_NO_MESSAGE: return new AlertDialog.Builder(Visited_channels.this) .setTitle(title) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { // User clicked OK so do some stuff System.out.println(OK clicked.); } }) .setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { // User clicked Cancel so do some stuff System.out.println(cancel clicked.); } }) .create(); } return null; } and call showDialog(DIALOG_YES_NO_MESSAGE); On Mon, Feb 23, 2009 at 11:56 AM, Bob bshumsk...@yahoo.com wrote: Hi, How do I display a simple yes/no or ok/cancel dialog with a title and react to the user choice? Thanks, Bob -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Starting an Activity by sending an Intent with Extra Data
Hi in second secondActivity's onCreate() try Bundle extras = getIntent().getExtras(); int value = extras.getInt(com.foo.bar.android.app.rowid); you can get value of first intent in variable value On Thu, Feb 19, 2009 at 4:52 PM, Graeme graeme.br...@btinternet.com wrote: Hi I have a newbie question which is puzzling me regarding using Intents to start a new Activity but passing some data with the Intent for the new Activity to use. My app has (say) MainActivity from which I want to launch a second activity, SecondActivity, within the same app, whilst I pass an integer parameter to SecondActivity. In MainActivity I want to use an explicit component with my Intent like this, MainActivity FRAGMENT BEGIN int rowId ; rowId = some-value ; // want to start SecondActivity and pass this value to it. Intent i = new Intent( this, SecondActivity.class ); // Now add rowId as Extra Data i.putExtra(com.foo.bar.android.app.rowid, rowId); // start the Activity startActivity(i); MainActivity FRAGMENT END Now my problem is : how do I receive the Intent when SecondActivity gets started and recover the value of the integer parameter ? Which member function of class SecondActivity extends Activity { SNIP... } will receive the Intent ? SecondActivity::onCreate() ? Or do I need to register a BroadcastReceiver with SecondActivity whose onReceive() method would pick up the Intent ? What is the recommended way of doing this within the Android Framework ? Thanks for any help Graeme -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: get orientation via SensorListener
Hi if you want to display your Activity in only one mode (landscape / portrait) in your androidmanifest.xml file set android:screenOrientation=portrait or android:screenOrientation=landscape like example activity android:name=List14 android:screenOrientation=portrait android:label=myWindow/activity for the Activities you want On Thu, Feb 19, 2009 at 5:23 PM, Christian Wiesbauer christian.wiesba...@bdc.at wrote: Hi, I have a view which is always displayed in landscape. So I use the onSensorChanged (int sensor, float[] values) method from SensorListener to find out how the phone is held. Does anybody know the ranges of values[0], values[1] and values[2] to find out the orientation (landscape or portrait)? Thanks and best regards Christian Wiesbauer -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Thread stopping
Thank you all it's works cool with your Suggestions, it helps a lot. On Wed, Feb 18, 2009 at 9:43 PM, Blake B. bbuckle...@yahoo.com wrote: You don't need to do anything complicated - use Handler.postDelayed (Runnable r, long delayMS) like Stoyan mentioned. Be sure to keep a reference to your Runnable r so you can call removeCallbacks(r) like Romain mentioned when your activity is pre- empted before the posted Runnable executes. This is also helpful in that you can re-use r if you need to. Nice and simple. On Feb 18, 3:30 am, Stoyan Damov stoyan.da...@gmail.com wrote: ...or take care of threading properly - instead of Thread.sleep, use a monitor and wait on it with a timeout. Here's the pseudo code (catching InterruptedException omitted): // in your main thread // when you launch the secondary thread make sure it's running before you do anything else synchronized (secondaryThreadRunning) { secondaryThread = new ... secondaryThread.start(); secondaryThreadRunning.wait(); } // before you exit the app (e.g. onStop) synchronized (secondaryThreadStopMonitor) { secondaryThreadShouldStop = true; secondaryThreadStopMonitor.notify(); secondaryThread.join(); // wait for it to finish } // 1st line in the secondary thread's run() // signal main thread we're up and running synchronized (secondaryThreadRunning) { secondaryThreadRunning.notify(); } // in the secondary thread where you want to wait and then post synchronized (secondaryThreadStopMonitor) { secondaryThreadStopMonitor.wait(your timeout); if (secondaryThreadShouldStop) { // break the loop (if you have one) and exit the thread (i.e. let it return from run()) } else { // timed out, post to your handler [1] } } [1] You might get a spurious wake here, so it's best to track the elapsed time manually In any case, make sure you're not doing too much work, it seems that you can simply use: Handler.postDelayed(Runnable r, long delayMillis) and in your handler do it again Cheers, Stoyan On Wed, Feb 18, 2009 at 7:48 AM, Romain Guy romain...@google.com wrote: In your application's onPause/onStop/onDestroy simply use Handle.removeCallbacks(Runnable). On Tue, Feb 17, 2009 at 9:46 PM, Dilli dilliraomca...@gmail.com wrote: Hi all, I am developing a simple application with thread concept problem: In one thread i write { Thread.sleep(1) //10 sec sleep m_handler.post(my_runnable); // to post to run another runnable } before the thread wake up ( 10 sec) i stopped my application exiting my application but the thread sleeped not killed and it wakes up after 10 sec and try to post message and it causes exception. is there any way to kill the threads those are in sleep mode while exiting the application ?? and prevent to post using m_handler. Need suggetions Thank You.. Dilli. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them- Hide quoted text - - Show quoted text - -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: failed to install applications on G1 through USB
There may be your previous application exist in the device search by adb ls /data/app it will list all the applications installed in your device Try to uninstall by using command adb uninstall if problem exists then try to rename your package, compile sign and try to install if you change your package name then it don't show any error On Tue, Feb 17, 2009 at 1:00 PM, Developer shuo.yang.2...@gmail.com wrote: I used keytool and jarsigner and seems to have got everything done, but still I have problem to install the application. -- #jarsigner -verbose -keystore ~/keys/anddev.keystore -signedjar MyApplication_signed.apk ~/Documents/workspace/MyApplication/ MyApplication.apk ~/keys/anddev.keystore Enter Passphrase for keystore: MYPASSWORD adding: META-INF/MANIFEST.MF adding: META-INF/_USERS_S.SF adding: META-INF/_USERS_S.RSA signing: res/drawable/alert_dialog_icon.png signing: res/drawable/icon.png signing: res/drawable/icon_original.png signing: AndroidManifest.xml signing: resources.arsc signing: classes.dex #adb install MyApplication_signed.apk 700 KB/s (216689 bytes in 0.124s) pkg: /data/local/tmp/MyApplication_signed.apk Failure [INSTALL_FAILED_ALREADY_EXISTS] I looked into /data/local/tmp/, but there is no such file existing. Why? Thanks On Feb 16, 10:18 pm, dillirao malipeddi dillir...@arijasoft.com wrote: You must sign your application before install it in to device, for signing you can use the tool keytool -- to generate your signing key jarsigner -- to sign your apk file with above generated key On Tue, Feb 17, 2009 at 11:37 AM, Developer shuo.yang.2...@gmail.com wrote: I follow the instruction to install my toy application, which ran well on my Mac. 1. Within Eclipse, I did Android Tools--Export Unsigned Application Package to save MyApplication.apk into ~/workspace/MyApplication.apk. 2. Now Connect Your G1 Phone to your computer using USB cable. You need to install Drivers for this. Download Android USB drivers from here. This driver is required for adb to interface with an android G1 phone using USB cable. 3. Go to Android Settings/SD card phone storage and disable Use for USB storage. You can enable it again later after you installed your third-party application. 4. Go to Settings/Application settings and enable Unknown sources. 5. adb install ~/workspace/MyApplication.apk But this is the error I got: tools ./adb install ~/Documents/workspace/MyApplication.apk 1644 KB/s (214695 bytes in 0.127s) pkg: /data/local/tmp/MyApplication.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: failed to install applications on G1 through USB
did you install the USB driver for the g1 mobile on your system ? If you installed the USB driver (come with SDK - usb_driver ) then it identifies your mobile.. connect your mobile to PC and it will ask for drivers then browse the usb_driver which is in SDK directory and it will install the driver open cmd type adb devices it will show the devices connected to your system then try to install your application by adb install it don't gives error : device not found On Tue, Feb 17, 2009 at 11:54 PM, Developer shuo.yang.2...@gmail.comwrote: On Feb 17, 12:49 am, dillirao malipeddi dillir...@arijasoft.com wrote: There may be your previous application exist in the device search by adb ls /data/app it will list all the applications installed in your device Try to uninstall by using command adb uninstall if problem exists then try to rename your package, compile sign and try to install Thanks, successfully uninstalled:-) And I was able to install the signed package to EMULATOR (but not the physical G1 device). Here is what I did: 1) If I launch the emulator on my computer and do the above, #./adb install MyApplication_signed.apk 1474 KB/s (216689 bytes in 0.143s) pkg: /data/local/tmp/MyApplication_signed.apk Success But the destination device is the emulator, so it turned out I installed the application to my emulator again. 2) If I stop the emulator process on my computer and do the above, #./adb install MyApplication_signed.apk error: device not found Note that I have plugged my USB well. Any thought? Thanks if you change your package name then it don't show any error On Tue, Feb 17, 2009 at 1:00 PM, Developer shuo.yang.2...@gmail.com wrote: I used keytool and jarsigner and seems to have got everything done, but still I have problem to install the application. -- #jarsigner -verbose -keystore ~/keys/anddev.keystore -signedjar MyApplication_signed.apk ~/Documents/workspace/MyApplication/ MyApplication.apk ~/keys/anddev.keystore Enter Passphrase for keystore: MYPASSWORD adding: META-INF/MANIFEST.MF adding: META-INF/_USERS_S.SF adding: META-INF/_USERS_S.RSA signing: res/drawable/alert_dialog_icon.png signing: res/drawable/icon.png signing: res/drawable/icon_original.png signing: AndroidManifest.xml signing: resources.arsc signing: classes.dex #adb install MyApplication_signed.apk 700 KB/s (216689 bytes in 0.124s) pkg: /data/local/tmp/MyApplication_signed.apk Failure [INSTALL_FAILED_ALREADY_EXISTS] I looked into /data/local/tmp/, but there is no such file existing. Why? Thanks On Feb 16, 10:18 pm, dillirao malipeddi dillir...@arijasoft.com wrote: You must sign your application before install it in to device, for signing you can use the tool keytool -- to generate your signing key jarsigner -- to sign your apk file with above generated key On Tue, Feb 17, 2009 at 11:37 AM, Developer shuo.yang.2...@gmail.com wrote: I follow the instruction to install my toy application, which ran well on my Mac. 1. Within Eclipse, I did Android Tools--Export Unsigned Application Package to save MyApplication.apk into ~/workspace/MyApplication.apk. 2. Now Connect Your G1 Phone to your computer using USB cable. You need to install Drivers for this. Download Android USB drivers from here. This driver is required for adb to interface with an android G1 phone using USB cable. 3. Go to Android Settings/SD card phone storage and disable Use for USB storage. You can enable it again later after you installed your third-party application. 4. Go to Settings/Application settings and enable Unknown sources. 5. adb install ~/workspace/MyApplication.apk But this is the error I got: tools ./adb install ~/Documents/workspace/MyApplication.apk 1644 KB/s (214695 bytes in 0.127s) pkg: /data/local/tmp/MyApplication.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to load image (background) on layout
in you layout properties set the background image 1) place image you want in drawable folder 2) in layout properties set that image as background image On Tue, Feb 17, 2009 at 4:35 PM, meouui nhattuyen...@gmail.com wrote: I want to load image - background - on layout. I use eclipse tool to develop application. Help me??? -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Can Dev Phone bought in US be used in India?
Sure you can use the Dev phone 1 (Google) in india Currently i am using Dev phone1 in INDIA -- It works fine On Wed, Feb 18, 2009 at 1:04 AM, swamytk karuppusw...@gmail.com wrote: I am resident of India. But right now i am in US. I am planning to buy a Google Dev Phone 1. I will be using it in India once i am back to India after 2 months. If I buy it in US, can I use it in India? My suspect is on 3G band currently used in India (BSNL/MTNL) or soon to be used (by airtel / vodaphone). This is Android's spec # 3G WCDMA (1700/2100 MHz) # Quad-band GSM (850/900/1800/1900 MHz) I am not sure about the upcoming 3G bands in India. Can any one clarify this? -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: failed to install applications on G1 through USB
You must sign your application before install it in to device, for signing you can use the tool keytool -- to generate your signing key jarsigner -- to sign your apk file with above generated key On Tue, Feb 17, 2009 at 11:37 AM, Developer shuo.yang.2...@gmail.comwrote: I follow the instruction to install my toy application, which ran well on my Mac. 1. Within Eclipse, I did Android Tools--Export Unsigned Application Package to save MyApplication.apk into ~/workspace/MyApplication.apk. 2. Now Connect Your G1 Phone to your computer using USB cable. You need to install Drivers for this. Download Android USB drivers from here. This driver is required for adb to interface with an android G1 phone using USB cable. 3. Go to Android Settings/SD card phone storage and disable Use for USB storage. You can enable it again later after you installed your third-party application. 4. Go to Settings/Application settings and enable Unknown sources. 5. adb install ~/workspace/MyApplication.apk But this is the error I got: tools ./adb install ~/Documents/workspace/MyApplication.apk 1644 KB/s (214695 bytes in 0.127s) pkg: /data/local/tmp/MyApplication.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get the device model in android?
Thank you Bill Zimmerly It helped us a lot.. now i am able to see my phone details On Fri, Feb 13, 2009 at 12:13 PM, Bill Zimmerly billzimme...@gmail.comwrote: Manoj. This may help... http://code.google.com/android/reference/android/os/Build.html - Bill -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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: Multimedia buffering
Based on the API the video should be progressive download and the video quality should be low On Mon, Feb 9, 2009 at 4:38 PM, AliBaba kanul1...@gmail.com wrote: Hi All, I am trying to run the media player from API Demo by specifying the http based url of the video. In specific I want to play streaming Video. By debugging I found that it is showing the logs for streaming the video from 1-100 %. But then also it is not playing the video. Can anybody please help me where(file location) streamed video file get stored on Android. -AliBaba -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---