[android-developers] MediaController working sample copy?

2012-03-05 Thread IS SOA
i did search on google devlopers site and they have mediaplayer code but i 
am looking for mediacontroller can anybody points me please?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: MediaController.MediaPlayerControl for audio

2012-03-05 Thread IS SOA
i am on the same boat.. let me know if you find anything.

On Tuesday, December 7, 2010 11:25:05 AM UTC-5, manivel t wrote:

 I have to use MediaController.MediaPlayerControl in order to display a 
 MediaController at the bottom of my Custom View but I can't get it to 
 work. Please help me..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: MediaController questions + problems + strange behaviour

2012-03-05 Thread IS SOA
i am having the same issue, i am using  MediaController.MediaPlayerControl  
and its hang after play for about few minutes, is that what you having too?

On Friday, July 2, 2010 9:10:34 AM UTC-4, MarcoAndroid wrote:

 Hi, 

 I've been starting to use the MediaController in combination with the 
 MediaPlayer. Besides finding out some documented weird behaviour (like 
 if you create a MediaController from XML the show()/hide() don't do 
 anything but they do work if you create the controller via code), I 
 did find some undocumented (AFAICT) buggy? behaviour. Here it goes: 

 1) Why is the mediacontroller too wide by default, that is when all 
 buttons are showing (which is the case when you create it from XML)? 
 See screenshot here: 
 http://www.4shared.com/photo/ogbrAo4H/mediacontroller_toowide_2010-0.html 
 The | and | are cut off! 
 Even on a real Nexus One it's too wide, only in landscape it fits 
 (easily; it doesn't get stretched full width either) 
 If I add paddingLeft and right to the wrapping LinearLayout, the left 
  right of the mediacontroller are just cut off. 
 If I add paddingLeft and right to the MediaController xml, the left  
 right of the mediacontroller are also just cut off. 
 If I change the width of the MediaController view in the XML to 200dip 
 it just gets cut off. 
 Apparently the controller is not made resolution independent using 
 dips etc? Or can I do something to make it fit? For now I take out the 
  and , the user can seek with the slider too... 

 2) Why is it called a floating window (at least in its 
 implementation), I can't seem to be able to move it around. Floating 
 is meant here only as: it is on top of something? 

 3) It seems you really need to wait a bit before calling 
 controller.show() because otherwise something is not ready yet (I get 
 something like window null - Activity not started error). Is this 
 true? Is there a better way to do it than postDelayed as mentioned in 
 this post: 
 http://stackoverflow.com/questions/1759862/how-can-i-get-an-android-mediacontroller-to-appear-from-layout-xml?
  


 4) It seems getBufferPercentage() only gets called when you press a 
 button on the control? I do see the mediaplayer's onBufferingUpdate() 
 getting called in the example below, but getBufferPercentage only when 
 I touch a button on the MediaController: 

   controller.setMediaPlayer(new MediaController.MediaPlayerControl() { 
 public int getBufferPercentage() { 
   return bufferedPercentage; 
 } 
 public int getCurrentPosition() { 
   return mediaPlayer.getCurrentPosition(); 
 } 
 public int getDuration() { 
   return mediaPlayer.getDuration(); 
 } 
 public boolean isPlaying() {return mediaPlayer.isPlaying();} 
 public void pause() { 
   mediaPlayer.pause(); 
 } 
 public void seekTo(int pos) {} 
   public void start() { 
   mediaPlayer.start(); 
 } 
   }); 

 Any ideas why it's not being called? My workaround for now is to do a 
 controller.show() call in mediaPlayer.onBufferingUpdate(). 

 5) This I found out by experience and seems to me incorrect in the 
 docs here: 
 http://developer.android.com/reference/android/widget/MediaController.html 
 I read the bottom 3 statements as: no prev/next buttons are shown if 
 setPrevNextListeners() is not being called. 
 But when creating the controller via XML they are shown disabled, 
 though I'm sure not having called setPrevNextListeners(). 

 6) In 1.6 the slider knob is showing correctly at starting and ending 
 point, see screenshot for starting point (note that the stream as been 
 loaded, but whether it's loaded or not has no impact): 
 http://www.4shared.com/photo/FeK1kxXT/mediacontroller_slider_sdk16_s.html 
 But in 2.1 the slider know is slightly hidden under something on the 
 left and something  on the right, see screenshots: 
 http://www.4shared.com/photo/UH5jHyMd/mediacontroller_slider_sdk21_b.html 
 http://www.4shared.com/photo/8chC5_Q5/mediacontroller_slider_sdk21_b.html 
 Seems a bug to me. Or can I do something about this? 
 BTW: the correct position in 2.1 seems to be about 4secs into the 
 track, see this screenshot: 
 http://www.4shared.com/photo/fbM-PNJ1/mediacontroller_slider_sdk21_o.html 

 7): Why is the downloading of an mp3 from the internet (via a URL) 
 starting all over again when I drag the slider all the way to the left 
 (i.e 0)? Seems not necessary, and will make the user have to wait 
 again for the download. 

 8) In 1.6 it was fine to call controller.setEnabled(true) before 
 controller.setMediaPlayer(), but definitely in 2.1 it is not allowed 
 anymore, you get a NullpointerException. If you check the 
 MediaController source code, you'll see it's calling a mediaPlayer 
 method w/o checking for null. 

 Hope somebody can provide some input on these! 

 Regards, 
 Marco 








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

