[android-developers] Re: Using CursorAdapter What is what?

2009-06-29 Thread Moto
Sorry for not giving any details on that post. I assumed that what you are saying was already happening... So in the case I delete the item my list does get updated but now its blank since there are no items on my database. I want to handle this case by applying a new view which would tell the

[android-developers] Re: Using CursorAdapter What is what?

2009-06-29 Thread Moto
Nicey nicey! Thanks Mark great help! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] MediaPlayer Prepare errors sometimes...

2009-06-17 Thread Moto
The following is the error seen sometimes when playing an mp3 from the internet... Could someone let me know if this is a known issue? Thanks! 06-17 20:02:42.776: INFO/DEBUG(25079): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-17 20:02:42.776: INFO/DEBUG(25079): Build

[android-developers] Locale Spanish??

2009-06-16 Thread Moto
I find or create a Locale.SPANISH? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Locale Spanish??

2009-06-16 Thread Moto
I guess my post helped me find a better way to figure this out :P would this work? new Locale(es); or new Locale(es, ES); Thanks, Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] MediaPlayer Internal Errors when streaming mp3 from ftp site...

2009-06-07 Thread Moto
Can someone tell me what this error means? This happens once in a while when trying to play and mp3 from ftp site All help is greatly appreciated! Moto! 06-07 23:11:23.806: INFO/DEBUG(2009): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-07 23:11:23.806: INFO/DEBUG

[android-developers] How to close the Soft Keyboard?

2009-05-28 Thread Moto
); This works fine but the soft keyboard is never closed after this key is pressed... How can I close it? do I set any flags on the layout file or the AndroidManifest? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-05-07 Thread Moto
Well if anyone has this problem if you set say #9900 you just get a back bg... but if you put #9901 it works... some reason it doesn't like the zeros? well that's how it is I guess.. Moto! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-05-05 Thread Moto
1.5 once in a while it decides not to work making the background all back and no longer transperant. Any ideas why this happens? -Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Issue while creating a alarm..

2009-05-03 Thread nikil . moto
Hi All, i am creating more than one alarm but I always recieve only for the last one which is raised. Can someone help me on this.. Following is the code snippet. private void scheduleEventReminder( Context context, Calendar date, Long contactId, int eventType) { Intent intent

[android-developers] How to Snap a picture of a Layouts contents?

2009-04-30 Thread Moto
Hi, I need to somehow get a drawable of the contents of a Layout, once I get that drawable I want to set it as a background on an empty layout How can I go about doing this? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Android 1.5 - How does MediaPlayer know when to start playback?

2009-04-29 Thread Moto
access to this information? -Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Android 1.5: How can I play HE-AAC file type with MediaPlayer?

2009-04-28 Thread Moto
Could I somehow trick the player on playing something of this format? I know that there is support for AAC encoded files but just how? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-27 Thread Moto
Hey Niko thanks for your reply... I'm not sure if I can stream mpeg or aacp streams it seems like it's only PCM format... :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-26 Thread Moto
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] Re: android 1.5: How do we use the AudioTrack class?

2009-04-26 Thread Moto
Yeah, currently that's my method... o well I thought something like the AudioTrack would be nice... were you can select the type of audio to decode not just PCM :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Android 1.5 - Does MediaPlayer support HTTP 1.1 Transfer-Encoding = chunked?

2009-04-26 Thread Moto
The tittle asks the question... :) Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
I thought you could continuously write data into the AudioTrack as long as the buffer size specified at the creation of the AudioTrack was not exceeded... and you can call play() as long as there was enough data to start playback... --~--~-~--~~~---~--~~ You

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
Ok at this point I only get white noise? do I need to set the decoder? it's an MPEG stream could a AAC+ be now supporteD? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
lol yeah definitely true! But for some reason I thought it would be decoded into a playable format... How do we play AAC+ formats and MPEG formats? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
The issue is that you still can't stream from a radio station online only an MP3 file from a server... Romain Guy could you help? ^.^ Thanks Marco! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
Up to now I feel very discouraged by the new libraries... Yes they are doing many good things for Media but when it comes to streaming internet radios this really sucks... or maybe I'm just not understanding how to do this... :( Please help...

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Moto
I believe GPRS is 3G --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
; case TelephonyManager.NETWORK_TYPE_UMTS: Log.i(CONNECTION, UMTS); break; } might do the trick ;) Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
I believe what you are saying is true, but as of now this is the best and fastest way to achieve a guess as of how fast the users data connection is... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
Anyone? It seems that no one has this problem, or am I looking in the wrong place? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Moto
Nice! but there is no reverse animation at the end of the slide? because currently it just goes right back to the start... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Moto
It would have been nice to be able to set if you like it to reverse animation at the end... and loop infinity if needed Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
I know I say I want a lot on this post :P I guess would be I wis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
Graphical design restrictions... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-07 Thread Moto
Great that works! But I wonder how one could control the speed and repetitions, reverse it...? Anyone have any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] How To Rotate A View?

