[android-developers] JetPlayer

2010-01-23 Thread Business Talk
Is there any way to control a play position of a JetPlayer? This concept seems to be totally foreign to it's api. I have a requirement to use a SeekBar to control a play position of the player, as it's done with the mp3 players. -- You received this message because you are subscribed to the Googl

[android-developers] AudioTrack - Clicking Proplem

2010-01-21 Thread Business Talk
I am trying to resolve the clicking problem while using the AudioTrack. It takes place only when playing the first part of the wave (pcm) buffer when the offset to the write is 0 (zero). track.write(buffer, offset, minBufferSize); It tells me that there is something wrong with the p

[android-developers] InputStream.read

2010-01-19 Thread Business Talk
When downloading a file from the net in the emulator all is fine, no exception is thrown HttpURLConnection httpURLConnection = (HttpURLConnection) _URL.openConnection(); httpURLConnection.setRequestMethod("GET"); httpURLConnection.setDoOutput(true); httpURLConnection.connect(); InputStream _In

[android-developers] Re: ZipFile

2010-01-19 Thread Business Talk
Thanks John On Jan 19, 5:25 pm, "Maps.Huge.Info (Maps API Guru)" wrote: > This should work for you... > >         InputStream is = conn.getInputStream(); >         ZipInputStream zis = new ZipInputStream(new BufferedInputStream(is)); >         ZipEntry entry; > >         while ((entry = zis.getNe

[android-developers] ZipFile

2010-01-19 Thread Business Talk
I am trying to download a zip file from the net and I don't seem to be able to create a ZipFile passing the InputStream ( httpURLConnection.getInputStream() ). I really don't want to create a temp zip file and then create the ZipFile using the File object pointing the test zip file. Any ideas

[android-developers] Bussiness Model

2010-01-17 Thread Business Talk
Do you think that the business model based on an application that displays/manages paid content is workable in the android environment? I think it is not due to the application market’s lack of support for the paid content? What I mean is that applications, such as iTunes, can be installed from th

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Philip, it did work after all. thanks. On Jan 16, 8:38 am, Business Talk wrote: > Thanks Philip, you are right, It should'v been mkdirs. But even so it > still returns false. > > My example was a little confusing as to the directory names; all of > them are directories

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
hilip wrote: > if dir and mk don't exist, I believe that you need to use mkdirs > instead : > > mkdirs() > Creates the directory named by the trailing filename of this file, > including the complete directory path required to create this > directory. > > On Jan 15, 9:4

[android-developers] Re: File System

2010-01-09 Thread Business Talk
Thanks Mark, it works. On Jan 9, 3:32 pm, Mark Murphy wrote: > Business Talk wrote: > > How is it that I can open a file with > > > FileInputStream inputStream = _Context.openFileInput("songs.zip"); > > > but not with > > > ZipFile zipFile = new ZipF

[android-developers] File System

2010-01-09 Thread Business Talk
How is it that I can open a file with FileInputStream inputStream = _Context.openFileInput("songs.zip"); but not with ZipFile zipFile = new ZipFile("songs.zip"); the ZipFile throws the FileNotFoundException. What am I missing? -- You received this message because you are subscribed to the Goo

[android-developers] File System - Continue

2010-01-09 Thread Business Talk
How is it that I can open a file with FileInputStream inputStream = _Context.openFileInput("songs.zip"); but not with ZipFile zipFile = new ZipFile("songs.zip"); the ZipFile throws the FileNotFoundException. What am I missing? -- You received this message because you are subscribed to the Goo

[android-developers] Re: File System

2010-01-09 Thread Business Talk
Thanks Mark, I understand. I did it just for testing. The file will be coming over the wire but for now since I don’t have the backend services I wanted to put the test file locally and deal with this way. On Jan 9, 2:19 pm, Mark Murphy wrote: > Business Talk wrote: > > I don’t s

[android-developers] File System

2010-01-09 Thread Business Talk
I don’t see ‘files’ directory under the /data/data// in the ddms (in the emulator). I can see the ‘database’ and the ‘lib’ directories. It doesn’t seem to be possible to create it manually in the ddms so when I manually push the file onto the device it goes under the application directory, /data/d

[android-developers] Re: Market Question

2010-01-09 Thread Business Talk
652 > NL : +31 62 434 1290 > s...@imkon.com    |    www.imkon.com > > Asia (Singapore) : > 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore > > Europe (London) : > 145-157 St John's St, EC1V 4PY London, UK > > On 9 Jan 2010, at 18:02

[android-developers] Re: Market Question

2010-01-09 Thread Business Talk
mkon.com > > Asia (Singapore) : > 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore > > Europe (London) : > 145-157 St John's St, EC1V 4PY London, UK > > On 9 Jan 2010, at 18:02, Business Talk wrote: > > > > > I have a question

[android-developers] Market Question

2010-01-09 Thread Business Talk
I have a question related to the payment infrastructure. I have an application similar to the iTunes. The application is installed from the ‘Market’ but the songs are downloaded from my side and charges are applied to every song’s download. I would prefer to make the songs available through the Mar

[android-developers] ZipFile

2010-01-09 Thread Business Talk
Am I missing something? if I want to download a zip file using let’s say HttpClient and parse this zip file using the ZipFile it looks like the only way to do it is to save it locally first and than open it with the ZipFile. Is it the case? I could use the ZipInputStream but it makes it so much mor

[android-developers] Re: Marketplace

2010-01-09 Thread Business Talk
rame work stuff though. > > -theSmith > > On Jan 8, 11:16 pm, Business Talk > wrote: > > > > > Any thought on how the Marketplace handles the information related to > > the marketplace applications? I wonder if the request is posted to the > > marketplace

[android-developers] Marketplace

2010-01-08 Thread Business Talk
Any thought on how the Marketplace handles the information related to the marketplace applications? I wonder if the request is posted to the marketplace every time client is started or if some of the available applications data is stored locally and refreshed by the background service. -- You rec

[android-developers] Re: dispatchTouchEvent

2010-01-08 Thread Business Talk
I found the way to generate the MotionEvent, and it's MotionEvent.obtain On Jan 8, 1:15 pm, Business Talk wrote: > How can I programmatically press/release a button? I was playing with > the button.dispatchTouchEvent(motionEvent); but failed to > programmatically generate  the Mot

[android-developers] dispatchTouchEvent

2010-01-08 Thread Business Talk
How can I programmatically press/release a button? I was playing with the button.dispatchTouchEvent(motionEvent); but failed to programmatically generate the MotionEvent to be passed to the dispatchTouchEvent -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: SeekBar

2010-01-07 Thread Business Talk
you are right, I just tested it. It can't be done. On Jan 7, 7:30 pm, Mark Murphy wrote: > Business Talk wrote: > > Has anybody tried to use the SeekBar in the window's title bar, > > instead of the ProgressBar, using the requestWindowFeature > > (Window.FEATURE_P

[android-developers] SeekBar

2010-01-07 Thread Business Talk
Has anybody tried to use the SeekBar in the window's title bar, instead of the ProgressBar, using the requestWindowFeature (Window.FEATURE_PROGRESS);? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Re: ProgressBar

2010-01-07 Thread Business Talk
Thanks Moto On Jan 7, 7:09 pm, Moto wrote: > That would be a seekbar not a progressbar ;) > > On Jan 7, 6:45 pm, Business Talk wrote: > > > > > Is there any interactive progress bar, similar to the music player > > progress bar? It shows the progress but it also

[android-developers] ProgressBar

2010-01-07 Thread Business Talk
Is there any interactive progress bar, similar to the music player progress bar? It shows the progress but it also allows to move the cursor back and forth. -- 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] Expandable View

2010-01-07 Thread Business Talk
I am looking for a view that can be expended by dragging the it's handle, the way the notification view can be opened by dragging its handle downwards. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: StartActivityForResult

2010-01-06 Thread Business Talk
Thanks Mark, it will work. I was considering this approach. I was hesitant for it establishes a dependency among the hierarchy activities. I thought I might have a need to reuse the activities in other scenarios in which I might have to select the artists/albums/ songs only without drilling down th

[android-developers] StartActivityForResult

2010-01-06 Thread Business Talk
I am using ListActivities to drill down into a hierarchy; artist, album and song. One activity per hierarchy. So, from the main activity I start the ArtistActivity with the StartActivityForResult method and when the an artist is selected I call the protected void onListItemClick(ListView l, View

[android-developers] Selection

2010-01-04 Thread Business Talk
What's the best way to implement a selection? is it to use a ListActivity to display a list of items to select from, display the activity with a startActivityForResult and implement the onListItemClick which would return the selected item and close the activity. Or is it to use the Dialog? -- You

[android-developers] Re: Two onCreate (and onDestroy) invocations on orientation chage

2010-01-04 Thread Business Talk
It's not just 1.6. the higher versions do the same. It looks like rotation does more than just updetes the UI. I also failed to find any reference to this problem. On Jan 4, 8:16 am, Pawel Kapala wrote: > Hello. > > With following simple code (on clean, new android project): > > public class Rota

[android-developers] Re: AudioTrack - Clicking Sound

2010-01-04 Thread Business Talk
After, repeated effort at sound synthesis I have decided to go back to pre=generated sounds. It's much too computationally expensive. My question is; does AudioTrack use pure pcm of it uses wave. I have this clicking sound and I think it's because I am using wave and the wave is pcm plus same heade

[android-developers] Custom Layout

2010-01-01 Thread Business Talk
What's the deal with the custom layouts? I implemented a custom layout class and began defining xml layout using my new class. Than I realized that I can't just add the child views that way one can add views to the predefined layouts. I had to do it manually modifing the xml. Than I found out that

[android-developers] Re: TableLayout

2009-12-30 Thread Business Talk
Thanks Mark, you were very helpful, Good Luck On Dec 30, 4:39 pm, Mark Murphy wrote: > Business Talk wrote: > > I am not sure if I follow, I might have just a few rows so they need > > to be stretched to fill the height of the screen (table layout) or I > > might have many

[android-developers] Re: TableLayout

2009-12-30 Thread Business Talk
urphy wrote: > Business Talk wrote: > > Thanks Mark, it works. Any suggestions how to handle rows. I need to > > handle them the same way. Stretch rows or shrink them depending on > > their size. > > That's driven entirely by what you put in the rows. They are

[android-developers] Re: TableLayout

2009-12-30 Thread Business Talk
Thanks Mark, it works. Any suggestions how to handle rows. I need to handle them the same way. Stretch rows or shrink them depending on their size. On Dec 30, 3:48 pm, Mark Murphy wrote: > Business Talk wrote: > > How can I make sure that a TableRow fits into the table width > >

[android-developers] TableLayout

2009-12-30 Thread Business Talk
How can I make sure that a TableRow fits into the table width regardless of the TableRow' size, meaning the row is shrank to fit the table's width if the row is too big or it's stretched if the it's too small. Adjusting gravity on the row doesn't seem to work. -- You received this message because

[android-developers] Re: TableLayout - Raw Stretching

2009-12-30 Thread Business Talk
Sorry for the type, it certainly should be Row On Dec 30, 1:51 pm, Business Talk wrote: > How can one stretch evenly rows of a TableLayout, regardless of the > row's content? I know that One can stretch columns evenly be setting > the stretchColumns='*". -- You recei

[android-developers] TableLayout - Raw Stretching

2009-12-30 Thread Business Talk
How can one stretch evenly rows of a TableLayout, regardless of the row's content? I know that One can stretch columns evenly be setting the stretchColumns='*". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] AudioTrack - Clicking Sounds

2009-12-29 Thread Business Talk
Do you know of any freeware application that can convert/generate sounds in the PCM format? I am getting clicking sounds when playing AudioTrack and I think it is because I am playing a wave file which is a pcm with some headers. I downloaded a number of converters but all of them generate wave fil

[android-developers] Re: AudioTrack stop/release

2009-12-29 Thread Business Talk
don’t know when the stop action is going to take place so writing zeros might not work. So the only solution is to use small buffer. I will see how it goes. Thanks On Dec 29, 11:23 am, Olivier Guilyardi wrote: > On 12/25/2009 02:00 PM, Business Talk wrote: > > > I keep posting this me

[android-developers] JetCreator

2009-12-29 Thread Business Talk
Using the JetCreator, I have created an ‘App Controller’ event and assigned a track number = 2 to it. Yet, track = 0 is passed to the onJetEvent listener method. Any Ideas? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] JetPlayer

2009-12-28 Thread Business Talk
I have created a jet file, with a controller event in it, using the JetCreator and defined a OnJetListener. And although other methods on the listener are called, the onJetEvent method is not. Am I missing something here? -- You received this message because you are subscribed to the Google Group

[android-developers] Device coming back from sleep is effecting the UI

2009-12-27 Thread Business Talk
My buttons stop reacting to the mouse clicks after the device comes back from sleep. The buttons receive the the click events since actions associated with the buttons are executed but visually they do not appear to be pressed when being clicked. I am using selector to define the drawables for the

[android-developers] AudioTrack stop/release

2009-12-25 Thread Business Talk
I keep posting this message hoping that maybe somebody from google (media group in particular) monitors the group. I need to stop the AudioTrack, regardless what's in the buffer, immediately when executing the stop/release. The AudioTrack plays in the STREAM mode. It appears that the AudioTrack fi

[android-developers] Re: Scrolling a Gallery

2009-12-24 Thread Business Talk
Thanks Aniruddh, That's what I need but I see a problem here. It looks like I will have to subclass the gallery in order to override the onInterceptTouchEvent method. Otherwise, I don't see a way to register a listener that would implement the method and intercept the call. Any suggestion? -- Yo

[android-developers] Scrolling a Gallery

2009-12-24 Thread Business Talk
How do I make a gallery to scroll if the gallery's items (views) fill the entire screen (a view per screen) and each view is filled with buttons? It looks like the gallery doesn't get the scroll event. Instead, the buttons get the click event. -- You received this message because you are subscrib

[android-developers] Re: AudioTrack - Doesn't stop playing as requested.

2009-12-23 Thread Business Talk
Thanks Fabricio, Unfortunately, It doesn't work either. Good Luck On Dec 22, 9:27 am, Fabricio wrote: > Not been very familiar with it but maybe you could pause it and then proced > to stop and release. > Salutes. > Fabricio Tuosto > > On Tue, Dec 22, 2009 at 11:22

[android-developers] AudioTrack - Doesn't stop playing as requested.

2009-12-22 Thread Business Talk
I've been trying to resolve the issue of the immediate termination of the AudioTrack played in the MODE_STREAM track with no avail. To do so I call stop and release; audioTrack.stop(); audioTrack.release(); audioTrack = null; I tried flushing but it

[android-developers] Re: AudioTrack - Clicking Sound

2009-12-21 Thread Business Talk
On Dec 21, 12:34 pm, Business Talk wrote: > Mark, > > Yours is a golden tip. In a long run using files is out of the > question, considering the size of the application it would generate. > Your approach is definitely the way to go. I just have no experience > in t

[android-developers] Re: AudioTrack - Clicking Sound

2009-12-21 Thread Business Talk
Mark, Yours is a golden tip. In a long run using files is out of the question, considering the size of the application it would generate. Your approach is definitely the way to go. I just have no experience in the sound synthesis, Specifically synthesizing instrument sounds. Do you have any docume

[android-developers] AudioTack

2009-12-21 Thread Business Talk
I seems as if the sdk 2.0.1 introduced some instability into the AudioTrack. The PlaybackPositionUpdateListener is call very inpredicably. It used to work fine in 2.0.0. Has anybody alse noticed this change? -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Multiplayer - Multicast Group

2009-12-20 Thread Business Talk
In the multi-player setup, every device joins the same multicast group and every device is a broadcaster as well as a receiver of the multicast messages. So, when a device sends a message to the multicast group (for example, a description of the aviator's move) for others to update their game statu

[android-developers] Re: Multicast

2009-12-20 Thread Business Talk
not belong to the range thus is not a multicast. What gives? On Dec 19, 2:02 pm, Business Talk wrote: > I am getting ' attempted to join non-multicast group' when joining a > group; > > _MulticastSocket.joinGroup(getBroadcastAddress()); > > where > > public fin

[android-developers] Re: AudioTrack stop/release

2009-12-19 Thread Business Talk
t, but small enough to be responsive. > > -niko > > On Dec 15, 11:33 pm, Business Talk > wrote: > > > > > It doesn't seems as if the the stop and release immediately terminates > > the audio played by the MODE_STREAM track. It looks like it finishes > > p

[android-developers] Multicast

2009-12-19 Thread Business Talk
I am getting ' attempted to join non-multicast group' when joining a group; _MulticastSocket.joinGroup(getBroadcastAddress()); where public final InetAddress getBroadcastAddress() throws IOException, Exception { WifiManager wifi = (WifiManager) _Context.getSystemService (

[android-developers] Re: Drag and Drop

2009-12-18 Thread Business Talk
Thanks Mark On Dec 18, 4:37 pm, Mark Murphy wrote: > Business Talk wrote: > > is there any drag and drop support in android? Couldn't find any > > Nothing really built in, though with touch events and such you could > create something that works for your app. > >

[android-developers] Drag and Drop

2009-12-18 Thread Business Talk
is there any drag and drop support in android? Couldn't find any -- 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: Audio options for music app - should I use JET?

2009-12-18 Thread Business Talk
It sounds like we are working on a similar application. I have placed the same question not too long ago and have received no definite answer so I ended up experimenting with all currently available choices; JetPlayer, SoundPool and the AudioTracker, in this order. I have rejected the JetPlayer alm

[android-developers] Re: Best practice for P2P handset networking

2009-12-16 Thread Business Talk
Steve, I am also in need of a p2p framework. I am a little surprised by lack of any development effort in this area. Please, let me know if you would like to collaborate in researching and maybe implementation of a basic p2p framework. Splitting work will get us there faster. If there is anybody

[android-developers] ddms

2009-12-16 Thread Business Talk
I am trying to debug my device from a windows system with no IDE, just the android sdk, jdk and jre. I am using the ddms to do so. I works fine. I can see the entries in the logcat in the ddms. Among others I can see ‘Wrote stack trace to /data/anr/traces.txt”. But when I select the Device->File Ex

[android-developers] Gallery

2009-12-16 Thread Business Talk
I have a gallery view with a number of views, each of which fills the display. So there on view of the gallery per display. Also each view is filled with selectable buttons. Similar to the calendar where a view of the month fills the entire display. To go to the next/ previous month one must scroll

[android-developers] AudioTrack stop/release

2009-12-15 Thread Business Talk
It doesn't seems as if the the stop and release immediately terminates the audio played by the MODE_STREAM track. It looks like it finishes playing the rest of the buffer and then stops. Any thoughts? -- You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] Re: AudioTrack - Clicking Sound

2009-12-15 Thread Business Talk
, or such. > > Also never hurts to load your PCM data into Audacity to double check > how it sounds. > > -niko > > On Dec 15, 7:37 am, Business Talk > wrote: > > > > > I am getting this clicking sound when playing static pcm data. Anybody > > out there is h

[android-developers] Re: AudioTrack.play Exception at line 764

2009-12-15 Thread Business Talk
Thanks Niko On Dec 15, 10:21 am, niko20 wrote: > line 764 in AudioTrack is inside the write() function. Looks like you > may be writing some bad data for some reason, double check your code > where you are writing the data into the AudioTrack. > > -niko > > On Dec 15, 9

[android-developers] AudioTrack.play Exception at line 764

2009-12-15 Thread Business Talk
I am getting an exception thrown by the AudioTrack.play at line 764. It doesn’t happen every time if I play it long enough it does sooner or later. I don’t seem to be able to find the latest AudioTrack source code. It happens when I repeatedly create a new audio track object and release it. -- Yo

[android-developers] AudioTrack - Clicking Sound

2009-12-15 Thread Business Talk
I am getting this clicking sound when playing static pcm data. Anybody out there is having the same problem? This is not the data issue. I am sure of it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Re: AudioTrack

2009-12-14 Thread Business Talk
ect, I don't see why you can to multiples at once.. > > -niko > > On Dec 14, 7:27 am, Business Talk > wrote: > > > > > Is the AudioTrack fundamentally designed to be a singleton? Methods on > > the OnPlaybackPositionUpdateListener receive just one argument, wh

[android-developers] PCM Data - Frame Count

2009-12-14 Thread Business Talk
I am using the length of my PCM data buffer to calculate the number of frames; depending if its mono or stereo or 8bit or 16bit. For example, if it is a mono/8bit then the number of frames is the length of the buffer. if it is stereo/16bit the number of frames is the length / 4. The problem is th

[android-developers] Re: Immediate Need for Multiple Requirements

2009-12-14 Thread Business Talk
I just did On Dec 14, 11:11 am, Jose Gomez wrote: > Can someone please mark this person as spam get them off the list. UGH! > Sincerely > Jose C Gomez > > http://www.josecgomez.com > > On Mon, Dec 14, 2009 at 11:06 AM, krishna murthy wrote: > > > > > Hi, > > > This is Krishna with iMCS, we have a

[android-developers] Re: Immediate Need for Multiple Requirements

2009-12-14 Thread Business Talk
Visa Status? you iHop. do you really think this forum is off-shoring placement agency. On Dec 14, 9:43 am, Zied Hamdi wrote: > Hi Krishna, > > Can you please explain why you are using the android developers group to > search for completely unrelated skills? Could you please respect the fact > tha

[android-developers] Re: playing short audio clip has tick sound

2009-12-14 Thread Business Talk
I have the same problem with the AudioTrack at the beginning of every play in a static mode. I assumed that it might be due to my pcm wave creating but maybe not. Any thoughts? On Dec 14, 9:44 am, JacobGladish wrote: > I'm using the SoundPool to play a series of small audio clips and am > having

[android-developers] AudioTrack

2009-12-14 Thread Business Talk
Is the AudioTrack fundamentally designed to be a singleton? Methods on the OnPlaybackPositionUpdateListener receive just one argument, which is the AudioTrack itself. And since the AudioTrack does not have getTag/setTag methods I don't see any way to distinguish among multiple AudioTracks in the On

[android-developers] midi to pcm convertors?

2009-12-08 Thread Business Talk
any tips as to the midi to pcm convertors? I have been looking for one and found none. I understand the the AudioTrack takes pcm format only? Is it the case? -- 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: AudioTrack::start called from thread

2009-12-08 Thread Business Talk
it all > > the time, it must be something else going on. > > > One thing you may want to try is to create the AudioTrack object and > > start() it in the same thread. Perhaps it doesn't like being created > > in a different thread than start() is called in ? > >

[android-developers] inputStream.read problem

2009-12-08 Thread Business Talk
I have this simple code that reads raw resource. For some reason the inputStream.read call seems to throw an exception but it is not handled by the catch it goes to the finally. Of caurse the return inputBuffer is not executed but the return new byte[0]; is. try {

[android-developers] AudioTrack::start called from thread

2009-12-08 Thread Business Talk
I am getting the 'AudioTrack::start called from thread' when starting an AudioTrack. I am using it in a thread. I asume I shouldn't but why? I see it as a major limitation. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: Inflator

2009-12-07 Thread Business Talk
e to inflate, > else use the convertView directly. > > Thanks, > Kumar Bibek > > http://tech-droid.blogspot.com > > On Dec 7, 10:30 pm, Business Talk > wrote: > > > > > In my custom adapter, that implements the BaseAdapter and its getView, > > I us

[android-developers] Inflator

2009-12-07 Thread Business Talk
In my custom adapter, that implements the BaseAdapter and its getView, I use the inflator to generate a new view from a layout. Is there any way to avoid repetitive inflation step? specially when the convert View (an argument to the getView) is always null, which mean it can’t be reused and the vie

[android-developers] Custom Adapter

2009-12-07 Thread Business Talk
I have implemented a custom adapter the extends from the BaseAdapter and implements the getView method. It works fine except for one thing, not once do I get the convert View (a parameter to the getView method) that is not null ( that can be reused). Anybody experienced that same? -- You received

[android-developers] Re: Socket refused connection

2009-12-07 Thread Business Talk
Pierr, the following is a question to your question, as well as to anybody willing to share the experience with network connectivity. Do you have any tips regarding the P2P implementation in terms of getting IP address information of the connection target devices (a friend's device, for example).

[android-developers] Re: RadioButton

2009-12-07 Thread Business Talk
Thanks Kumar, that's what I thought. On Dec 7, 6:13 am, "Dexter's Brain" wrote: > Not directly, > > But you can create your Custom Radio button by extending the > RadioButton class, and using your own layout. > > Thanks > Kumar Bibekhttp://tech-droid.blo

[android-developers] Include Button

2009-12-06 Thread Business Talk
A have a Button with a selector (drawable) assigned to the Button’s background. The selector is used to change the background on touch event. It does not work when I use the ‘include’ in my main layout to reference the button, which is represented in a layout of its own. But it works fine when the

[android-developers] RadioButton

2009-12-06 Thread Business Talk
Is There any way to possition a text of a RadioButton at the bottom, centered in the middle, short of writing my own custom buttom? -- 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@goog

[android-developers] Home View

2009-11-28 Thread Business Talk
I need to create an activity with a single view which has a multiple width and/or height of the screen and be able to scroll it. Exactly, like the home activity. Any Ideas? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Selector with the ImageView?

2009-11-27 Thread Business Talk
Is there any way to use the selector drawable with the ImageView instead of the ImageButton ( http://developer.android.com/reference/android/widget/ImageButton.html )? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Need Help with the android:weightSum and layout_weight attributes

2009-11-27 Thread Business Talk
Thanks to all, it worked. You can only guess how much time you saved me. Good Luck On Nov 26, 8:38 pm, Romain Guy wrote: > Using 0px is mostly an optimization. It is not required. > > On Nov 26, 2009 5:16 PM, "steelbytes" wrote: > > I think you have to set the width of each item to 0px. then the

[android-developers] Re: Attributes represented by expresions

2009-11-26 Thread Business Talk
Thanks Mark, much appreciate. Good Luck On Nov 26, 7:57 am, Mark Murphy wrote: > Business Talk wrote: > > is it possible to define an attribute value of a height attribute, for > > example, relative to its parent's height.  For instance, I want the > > linear_layout

[android-developers] Attributes represented by expresions

2009-11-26 Thread Business Talk
is it possible to define an attribute value of a height attribute, for example, relative to its parent's height. For instance, I want the linear_layout's height to be 2/3 of its FrameLayout parent. I have a FrameLayout with two linear_layouts. The first linear_layout fills the entire FrameLayout

[android-developers] Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread Business Talk
I have a simple horizontal linear_layout with bunch of image views in it. the trick is that the views have different widths, relative to the size of their parent (the linear layout). I set the layout's weightSum to a 100 and the layout_weight to let's say 10 of one view and 15 of the other, on so

[android-developers] comments on the 'Integrating Application with Intents" blog

2009-11-13 Thread Business Talk
I would like to make a few comments on the 'Integrating Application with Intents ' blog posted on the developers.android side. Specifically, as to the definition of the reserve action and the data specifications. Neither of these specifications are generic and exhibit a very narrow view of the res

[android-developers] New Game Development Group - OpenGL ES

2009-11-09 Thread Business Talk
This is a request to the group manager to create a new android group, specifically for the game developers based on the OpenGL ES. -- 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@googl