Re: [android-developers] MediaController working sample copy?

2012-03-05 Thread IS SOA
 wow mate that exactly what i needed, a genius to help me out, thanks for 
 the advice mate but i already passed by that door ... 


On Monday, March 5, 2012 9:49:23 PM UTC-5, TreKing wrote:

 On Mon, Mar 5, 2012 at 8:31 PM, IS SOA   wrote:

 i did search on google devlopers site and they have mediaplayer code but 
 i am looking for mediacontroller can anybody points me please?


 http://lmgtfy.com/?q=android+mediacontroller+example


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

   

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to turn on “Show outline for all views”

2012-03-01 Thread IS SOA


please see the image below and i am try on my local machine using but i 
dont see the option what i see in the image, is there a way to turn on 
those option (grid around the layout) thing...

same question i am looking for and here is the question with images on it:

http://stackoverflow.com/questions/9521889/how-to-turn-on-show-outline-for-all-views

http://stackoverflow.com/questions/7852379/outline-views-for-design-testing-debugging



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: is there a way to know the length of an streaming audio file?

2012-02-29 Thread IS SOA
anybody?

On Wednesday, February 29, 2012 12:02:55 AM UTC-5, IS SOA wrote:

 i am streaming the audio files and wondering is there a way in the 
 code can find out the length (time) of the song for displaying purpose 

 something like this: 

 Song Name 05.20 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] is there a way to know the length of an streaming audio file?

2012-02-28 Thread IS SOA
i am streaming the audio files and wondering is there a way in the
code can find out the length (time) of the song for displaying purpose

something like this:

Song Name 05.20

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] split the string in three parts...

2012-02-27 Thread IS SOA
I am trying to split the below string into three parts

String _books = |||###Chapter 01###ONE###INDEX 1|||###Chapter
02###TWO###INDEX 2|||###Chapter 03###THREE###INDEX 3|||;

so the above code should print like this:

chapter: chapter 01
title: ONE
page: INDEX 1

chapter: chapter 02
title: TWO
page: INDEX 2

.
.