2009-04-07 Thread Moto
(CustomButtons,onDraw); c.rotate(90); super.onDraw(c); } but nothing happenS! :( Help? Thanks Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-02 Thread Moto
Help? 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] Sliding Text just like the phone's icon texts??

2009-04-01 Thread Moto
Could someone let me know how exactly android makes the sliding text on an icon slide up to the end of the text? Currently I'm using TranslateAnimation to slide the text, but this is hard since text can change lengths and just gets too complex... :( Help!? Thanks! Moto! my current code

[android-developers] Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto
I guess the title says it all Could I technically make a custom button using this Class? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto
But would the touch area be only around my weird shaped area? or just the typical rectangular area? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to create a Custom Clickable Area Non-Standard Square ?

2009-03-16 Thread Moto
Anyone!? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] How to create a Custom Clickable Area Non-Standard Square ?

2009-03-15 Thread Moto
Hi, I'm currently trying to create a custom clickable button... The shapes of the buttons are not your standard type. They are circle and a rotated rectagle button How do I go about this? is there a simple way? also how could I rotate a button? Thanks, Moto

[android-developers] Re: MemoryFile to create a file in memory?

2009-03-04 Thread Moto
MediaPlayer and it won't care how much data I pass untill the connection is terminated. I don't understand this side of the logic... Could someone explain??? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: MemoryFile to create a file in memory?

2009-02-21 Thread Moto
the data is generated on the fly you can say since it is being retrieved from a UDP connection using an InputStream. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] MemoryFile to create a file in memory?

2009-02-20 Thread Moto
Hello, Could someone let me know how I could get a File path from a file create in memory using MemoryFile class? I was able to create one but I can't seem to know how to obtain a pointer path to this file in memory so that I could give it to MediaPlayer... Help? Thanks! Moto

[android-developers] Re: MemoryFile to create a file in memory?

2009-02-20 Thread Moto
Thanks for your reply Marco... I'm trying to somehow trick MediaPlayer into reading a buffer with audio. I'm not too sure how that would playout but at this point I'm trying everything to get audio streaming working --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to use AsyncPlayer ()??? Uri?

2009-02-18 Thread Moto
, will solve this issue... Would you agree? or am I way off? if this isn't an option, would you happen to suggest a way to achieve gap-less playback using multiple files? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] How to use AsyncPlayer ()??? Uri?

2009-02-16 Thread Moto
! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers

[android-developers] Re: Suggestion for Android Market

2009-02-09 Thread Moto
Yes! I also agree with this Idea... For now I just placed my webpage link on my application but in a way this won't help for a user trying to deside should I install this App or not? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Gesture detection

2009-02-02 Thread Moto
Phill, Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: Gesture detection

2009-01-29 Thread Moto
I currently use onFling() but this isn't called all the time. You can have onScroll() event happening without onFling() action following... That's from my experience... I assume onFling() is how fast you do a swipe. So because onFling() isn't called all the time my code doesn't do what it

[android-developers] Re: How to change the ListView black top/bottom fade effect color.

2009-01-28 Thread Moto
Thanks for your help! I'll try this feature. ^.^ Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: Gesture detection

2009-01-28 Thread Moto
? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: Gesture detection

2009-01-28 Thread Moto
I currently have a class that handles some complex scrolling of a view... this class implements OnGestureListener and in that class I have no way of telling when the event OnUp() is triggered... I have all other touch event handlers that OnGestureListener provides except OnUp() Thanks..

[android-developers] How to change the ListView black top/bottom fade effect color.

2009-01-27 Thread Moto
Hello all! Well, I wanted to see if I could change the top/bottom wrap fading effect seen on most long scrolling components. In this case I would like to change the color from black to whatever color I desire on a ListView. Is this possible? Thanks, Moto

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-27 Thread Moto
super.dispatchTouchEvent! public boolean dispatchTouchEvent(MotionEvent ev) { gestureScanner.onTouchEvent(ev); super.dispatchTouchEvent(ev); return true; } I hope this helps! Moto! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Error: Read and parse xml file

2009-01-16 Thread Moto
A little more info would be helpful... Also, It would be interesting to see your ExampleHandler... -Moto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-09 Thread Moto
Hey Roland, yeah I did try doing super(ev) as the code above: @Override public boolean dispatchTouchEvent(MotionEvent ev){ dispatchTouchEvent.super(ev); mGestureDetector.onTouchEvent(ev); return true; } This would allow me to scroll down but definitely messes things up. I

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-08 Thread Moto
Hey Roland thanks for your code it really helps figuring out things... I just tried running it and what I do notice is that touch events for the list are never received so that one could make a selection on the list or Scroll down... Have you noticed this?

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-08 Thread Moto
Also let me ask you this: I'm trying to get the total length of my LinearLayout which contains few buttons all positioned horizontally roughly 600px. Now when I try to get the width of that layout it returns the width of the what is only shown, essentially the screen width... So I tried setting

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread Moto
I'm also interested on your solution but could you explain a little more? new Binder? Thanks, Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-05 Thread Moto
Wow very nice! I'll make sure I try this out later today! See if it helps :) 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] Re: How To Custom Horizontal Scroll?

2009-01-05 Thread Moto
I tried using your code but I'm not sure if I can listen for event on my LinearLayout...? I say this because I've been trying to get a touch event and it just doesn't happen. Any pointers? Thanks! Here is my XML layout LinearLayout android:id=@+id/MenuBarLayout

[android-developers] How To Custom Horizontal Scroll?

2009-01-04 Thread Moto
on a layout? A little hard coded Horizontal moving of a Layout. Move Item Horizontally: LinearLayout tbl = (LinearLayout)findViewById( R.id.MenuBarLayout ); tbl.scrollTo(40, 0); Hopefully someone can point me to the right direction... Thanks, Moto

[android-developers] Re: What's the usage of the card when register android market account

2008-12-29 Thread Moto
Dude Your way off topic here... And yes that card number is for your registration fee... On Dec 22, 10:08 pm, He Yunlong b20...@freescale.com wrote: Hi, Guys,         I am registering account in android market, it need a card number, I wonder whether it's only used for pay the register fee

[android-developers] Re: TextView Under Growing ListView

2008-12-29 Thread Moto
Thanks for your help! It solved my issue and also helped me understand a lot better how Layouts work... Moto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] TextView Under Growing ListView

2008-12-28 Thread Moto
Hi, I'm currently trying to display a TextView on the top and bottom of my screen and in the middle my ListView. The problem is that when my ListView grows it pushes my bottom TextView out of the screen. How can I overcome this? Thanks! here is current XML: XML: ?xml version=1.0 encoding=utf-8?

[android-developers] Re: Media Player surprises me!

2008-12-26 Thread Moto
Hey Ninad, Post some code might 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

[android-developers] How to bind to a Service only if it was already running?

2008-12-22 Thread Moto
start and finish the Service. Other activities just try to hook to the Service if it was running. This other Activities use callbacks to display Service status. Thanks for your time and help! Regards, Moto! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: How to bind to a Service only if it was already running?

2008-12-22 Thread Moto
Hey JP thanks for your reply! So I'm looking at what your saying but bindService() says it will create the service if needed... and I don't want that... do the flags have something to do with creating or not? // bindService(Intent

[android-developers] Re: How to bind to a Service only if it was already running?

2008-12-22 Thread Moto
Adding a little more info: The service is Remote so it runs forever until I kill 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] How to import an already setup Layout in code?

2008-12-21 Thread Moto
Hello currently I'm making my custom ListAdapter and I add my Text Views the following way: LinearLayout.LayoutParams radioParams = new LinearLayout.LayoutParams (320, LayoutParams.FILL_PARENT); radioParams.setMargins(1, 1, 1, 1); TextView stationName = new TextView( context );

[android-developers] Re: How to import an already setup Layout in code?

2008-12-21 Thread Moto
()); TextView genreType =(TextView)inflatedElementView.findViewById (R.id.textNowPlaying2); genreType.setText(radioInfo.getGenre()); return inflatedElementView; } -Moto --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] What are the MediaPlayer Class upcoming fixes?

2008-12-20 Thread Moto
I'm currently trying to plan ahead of time building my code. So in order to design it properly I need to know the following... 1. Will upcoming release of the SDK have support for an input stream on the MediaPlayer class? 2. Will http streaming finally be fixed? Thanks, Moto

[android-developers] Port 554 closed?

2008-12-18 Thread Moto
as if no messages were getting to it from my server. I hope you can understan what I'm trying to achieve here. I'm not sure if there are some firewalls? I'm using a G1 phone to test this. Thanks! Moto Here is my code: Thread 1: //1. creating a server socket providerSocket = new ServerSocket(8554

[android-developers] Debugging HTTP streaming using MediaPlayer

2008-12-18 Thread Moto
the deal is no audio on the Device... I heard read that there are issues with this... but I wonder how this could be worked out to get it working... Was this solved ? is there a setting I could do? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How Can I Remove Top Title Bar from an Application? Or Add things to it...

2008-12-16 Thread Moto
Great thanks guys! I will be trying this out! -Moto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] How Can I Remove Top Title Bar from an Application? Or Add things to it...

2008-12-15 Thread Moto
The following pictures should give you and idea. All I want to do is or remove it completely or add my own png file with some text, which is better idea... :P Thanks! Moto! Sample: img141[dot]imageshack[dot]us/my[dot]php?image=presentation2ka0[dot]png

<    1   2   3   4