for(String book: _books.split(|||))
{
String[] parts = book.split(###);
System.out.println(chapter:  + parts[0]);
System.out.println(title:  + parts[1]);
System.out.println(page:  + parts[2]);
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Working with AsynchTask - need help badly.

2012-02-24 Thread IS SOA
below is my code i am trying to working on i am not sure whats going
wrong here and i get this error (paste after this code)

any help please?

 private Runnable viewOrders;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
m_orders = new ArrayListOrder();
this.m_adapter = new OrderAdapter(this, R.layout.row, m_orders);
setListAdapter(this.m_adapter);

viewOrders = new Runnable(){
public void run() {
//loadList();
//getOrders();
new loadSomeStuff().execute(url);
}
};

Thread thread = new Thread(null, viewOrders, MagentoBackground);
thread.start();
m_ProgressDialog = ProgressDialog.show(this, Please wait...,
Retrieving data ..., true);
}

private Runnable returnRes = new Runnable() {

public void run() {
if(m_orders != null  m_orders.size()  0){
m_adapter.notifyDataSetChanged();
for(int i=0;im_orders.size();i++)
m_adapter.add(m_orders.get(i));
}
m_ProgressDialog.dismiss();
m_adapter.notifyDataSetChanged();
}
};

//reading the file from internet:
 public class loadSomeStuff extends AsyncTaskString, Integer,
String{

@Override
protected String doInBackground(String... arg0) {
// all my heavy lifting .. reading the file from net 
and returns as
string..
BufferedReader reader = new BufferedReader(new
InputStreamReader(in));
 StringBuilder str = new StringBuilder();
  String line = null;
try {
while((line = reader.readLine()) != null)
{
str.append(line);
}
} catch (IOException e) {

}
try {
in.close();
} catch (IOException e) {

}
html = str.toString();

//populate the object
m_orders = new ArrayListOrder();
   Order o1 = new Order();
   o1.setOrderName(songs_array[0]);
   o1.setOrderStatus(Pending);
   o1.setQuantity(111);

  m_orders.add(o1);

 return html ;
}
 }


error message:

02-24 17:01:00.641: W/dalvikvm(426): threadid=9: thread exiting with
uncaught exception (group=0x40015560)
02-24 17:01:00.641: E/AndroidRuntime(426): FATAL EXCEPTION: AsyncTask
#1
02-24 17:01:00.641: E/AndroidRuntime(426): java.lang.RuntimeException:
An error occured while executing doInBackground()
02-24 17:01:00.641: E/AndroidRuntime(426):  at android.os.AsyncTask
$3.done(AsyncTask.java:200)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:
274)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.FutureTask.setException(FutureTask.java:125)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1088)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:581)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.lang.Thread.run(Thread.java:1019)
02-24 17:01:00.641: E/AndroidRuntime(426): Caused by:
java.lang.NullPointerException
02-24 17:01:00.641: E/AndroidRuntime(426):  at net.issoa.issoa.main
$loadSomeStuff.doInBackground(main.java:128)
02-24 17:01:00.641: E/AndroidRuntime(426):  at net.issoa.issoa.main
$loadSomeStuff.doInBackground(main.java:1)
02-24 17:01:00.641: E/AndroidRuntime(426):  at android.os.AsyncTask
$2.call(AsyncTask.java:185)
02-24 17:01:00.641: E/AndroidRuntime(426):  at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
02-24 17:01:00.641: E/AndroidRuntime(426):  ... 4 more

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] MediaPlayer - playing audio streaming

2012-02-19 Thread IS SOA
can anybody point me to the blog or website where i can find the sample
code for playing audio file streaming using android mediaplayer? i have
been looking but never get any luck.

i am looking to display as control: Previous Play/Pause Next buttons and
with seeker.

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

Re: [android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread IS SOA
the link does not work... i dont need help in learning how to search but
probably you havent get what i am asking in my questions, never mind.

On Sun, Feb 19, 2012 at 1:42 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Feb 19, 2012 at 01:14:45PM -0500, IS SOA wrote:
  can anybody point me to the blog or website where i can find the sample
  code for playing audio file streaming using android mediaplayer? i have
  been looking but never get any luck.

 http://develooer.android.com/guide/index.html.

 If you need help learning how to do a simple search, you need more
 help than anyone here can provide.  It took me less than 10 seconds
 to find it, and that includes pulling up a web browser on my tablet
 and then going to the developers guide to do a search.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

   Someone ever tries to kill you, you try to kill 'em right back!
   --Mal (Firefly, 1x03, Our Mrs. Reynolds)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android - How to add audio play/stop/pause buttons

2012-01-20 Thread IS SOA
i have been looking to implement the mediaplayer/mediacontroller class
which includes the basic control like play, pause, stop, forward,
reverse, seeker etc? is there any built-in functionlity out there?
or any third party control?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Google Code Project

2012-01-20 Thread IS SOA
he must be asking to upload his android development apps, i am
interested too

On Jan 17, 4:54 pm, TreKing treking...@gmail.com wrote:
 On Tue, Jan 17, 2012 at 3:13 PM, 7600onair 7600on...@gmail.com wrote:
  What is the easiest way to upload Source code files to a Google
  Code Project so they are editable?

 What does this have to do with Android Development?

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en